public final class AnnotateAssessmentRequest extends com.google.protobuf.GeneratedMessageV3 implements AnnotateAssessmentRequestOrBuilder
The request message to annotate an Assessment.Protobuf type
google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest| Modifier and Type | Class and Description |
|---|---|
static class |
AnnotateAssessmentRequest.Annotation
Enum that represents the types of annotations.
|
static class |
AnnotateAssessmentRequest.Builder
The request message to annotate an Assessment.
|
static class |
AnnotateAssessmentRequest.Reason
Enum that represents potential reasons for annotating an assessment.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOTATION_FIELD_NUMBER |
static int |
HASHED_ACCOUNT_ID_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
REASONS_FIELD_NUMBER |
static int |
TRANSACTION_EVENT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AnnotateAssessmentRequest.Annotation |
getAnnotation()
Optional.
|
int |
getAnnotationValue()
Optional.
|
static AnnotateAssessmentRequest |
getDefaultInstance() |
AnnotateAssessmentRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.ByteString |
getHashedAccountId()
Optional.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
com.google.protobuf.Parser<AnnotateAssessmentRequest> |
getParserForType() |
AnnotateAssessmentRequest.Reason |
getReasons(int index)
Optional.
|
int |
getReasonsCount()
Optional.
|
List<AnnotateAssessmentRequest.Reason> |
getReasonsList()
Optional.
|
int |
getReasonsValue(int index)
Optional.
|
List<Integer> |
getReasonsValueList()
Optional.
|
int |
getSerializedSize() |
TransactionEvent |
getTransactionEvent()
Optional.
|
TransactionEventOrBuilder |
getTransactionEventOrBuilder()
Optional.
|
int |
hashCode() |
boolean |
hasTransactionEvent()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AnnotateAssessmentRequest.Builder |
newBuilder() |
static AnnotateAssessmentRequest.Builder |
newBuilder(AnnotateAssessmentRequest prototype) |
AnnotateAssessmentRequest.Builder |
newBuilderForType() |
protected AnnotateAssessmentRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AnnotateAssessmentRequest |
parseDelimitedFrom(InputStream input) |
static AnnotateAssessmentRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotateAssessmentRequest |
parseFrom(byte[] data) |
static AnnotateAssessmentRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotateAssessmentRequest |
parseFrom(ByteBuffer data) |
static AnnotateAssessmentRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotateAssessmentRequest |
parseFrom(com.google.protobuf.ByteString data) |
static AnnotateAssessmentRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotateAssessmentRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AnnotateAssessmentRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnnotateAssessmentRequest |
parseFrom(InputStream input) |
static AnnotateAssessmentRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AnnotateAssessmentRequest> |
parser() |
AnnotateAssessmentRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int ANNOTATION_FIELD_NUMBER
public static final int REASONS_FIELD_NUMBER
public static final int HASHED_ACCOUNT_ID_FIELD_NUMBER
public static final int TRANSACTION_EVENT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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.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 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 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 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 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 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 boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AnnotateAssessmentRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotateAssessmentRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotateAssessmentRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotateAssessmentRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotateAssessmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotateAssessmentRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnnotateAssessmentRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static AnnotateAssessmentRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AnnotateAssessmentRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AnnotateAssessmentRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AnnotateAssessmentRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AnnotateAssessmentRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AnnotateAssessmentRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AnnotateAssessmentRequest.Builder newBuilder()
public static AnnotateAssessmentRequest.Builder newBuilder(AnnotateAssessmentRequest prototype)
public AnnotateAssessmentRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AnnotateAssessmentRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AnnotateAssessmentRequest getDefaultInstance()
public static com.google.protobuf.Parser<AnnotateAssessmentRequest> parser()
public com.google.protobuf.Parser<AnnotateAssessmentRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AnnotateAssessmentRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.