<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/chronicle/v1/data_access_control.proto

namespace Google\Cloud\Chronicle\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Representation of an ingestion label type.
 *
 * Generated from protobuf message <code>google.cloud.chronicle.v1.IngestionLabel</code>
 */
class IngestionLabel extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The key of the ingestion label. Always required.
     *
     * Generated from protobuf field <code>string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $ingestion_label_key = '';
    /**
     * Optional. The value of the ingestion label. Optional. An object
     * with no provided value and some key provided would match
     * against the given key and ANY value.
     *
     * Generated from protobuf field <code>string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $ingestion_label_value = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $ingestion_label_key
     *           Required. The key of the ingestion label. Always required.
     *     @type string $ingestion_label_value
     *           Optional. The value of the ingestion label. Optional. An object
     *           with no provided value and some key provided would match
     *           against the given key and ANY value.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Chronicle\V1\DataAccessControl::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The key of the ingestion label. Always required.
     *
     * Generated from protobuf field <code>string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getIngestionLabelKey()
    {
        return $this->ingestion_label_key;
    }

    /**
     * Required. The key of the ingestion label. Always required.
     *
     * Generated from protobuf field <code>string ingestion_label_key = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setIngestionLabelKey($var)
    {
        GPBUtil::checkString($var, True);
        $this->ingestion_label_key = $var;

        return $this;
    }

    /**
     * Optional. The value of the ingestion label. Optional. An object
     * with no provided value and some key provided would match
     * against the given key and ANY value.
     *
     * Generated from protobuf field <code>string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getIngestionLabelValue()
    {
        return $this->ingestion_label_value;
    }

    /**
     * Optional. The value of the ingestion label. Optional. An object
     * with no provided value and some key provided would match
     * against the given key and ANY value.
     *
     * Generated from protobuf field <code>string ingestion_label_value = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setIngestionLabelValue($var)
    {
        GPBUtil::checkString($var, True);
        $this->ingestion_label_value = $var;

        return $this;
    }

}

