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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UserInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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
|
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];
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
|
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];
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];
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
|
build()
buildPartial()
public UserInfo buildPartial()
clear()
public UserInfo.Builder clear()
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];
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];
clearField(Descriptors.FieldDescriptor field)
public UserInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UserInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public UserInfo.Builder clone()
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];
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];
getDefaultInstanceForType()
public UserInfo getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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];
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];
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
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];
public UserInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UserInfo.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeFrom(UserInfo other)
public UserInfo.Builder mergeFrom(UserInfo other)
Parameter |
Name |
Description |
other |
UserInfo
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UserInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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.
|
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.
|
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];
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public UserInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UserInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UserInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
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
|
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];