Class AssessmentEnvironment.Builder

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

public static final class AssessmentEnvironment.Builder extends com.google.protobuf.GeneratedMessage.Builder<AssessmentEnvironment.Builder> implements AssessmentEnvironmentOrBuilder
 The environment creating the assessment. This describes your environment
 (the system invoking CreateAssessment), NOT the environment of your user.
 
Protobuf type google.cloud.recaptchaenterprise.v1.AssessmentEnvironment
  • 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<AssessmentEnvironment.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<AssessmentEnvironment.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<AssessmentEnvironment.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AssessmentEnvironment.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<AssessmentEnvironment.Builder>
      Throws:
      IOException
    • getClient

      public String getClient()
       Optional. Identifies the client module initiating the CreateAssessment
       request. This can be the link to the client module's project. Examples
       include:
      
       -
       "github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager"
       - "wordpress.org/plugins/recaptcha-something"
       
      string client = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getClient in interface AssessmentEnvironmentOrBuilder
      Returns:
      The client.
    • getClientBytes

      public com.google.protobuf.ByteString getClientBytes()
       Optional. Identifies the client module initiating the CreateAssessment
       request. This can be the link to the client module's project. Examples
       include:
      
       -
       "github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager"
       - "wordpress.org/plugins/recaptcha-something"
       
      string client = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getClientBytes in interface AssessmentEnvironmentOrBuilder
      Returns:
      The bytes for client.
    • setClient

      public AssessmentEnvironment.Builder setClient(String value)
       Optional. Identifies the client module initiating the CreateAssessment
       request. This can be the link to the client module's project. Examples
       include:
      
       -
       "github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager"
       - "wordpress.org/plugins/recaptcha-something"
       
      string client = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The client to set.
      Returns:
      This builder for chaining.
    • clearClient

      public AssessmentEnvironment.Builder clearClient()
       Optional. Identifies the client module initiating the CreateAssessment
       request. This can be the link to the client module's project. Examples
       include:
      
       -
       "github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager"
       - "wordpress.org/plugins/recaptcha-something"
       
      string client = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setClientBytes

      public AssessmentEnvironment.Builder setClientBytes(com.google.protobuf.ByteString value)
       Optional. Identifies the client module initiating the CreateAssessment
       request. This can be the link to the client module's project. Examples
       include:
      
       -
       "github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager"
       - "wordpress.org/plugins/recaptcha-something"
       
      string client = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for client to set.
      Returns:
      This builder for chaining.
    • getVersion

      public String getVersion()
       Optional. The version of the client module. For example, "1.0.0".
       
      string version = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVersion in interface AssessmentEnvironmentOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       Optional. The version of the client module. For example, "1.0.0".
       
      string version = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVersionBytes in interface AssessmentEnvironmentOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public AssessmentEnvironment.Builder setVersion(String value)
       Optional. The version of the client module. For example, "1.0.0".
       
      string version = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public AssessmentEnvironment.Builder clearVersion()
       Optional. The version of the client module. For example, "1.0.0".
       
      string version = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setVersionBytes

      public AssessmentEnvironment.Builder setVersionBytes(com.google.protobuf.ByteString value)
       Optional. The version of the client module. For example, "1.0.0".
       
      string version = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.