<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: temporal/api/operatorservice/v1/request_response.proto

namespace Temporal\Api\Operatorservice\V1;

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

/**
 * Generated from protobuf message <code>temporal.api.operatorservice.v1.RemoveSearchAttributesRequest</code>
 */
class RemoveSearchAttributesRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Search attribute names to delete.
     *
     * Generated from protobuf field <code>repeated string search_attributes = 1;</code>
     */
    private $search_attributes;
    /**
     * Generated from protobuf field <code>string namespace = 2;</code>
     */
    protected $namespace = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $search_attributes
     *           Search attribute names to delete.
     *     @type string $namespace
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * Search attribute names to delete.
     *
     * Generated from protobuf field <code>repeated string search_attributes = 1;</code>
     * @return RepeatedField<string>
     */
    public function getSearchAttributes()
    {
        return $this->search_attributes;
    }

    /**
     * Search attribute names to delete.
     *
     * Generated from protobuf field <code>repeated string search_attributes = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setSearchAttributes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->search_attributes = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string namespace = 2;</code>
     * @return string
     */
    public function getNamespace()
    {
        return $this->namespace;
    }

    /**
     * Generated from protobuf field <code>string namespace = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setNamespace($var)
    {
        GPBUtil::checkString($var, True);
        $this->namespace = $var;

        return $this;
    }

}

