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.v1.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
 Properties of the provided event token.
 
Protobuf type google.cloud.recaptchaenterprise.v1.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()
       Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getValid in interface TokenPropertiesOrBuilder
      Returns:
      The valid.
    • setValid

      public TokenProperties.Builder setValid(boolean value)
       Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The valid to set.
      Returns:
      This builder for chaining.
    • clearValid

      public TokenProperties.Builder clearValid()
       Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getInvalidReasonValue

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

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

      public TokenProperties.InvalidReason getInvalidReason()
       Output only. Reason associated with the response when valid = false.
       
      .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInvalidReason in interface TokenPropertiesOrBuilder
      Returns:
      The invalidReason.
    • setInvalidReason

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

      public TokenProperties.Builder clearInvalidReason()
       Output only. Reason associated with the response when valid = false.
       
      .google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasCreateTime

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

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

      public TokenProperties.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp corresponding to the generation of the token.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public TokenProperties.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp corresponding to the generation of the token.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public TokenProperties.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp corresponding to the generation of the token.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public TokenProperties.Builder clearCreateTime()
       Output only. The timestamp corresponding to the generation of the token.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp corresponding to the generation of the token.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

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

      public String getHostname()
       Output only. The hostname of the page on which the token was generated (Web
       keys only).
       
      string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHostname in interface TokenPropertiesOrBuilder
      Returns:
      The hostname.
    • getHostnameBytes

      public com.google.protobuf.ByteString getHostnameBytes()
       Output only. The hostname of the page on which the token was generated (Web
       keys only).
       
      string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHostnameBytes in interface TokenPropertiesOrBuilder
      Returns:
      The bytes for hostname.
    • setHostname

      public TokenProperties.Builder setHostname(String value)
       Output only. The hostname of the page on which the token was generated (Web
       keys only).
       
      string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The hostname to set.
      Returns:
      This builder for chaining.
    • clearHostname

      public TokenProperties.Builder clearHostname()
       Output only. The hostname of the page on which the token was generated (Web
       keys only).
       
      string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setHostnameBytes

      public TokenProperties.Builder setHostnameBytes(com.google.protobuf.ByteString value)
       Output only. The hostname of the page on which the token was generated (Web
       keys only).
       
      string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for hostname to set.
      Returns:
      This builder for chaining.
    • getAndroidPackageName

      public String getAndroidPackageName()
       Output only. The name of the Android package with which the token was
       generated (Android keys only).
       
      string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAndroidPackageName in interface TokenPropertiesOrBuilder
      Returns:
      The androidPackageName.
    • getAndroidPackageNameBytes

      public com.google.protobuf.ByteString getAndroidPackageNameBytes()
       Output only. The name of the Android package with which the token was
       generated (Android keys only).
       
      string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAndroidPackageNameBytes in interface TokenPropertiesOrBuilder
      Returns:
      The bytes for androidPackageName.
    • setAndroidPackageName

      public TokenProperties.Builder setAndroidPackageName(String value)
       Output only. The name of the Android package with which the token was
       generated (Android keys only).
       
      string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The androidPackageName to set.
      Returns:
      This builder for chaining.
    • clearAndroidPackageName

      public TokenProperties.Builder clearAndroidPackageName()
       Output only. The name of the Android package with which the token was
       generated (Android keys only).
       
      string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setAndroidPackageNameBytes

      public TokenProperties.Builder setAndroidPackageNameBytes(com.google.protobuf.ByteString value)
       Output only. The name of the Android package with which the token was
       generated (Android keys only).
       
      string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for androidPackageName to set.
      Returns:
      This builder for chaining.
    • getIosBundleId

      public String getIosBundleId()
       Output only. The ID of the iOS bundle with which the token was generated
       (iOS keys only).
       
      string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIosBundleId in interface TokenPropertiesOrBuilder
      Returns:
      The iosBundleId.
    • getIosBundleIdBytes

      public com.google.protobuf.ByteString getIosBundleIdBytes()
       Output only. The ID of the iOS bundle with which the token was generated
       (iOS keys only).
       
      string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIosBundleIdBytes in interface TokenPropertiesOrBuilder
      Returns:
      The bytes for iosBundleId.
    • setIosBundleId

      public TokenProperties.Builder setIosBundleId(String value)
       Output only. The ID of the iOS bundle with which the token was generated
       (iOS keys only).
       
      string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The iosBundleId to set.
      Returns:
      This builder for chaining.
    • clearIosBundleId

      public TokenProperties.Builder clearIosBundleId()
       Output only. The ID of the iOS bundle with which the token was generated
       (iOS keys only).
       
      string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setIosBundleIdBytes

      public TokenProperties.Builder setIosBundleIdBytes(com.google.protobuf.ByteString value)
       Output only. The ID of the iOS bundle with which the token was generated
       (iOS keys only).
       
      string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for iosBundleId to set.
      Returns:
      This builder for chaining.
    • getAction

      public String getAction()
       Output only. Action name provided at token generation.
       
      string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAction in interface TokenPropertiesOrBuilder
      Returns:
      The action.
    • getActionBytes

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

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

      public TokenProperties.Builder clearAction()
       Output only. Action name provided at token generation.
       
      string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setActionBytes

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