Class RetrieveLegacySecretKeyRequest.Builder (3.43.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RetrieveLegacySecretKeyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RetrieveLegacySecretKeyRequest.Builder
Overrides

build()

public RetrieveLegacySecretKeyRequest build()
Returns
Type Description
RetrieveLegacySecretKeyRequest

buildPartial()

public RetrieveLegacySecretKeyRequest buildPartial()
Returns
Type Description
RetrieveLegacySecretKeyRequest

clear()

public RetrieveLegacySecretKeyRequest.Builder clear()
Returns
Type Description
RetrieveLegacySecretKeyRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RetrieveLegacySecretKeyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
RetrieveLegacySecretKeyRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RetrieveLegacySecretKeyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RetrieveLegacySecretKeyRequest.Builder
Overrides

clone()

public RetrieveLegacySecretKeyRequest.Builder clone()
Returns
Type Description
RetrieveLegacySecretKeyRequest.Builder
Overrides

getDefaultInstanceForType()

public RetrieveLegacySecretKeyRequest getDefaultInstanceForType()
Returns
Type Description
RetrieveLegacySecretKeyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for key.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RetrieveLegacySecretKeyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RetrieveLegacySecretKeyRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RetrieveLegacySecretKeyRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RetrieveLegacySecretKeyRequest.Builder
Overrides

mergeFrom(RetrieveLegacySecretKeyRequest other)

public RetrieveLegacySecretKeyRequest.Builder mergeFrom(RetrieveLegacySecretKeyRequest other)
Parameter
Name Description
other RetrieveLegacySecretKeyRequest
Returns
Type Description
RetrieveLegacySecretKeyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RetrieveLegacySecretKeyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RetrieveLegacySecretKeyRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RetrieveLegacySecretKeyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The key to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RetrieveLegacySecretKeyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RetrieveLegacySecretKeyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RetrieveLegacySecretKeyRequest.Builder
Overrides