<?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;

/**
 * OAuth brand data.
 * NOTE: Only contains a portion of the data that describes a brand.
 *
 * Generated from protobuf message <code>google.cloud.iap.v1.Brand</code>
 */
class Brand extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Identifier of the brand.
     * NOTE: GCP project number achieves the same brand identification purpose as
     * only one brand per project can be created.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $name = '';
    /**
     * Support email displayed on the OAuth consent screen.
     *
     * Generated from protobuf field <code>string support_email = 2;</code>
     */
    private $support_email = '';
    /**
     * Application name displayed on OAuth consent screen.
     *
     * Generated from protobuf field <code>string application_title = 3;</code>
     */
    private $application_title = '';
    /**
     * Output only. Whether the brand is only intended for usage inside the
     * G Suite organization only.
     *
     * Generated from protobuf field <code>bool org_internal_only = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $org_internal_only = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Output only. Identifier of the brand.
     *           NOTE: GCP project number achieves the same brand identification purpose as
     *           only one brand per project can be created.
     *     @type string $support_email
     *           Support email displayed on the OAuth consent screen.
     *     @type string $application_title
     *           Application name displayed on OAuth consent screen.
     *     @type bool $org_internal_only
     *           Output only. Whether the brand is only intended for usage inside the
     *           G Suite organization only.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Iap\V1\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Identifier of the brand.
     * NOTE: GCP project number achieves the same brand identification purpose as
     * only one brand per project can be created.
     *
     * 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. Identifier of the brand.
     * NOTE: GCP project number achieves the same brand identification purpose as
     * only one brand per project can be created.
     *
     * 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;
    }

    /**
     * Support email displayed on the OAuth consent screen.
     *
     * Generated from protobuf field <code>string support_email = 2;</code>
     * @return string
     */
    public function getSupportEmail()
    {
        return $this->support_email;
    }

    /**
     * Support email displayed on the OAuth consent screen.
     *
     * Generated from protobuf field <code>string support_email = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setSupportEmail($var)
    {
        GPBUtil::checkString($var, True);
        $this->support_email = $var;

        return $this;
    }

    /**
     * Application name displayed on OAuth consent screen.
     *
     * Generated from protobuf field <code>string application_title = 3;</code>
     * @return string
     */
    public function getApplicationTitle()
    {
        return $this->application_title;
    }

    /**
     * Application name displayed on OAuth consent screen.
     *
     * Generated from protobuf field <code>string application_title = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setApplicationTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->application_title = $var;

        return $this;
    }

    /**
     * Output only. Whether the brand is only intended for usage inside the
     * G Suite organization only.
     *
     * Generated from protobuf field <code>bool org_internal_only = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return bool
     */
    public function getOrgInternalOnly()
    {
        return $this->org_internal_only;
    }

    /**
     * Output only. Whether the brand is only intended for usage inside the
     * G Suite organization only.
     *
     * Generated from protobuf field <code>bool org_internal_only = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param bool $var
     * @return $this
     */
    public function setOrgInternalOnly($var)
    {
        GPBUtil::checkBool($var);
        $this->org_internal_only = $var;

        return $this;
    }

}

