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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TransactionData.User.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TransactionData.User.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TransactionData.User.Builder>
    • getDefaultInstanceForType

      public TransactionData.User getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TransactionData.User build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TransactionData.User buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TransactionData.User.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransactionData.User.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransactionData.User.Builder>
      Throws:
      IOException
    • getAccountId

      public String 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:
      getAccountId in interface TransactionData.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:
      getAccountIdBytes in interface TransactionData.UserOrBuilder
      Returns:
      The bytes for accountId.
    • setAccountId

      public TransactionData.User.Builder setAccountId(String value)
       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

      public TransactionData.User.Builder 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

      public TransactionData.User.Builder setAccountIdBytes(com.google.protobuf.ByteString value)
       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:
      getCreationMs in interface TransactionData.UserOrBuilder
      Returns:
      The creationMs.
    • setCreationMs

      public TransactionData.User.Builder setCreationMs(long value)
       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

      public TransactionData.User.Builder 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

      public String getEmail()
       Optional. The email address of the user.
       
      string email = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEmail in interface TransactionData.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:
      getEmailBytes in interface TransactionData.UserOrBuilder
      Returns:
      The bytes for email.
    • setEmail

      public TransactionData.User.Builder setEmail(String value)
       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

      public TransactionData.User.Builder clearEmail()
       Optional. The email address of the user.
       
      string email = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEmailBytes

      public TransactionData.User.Builder setEmailBytes(com.google.protobuf.ByteString value)
       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:
      getEmailVerified in interface TransactionData.UserOrBuilder
      Returns:
      The emailVerified.
    • setEmailVerified

      public TransactionData.User.Builder setEmailVerified(boolean value)
       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

      public TransactionData.User.Builder 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

      public String getPhoneNumber()
       Optional. The phone number of the user, with country code.
       
      string phone_number = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPhoneNumber in interface TransactionData.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:
      getPhoneNumberBytes in interface TransactionData.UserOrBuilder
      Returns:
      The bytes for phoneNumber.
    • setPhoneNumber

      public TransactionData.User.Builder setPhoneNumber(String value)
       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

      public TransactionData.User.Builder 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

      public TransactionData.User.Builder setPhoneNumberBytes(com.google.protobuf.ByteString value)
       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:
      getPhoneVerified in interface TransactionData.UserOrBuilder
      Returns:
      The phoneVerified.
    • setPhoneVerified

      public TransactionData.User.Builder setPhoneVerified(boolean value)
       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

      public TransactionData.User.Builder 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.