Class AssessmentEnvironment.Builder (3.52.0)

public static final class AssessmentEnvironment.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AssessmentEnvironment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AssessmentEnvironment.Builder
Overrides

build()

public AssessmentEnvironment build()
Returns
Type Description
AssessmentEnvironment

buildPartial()

public AssessmentEnvironment buildPartial()
Returns
Type Description
AssessmentEnvironment

clear()

public AssessmentEnvironment.Builder clear()
Returns
Type Description
AssessmentEnvironment.Builder
Overrides

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"
  • "cloud.google.com/recaptcha/docs/implement-waf-akamai"
  • "cloud.google.com/recaptcha/docs/implement-waf-cloudflare"
  • "wordpress.org/plugins/recaptcha-something"

string client = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AssessmentEnvironment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AssessmentEnvironment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AssessmentEnvironment.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AssessmentEnvironment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AssessmentEnvironment.Builder
Overrides

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
Type Description
AssessmentEnvironment.Builder

This builder for chaining.

clone()

public AssessmentEnvironment.Builder clone()
Returns
Type Description
AssessmentEnvironment.Builder
Overrides

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"
  • "cloud.google.com/recaptcha/docs/implement-waf-akamai"
  • "cloud.google.com/recaptcha/docs/implement-waf-cloudflare"
  • "wordpress.org/plugins/recaptcha-something"

string client = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The client.

getClientBytes()

public 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"
  • "cloud.google.com/recaptcha/docs/implement-waf-akamai"
  • "cloud.google.com/recaptcha/docs/implement-waf-cloudflare"
  • "wordpress.org/plugins/recaptcha-something"

string client = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for client.

getDefaultInstanceForType()

public AssessmentEnvironment getDefaultInstanceForType()
Returns
Type Description
AssessmentEnvironment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getVersion()

public String getVersion()

Optional. The version of the client module. For example, "1.0.0".

string version = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Optional. The version of the client module. For example, "1.0.0".

string version = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AssessmentEnvironment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssessmentEnvironment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AssessmentEnvironment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AssessmentEnvironment.Builder
Overrides

mergeFrom(AssessmentEnvironment other)

public AssessmentEnvironment.Builder mergeFrom(AssessmentEnvironment other)
Parameter
Name Description
other AssessmentEnvironment
Returns
Type Description
AssessmentEnvironment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AssessmentEnvironment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AssessmentEnvironment.Builder
Overrides

setClient(String value)

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"
  • "cloud.google.com/recaptcha/docs/implement-waf-akamai"
  • "cloud.google.com/recaptcha/docs/implement-waf-cloudflare"
  • "wordpress.org/plugins/recaptcha-something"

string client = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The client to set.

Returns
Type Description
AssessmentEnvironment.Builder

This builder for chaining.

setClientBytes(ByteString value)

public AssessmentEnvironment.Builder setClientBytes(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"
  • "cloud.google.com/recaptcha/docs/implement-waf-akamai"
  • "cloud.google.com/recaptcha/docs/implement-waf-cloudflare"
  • "wordpress.org/plugins/recaptcha-something"

string client = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for client to set.

Returns
Type Description
AssessmentEnvironment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AssessmentEnvironment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AssessmentEnvironment.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AssessmentEnvironment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AssessmentEnvironment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AssessmentEnvironment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AssessmentEnvironment.Builder
Overrides

setVersion(String value)

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];

Parameter
Name Description
value String

The version to set.

Returns
Type Description
AssessmentEnvironment.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public AssessmentEnvironment.Builder setVersionBytes(ByteString value)

Optional. The version of the client module. For example, "1.0.0".

string version = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
AssessmentEnvironment.Builder

This builder for chaining.