Class AccountVerificationInfo.Builder (3.40.0)

public static final class AccountVerificationInfo.Builder extends GeneratedMessageV3.Builder<AccountVerificationInfo.Builder> implements AccountVerificationInfoOrBuilder

Information about account verification, used for identity verification.

Protobuf type google.cloud.recaptchaenterprise.v1.AccountVerificationInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllEndpoints(Iterable<? extends EndpointVerificationInfo> values)

public AccountVerificationInfo.Builder addAllEndpoints(Iterable<? extends EndpointVerificationInfo> values)

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.recaptchaenterprise.v1.EndpointVerificationInfo>
Returns
Type Description
AccountVerificationInfo.Builder

addEndpoints(EndpointVerificationInfo value)

public AccountVerificationInfo.Builder addEndpoints(EndpointVerificationInfo value)

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EndpointVerificationInfo
Returns
Type Description
AccountVerificationInfo.Builder

addEndpoints(EndpointVerificationInfo.Builder builderForValue)

public AccountVerificationInfo.Builder addEndpoints(EndpointVerificationInfo.Builder builderForValue)

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue EndpointVerificationInfo.Builder
Returns
Type Description
AccountVerificationInfo.Builder

addEndpoints(int index, EndpointVerificationInfo value)

public AccountVerificationInfo.Builder addEndpoints(int index, EndpointVerificationInfo value)

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value EndpointVerificationInfo
Returns
Type Description
AccountVerificationInfo.Builder

addEndpoints(int index, EndpointVerificationInfo.Builder builderForValue)

public AccountVerificationInfo.Builder addEndpoints(int index, EndpointVerificationInfo.Builder builderForValue)

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue EndpointVerificationInfo.Builder
Returns
Type Description
AccountVerificationInfo.Builder

addEndpointsBuilder()

public EndpointVerificationInfo.Builder addEndpointsBuilder()

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EndpointVerificationInfo.Builder

addEndpointsBuilder(int index)

public EndpointVerificationInfo.Builder addEndpointsBuilder(int index)

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
EndpointVerificationInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AccountVerificationInfo build()
Returns
Type Description
AccountVerificationInfo

buildPartial()

public AccountVerificationInfo buildPartial()
Returns
Type Description
AccountVerificationInfo

clear()

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

clearEndpoints()

public AccountVerificationInfo.Builder clearEndpoints()

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccountVerificationInfo.Builder

clearField(Descriptors.FieldDescriptor field)

public AccountVerificationInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AccountVerificationInfo.Builder
Overrides

clearLanguageCode()

public AccountVerificationInfo.Builder clearLanguageCode()

Optional. Language code preference for the verification message, set as a IETF BCP 47 language code.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AccountVerificationInfo.Builder

This builder for chaining.

clearLatestVerificationResult()

public AccountVerificationInfo.Builder clearLatestVerificationResult()

Output only. Result of the latest account verification challenge.

.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AccountVerificationInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUsername() (deprecated)

public AccountVerificationInfo.Builder clearUsername()

Deprecated. google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=567

Username of the account that is being verified. Deprecated. Customers should now provide the account_id field in event.user_info.

string username = 2 [deprecated = true];

Returns
Type Description
AccountVerificationInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AccountVerificationInfo getDefaultInstanceForType()
Returns
Type Description
AccountVerificationInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndpoints(int index)

public EndpointVerificationInfo getEndpoints(int index)

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
EndpointVerificationInfo

getEndpointsBuilder(int index)

public EndpointVerificationInfo.Builder getEndpointsBuilder(int index)

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
EndpointVerificationInfo.Builder

getEndpointsBuilderList()

public List<EndpointVerificationInfo.Builder> getEndpointsBuilderList()

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getEndpointsCount()

public int getEndpointsCount()

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getEndpointsList()

public List<EndpointVerificationInfo> getEndpointsList()

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<EndpointVerificationInfo>

getEndpointsOrBuilder(int index)

public EndpointVerificationInfoOrBuilder getEndpointsOrBuilder(int index)

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
EndpointVerificationInfoOrBuilder

getEndpointsOrBuilderList()

public List<? extends EndpointVerificationInfoOrBuilder> getEndpointsOrBuilderList()

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.recaptchaenterprise.v1.EndpointVerificationInfoOrBuilder>

getLanguageCode()

public String getLanguageCode()

Optional. Language code preference for the verification message, set as a IETF BCP 47 language code.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Optional. Language code preference for the verification message, set as a IETF BCP 47 language code.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for languageCode.

getLatestVerificationResult()

public AccountVerificationInfo.Result getLatestVerificationResult()

Output only. Result of the latest account verification challenge.

.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AccountVerificationInfo.Result

The latestVerificationResult.

getLatestVerificationResultValue()

public int getLatestVerificationResultValue()

Output only. Result of the latest account verification challenge.

.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for latestVerificationResult.

getUsername() (deprecated)

public String getUsername()

Deprecated. google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=567

Username of the account that is being verified. Deprecated. Customers should now provide the account_id field in event.user_info.

string username = 2 [deprecated = true];

Returns
Type Description
String

The username.

getUsernameBytes() (deprecated)

public ByteString getUsernameBytes()

Deprecated. google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=567

Username of the account that is being verified. Deprecated. Customers should now provide the account_id field in event.user_info.

string username = 2 [deprecated = true];

Returns
Type Description
ByteString

The bytes for username.

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 AccountVerificationInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccountVerificationInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(AccountVerificationInfo other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeEndpoints(int index)

public AccountVerificationInfo.Builder removeEndpoints(int index)

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AccountVerificationInfo.Builder

setEndpoints(int index, EndpointVerificationInfo value)

public AccountVerificationInfo.Builder setEndpoints(int index, EndpointVerificationInfo value)

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value EndpointVerificationInfo
Returns
Type Description
AccountVerificationInfo.Builder

setEndpoints(int index, EndpointVerificationInfo.Builder builderForValue)

public AccountVerificationInfo.Builder setEndpoints(int index, EndpointVerificationInfo.Builder builderForValue)

Optional. Endpoints that can be used for identity verification.

repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue EndpointVerificationInfo.Builder
Returns
Type Description
AccountVerificationInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLanguageCode(String value)

public AccountVerificationInfo.Builder setLanguageCode(String value)

Optional. Language code preference for the verification message, set as a IETF BCP 47 language code.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
AccountVerificationInfo.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public AccountVerificationInfo.Builder setLanguageCodeBytes(ByteString value)

Optional. Language code preference for the verification message, set as a IETF BCP 47 language code.

string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
AccountVerificationInfo.Builder

This builder for chaining.

setLatestVerificationResult(AccountVerificationInfo.Result value)

public AccountVerificationInfo.Builder setLatestVerificationResult(AccountVerificationInfo.Result value)

Output only. Result of the latest account verification challenge.

.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AccountVerificationInfo.Result

The latestVerificationResult to set.

Returns
Type Description
AccountVerificationInfo.Builder

This builder for chaining.

setLatestVerificationResultValue(int value)

public AccountVerificationInfo.Builder setLatestVerificationResultValue(int value)

Output only. Result of the latest account verification challenge.

.google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for latestVerificationResult to set.

Returns
Type Description
AccountVerificationInfo.Builder

This builder for chaining.

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

public AccountVerificationInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AccountVerificationInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUsername(String value) (deprecated)

public AccountVerificationInfo.Builder setUsername(String value)

Deprecated. google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=567

Username of the account that is being verified. Deprecated. Customers should now provide the account_id field in event.user_info.

string username = 2 [deprecated = true];

Parameter
Name Description
value String

The username to set.

Returns
Type Description
AccountVerificationInfo.Builder

This builder for chaining.

setUsernameBytes(ByteString value) (deprecated)

public AccountVerificationInfo.Builder setUsernameBytes(ByteString value)

Deprecated. google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=567

Username of the account that is being verified. Deprecated. Customers should now provide the account_id field in event.user_info.

string username = 2 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for username to set.

Returns
Type Description
AccountVerificationInfo.Builder

This builder for chaining.