Class AssessmentEnvironment.Builder (3.80.0)

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

Static Methods

getDescriptor()

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

Methods

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"

  • "wordpress.org/plugins/recaptcha-something"

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

Returns
Type Description
AssessmentEnvironment.Builder

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

This builder for chaining.

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

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"

  • "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 GeneratedMessage.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

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"

  • "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"

  • "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.

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.