Class 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.GeneratedMessageV3.Builder<TransactionData.User.Builder>
    implements TransactionData.UserOrBuilder
     Details about a user's account involved in the transaction.
     
    Protobuf type google.cloud.recaptchaenterprise.v1beta1.TransactionData.User
    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public TransactionData.User.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.User.Builder>
      • setField

        public TransactionData.User.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.User.Builder>
      • clearField

        public TransactionData.User.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.User.Builder>
      • clearOneof

        public TransactionData.User.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.User.Builder>
      • setRepeatedField

        public TransactionData.User.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.User.Builder>
      • addRepeatedField

        public TransactionData.User.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.User.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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()
         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;
        Specified by:
        getAccountId in interface TransactionData.UserOrBuilder
        Returns:
        The accountId.
      • getAccountIdBytes

        public com.google.protobuf.ByteString getAccountIdBytes()
         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;
        Specified by:
        getAccountIdBytes in interface TransactionData.UserOrBuilder
        Returns:
        The bytes for accountId.
      • setAccountId

        public TransactionData.User.Builder setAccountId​(String value)
         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;
        Parameters:
        value - The accountId to set.
        Returns:
        This builder for chaining.
      • clearAccountId

        public TransactionData.User.Builder clearAccountId()
         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;
        Returns:
        This builder for chaining.
      • setAccountIdBytes

        public TransactionData.User.Builder setAccountIdBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for accountId to set.
        Returns:
        This builder for chaining.
      • getCreationMs

        public long getCreationMs()
         The epoch milliseconds of the user's account creation.
         
        int64 creation_ms = 1;
        Specified by:
        getCreationMs in interface TransactionData.UserOrBuilder
        Returns:
        The creationMs.
      • setCreationMs

        public TransactionData.User.Builder setCreationMs​(long value)
         The epoch milliseconds of the user's account creation.
         
        int64 creation_ms = 1;
        Parameters:
        value - The creationMs to set.
        Returns:
        This builder for chaining.
      • clearCreationMs

        public TransactionData.User.Builder clearCreationMs()
         The epoch milliseconds of the user's account creation.
         
        int64 creation_ms = 1;
        Returns:
        This builder for chaining.
      • getEmailBytes

        public com.google.protobuf.ByteString getEmailBytes()
         The email address of the user.
         
        string email = 2;
        Specified by:
        getEmailBytes in interface TransactionData.UserOrBuilder
        Returns:
        The bytes for email.
      • setEmail

        public TransactionData.User.Builder setEmail​(String value)
         The email address of the user.
         
        string email = 2;
        Parameters:
        value - The email to set.
        Returns:
        This builder for chaining.
      • clearEmail

        public TransactionData.User.Builder clearEmail()
         The email address of the user.
         
        string email = 2;
        Returns:
        This builder for chaining.
      • setEmailBytes

        public TransactionData.User.Builder setEmailBytes​(com.google.protobuf.ByteString value)
         The email address of the user.
         
        string email = 2;
        Parameters:
        value - The bytes for email to set.
        Returns:
        This builder for chaining.
      • getEmailVerified

        public boolean getEmailVerified()
         Whether the email has been verified to be accessible by the user (OTP or
         similar).
         
        bool email_verified = 3;
        Specified by:
        getEmailVerified in interface TransactionData.UserOrBuilder
        Returns:
        The emailVerified.
      • setEmailVerified

        public TransactionData.User.Builder setEmailVerified​(boolean value)
         Whether the email has been verified to be accessible by the user (OTP or
         similar).
         
        bool email_verified = 3;
        Parameters:
        value - The emailVerified to set.
        Returns:
        This builder for chaining.
      • clearEmailVerified

        public TransactionData.User.Builder clearEmailVerified()
         Whether the email has been verified to be accessible by the user (OTP or
         similar).
         
        bool email_verified = 3;
        Returns:
        This builder for chaining.
      • getPhoneNumberBytes

        public com.google.protobuf.ByteString getPhoneNumberBytes()
         The phone number of the user, with country code.
         
        string phone_number = 4;
        Specified by:
        getPhoneNumberBytes in interface TransactionData.UserOrBuilder
        Returns:
        The bytes for phoneNumber.
      • setPhoneNumber

        public TransactionData.User.Builder setPhoneNumber​(String value)
         The phone number of the user, with country code.
         
        string phone_number = 4;
        Parameters:
        value - The phoneNumber to set.
        Returns:
        This builder for chaining.
      • clearPhoneNumber

        public TransactionData.User.Builder clearPhoneNumber()
         The phone number of the user, with country code.
         
        string phone_number = 4;
        Returns:
        This builder for chaining.
      • setPhoneNumberBytes

        public TransactionData.User.Builder setPhoneNumberBytes​(com.google.protobuf.ByteString value)
         The phone number of the user, with country code.
         
        string phone_number = 4;
        Parameters:
        value - The bytes for phoneNumber to set.
        Returns:
        This builder for chaining.
      • getPhoneVerified

        public boolean getPhoneVerified()
         Whether the phone number has been verified to be accessible by the user
         (OTP or similar).
         
        bool phone_verified = 5;
        Specified by:
        getPhoneVerified in interface TransactionData.UserOrBuilder
        Returns:
        The phoneVerified.
      • setPhoneVerified

        public TransactionData.User.Builder setPhoneVerified​(boolean value)
         Whether the phone number has been verified to be accessible by the user
         (OTP or similar).
         
        bool phone_verified = 5;
        Parameters:
        value - The phoneVerified to set.
        Returns:
        This builder for chaining.
      • clearPhoneVerified

        public TransactionData.User.Builder clearPhoneVerified()
         Whether the phone number has been verified to be accessible by the user
         (OTP or similar).
         
        bool phone_verified = 5;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final TransactionData.User.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.User.Builder>
      • mergeUnknownFields

        public final TransactionData.User.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.User.Builder>