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

namespace Google\Cloud\Container\V1;

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

/**
 * AutoprovisioningNodePoolDefaults contains defaults for a node pool created
 * by NAP.
 *
 * Generated from protobuf message <code>google.container.v1.AutoprovisioningNodePoolDefaults</code>
 */
class AutoprovisioningNodePoolDefaults extends \Google\Protobuf\Internal\Message
{
    /**
     * Scopes that are used by NAP when creating node pools. If oauth_scopes are
     * specified, service_account should be empty.
     *
     * Generated from protobuf field <code>repeated string oauth_scopes = 1;</code>
     */
    private $oauth_scopes;
    /**
     * The Google Cloud Platform Service Account to be used by the node VMs. If
     * service_account is specified, scopes should be empty.
     *
     * Generated from protobuf field <code>string service_account = 2;</code>
     */
    private $service_account = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[]|\Google\Protobuf\Internal\RepeatedField $oauth_scopes
     *           Scopes that are used by NAP when creating node pools. If oauth_scopes are
     *           specified, service_account should be empty.
     *     @type string $service_account
     *           The Google Cloud Platform Service Account to be used by the node VMs. If
     *           service_account is specified, scopes should be empty.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Scopes that are used by NAP when creating node pools. If oauth_scopes are
     * specified, service_account should be empty.
     *
     * Generated from protobuf field <code>repeated string oauth_scopes = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getOauthScopes()
    {
        return $this->oauth_scopes;
    }

    /**
     * Scopes that are used by NAP when creating node pools. If oauth_scopes are
     * specified, service_account should be empty.
     *
     * Generated from protobuf field <code>repeated string oauth_scopes = 1;</code>
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setOauthScopes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->oauth_scopes = $arr;

        return $this;
    }

    /**
     * The Google Cloud Platform Service Account to be used by the node VMs. If
     * service_account is specified, scopes should be empty.
     *
     * Generated from protobuf field <code>string service_account = 2;</code>
     * @return string
     */
    public function getServiceAccount()
    {
        return $this->service_account;
    }

    /**
     * The Google Cloud Platform Service Account to be used by the node VMs. If
     * service_account is specified, scopes should be empty.
     *
     * Generated from protobuf field <code>string service_account = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setServiceAccount($var)
    {
        GPBUtil::checkString($var, True);
        $this->service_account = $var;

        return $this;
    }

}

