Class UserInfo.Builder (3.37.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.recaptchaenterprise.v1.UserId>
Returns
TypeDescription
UserInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UserInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueUserId
Returns
TypeDescription
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
NameDescription
builderForValueUserId.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueUserId
Returns
TypeDescription
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
NameDescription
indexint
builderForValueUserId.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
UserId.Builder

build()

public UserInfo build()
Returns
TypeDescription
UserInfo

buildPartial()

public UserInfo buildPartial()
Returns
TypeDescription
UserInfo

clear()

public UserInfo.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UserInfo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UserInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
UserInfo.Builder

clone()

public UserInfo.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public UserInfo getDefaultInstanceForType()
Returns
TypeDescription
UserInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the createAccountTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
UserInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(UserInfo other)

public UserInfo.Builder mergeFrom(UserInfo other)
Parameter
NameDescription
otherUserInfo
Returns
TypeDescription
UserInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UserInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The accountId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for accountId to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UserInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UserInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
valueUserId
Returns
TypeDescription
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
NameDescription
indexint
builderForValueUserId.Builder
Returns
TypeDescription
UserInfo.Builder