Class TokenProperties.Builder

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

public static final class TokenProperties.Builder extends com.google.protobuf.GeneratedMessage.Builder<TokenProperties.Builder> implements TokenPropertiesOrBuilder
Protobuf type google.cloud.recaptchaenterprise.v1beta1.TokenProperties
  • 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<TokenProperties.Builder>
    • clear

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

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

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

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

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

      public TokenProperties.Builder mergeFrom(TokenProperties other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TokenProperties.Builder>
    • mergeFrom

      public TokenProperties.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<TokenProperties.Builder>
      Throws:
      IOException
    • getValid

      public boolean getValid()
       Whether the provided user response token is valid. When valid = false, the
       reason could be specified in invalid_reason or it could also be due to
       a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey
       used to generate the token was different than the one specified in the
       assessment).
       
      bool valid = 1;
      Specified by:
      getValid in interface TokenPropertiesOrBuilder
      Returns:
      The valid.
    • setValid

      public TokenProperties.Builder setValid(boolean value)
       Whether the provided user response token is valid. When valid = false, the
       reason could be specified in invalid_reason or it could also be due to
       a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey
       used to generate the token was different than the one specified in the
       assessment).
       
      bool valid = 1;
      Parameters:
      value - The valid to set.
      Returns:
      This builder for chaining.
    • clearValid

      public TokenProperties.Builder clearValid()
       Whether the provided user response token is valid. When valid = false, the
       reason could be specified in invalid_reason or it could also be due to
       a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey
       used to generate the token was different than the one specified in the
       assessment).
       
      bool valid = 1;
      Returns:
      This builder for chaining.
    • getInvalidReasonValue

      public int getInvalidReasonValue()
       Reason associated with the response when valid = false.
       
      .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2;
      Specified by:
      getInvalidReasonValue in interface TokenPropertiesOrBuilder
      Returns:
      The enum numeric value on the wire for invalidReason.
    • setInvalidReasonValue

      public TokenProperties.Builder setInvalidReasonValue(int value)
       Reason associated with the response when valid = false.
       
      .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2;
      Parameters:
      value - The enum numeric value on the wire for invalidReason to set.
      Returns:
      This builder for chaining.
    • getInvalidReason

      public TokenProperties.InvalidReason getInvalidReason()
       Reason associated with the response when valid = false.
       
      .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2;
      Specified by:
      getInvalidReason in interface TokenPropertiesOrBuilder
      Returns:
      The invalidReason.
    • setInvalidReason

      public TokenProperties.Builder setInvalidReason(TokenProperties.InvalidReason value)
       Reason associated with the response when valid = false.
       
      .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2;
      Parameters:
      value - The invalidReason to set.
      Returns:
      This builder for chaining.
    • clearInvalidReason

      public TokenProperties.Builder clearInvalidReason()
       Reason associated with the response when valid = false.
       
      .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2;
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       The timestamp corresponding to the generation of the token.
       
      .google.protobuf.Timestamp create_time = 3;
      Specified by:
      hasCreateTime in interface TokenPropertiesOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       The timestamp corresponding to the generation of the token.
       
      .google.protobuf.Timestamp create_time = 3;
      Specified by:
      getCreateTime in interface TokenPropertiesOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public TokenProperties.Builder setCreateTime(com.google.protobuf.Timestamp value)
       The timestamp corresponding to the generation of the token.
       
      .google.protobuf.Timestamp create_time = 3;
    • setCreateTime

      public TokenProperties.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The timestamp corresponding to the generation of the token.
       
      .google.protobuf.Timestamp create_time = 3;
    • mergeCreateTime

      public TokenProperties.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       The timestamp corresponding to the generation of the token.
       
      .google.protobuf.Timestamp create_time = 3;
    • clearCreateTime

      public TokenProperties.Builder clearCreateTime()
       The timestamp corresponding to the generation of the token.
       
      .google.protobuf.Timestamp create_time = 3;
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       The timestamp corresponding to the generation of the token.
       
      .google.protobuf.Timestamp create_time = 3;
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       The timestamp corresponding to the generation of the token.
       
      .google.protobuf.Timestamp create_time = 3;
      Specified by:
      getCreateTimeOrBuilder in interface TokenPropertiesOrBuilder
    • getHostname

      public String getHostname()
       The hostname of the page on which the token was generated.
       
      string hostname = 4;
      Specified by:
      getHostname in interface TokenPropertiesOrBuilder
      Returns:
      The hostname.
    • getHostnameBytes

      public com.google.protobuf.ByteString getHostnameBytes()
       The hostname of the page on which the token was generated.
       
      string hostname = 4;
      Specified by:
      getHostnameBytes in interface TokenPropertiesOrBuilder
      Returns:
      The bytes for hostname.
    • setHostname

      public TokenProperties.Builder setHostname(String value)
       The hostname of the page on which the token was generated.
       
      string hostname = 4;
      Parameters:
      value - The hostname to set.
      Returns:
      This builder for chaining.
    • clearHostname

      public TokenProperties.Builder clearHostname()
       The hostname of the page on which the token was generated.
       
      string hostname = 4;
      Returns:
      This builder for chaining.
    • setHostnameBytes

      public TokenProperties.Builder setHostnameBytes(com.google.protobuf.ByteString value)
       The hostname of the page on which the token was generated.
       
      string hostname = 4;
      Parameters:
      value - The bytes for hostname to set.
      Returns:
      This builder for chaining.
    • getAction

      public String getAction()
       Action name provided at token generation.
       
      string action = 5;
      Specified by:
      getAction in interface TokenPropertiesOrBuilder
      Returns:
      The action.
    • getActionBytes

      public com.google.protobuf.ByteString getActionBytes()
       Action name provided at token generation.
       
      string action = 5;
      Specified by:
      getActionBytes in interface TokenPropertiesOrBuilder
      Returns:
      The bytes for action.
    • setAction

      public TokenProperties.Builder setAction(String value)
       Action name provided at token generation.
       
      string action = 5;
      Parameters:
      value - The action to set.
      Returns:
      This builder for chaining.
    • clearAction

      public TokenProperties.Builder clearAction()
       Action name provided at token generation.
       
      string action = 5;
      Returns:
      This builder for chaining.
    • setActionBytes

      public TokenProperties.Builder setActionBytes(com.google.protobuf.ByteString value)
       Action name provided at token generation.
       
      string action = 5;
      Parameters:
      value - The bytes for action to set.
      Returns:
      This builder for chaining.