Class RetrieveLegacySecretKeyRequest.Builder (3.20.0)

public static final class RetrieveLegacySecretKeyRequest.Builder extends GeneratedMessageV3.Builder<RetrieveLegacySecretKeyRequest.Builder> implements RetrieveLegacySecretKeyRequestOrBuilder

The retrieve legacy secret key request message.

Protobuf type google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RetrieveLegacySecretKeyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder
Overrides

build()

public RetrieveLegacySecretKeyRequest build()
Returns
TypeDescription
RetrieveLegacySecretKeyRequest

buildPartial()

public RetrieveLegacySecretKeyRequest buildPartial()
Returns
TypeDescription
RetrieveLegacySecretKeyRequest

clear()

public RetrieveLegacySecretKeyRequest.Builder clear()
Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RetrieveLegacySecretKeyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder
Overrides

clearKey()

public RetrieveLegacySecretKeyRequest.Builder clearKey()

Required. The public key name linked to the requested secret key in the format "projects/{project}/keys/{key}".

string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RetrieveLegacySecretKeyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder
Overrides

clone()

public RetrieveLegacySecretKeyRequest.Builder clone()
Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder
Overrides

getDefaultInstanceForType()

public RetrieveLegacySecretKeyRequest getDefaultInstanceForType()
Returns
TypeDescription
RetrieveLegacySecretKeyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKey()

public String getKey()

Required. The public key name linked to the requested secret key in the format "projects/{project}/keys/{key}".

string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. The public key name linked to the requested secret key in the format "projects/{project}/keys/{key}".

string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for key.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RetrieveLegacySecretKeyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RetrieveLegacySecretKeyRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder
Overrides

mergeFrom(RetrieveLegacySecretKeyRequest other)

public RetrieveLegacySecretKeyRequest.Builder mergeFrom(RetrieveLegacySecretKeyRequest other)
Parameter
NameDescription
otherRetrieveLegacySecretKeyRequest
Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RetrieveLegacySecretKeyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RetrieveLegacySecretKeyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder
Overrides

setKey(String value)

public RetrieveLegacySecretKeyRequest.Builder setKey(String value)

Required. The public key name linked to the requested secret key in the format "projects/{project}/keys/{key}".

string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The key to set.

Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public RetrieveLegacySecretKeyRequest.Builder setKeyBytes(ByteString value)

Required. The public key name linked to the requested secret key in the format "projects/{project}/keys/{key}".

string key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for key to set.

Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RetrieveLegacySecretKeyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RetrieveLegacySecretKeyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RetrieveLegacySecretKeyRequest.Builder
Overrides