Class CreateAssessmentRequest.Builder (3.48.0)

public static final class CreateAssessmentRequest.Builder extends GeneratedMessageV3.Builder<CreateAssessmentRequest.Builder> implements CreateAssessmentRequestOrBuilder

The create assessment request message.

Protobuf type google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAssessmentRequest build()
Returns
Type Description
CreateAssessmentRequest

buildPartial()

public CreateAssessmentRequest buildPartial()
Returns
Type Description
CreateAssessmentRequest

clear()

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

clearAssessment()

public CreateAssessmentRequest.Builder clearAssessment()

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateAssessmentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateAssessmentRequest.Builder clearParent()

Required. The name of the project in which the assessment is created, in the format projects/{project}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateAssessmentRequest.Builder

This builder for chaining.

clone()

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

getAssessment()

public Assessment getAssessment()

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Assessment

The assessment.

getAssessmentBuilder()

public Assessment.Builder getAssessmentBuilder()

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Assessment.Builder

getAssessmentOrBuilder()

public AssessmentOrBuilder getAssessmentOrBuilder()

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AssessmentOrBuilder

getDefaultInstanceForType()

public CreateAssessmentRequest getDefaultInstanceForType()
Returns
Type Description
CreateAssessmentRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The name of the project in which the assessment is created, in the format projects/{project}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the project in which the assessment is created, in the format projects/{project}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasAssessment()

public boolean hasAssessment()

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the assessment field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAssessment(Assessment value)

public CreateAssessmentRequest.Builder mergeAssessment(Assessment value)

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Assessment
Returns
Type Description
CreateAssessmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CreateAssessmentRequest other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAssessment(Assessment value)

public CreateAssessmentRequest.Builder setAssessment(Assessment value)

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Assessment
Returns
Type Description
CreateAssessmentRequest.Builder

setAssessment(Assessment.Builder builderForValue)

public CreateAssessmentRequest.Builder setAssessment(Assessment.Builder builderForValue)

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Assessment.Builder
Returns
Type Description
CreateAssessmentRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateAssessmentRequest.Builder setParent(String value)

Required. The name of the project in which the assessment is created, in the format projects/{project}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateAssessmentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAssessmentRequest.Builder setParentBytes(ByteString value)

Required. The name of the project in which the assessment is created, in the format projects/{project}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateAssessmentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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