public static final class AnnotateAssessmentRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AnnotateAssessmentRequest.Builder> implements AnnotateAssessmentRequestOrBuilder
The request message to annotate an Assessment.Protobuf type
google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequestgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateAssessmentRequest.Builder>public AnnotateAssessmentRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateAssessmentRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateAssessmentRequest.Builder>public AnnotateAssessmentRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AnnotateAssessmentRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AnnotateAssessmentRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AnnotateAssessmentRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateAssessmentRequest.Builder>public AnnotateAssessmentRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateAssessmentRequest.Builder>public AnnotateAssessmentRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateAssessmentRequest.Builder>public AnnotateAssessmentRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateAssessmentRequest.Builder>public AnnotateAssessmentRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateAssessmentRequest.Builder>public AnnotateAssessmentRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateAssessmentRequest.Builder>public AnnotateAssessmentRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnnotateAssessmentRequest.Builder>public AnnotateAssessmentRequest.Builder mergeFrom(AnnotateAssessmentRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateAssessmentRequest.Builder>public AnnotateAssessmentRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnnotateAssessmentRequest.Builder>IOExceptionpublic 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) = { ... }
getName in interface AnnotateAssessmentRequestOrBuilderpublic com.google.protobuf.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) = { ... }
getNameBytes in interface AnnotateAssessmentRequestOrBuilderpublic 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) = { ... }
value - The name to set.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) = { ... }
public AnnotateAssessmentRequest.Builder setNameBytes(com.google.protobuf.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) = { ... }
value - The bytes for name to set.public int getAnnotationValue()
Optional. The annotation that will be assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent.
.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL];
getAnnotationValue in interface AnnotateAssessmentRequestOrBuilderpublic AnnotateAssessmentRequest.Builder setAnnotationValue(int value)
Optional. The annotation that will be assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent.
.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for annotation to set.public AnnotateAssessmentRequest.Annotation getAnnotation()
Optional. The annotation that will be assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent.
.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL];
getAnnotation in interface AnnotateAssessmentRequestOrBuilderpublic AnnotateAssessmentRequest.Builder setAnnotation(AnnotateAssessmentRequest.Annotation value)
Optional. The annotation that will be assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent.
.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The annotation to set.public AnnotateAssessmentRequest.Builder clearAnnotation()
Optional. The annotation that will be assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent.
.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL];
public List<AnnotateAssessmentRequest.Reason> getReasonsList()
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];
getReasonsList in interface AnnotateAssessmentRequestOrBuilderpublic int getReasonsCount()
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];
getReasonsCount in interface AnnotateAssessmentRequestOrBuilderpublic AnnotateAssessmentRequest.Reason getReasons(int index)
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];
getReasons in interface AnnotateAssessmentRequestOrBuilderindex - The index of the element to return.public AnnotateAssessmentRequest.Builder setReasons(int index, AnnotateAssessmentRequest.Reason value)
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];
index - The index to set the value at.value - The reasons to set.public AnnotateAssessmentRequest.Builder addReasons(AnnotateAssessmentRequest.Reason value)
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];
value - The reasons to add.public AnnotateAssessmentRequest.Builder addAllReasons(Iterable<? extends AnnotateAssessmentRequest.Reason> values)
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];
values - The reasons to add.public AnnotateAssessmentRequest.Builder clearReasons()
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];
public List<Integer> getReasonsValueList()
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];
getReasonsValueList in interface AnnotateAssessmentRequestOrBuilderpublic int getReasonsValue(int index)
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];
getReasonsValue in interface AnnotateAssessmentRequestOrBuilderindex - The index of the value to return.public AnnotateAssessmentRequest.Builder setReasonsValue(int index, int value)
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];
index - The index to set the value at.value - The enum numeric value on the wire for reasons to set.public AnnotateAssessmentRequest.Builder addReasonsValue(int value)
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for reasons to add.public AnnotateAssessmentRequest.Builder addAllReasonsValue(Iterable<Integer> values)
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];
values - The enum numeric values on the wire for reasons to add.public com.google.protobuf.ByteString getHashedAccountId()
Optional. Unique stable hashed user identifier to apply to the assessment. This is an alternative to setting the `hashed_account_id` in `CreateAssessment`, for example, when the account identifier is not yet known in the initial request. It is recommended that the identifier is hashed using hmac-sha256 with stable secret.
bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];getHashedAccountId in interface AnnotateAssessmentRequestOrBuilderpublic AnnotateAssessmentRequest.Builder setHashedAccountId(com.google.protobuf.ByteString value)
Optional. Unique stable hashed user identifier to apply to the assessment. This is an alternative to setting the `hashed_account_id` in `CreateAssessment`, for example, when the account identifier is not yet known in the initial request. It is recommended that the identifier is hashed using hmac-sha256 with stable secret.
bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];value - The hashedAccountId to set.public AnnotateAssessmentRequest.Builder clearHashedAccountId()
Optional. Unique stable hashed user identifier to apply to the assessment. This is an alternative to setting the `hashed_account_id` in `CreateAssessment`, for example, when the account identifier is not yet known in the initial request. It is recommended that the identifier is hashed using hmac-sha256 with stable secret.
bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];public boolean hasTransactionEvent()
Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL];
hasTransactionEvent in interface AnnotateAssessmentRequestOrBuilderpublic TransactionEvent getTransactionEvent()
Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL];
getTransactionEvent in interface AnnotateAssessmentRequestOrBuilderpublic AnnotateAssessmentRequest.Builder setTransactionEvent(TransactionEvent value)
Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL];
public AnnotateAssessmentRequest.Builder setTransactionEvent(TransactionEvent.Builder builderForValue)
Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL];
public AnnotateAssessmentRequest.Builder mergeTransactionEvent(TransactionEvent value)
Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL];
public AnnotateAssessmentRequest.Builder clearTransactionEvent()
Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL];
public TransactionEvent.Builder getTransactionEventBuilder()
Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL];
public TransactionEventOrBuilder getTransactionEventOrBuilder()
Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL];
getTransactionEventOrBuilder in interface AnnotateAssessmentRequestOrBuilderpublic final AnnotateAssessmentRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateAssessmentRequest.Builder>public final AnnotateAssessmentRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotateAssessmentRequest.Builder>Copyright © 2023 Google LLC. All rights reserved.