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

namespace Google\Cloud\Dialogflow\V2\Tool\Authentication;

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

/**
 * Config for auth using [Dialogflow service
 * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.Tool.Authentication.ServiceAgentAuthConfig</code>
 */
class ServiceAgentAuthConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Indicate the auth token type generated from the [Diglogflow
     * service
     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
     * The generated token is sent in the Authorization header.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth service_agent_auth = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $service_agent_auth = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $service_agent_auth
     *           Optional. Indicate the auth token type generated from the [Diglogflow
     *           service
     *           agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
     *           The generated token is sent in the Authorization header.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Tool::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Indicate the auth token type generated from the [Diglogflow
     * service
     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
     * The generated token is sent in the Authorization header.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth service_agent_auth = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getServiceAgentAuth()
    {
        return $this->service_agent_auth;
    }

    /**
     * Optional. Indicate the auth token type generated from the [Diglogflow
     * service
     * agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
     * The generated token is sent in the Authorization header.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth service_agent_auth = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setServiceAgentAuth($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\Tool\Authentication\ServiceAgentAuthConfig\ServiceAgentAuth::class);
        $this->service_agent_auth = $var;

        return $this;
    }

}


