Class TestingOptions.Builder

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

public static final class TestingOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<TestingOptions.Builder> implements TestingOptionsOrBuilder
 Options for user acceptance testing.
 
Protobuf type google.cloud.recaptchaenterprise.v1.TestingOptions
  • 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<TestingOptions.Builder>
    • clear

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

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

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

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

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

      public TestingOptions.Builder mergeFrom(TestingOptions other)
    • isInitialized

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

      public TestingOptions.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<TestingOptions.Builder>
      Throws:
      IOException
    • getTestingScore

      public float getTestingScore()
       Optional. All assessments for this Key return this score. Must be between 0
       (likely not legitimate) and 1 (likely legitimate) inclusive.
       
      float testing_score = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTestingScore in interface TestingOptionsOrBuilder
      Returns:
      The testingScore.
    • setTestingScore

      public TestingOptions.Builder setTestingScore(float value)
       Optional. All assessments for this Key return this score. Must be between 0
       (likely not legitimate) and 1 (likely legitimate) inclusive.
       
      float testing_score = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The testingScore to set.
      Returns:
      This builder for chaining.
    • clearTestingScore

      public TestingOptions.Builder clearTestingScore()
       Optional. All assessments for this Key return this score. Must be between 0
       (likely not legitimate) and 1 (likely legitimate) inclusive.
       
      float testing_score = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getTestingChallengeValue

      public int getTestingChallengeValue()
       Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
       challenge requests for this site return nocaptcha if NOCAPTCHA, or an
       unsolvable challenge if CHALLENGE.
       
      .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTestingChallengeValue in interface TestingOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for testingChallenge.
    • setTestingChallengeValue

      public TestingOptions.Builder setTestingChallengeValue(int value)
       Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
       challenge requests for this site return nocaptcha if NOCAPTCHA, or an
       unsolvable challenge if CHALLENGE.
       
      .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for testingChallenge to set.
      Returns:
      This builder for chaining.
    • getTestingChallenge

      public TestingOptions.TestingChallenge getTestingChallenge()
       Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
       challenge requests for this site return nocaptcha if NOCAPTCHA, or an
       unsolvable challenge if CHALLENGE.
       
      .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTestingChallenge in interface TestingOptionsOrBuilder
      Returns:
      The testingChallenge.
    • setTestingChallenge

      public TestingOptions.Builder setTestingChallenge(TestingOptions.TestingChallenge value)
       Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
       challenge requests for this site return nocaptcha if NOCAPTCHA, or an
       unsolvable challenge if CHALLENGE.
       
      .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The testingChallenge to set.
      Returns:
      This builder for chaining.
    • clearTestingChallenge

      public TestingOptions.Builder clearTestingChallenge()
       Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all
       challenge requests for this site return nocaptcha if NOCAPTCHA, or an
       unsolvable challenge if CHALLENGE.
       
      .google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.