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 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<UserInfo.Builder>
    • clear

      public UserInfo.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<UserInfo.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<UserInfo.Builder>
    • getDefaultInstanceForType

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

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

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

      public UserInfo.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<UserInfo.Builder>
    • mergeFrom

      public UserInfo.Builder mergeFrom(UserInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<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:
      hasCreateAccountTime in interface UserInfoOrBuilder
      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:
      getCreateAccountTime in interface UserInfoOrBuilder
      Returns:
      The createAccountTime.
    • setCreateAccountTime

      public UserInfo.Builder setCreateAccountTime(com.google.protobuf.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

      public UserInfo.Builder setCreateAccountTime(com.google.protobuf.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];
    • mergeCreateAccountTime

      public UserInfo.Builder mergeCreateAccountTime(com.google.protobuf.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];
    • 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];
    • 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:
      getCreateAccountTimeOrBuilder in interface UserInfoOrBuilder
    • 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];
      Specified by:
      getAccountId in interface UserInfoOrBuilder
      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:
      getAccountIdBytes in interface UserInfoOrBuilder
      Returns:
      The bytes for accountId.
    • setAccountId

      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];
      Parameters:
      value - The accountId to set.
      Returns:
      This builder for chaining.
    • 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];
      Returns:
      This builder for chaining.
    • setAccountIdBytes

      public UserInfo.Builder setAccountIdBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for accountId to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getUserIdsList in interface UserInfoOrBuilder
    • 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:
      getUserIdsCount in interface UserInfoOrBuilder
    • getUserIds

      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];
      Specified by:
      getUserIds in interface UserInfoOrBuilder
    • setUserIds

      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];
    • setUserIds

      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];
    • addUserIds

      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];
    • addUserIds

      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];
    • addUserIds

      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

      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];
    • addAllUserIds

      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];
    • 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];
    • removeUserIds

      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];
    • getUserIdsBuilder

      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];
    • getUserIdsOrBuilder

      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];
      Specified by:
      getUserIdsOrBuilder in interface UserInfoOrBuilder
    • 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];
      Specified by:
      getUserIdsOrBuilderList in interface UserInfoOrBuilder
    • 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

      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];
    • 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];