Class AssessmentEnvironment (3.48.0)

public final class AssessmentEnvironment extends GeneratedMessageV3 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 Fields

CLIENT_FIELD_NUMBER

public static final int CLIENT_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AssessmentEnvironment getDefaultInstance()
Returns
Type Description
AssessmentEnvironment

getDescriptor()

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

newBuilder()

public static AssessmentEnvironment.Builder newBuilder()
Returns
Type Description
AssessmentEnvironment.Builder

newBuilder(AssessmentEnvironment prototype)

public static AssessmentEnvironment.Builder newBuilder(AssessmentEnvironment prototype)
Parameter
Name Description
prototype AssessmentEnvironment
Returns
Type Description
AssessmentEnvironment.Builder

parseDelimitedFrom(InputStream input)

public static AssessmentEnvironment parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AssessmentEnvironment
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssessmentEnvironment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssessmentEnvironment
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AssessmentEnvironment parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AssessmentEnvironment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AssessmentEnvironment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssessmentEnvironment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AssessmentEnvironment parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AssessmentEnvironment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AssessmentEnvironment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssessmentEnvironment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AssessmentEnvironment parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AssessmentEnvironment
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AssessmentEnvironment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssessmentEnvironment
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AssessmentEnvironment parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AssessmentEnvironment
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AssessmentEnvironment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssessmentEnvironment
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AssessmentEnvironment parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AssessmentEnvironment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AssessmentEnvironment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssessmentEnvironment
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AssessmentEnvironment> parser()
Returns
Type Description
Parser<AssessmentEnvironment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

getParserForType()

public Parser<AssessmentEnvironment> getParserForType()
Returns
Type Description
Parser<AssessmentEnvironment>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AssessmentEnvironment.Builder newBuilderForType()
Returns
Type Description
AssessmentEnvironment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AssessmentEnvironment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AssessmentEnvironment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AssessmentEnvironment.Builder toBuilder()
Returns
Type Description
AssessmentEnvironment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException