Class AnnotateAssessmentRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnnotateAssessmentRequest.Builder>
com.google.recaptchaenterprise.v1.AnnotateAssessmentRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AnnotateAssessmentRequestOrBuilder,Cloneable
- Enclosing class:
- AnnotateAssessmentRequest
public static final class AnnotateAssessmentRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnnotateAssessmentRequest.Builder>
implements AnnotateAssessmentRequestOrBuilder
The request message to annotate an Assessment.Protobuf type
google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllReasons(Iterable<? extends AnnotateAssessmentRequest.Reason> values) Optional.addAllReasonsValue(Iterable<Integer> values) Optional.Optional.addReasonsValue(int value) Optional.build()clear()Optional.Optional.Optional.Required.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.Optional.intOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringOptional.getName()Required.com.google.protobuf.ByteStringRequired.Optional.Optional.Optional.getReasons(int index) Optional.intOptional.Optional.intgetReasonsValue(int index) Optional.Optional.Optional.Optional.Optional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.Optional.setAccountId(String value) Optional.setAccountIdBytes(com.google.protobuf.ByteString value) Optional.Optional.setAnnotationValue(int value) Optional.setHashedAccountId(com.google.protobuf.ByteString value) Optional.Required.setNameBytes(com.google.protobuf.ByteString value) Required.Optional.setPhoneAuthenticationEvent(PhoneAuthenticationEvent.Builder builderForValue) Optional.setReasons(int index, AnnotateAssessmentRequest.Reason value) Optional.setReasonsValue(int index, int value) Optional.Optional.setTransactionEvent(TransactionEvent.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AnnotateAssessmentRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AnnotateAssessmentRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AnnotateAssessmentRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotateAssessmentRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnnotateAssessmentRequest.Builder>
-
mergeFrom
public AnnotateAssessmentRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotateAssessmentRequest.Builder>- Throws:
IOException
-
getName
Required. The resource name of the Assessment, in the format `projects/{project}/assessments/{assessment}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceAnnotateAssessmentRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The resource name of the Assessment, in the format `projects/{project}/assessments/{assessment}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceAnnotateAssessmentRequestOrBuilder- Returns:
- The bytes for name.
-
setName
Required. The resource name of the Assessment, in the format `projects/{project}/assessments/{assessment}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. The resource name of the Assessment, in the format `projects/{project}/assessments/{assessment}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
Required. The resource name of the Assessment, in the format `projects/{project}/assessments/{assessment}`.string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getAnnotationValue
public int getAnnotationValue()Optional. The annotation that is 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.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationValuein interfaceAnnotateAssessmentRequestOrBuilder- Returns:
- The enum numeric value on the wire for annotation.
-
setAnnotationValue
Optional. The annotation that is 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.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for annotation to set.- Returns:
- This builder for chaining.
-
getAnnotation
Optional. The annotation that is 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.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationin interfaceAnnotateAssessmentRequestOrBuilder- Returns:
- The annotation.
-
setAnnotation
Optional. The annotation that is 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.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The annotation to set.- Returns:
- This builder for chaining.
-
clearAnnotation
Optional. The annotation that is 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.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getReasonsList
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReasonsListin interfaceAnnotateAssessmentRequestOrBuilder- Returns:
- A list containing the reasons.
-
getReasonsCount
public int getReasonsCount()Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReasonsCountin interfaceAnnotateAssessmentRequestOrBuilder- Returns:
- The count of reasons.
-
getReasons
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReasonsin interfaceAnnotateAssessmentRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The reasons at the given index.
-
setReasons
public AnnotateAssessmentRequest.Builder setReasons(int index, AnnotateAssessmentRequest.Reason value) Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The reasons to set.- Returns:
- This builder for chaining.
-
addReasons
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The reasons to add.- Returns:
- This builder for chaining.
-
addAllReasons
public AnnotateAssessmentRequest.Builder addAllReasons(Iterable<? extends AnnotateAssessmentRequest.Reason> values) Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The reasons to add.- Returns:
- This builder for chaining.
-
clearReasons
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getReasonsValueList
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReasonsValueListin interfaceAnnotateAssessmentRequestOrBuilder- Returns:
- A list containing the enum numeric values on the wire for reasons.
-
getReasonsValue
public int getReasonsValue(int index) Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReasonsValuein interfaceAnnotateAssessmentRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of reasons at the given index.
-
setReasonsValue
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for reasons to set.- Returns:
- This builder for chaining.
-
addReasonsValue
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for reasons to add.- Returns:
- This builder for chaining.
-
addAllReasonsValue
Optional. Reasons for the annotation that are assigned to the event.
repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The enum numeric values on the wire for reasons to add.- Returns:
- This builder for chaining.
-
getAccountId
Optional. A stable account identifier to apply to the assessment. This is an alternative to setting `account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.
string account_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAccountIdin interfaceAnnotateAssessmentRequestOrBuilder- Returns:
- The accountId.
-
getAccountIdBytes
public com.google.protobuf.ByteString getAccountIdBytes()Optional. A stable account identifier to apply to the assessment. This is an alternative to setting `account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.
string account_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAccountIdBytesin interfaceAnnotateAssessmentRequestOrBuilder- Returns:
- The bytes for accountId.
-
setAccountId
Optional. A stable account identifier to apply to the assessment. This is an alternative to setting `account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.
string account_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The accountId to set.- Returns:
- This builder for chaining.
-
clearAccountId
Optional. A stable account identifier to apply to the assessment. This is an alternative to setting `account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.
string account_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setAccountIdBytes
Optional. A stable account identifier to apply to the assessment. This is an alternative to setting `account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.
string account_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for accountId to set.- Returns:
- This builder for chaining.
-
getHashedAccountId
public com.google.protobuf.ByteString getHashedAccountId()Optional. A stable hashed account identifier to apply to the assessment. This is an alternative to setting `hashed_account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.
bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHashedAccountIdin interfaceAnnotateAssessmentRequestOrBuilder- Returns:
- The hashedAccountId.
-
setHashedAccountId
Optional. A stable hashed account identifier to apply to the assessment. This is an alternative to setting `hashed_account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.
bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The hashedAccountId to set.- Returns:
- This builder for chaining.
-
clearHashedAccountId
Optional. A stable hashed account identifier to apply to the assessment. This is an alternative to setting `hashed_account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.
bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasTransactionEvent
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.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTransactionEventin interfaceAnnotateAssessmentRequestOrBuilder- Returns:
- Whether the transactionEvent field is set.
-
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.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTransactionEventin interfaceAnnotateAssessmentRequestOrBuilder- Returns:
- The transactionEvent.
-
setTransactionEvent
Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setTransactionEvent
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.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; -
mergeTransactionEvent
Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; -
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.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; -
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.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; -
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.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTransactionEventOrBuilderin interfaceAnnotateAssessmentRequestOrBuilder
-
hasPhoneAuthenticationEvent
public boolean hasPhoneAuthenticationEvent()Optional. If using an external multi-factor authentication provider, provide phone authentication details for fraud detection purposes.
.google.cloud.recaptchaenterprise.v1.PhoneAuthenticationEvent phone_authentication_event = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPhoneAuthenticationEventin interfaceAnnotateAssessmentRequestOrBuilder- Returns:
- Whether the phoneAuthenticationEvent field is set.
-
getPhoneAuthenticationEvent
Optional. If using an external multi-factor authentication provider, provide phone authentication details for fraud detection purposes.
.google.cloud.recaptchaenterprise.v1.PhoneAuthenticationEvent phone_authentication_event = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPhoneAuthenticationEventin interfaceAnnotateAssessmentRequestOrBuilder- Returns:
- The phoneAuthenticationEvent.
-
setPhoneAuthenticationEvent
public AnnotateAssessmentRequest.Builder setPhoneAuthenticationEvent(PhoneAuthenticationEvent value) Optional. If using an external multi-factor authentication provider, provide phone authentication details for fraud detection purposes.
.google.cloud.recaptchaenterprise.v1.PhoneAuthenticationEvent phone_authentication_event = 6 [(.google.api.field_behavior) = OPTIONAL]; -
setPhoneAuthenticationEvent
public AnnotateAssessmentRequest.Builder setPhoneAuthenticationEvent(PhoneAuthenticationEvent.Builder builderForValue) Optional. If using an external multi-factor authentication provider, provide phone authentication details for fraud detection purposes.
.google.cloud.recaptchaenterprise.v1.PhoneAuthenticationEvent phone_authentication_event = 6 [(.google.api.field_behavior) = OPTIONAL]; -
mergePhoneAuthenticationEvent
public AnnotateAssessmentRequest.Builder mergePhoneAuthenticationEvent(PhoneAuthenticationEvent value) Optional. If using an external multi-factor authentication provider, provide phone authentication details for fraud detection purposes.
.google.cloud.recaptchaenterprise.v1.PhoneAuthenticationEvent phone_authentication_event = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearPhoneAuthenticationEvent
Optional. If using an external multi-factor authentication provider, provide phone authentication details for fraud detection purposes.
.google.cloud.recaptchaenterprise.v1.PhoneAuthenticationEvent phone_authentication_event = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getPhoneAuthenticationEventBuilder
Optional. If using an external multi-factor authentication provider, provide phone authentication details for fraud detection purposes.
.google.cloud.recaptchaenterprise.v1.PhoneAuthenticationEvent phone_authentication_event = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getPhoneAuthenticationEventOrBuilder
Optional. If using an external multi-factor authentication provider, provide phone authentication details for fraud detection purposes.
.google.cloud.recaptchaenterprise.v1.PhoneAuthenticationEvent phone_authentication_event = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPhoneAuthenticationEventOrBuilderin interfaceAnnotateAssessmentRequestOrBuilder
-