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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnnotateAssessmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AnnotateAssessmentRequest build()
Returns
buildPartial()
public AnnotateAssessmentRequest buildPartial()
Returns
clear()
public AnnotateAssessmentRequest.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public AnnotateAssessmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public AnnotateAssessmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public AnnotateAssessmentRequest.Builder clone()
Returns
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
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
Type | Description |
int | The enum numeric value on the wire for annotation.
|
getDefaultInstanceForType()
public AnnotateAssessmentRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Type | Description |
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public AnnotateAssessmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AnnotateAssessmentRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(AnnotateAssessmentRequest other)
public AnnotateAssessmentRequest.Builder mergeFrom(AnnotateAssessmentRequest other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateAssessmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Name | Description |
value | int
The enum numeric value on the wire for annotation to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AnnotateAssessmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Name | Description |
value | String
The name to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnnotateAssessmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AnnotateAssessmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides