<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
namespace Google\Cloud\RecaptchaEnterprise\V1\FraudSignals;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Signals describing the payment card used in this transaction.
*
* Generated from protobuf message <code>google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals</code>
*/
class CardSignals extends \Google\Protobuf\Internal\Message
{
/**
* Output only. The labels for the payment card in this transaction.
*
* Generated from protobuf field <code>repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*/
private $card_labels;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type array<int>|\Google\Protobuf\Internal\RepeatedField $card_labels
* Output only. The labels for the payment card in this transaction.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Recaptchaenterprise\V1\Recaptchaenterprise::initOnce();
parent::__construct($data);
}
/**
* Output only. The labels for the payment card in this transaction.
*
* Generated from protobuf field <code>repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getCardLabels()
{
return $this->card_labels;
}
/**
* Output only. The labels for the payment card in this transaction.
*
* Generated from protobuf field <code>repeated .google.cloud.recaptchaenterprise.v1.FraudSignals.CardSignals.CardLabel card_labels = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setCardLabels($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\RecaptchaEnterprise\V1\FraudSignals\CardSignals\CardLabel::class);
$this->card_labels = $arr;
return $this;
}
}