<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/bigtable/v2/session.proto

namespace Google\Cloud\Bigtable\V2;

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

/**
 * See GetClientConfiguration() RPC in bigtable.proto. Internal usage only.
 *
 * Generated from protobuf message <code>google.bigtable.v2.GetClientConfigurationRequest</code>
 */
class GetClientConfigurationRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The unique name of the instance for which the client will target
     * with Data API requests.
     * Values are of the form `projects/<project>/instances/<instance>`
     *
     * Generated from protobuf field <code>string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $instance_name = '';
    /**
     * Optional. The name of the AppProfile which will be used by the client when
     * sending requests in the Data API.
     * If not specified, the `default` application profile will be used.
     *
     * Generated from protobuf field <code>string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $app_profile_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $instance_name
     *           Required. The unique name of the instance for which the client will target
     *           with Data API requests.
     *           Values are of the form `projects/<project>/instances/<instance>`
     *     @type string $app_profile_id
     *           Optional. The name of the AppProfile which will be used by the client when
     *           sending requests in the Data API.
     *           If not specified, the `default` application profile will be used.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\Session::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The unique name of the instance for which the client will target
     * with Data API requests.
     * Values are of the form `projects/<project>/instances/<instance>`
     *
     * Generated from protobuf field <code>string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getInstanceName()
    {
        return $this->instance_name;
    }

    /**
     * Required. The unique name of the instance for which the client will target
     * with Data API requests.
     * Values are of the form `projects/<project>/instances/<instance>`
     *
     * Generated from protobuf field <code>string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setInstanceName($var)
    {
        GPBUtil::checkString($var, True);
        $this->instance_name = $var;

        return $this;
    }

    /**
     * Optional. The name of the AppProfile which will be used by the client when
     * sending requests in the Data API.
     * If not specified, the `default` application profile will be used.
     *
     * Generated from protobuf field <code>string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getAppProfileId()
    {
        return $this->app_profile_id;
    }

    /**
     * Optional. The name of the AppProfile which will be used by the client when
     * sending requests in the Data API.
     * If not specified, the `default` application profile will be used.
     *
     * Generated from protobuf field <code>string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setAppProfileId($var)
    {
        GPBUtil::checkString($var, True);
        $this->app_profile_id = $var;

        return $this;
    }

}

