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

namespace Google\Cloud\Compute\V1;

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

/**
 * Config for each project in the share settings.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.ShareSettingsProjectConfig</code>
 */
class ShareSettingsProjectConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The project ID, should be same as the key of this project config in the parent map.
     *
     * Generated from protobuf field <code>optional string project_id = 177513473;</code>
     */
    private $project_id = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $project_id
     *           The project ID, should be same as the key of this project config in the parent map.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The project ID, should be same as the key of this project config in the parent map.
     *
     * Generated from protobuf field <code>optional string project_id = 177513473;</code>
     * @return string
     */
    public function getProjectId()
    {
        return isset($this->project_id) ? $this->project_id : '';
    }

    public function hasProjectId()
    {
        return isset($this->project_id);
    }

    public function clearProjectId()
    {
        unset($this->project_id);
    }

    /**
     * The project ID, should be same as the key of this project config in the parent map.
     *
     * Generated from protobuf field <code>optional string project_id = 177513473;</code>
     * @param string $var
     * @return $this
     */
    public function setProjectId($var)
    {
        GPBUtil::checkString($var, True);
        $this->project_id = $var;

        return $this;
    }

}

