The request message to annotate an Assessment.
Generated from protobuf message google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest
| Methods |
| public __construct( $data = NULL) Constructor.
|
public static build(string $name, int $annotation) : self
|
| public clearTransactionEvent() |
| public getAccountId() Optional. A stable account identifier to apply to the assessment. This is
an alternative to setting Generated from protobuf field string account_id = 7 [(.google.api.field_behavior) = OPTIONAL];
|
| public 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. Generated from protobuf field .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL];
|
| public getHashedAccountId() Optional. A stable hashed account identifier to apply to the assessment. This is an alternative to setting Generated from protobuf field bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];
|
| public getName() Required. The resource name of the Assessment, in the format
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
|
| public getReasons() Optional. Reasons for the annotation that are assigned to the event. Generated from protobuf field repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];
|
| public getTransactionEvent() Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction. Generated from protobuf field .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL];
|
| public hasTransactionEvent() |
| public setAccountId( $var) Optional. A stable account identifier to apply to the assessment. This is
an alternative to setting Generated from protobuf field string account_id = 7 [(.google.api.field_behavior) = OPTIONAL];
|
| public setAnnotation( $var) 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. Generated from protobuf field .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL];
|
| public setHashedAccountId( $var) Optional. A stable hashed account identifier to apply to the assessment. This is an alternative to setting Generated from protobuf field bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];
|
| public setName( $var) Required. The resource name of the Assessment, in the format
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
|
| public setReasons( $var) Optional. Reasons for the annotation that are assigned to the event. Generated from protobuf field repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL];
|
| public setTransactionEvent( $var) Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction. Generated from protobuf field .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL];
|
| Properties |
| protected $account_id = '' Optional. A stable account identifier to apply to the assessment. This is
an alternative to setting Generated from protobuf field string account_id = 7 [(.google.api.field_behavior) = OPTIONAL]; |
| protected $annotation = 0 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. Generated from protobuf field .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; |
| protected $hashed_account_id = '' Optional. A stable hashed account identifier to apply to the assessment. This is an alternative to setting Generated from protobuf field bytes hashed_account_id = 4 [(.google.api.field_behavior) = OPTIONAL]; |
| protected $name = '' Required. The resource name of the Assessment, in the format
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { |
| protected $transaction_event = NULL Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction. Generated from protobuf field .google.cloud.recaptchaenterprise.v1.TransactionEvent transaction_event = 5 [(.google.api.field_behavior) = OPTIONAL]; |
| Methods |
| Properties |
| private $reasons = NULL Optional. Reasons for the annotation that are assigned to the event. Generated from protobuf field repeated .google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason reasons = 3 [(.google.api.field_behavior) = OPTIONAL]; |
| Methods |
public static build(string $name, int $annotation) : self
|