Class TransactionData.User.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransactionData.User.Builder>
com.google.recaptchaenterprise.v1.TransactionData.User.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TransactionData.UserOrBuilder,Cloneable
- Enclosing class:
- TransactionData.User
public static final class TransactionData.User.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TransactionData.User.Builder>
implements TransactionData.UserOrBuilder
Details about a user's account involved in the transaction.Protobuf type
google.cloud.recaptchaenterprise.v1.TransactionData.User-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.longOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEmail()Optional.com.google.protobuf.ByteStringOptional.booleanOptional.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(TransactionData.User other) setAccountId(String value) Optional.setAccountIdBytes(com.google.protobuf.ByteString value) Optional.setCreationMs(long value) Optional.Optional.setEmailBytes(com.google.protobuf.ByteString value) Optional.setEmailVerified(boolean value) Optional.setPhoneNumber(String value) Optional.setPhoneNumberBytes(com.google.protobuf.ByteString value) Optional.setPhoneVerified(boolean value) 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<TransactionData.User.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<TransactionData.User.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<TransactionData.User.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<TransactionData.User.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TransactionData.User.Builder>
-
mergeFrom
public TransactionData.User.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<TransactionData.User.Builder>- Throws:
IOException
-
getAccountId
Optional. Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.
string account_id = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAccountIdin interfaceTransactionData.UserOrBuilder- Returns:
- The accountId.
-
getAccountIdBytes
public com.google.protobuf.ByteString getAccountIdBytes()Optional. Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.
string account_id = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAccountIdBytesin interfaceTransactionData.UserOrBuilder- Returns:
- The bytes for accountId.
-
setAccountId
Optional. Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.
string account_id = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The accountId to set.- Returns:
- This builder for chaining.
-
clearAccountId
Optional. Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.
string account_id = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setAccountIdBytes
Optional. Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.
string account_id = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for accountId to set.- Returns:
- This builder for chaining.
-
getCreationMs
public long getCreationMs()Optional. The epoch milliseconds of the user's account creation.
int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCreationMsin interfaceTransactionData.UserOrBuilder- Returns:
- The creationMs.
-
setCreationMs
Optional. The epoch milliseconds of the user's account creation.
int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The creationMs to set.- Returns:
- This builder for chaining.
-
clearCreationMs
Optional. The epoch milliseconds of the user's account creation.
int64 creation_ms = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getEmail
Optional. The email address of the user.
string email = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEmailin interfaceTransactionData.UserOrBuilder- Returns:
- The email.
-
getEmailBytes
public com.google.protobuf.ByteString getEmailBytes()Optional. The email address of the user.
string email = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEmailBytesin interfaceTransactionData.UserOrBuilder- Returns:
- The bytes for email.
-
setEmail
Optional. The email address of the user.
string email = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The email to set.- Returns:
- This builder for chaining.
-
clearEmail
Optional. The email address of the user.
string email = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setEmailBytes
Optional. The email address of the user.
string email = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for email to set.- Returns:
- This builder for chaining.
-
getEmailVerified
public boolean getEmailVerified()Optional. Whether the email has been verified to be accessible by the user (OTP or similar).
bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEmailVerifiedin interfaceTransactionData.UserOrBuilder- Returns:
- The emailVerified.
-
setEmailVerified
Optional. Whether the email has been verified to be accessible by the user (OTP or similar).
bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The emailVerified to set.- Returns:
- This builder for chaining.
-
clearEmailVerified
Optional. Whether the email has been verified to be accessible by the user (OTP or similar).
bool email_verified = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getPhoneNumber
Optional. The phone number of the user, with country code.
string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPhoneNumberin interfaceTransactionData.UserOrBuilder- Returns:
- The phoneNumber.
-
getPhoneNumberBytes
public com.google.protobuf.ByteString getPhoneNumberBytes()Optional. The phone number of the user, with country code.
string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPhoneNumberBytesin interfaceTransactionData.UserOrBuilder- Returns:
- The bytes for phoneNumber.
-
setPhoneNumber
Optional. The phone number of the user, with country code.
string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The phoneNumber to set.- Returns:
- This builder for chaining.
-
clearPhoneNumber
Optional. The phone number of the user, with country code.
string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setPhoneNumberBytes
Optional. The phone number of the user, with country code.
string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for phoneNumber to set.- Returns:
- This builder for chaining.
-
getPhoneVerified
public boolean getPhoneVerified()Optional. Whether the phone number has been verified to be accessible by the user (OTP or similar).
bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPhoneVerifiedin interfaceTransactionData.UserOrBuilder- Returns:
- The phoneVerified.
-
setPhoneVerified
Optional. Whether the phone number has been verified to be accessible by the user (OTP or similar).
bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The phoneVerified to set.- Returns:
- This builder for chaining.
-
clearPhoneVerified
Optional. Whether the phone number has been verified to be accessible by the user (OTP or similar).
bool phone_verified = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-