Class UserInfo.Builder (3.39.0)

public static final class UserInfo.Builder extends GeneratedMessageV3.Builder<UserInfo.Builder> implements UserInfoOrBuilder

User information associated with a request protected by reCAPTCHA Enterprise.

Protobuf type google.cloud.recaptchaenterprise.v1.UserInfo

Implements

UserInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllUserIds(Iterable<? extends UserId> values)

public UserInfo.Builder addAllUserIds(Iterable<? extends UserId> values)

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUserIds(UserId value)

public UserInfo.Builder addUserIds(UserId value)

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value UserId
Returns
Type Description
UserInfo.Builder

addUserIds(UserId.Builder builderForValue)

public UserInfo.Builder addUserIds(UserId.Builder builderForValue)

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue UserId.Builder
Returns
Type Description
UserInfo.Builder

addUserIds(int index, UserId value)

public UserInfo.Builder addUserIds(int index, UserId value)

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value UserId
Returns
Type Description
UserInfo.Builder

addUserIds(int index, UserId.Builder builderForValue)

public UserInfo.Builder addUserIds(int index, UserId.Builder builderForValue)

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue UserId.Builder
Returns
Type Description
UserInfo.Builder

addUserIdsBuilder()

public UserId.Builder addUserIdsBuilder()

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserId.Builder

addUserIdsBuilder(int index)

public UserId.Builder addUserIdsBuilder(int index)

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
UserId.Builder

build()

public UserInfo build()
Returns
Type Description
UserInfo

buildPartial()

public UserInfo buildPartial()
Returns
Type Description
UserInfo

clear()

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

clearAccountId()

public UserInfo.Builder clearAccountId()

Optional. For logged-in requests or login/registration requests, the unique account identifier associated with this user. You can use the username if it is stable (meaning it is the same for every request associated with the same user), or any stable user ID of your choice. Leave blank for non logged-in actions or guest checkout.

string account_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserInfo.Builder

This builder for chaining.

clearCreateAccountTime()

public UserInfo.Builder clearCreateAccountTime()

Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.

.google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserInfo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUserIds()

public UserInfo.Builder clearUserIds()

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserInfo.Builder

clone()

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

getAccountId()

public String getAccountId()

Optional. For logged-in requests or login/registration requests, the unique account identifier associated with this user. You can use the username if it is stable (meaning it is the same for every request associated with the same user), or any stable user ID of your choice. Leave blank for non logged-in actions or guest checkout.

string account_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The accountId.

getAccountIdBytes()

public ByteString getAccountIdBytes()

Optional. For logged-in requests or login/registration requests, the unique account identifier associated with this user. You can use the username if it is stable (meaning it is the same for every request associated with the same user), or any stable user ID of your choice. Leave blank for non logged-in actions or guest checkout.

string account_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for accountId.

getCreateAccountTime()

public Timestamp getCreateAccountTime()

Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.

.google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The createAccountTime.

getCreateAccountTimeBuilder()

public Timestamp.Builder getCreateAccountTimeBuilder()

Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.

.google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getCreateAccountTimeOrBuilder()

public TimestampOrBuilder getCreateAccountTimeOrBuilder()

Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.

.google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public UserInfo getDefaultInstanceForType()
Returns
Type Description
UserInfo

getDescriptorForType()

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

getUserIds(int index)

public UserId getUserIds(int index)

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
UserId

getUserIdsBuilder(int index)

public UserId.Builder getUserIdsBuilder(int index)

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
UserId.Builder

getUserIdsBuilderList()

public List<UserId.Builder> getUserIdsBuilderList()

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getUserIdsCount()

public int getUserIdsCount()

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getUserIdsList()

public List<UserId> getUserIdsList()

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<UserId>

getUserIdsOrBuilder(int index)

public UserIdOrBuilder getUserIdsOrBuilder(int index)

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
UserIdOrBuilder

getUserIdsOrBuilderList()

public List<? extends UserIdOrBuilder> getUserIdsOrBuilderList()

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

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

hasCreateAccountTime()

public boolean hasCreateAccountTime()

Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.

.google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the createAccountTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateAccountTime(Timestamp value)

public UserInfo.Builder mergeCreateAccountTime(Timestamp value)

Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.

.google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
UserInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(UserInfo other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeUserIds(int index)

public UserInfo.Builder removeUserIds(int index)

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
UserInfo.Builder

setAccountId(String value)

public UserInfo.Builder setAccountId(String value)

Optional. For logged-in requests or login/registration requests, the unique account identifier associated with this user. You can use the username if it is stable (meaning it is the same for every request associated with the same user), or any stable user ID of your choice. Leave blank for non logged-in actions or guest checkout.

string account_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The accountId to set.

Returns
Type Description
UserInfo.Builder

This builder for chaining.

setAccountIdBytes(ByteString value)

public UserInfo.Builder setAccountIdBytes(ByteString value)

Optional. For logged-in requests or login/registration requests, the unique account identifier associated with this user. You can use the username if it is stable (meaning it is the same for every request associated with the same user), or any stable user ID of your choice. Leave blank for non logged-in actions or guest checkout.

string account_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for accountId to set.

Returns
Type Description
UserInfo.Builder

This builder for chaining.

setCreateAccountTime(Timestamp value)

public UserInfo.Builder setCreateAccountTime(Timestamp value)

Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.

.google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
UserInfo.Builder

setCreateAccountTime(Timestamp.Builder builderForValue)

public UserInfo.Builder setCreateAccountTime(Timestamp.Builder builderForValue)

Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user.

.google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UserInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserIds(int index, UserId value)

public UserInfo.Builder setUserIds(int index, UserId value)

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value UserId
Returns
Type Description
UserInfo.Builder

setUserIds(int index, UserId.Builder builderForValue)

public UserInfo.Builder setUserIds(int index, UserId.Builder builderForValue)

Optional. Identifiers associated with this user or request.

repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue UserId.Builder
Returns
Type Description
UserInfo.Builder