Class RetrieveLegacySecretKeyResponse.Builder (3.3.0)

public static final class RetrieveLegacySecretKeyResponse.Builder extends GeneratedMessageV3.Builder<RetrieveLegacySecretKeyResponse.Builder> implements RetrieveLegacySecretKeyResponseOrBuilder

Secret key is used only in legacy reCAPTCHA. It must be used in a 3rd party integration with legacy reCAPTCHA.

Protobuf type google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RetrieveLegacySecretKeyResponse build()
Returns
TypeDescription
RetrieveLegacySecretKeyResponse

buildPartial()

public RetrieveLegacySecretKeyResponse buildPartial()
Returns
TypeDescription
RetrieveLegacySecretKeyResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLegacySecretKey()

public RetrieveLegacySecretKeyResponse.Builder clearLegacySecretKey()

The secret key (also known as shared secret) authorizes communication between your application backend and the reCAPTCHA Enterprise server to create an assessment. The secret key needs to be kept safe for security purposes.

string legacy_secret_key = 1;

Returns
TypeDescription
RetrieveLegacySecretKeyResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RetrieveLegacySecretKeyResponse getDefaultInstanceForType()
Returns
TypeDescription
RetrieveLegacySecretKeyResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLegacySecretKey()

public String getLegacySecretKey()

The secret key (also known as shared secret) authorizes communication between your application backend and the reCAPTCHA Enterprise server to create an assessment. The secret key needs to be kept safe for security purposes.

string legacy_secret_key = 1;

Returns
TypeDescription
String

The legacySecretKey.

getLegacySecretKeyBytes()

public ByteString getLegacySecretKeyBytes()

The secret key (also known as shared secret) authorizes communication between your application backend and the reCAPTCHA Enterprise server to create an assessment. The secret key needs to be kept safe for security purposes.

string legacy_secret_key = 1;

Returns
TypeDescription
ByteString

The bytes for legacySecretKey.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(RetrieveLegacySecretKeyResponse other)

public RetrieveLegacySecretKeyResponse.Builder mergeFrom(RetrieveLegacySecretKeyResponse other)
Parameter
NameDescription
otherRetrieveLegacySecretKeyResponse
Returns
TypeDescription
RetrieveLegacySecretKeyResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLegacySecretKey(String value)

public RetrieveLegacySecretKeyResponse.Builder setLegacySecretKey(String value)

The secret key (also known as shared secret) authorizes communication between your application backend and the reCAPTCHA Enterprise server to create an assessment. The secret key needs to be kept safe for security purposes.

string legacy_secret_key = 1;

Parameter
NameDescription
valueString

The legacySecretKey to set.

Returns
TypeDescription
RetrieveLegacySecretKeyResponse.Builder

This builder for chaining.

setLegacySecretKeyBytes(ByteString value)

public RetrieveLegacySecretKeyResponse.Builder setLegacySecretKeyBytes(ByteString value)

The secret key (also known as shared secret) authorizes communication between your application backend and the reCAPTCHA Enterprise server to create an assessment. The secret key needs to be kept safe for security purposes.

string legacy_secret_key = 1;

Parameter
NameDescription
valueByteString

The bytes for legacySecretKey to set.

Returns
TypeDescription
RetrieveLegacySecretKeyResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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