Class EndpointVerificationInfo.Builder

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

public static final class EndpointVerificationInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<EndpointVerificationInfo.Builder> implements EndpointVerificationInfoOrBuilder
 Information about a verification endpoint that can be used for 2FA.
 
Protobuf type google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo
  • 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<EndpointVerificationInfo.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<EndpointVerificationInfo.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<EndpointVerificationInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public EndpointVerificationInfo.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<EndpointVerificationInfo.Builder>
      Throws:
      IOException
    • getEndpointCase

      public EndpointVerificationInfo.EndpointCase getEndpointCase()
      Specified by:
      getEndpointCase in interface EndpointVerificationInfoOrBuilder
    • clearEndpoint

      public EndpointVerificationInfo.Builder clearEndpoint()
    • hasEmailAddress

      public boolean hasEmailAddress()
       Email address for which to trigger a verification request.
       
      string email_address = 1;
      Specified by:
      hasEmailAddress in interface EndpointVerificationInfoOrBuilder
      Returns:
      Whether the emailAddress field is set.
    • getEmailAddress

      public String getEmailAddress()
       Email address for which to trigger a verification request.
       
      string email_address = 1;
      Specified by:
      getEmailAddress in interface EndpointVerificationInfoOrBuilder
      Returns:
      The emailAddress.
    • getEmailAddressBytes

      public com.google.protobuf.ByteString getEmailAddressBytes()
       Email address for which to trigger a verification request.
       
      string email_address = 1;
      Specified by:
      getEmailAddressBytes in interface EndpointVerificationInfoOrBuilder
      Returns:
      The bytes for emailAddress.
    • setEmailAddress

      public EndpointVerificationInfo.Builder setEmailAddress(String value)
       Email address for which to trigger a verification request.
       
      string email_address = 1;
      Parameters:
      value - The emailAddress to set.
      Returns:
      This builder for chaining.
    • clearEmailAddress

      public EndpointVerificationInfo.Builder clearEmailAddress()
       Email address for which to trigger a verification request.
       
      string email_address = 1;
      Returns:
      This builder for chaining.
    • setEmailAddressBytes

      public EndpointVerificationInfo.Builder setEmailAddressBytes(com.google.protobuf.ByteString value)
       Email address for which to trigger a verification request.
       
      string email_address = 1;
      Parameters:
      value - The bytes for emailAddress to set.
      Returns:
      This builder for chaining.
    • hasPhoneNumber

      public boolean hasPhoneNumber()
       Phone number for which to trigger a verification request. Should be given
       in E.164 format.
       
      string phone_number = 2;
      Specified by:
      hasPhoneNumber in interface EndpointVerificationInfoOrBuilder
      Returns:
      Whether the phoneNumber field is set.
    • getPhoneNumber

      public String getPhoneNumber()
       Phone number for which to trigger a verification request. Should be given
       in E.164 format.
       
      string phone_number = 2;
      Specified by:
      getPhoneNumber in interface EndpointVerificationInfoOrBuilder
      Returns:
      The phoneNumber.
    • getPhoneNumberBytes

      public com.google.protobuf.ByteString getPhoneNumberBytes()
       Phone number for which to trigger a verification request. Should be given
       in E.164 format.
       
      string phone_number = 2;
      Specified by:
      getPhoneNumberBytes in interface EndpointVerificationInfoOrBuilder
      Returns:
      The bytes for phoneNumber.
    • setPhoneNumber

      public EndpointVerificationInfo.Builder setPhoneNumber(String value)
       Phone number for which to trigger a verification request. Should be given
       in E.164 format.
       
      string phone_number = 2;
      Parameters:
      value - The phoneNumber to set.
      Returns:
      This builder for chaining.
    • clearPhoneNumber

      public EndpointVerificationInfo.Builder clearPhoneNumber()
       Phone number for which to trigger a verification request. Should be given
       in E.164 format.
       
      string phone_number = 2;
      Returns:
      This builder for chaining.
    • setPhoneNumberBytes

      public EndpointVerificationInfo.Builder setPhoneNumberBytes(com.google.protobuf.ByteString value)
       Phone number for which to trigger a verification request. Should be given
       in E.164 format.
       
      string phone_number = 2;
      Parameters:
      value - The bytes for phoneNumber to set.
      Returns:
      This builder for chaining.
    • getRequestToken

      public String getRequestToken()
       Output only. Token to provide to the client to trigger endpoint
       verification. It must be used within 15 minutes.
       
      string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRequestToken in interface EndpointVerificationInfoOrBuilder
      Returns:
      The requestToken.
    • getRequestTokenBytes

      public com.google.protobuf.ByteString getRequestTokenBytes()
       Output only. Token to provide to the client to trigger endpoint
       verification. It must be used within 15 minutes.
       
      string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRequestTokenBytes in interface EndpointVerificationInfoOrBuilder
      Returns:
      The bytes for requestToken.
    • setRequestToken

      public EndpointVerificationInfo.Builder setRequestToken(String value)
       Output only. Token to provide to the client to trigger endpoint
       verification. It must be used within 15 minutes.
       
      string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The requestToken to set.
      Returns:
      This builder for chaining.
    • clearRequestToken

      public EndpointVerificationInfo.Builder clearRequestToken()
       Output only. Token to provide to the client to trigger endpoint
       verification. It must be used within 15 minutes.
       
      string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setRequestTokenBytes

      public EndpointVerificationInfo.Builder setRequestTokenBytes(com.google.protobuf.ByteString value)
       Output only. Token to provide to the client to trigger endpoint
       verification. It must be used within 15 minutes.
       
      string request_token = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for requestToken to set.
      Returns:
      This builder for chaining.
    • hasLastVerificationTime

      public boolean hasLastVerificationTime()
       Output only. Timestamp of the last successful verification for the
       endpoint, if any.
       
      .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLastVerificationTime in interface EndpointVerificationInfoOrBuilder
      Returns:
      Whether the lastVerificationTime field is set.
    • getLastVerificationTime

      public com.google.protobuf.Timestamp getLastVerificationTime()
       Output only. Timestamp of the last successful verification for the
       endpoint, if any.
       
      .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastVerificationTime in interface EndpointVerificationInfoOrBuilder
      Returns:
      The lastVerificationTime.
    • setLastVerificationTime

      public EndpointVerificationInfo.Builder setLastVerificationTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp of the last successful verification for the
       endpoint, if any.
       
      .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setLastVerificationTime

      public EndpointVerificationInfo.Builder setLastVerificationTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp of the last successful verification for the
       endpoint, if any.
       
      .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeLastVerificationTime

      public EndpointVerificationInfo.Builder mergeLastVerificationTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp of the last successful verification for the
       endpoint, if any.
       
      .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearLastVerificationTime

      public EndpointVerificationInfo.Builder clearLastVerificationTime()
       Output only. Timestamp of the last successful verification for the
       endpoint, if any.
       
      .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastVerificationTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastVerificationTimeBuilder()
       Output only. Timestamp of the last successful verification for the
       endpoint, if any.
       
      .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastVerificationTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastVerificationTimeOrBuilder()
       Output only. Timestamp of the last successful verification for the
       endpoint, if any.
       
      .google.protobuf.Timestamp last_verification_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastVerificationTimeOrBuilder in interface EndpointVerificationInfoOrBuilder