Class UserInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UserInfo.Builder>
com.google.recaptchaenterprise.v1.UserInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,UserInfoOrBuilder,Cloneable
- Enclosing class:
- UserInfo
public static final class UserInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<UserInfo.Builder>
implements UserInfoOrBuilder
User information associated with a request protected by reCAPTCHA Enterprise.Protobuf type
google.cloud.recaptchaenterprise.v1.UserInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllUserIds(Iterable<? extends UserId> values) Optional.addUserIds(int index, UserId value) Optional.addUserIds(int index, UserId.Builder builderForValue) Optional.addUserIds(UserId value) Optional.addUserIds(UserId.Builder builderForValue) Optional.Optional.addUserIdsBuilder(int index) Optional.build()clear()Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetUserIds(int index) Optional.getUserIdsBuilder(int index) Optional.Optional.intOptional.Optional.getUserIdsOrBuilder(int index) Optional.List<? extends UserIdOrBuilder>Optional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateAccountTime(com.google.protobuf.Timestamp value) Optional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeUserIds(int index) Optional.setAccountId(String value) Optional.setAccountIdBytes(com.google.protobuf.ByteString value) Optional.setCreateAccountTime(com.google.protobuf.Timestamp value) Optional.setCreateAccountTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional.setUserIds(int index, UserId value) Optional.setUserIds(int index, UserId.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UserInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UserInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<UserInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UserInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UserInfo.Builder>
-
mergeFrom
public UserInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UserInfo.Builder>- Throws:
IOException
-
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];- Specified by:
hasCreateAccountTimein interfaceUserInfoOrBuilder- Returns:
- Whether the createAccountTime field is set.
-
getCreateAccountTime
public com.google.protobuf.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];- Specified by:
getCreateAccountTimein interfaceUserInfoOrBuilder- Returns:
- The createAccountTime.
-
setCreateAccountTime
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
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]; -
mergeCreateAccountTime
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]; -
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]; -
getCreateAccountTimeBuilder
public com.google.protobuf.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 com.google.protobuf.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];- Specified by:
getCreateAccountTimeOrBuilderin interfaceUserInfoOrBuilder
-
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];- Specified by:
getAccountIdin interfaceUserInfoOrBuilder- Returns:
- The accountId.
-
getAccountIdBytes
public com.google.protobuf.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];- Specified by:
getAccountIdBytesin interfaceUserInfoOrBuilder- Returns:
- The bytes for accountId.
-
setAccountId
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];- Parameters:
value- The accountId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setAccountIdBytes
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];- Parameters:
value- The bytes for accountId to set.- Returns:
- This builder for chaining.
-
getUserIdsList
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserIdsListin interfaceUserInfoOrBuilder
-
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];- Specified by:
getUserIdsCountin interfaceUserInfoOrBuilder
-
getUserIds
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserIdsin interfaceUserInfoOrBuilder
-
setUserIds
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setUserIds
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addUserIds
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addUserIds
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addUserIds
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addUserIds
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addAllUserIds
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearUserIds
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; -
removeUserIds
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getUserIdsBuilder
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getUserIdsOrBuilder
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserIdsOrBuilderin interfaceUserInfoOrBuilder
-
getUserIdsOrBuilderList
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserIdsOrBuilderListin interfaceUserInfoOrBuilder
-
addUserIdsBuilder
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addUserIdsBuilder
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getUserIdsBuilderList
Optional. Identifiers associated with this user or request.
repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
-