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

namespace Google\Cloud\ArtifactRegistry\V1;

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

/**
 * The Artifact Registry VPC SC config that apply to a Project.
 *
 * Generated from protobuf message <code>google.devtools.artifactregistry.v1.VPCSCConfig</code>
 */
class VPCSCConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the project's VPC SC Config.
     * Always of the form:
     * projects/{projectID}/locations/{location}/vpcscConfig
     * In update request: never set
     * In response: always set
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    protected $name = '';
    /**
     * The project per location VPC SC policy that defines the VPC SC behavior for
     * the Remote Repository (Allow/Deny).
     *
     * Generated from protobuf field <code>.google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy vpcsc_policy = 2;</code>
     */
    protected $vpcsc_policy = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           The name of the project's VPC SC Config.
     *           Always of the form:
     *           projects/{projectID}/locations/{location}/vpcscConfig
     *           In update request: never set
     *           In response: always set
     *     @type int $vpcsc_policy
     *           The project per location VPC SC policy that defines the VPC SC behavior for
     *           the Remote Repository (Allow/Deny).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Devtools\Artifactregistry\V1\VpcscConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the project's VPC SC Config.
     * Always of the form:
     * projects/{projectID}/locations/{location}/vpcscConfig
     * In update request: never set
     * In response: always set
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * The name of the project's VPC SC Config.
     * Always of the form:
     * projects/{projectID}/locations/{location}/vpcscConfig
     * In update request: never set
     * In response: always set
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * The project per location VPC SC policy that defines the VPC SC behavior for
     * the Remote Repository (Allow/Deny).
     *
     * Generated from protobuf field <code>.google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy vpcsc_policy = 2;</code>
     * @return int
     */
    public function getVpcscPolicy()
    {
        return $this->vpcsc_policy;
    }

    /**
     * The project per location VPC SC policy that defines the VPC SC behavior for
     * the Remote Repository (Allow/Deny).
     *
     * Generated from protobuf field <code>.google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy vpcsc_policy = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setVpcscPolicy($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\VPCSCConfig\VPCSCPolicy::class);
        $this->vpcsc_policy = $var;

        return $this;
    }

}

