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

namespace Google\Cloud\Iap\V1;

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

/**
 * Contains the data that describes an Identity Aware Proxy owned client.
 *
 * Generated from protobuf message <code>google.cloud.iap.v1.IdentityAwareProxyClient</code>
 */
class IdentityAwareProxyClient extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Unique identifier of the OAuth client.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $name = '';
    /**
     * Output only. Client secret of the OAuth client.
     *
     * Generated from protobuf field <code>string secret = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $secret = '';
    /**
     * Human-friendly name given to the OAuth client.
     *
     * Generated from protobuf field <code>string display_name = 3;</code>
     */
    private $display_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Output only. Unique identifier of the OAuth client.
     *     @type string $secret
     *           Output only. Client secret of the OAuth client.
     *     @type string $display_name
     *           Human-friendly name given to the OAuth client.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Iap\V1\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Unique identifier of the OAuth client.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Output only. Unique identifier of the OAuth client.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Output only. Client secret of the OAuth client.
     *
     * Generated from protobuf field <code>string secret = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getSecret()
    {
        return $this->secret;
    }

    /**
     * Output only. Client secret of the OAuth client.
     *
     * Generated from protobuf field <code>string secret = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setSecret($var)
    {
        GPBUtil::checkString($var, True);
        $this->secret = $var;

        return $this;
    }

    /**
     * Human-friendly name given to the OAuth client.
     *
     * Generated from protobuf field <code>string display_name = 3;</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * Human-friendly name given to the OAuth client.
     *
     * Generated from protobuf field <code>string display_name = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

}

