Class AnnotateAssessmentRequest.Builder (2.4.10)

public static final class AnnotateAssessmentRequest.Builder extends GeneratedMessageV3.Builder<AnnotateAssessmentRequest.Builder> implements AnnotateAssessmentRequestOrBuilder

The request message to annotate an Assessment.

Protobuf type google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnnotateAssessmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnnotateAssessmentRequest.Builder
Overrides

build()

public AnnotateAssessmentRequest build()
Returns
TypeDescription
AnnotateAssessmentRequest

buildPartial()

public AnnotateAssessmentRequest buildPartial()
Returns
TypeDescription
AnnotateAssessmentRequest

clear()

public AnnotateAssessmentRequest.Builder clear()
Returns
TypeDescription
AnnotateAssessmentRequest.Builder
Overrides

clearAnnotation()

public AnnotateAssessmentRequest.Builder clearAnnotation()

Required. The annotation that will be assigned to the Event.

.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AnnotateAssessmentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AnnotateAssessmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AnnotateAssessmentRequest.Builder
Overrides

clearName()

public AnnotateAssessmentRequest.Builder clearName()

Required. The resource name of the Assessment, in the format "projects/{project_number}/assessments/{assessment_id}".

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

Returns
TypeDescription
AnnotateAssessmentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AnnotateAssessmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AnnotateAssessmentRequest.Builder
Overrides

clone()

public AnnotateAssessmentRequest.Builder clone()
Returns
TypeDescription
AnnotateAssessmentRequest.Builder
Overrides

getAnnotation()

public AnnotateAssessmentRequest.Annotation getAnnotation()

Required. The annotation that will be assigned to the Event.

.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AnnotateAssessmentRequest.Annotation

The annotation.

getAnnotationValue()

public int getAnnotationValue()

Required. The annotation that will be assigned to the Event.

.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for annotation.

getDefaultInstanceForType()

public AnnotateAssessmentRequest getDefaultInstanceForType()
Returns
TypeDescription
AnnotateAssessmentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The resource name of the Assessment, in the format "projects/{project_number}/assessments/{assessment_id}".

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the Assessment, in the format "projects/{project_number}/assessments/{assessment_id}".

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

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnnotateAssessmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnnotateAssessmentRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AnnotateAssessmentRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AnnotateAssessmentRequest.Builder
Overrides

mergeFrom(AnnotateAssessmentRequest other)

public AnnotateAssessmentRequest.Builder mergeFrom(AnnotateAssessmentRequest other)
Parameter
NameDescription
otherAnnotateAssessmentRequest
Returns
TypeDescription
AnnotateAssessmentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnnotateAssessmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnnotateAssessmentRequest.Builder
Overrides

setAnnotation(AnnotateAssessmentRequest.Annotation value)

public AnnotateAssessmentRequest.Builder setAnnotation(AnnotateAssessmentRequest.Annotation value)

Required. The annotation that will be assigned to the Event.

.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAnnotateAssessmentRequest.Annotation

The annotation to set.

Returns
TypeDescription
AnnotateAssessmentRequest.Builder

This builder for chaining.

setAnnotationValue(int value)

public AnnotateAssessmentRequest.Builder setAnnotationValue(int value)

Required. The annotation that will be assigned to the Event.

.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The enum numeric value on the wire for annotation to set.

Returns
TypeDescription
AnnotateAssessmentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AnnotateAssessmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnnotateAssessmentRequest.Builder
Overrides

setName(String value)

public AnnotateAssessmentRequest.Builder setName(String value)

Required. The resource name of the Assessment, in the format "projects/{project_number}/assessments/{assessment_id}".

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AnnotateAssessmentRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AnnotateAssessmentRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the Assessment, in the format "projects/{project_number}/assessments/{assessment_id}".

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AnnotateAssessmentRequest.Builder

This builder for chaining.

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

public AnnotateAssessmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AnnotateAssessmentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AnnotateAssessmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnnotateAssessmentRequest.Builder
Overrides