<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/geminidataanalytics/v1beta/context.proto

namespace Google\Cloud\GeminiDataAnalytics\V1beta\LookerQuery;

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

/**
 * A Looker query filter.
 *
 * Generated from protobuf message <code>google.cloud.geminidataanalytics.v1beta.LookerQuery.Filter</code>
 */
class Filter extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The field to filter on.
     *
     * Generated from protobuf field <code>string field = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $field = '';
    /**
     * Required. The value for the field to filter on.
     *
     * Generated from protobuf field <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $value = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $field
     *           Required. The field to filter on.
     *     @type string $value
     *           Required. The value for the field to filter on.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Context::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The field to filter on.
     *
     * Generated from protobuf field <code>string field = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getField()
    {
        return $this->field;
    }

    /**
     * Required. The field to filter on.
     *
     * Generated from protobuf field <code>string field = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setField($var)
    {
        GPBUtil::checkString($var, True);
        $this->field = $var;

        return $this;
    }

    /**
     * Required. The value for the field to filter on.
     *
     * Generated from protobuf field <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Required. The value for the field to filter on.
     *
     * Generated from protobuf field <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setValue($var)
    {
        GPBUtil::checkString($var, True);
        $this->value = $var;

        return $this;
    }

}


