Class AccountVerificationInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AccountVerificationInfo.Builder>
com.google.recaptchaenterprise.v1.AccountVerificationInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AccountVerificationInfoOrBuilder, Cloneable
Enclosing class:
AccountVerificationInfo

public static final class AccountVerificationInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<AccountVerificationInfo.Builder> implements AccountVerificationInfoOrBuilder
 Information about account verification, used for identity verification.
 
Protobuf type google.cloud.recaptchaenterprise.v1.AccountVerificationInfo
  • 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<AccountVerificationInfo.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<AccountVerificationInfo.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<AccountVerificationInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AccountVerificationInfo.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<AccountVerificationInfo.Builder>
      Throws:
      IOException
    • getEndpointsList

      public List<EndpointVerificationInfo> getEndpointsList()
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndpointsList in interface AccountVerificationInfoOrBuilder
    • getEndpointsCount

      public int getEndpointsCount()
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndpointsCount in interface AccountVerificationInfoOrBuilder
    • getEndpoints

      public EndpointVerificationInfo getEndpoints(int index)
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndpoints in interface AccountVerificationInfoOrBuilder
    • setEndpoints

      public AccountVerificationInfo.Builder setEndpoints(int index, EndpointVerificationInfo value)
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setEndpoints

      public AccountVerificationInfo.Builder setEndpoints(int index, EndpointVerificationInfo.Builder builderForValue)
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addEndpoints

       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addEndpoints

      public AccountVerificationInfo.Builder addEndpoints(int index, EndpointVerificationInfo value)
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addEndpoints

       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addEndpoints

      public AccountVerificationInfo.Builder addEndpoints(int index, EndpointVerificationInfo.Builder builderForValue)
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllEndpoints

      public AccountVerificationInfo.Builder addAllEndpoints(Iterable<? extends EndpointVerificationInfo> values)
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearEndpoints

      public AccountVerificationInfo.Builder clearEndpoints()
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeEndpoints

      public AccountVerificationInfo.Builder removeEndpoints(int index)
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getEndpointsBuilder

      public EndpointVerificationInfo.Builder getEndpointsBuilder(int index)
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getEndpointsOrBuilder

      public EndpointVerificationInfoOrBuilder getEndpointsOrBuilder(int index)
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndpointsOrBuilder in interface AccountVerificationInfoOrBuilder
    • getEndpointsOrBuilderList

      public List<? extends EndpointVerificationInfoOrBuilder> getEndpointsOrBuilderList()
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndpointsOrBuilderList in interface AccountVerificationInfoOrBuilder
    • addEndpointsBuilder

      public EndpointVerificationInfo.Builder addEndpointsBuilder()
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addEndpointsBuilder

      public EndpointVerificationInfo.Builder addEndpointsBuilder(int index)
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getEndpointsBuilderList

      public List<EndpointVerificationInfo.Builder> getEndpointsBuilderList()
       Optional. Endpoints that can be used for identity verification.
       
      repeated .google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo endpoints = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getLanguageCode

      public String getLanguageCode()
       Optional. Language code preference for the verification message, set as a
       IETF BCP 47 language code.
       
      string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCode in interface AccountVerificationInfoOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       Optional. Language code preference for the verification message, set as a
       IETF BCP 47 language code.
       
      string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodeBytes in interface AccountVerificationInfoOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public AccountVerificationInfo.Builder setLanguageCode(String value)
       Optional. Language code preference for the verification message, set as a
       IETF BCP 47 language code.
       
      string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public AccountVerificationInfo.Builder clearLanguageCode()
       Optional. Language code preference for the verification message, set as a
       IETF BCP 47 language code.
       
      string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public AccountVerificationInfo.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       Optional. Language code preference for the verification message, set as a
       IETF BCP 47 language code.
       
      string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.
    • getLatestVerificationResultValue

      public int getLatestVerificationResultValue()
       Output only. Result of the latest account verification challenge.
       
      .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLatestVerificationResultValue in interface AccountVerificationInfoOrBuilder
      Returns:
      The enum numeric value on the wire for latestVerificationResult.
    • setLatestVerificationResultValue

      public AccountVerificationInfo.Builder setLatestVerificationResultValue(int value)
       Output only. Result of the latest account verification challenge.
       
      .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for latestVerificationResult to set.
      Returns:
      This builder for chaining.
    • getLatestVerificationResult

      public AccountVerificationInfo.Result getLatestVerificationResult()
       Output only. Result of the latest account verification challenge.
       
      .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLatestVerificationResult in interface AccountVerificationInfoOrBuilder
      Returns:
      The latestVerificationResult.
    • setLatestVerificationResult

      public AccountVerificationInfo.Builder setLatestVerificationResult(AccountVerificationInfo.Result value)
       Output only. Result of the latest account verification challenge.
       
      .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The latestVerificationResult to set.
      Returns:
      This builder for chaining.
    • clearLatestVerificationResult

      public AccountVerificationInfo.Builder clearLatestVerificationResult()
       Output only. Result of the latest account verification challenge.
       
      .google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result latest_verification_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getUsername

      @Deprecated public String getUsername()
      Deprecated.
      google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=621
       Username of the account that is being verified. Deprecated. Customers
       should now provide the `account_id` field in `event.user_info`.
       
      string username = 2 [deprecated = true];
      Specified by:
      getUsername in interface AccountVerificationInfoOrBuilder
      Returns:
      The username.
    • getUsernameBytes

      @Deprecated public com.google.protobuf.ByteString getUsernameBytes()
      Deprecated.
      google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=621
       Username of the account that is being verified. Deprecated. Customers
       should now provide the `account_id` field in `event.user_info`.
       
      string username = 2 [deprecated = true];
      Specified by:
      getUsernameBytes in interface AccountVerificationInfoOrBuilder
      Returns:
      The bytes for username.
    • setUsername

      Deprecated.
      google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=621
       Username of the account that is being verified. Deprecated. Customers
       should now provide the `account_id` field in `event.user_info`.
       
      string username = 2 [deprecated = true];
      Parameters:
      value - The username to set.
      Returns:
      This builder for chaining.
    • clearUsername

      Deprecated.
      google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=621
       Username of the account that is being verified. Deprecated. Customers
       should now provide the `account_id` field in `event.user_info`.
       
      string username = 2 [deprecated = true];
      Returns:
      This builder for chaining.
    • setUsernameBytes

      @Deprecated public AccountVerificationInfo.Builder setUsernameBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.username is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=621
       Username of the account that is being verified. Deprecated. Customers
       should now provide the `account_id` field in `event.user_info`.
       
      string username = 2 [deprecated = true];
      Parameters:
      value - The bytes for username to set.
      Returns:
      This builder for chaining.