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

namespace Google\Cloud\BigQuery\Connection\V1;

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

/**
 * Container for connection properties for delegation of access to GCP
 * resources.
 *
 * Generated from protobuf message <code>google.cloud.bigquery.connection.v1.CloudResourceProperties</code>
 */
class CloudResourceProperties extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The account ID of the service created for the purpose of this connection.
     * The service account does not have any permissions associated with it
     * when it is created. After creation, customers delegate permissions
     * to the service account. When the connection is used in the context of an
     * operation in BigQuery, the service account will be used to connect to the
     * desired resources in GCP.
     * The account ID is in the form of:
     *   <service-1234>&#64;gcp-sa-bigquery-cloudresource.iam.gserviceaccount.com
     *
     * Generated from protobuf field <code>string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $service_account_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $service_account_id
     *           Output only. The account ID of the service created for the purpose of this connection.
     *           The service account does not have any permissions associated with it
     *           when it is created. After creation, customers delegate permissions
     *           to the service account. When the connection is used in the context of an
     *           operation in BigQuery, the service account will be used to connect to the
     *           desired resources in GCP.
     *           The account ID is in the form of:
     *             <service-1234>&#64;gcp-sa-bigquery-cloudresource.iam.gserviceaccount.com
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Bigquery\Connection\V1\Connection::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The account ID of the service created for the purpose of this connection.
     * The service account does not have any permissions associated with it
     * when it is created. After creation, customers delegate permissions
     * to the service account. When the connection is used in the context of an
     * operation in BigQuery, the service account will be used to connect to the
     * desired resources in GCP.
     * The account ID is in the form of:
     *   <service-1234>&#64;gcp-sa-bigquery-cloudresource.iam.gserviceaccount.com
     *
     * Generated from protobuf field <code>string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getServiceAccountId()
    {
        return $this->service_account_id;
    }

    /**
     * Output only. The account ID of the service created for the purpose of this connection.
     * The service account does not have any permissions associated with it
     * when it is created. After creation, customers delegate permissions
     * to the service account. When the connection is used in the context of an
     * operation in BigQuery, the service account will be used to connect to the
     * desired resources in GCP.
     * The account ID is in the form of:
     *   <service-1234>&#64;gcp-sa-bigquery-cloudresource.iam.gserviceaccount.com
     *
     * Generated from protobuf field <code>string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setServiceAccountId($var)
    {
        GPBUtil::checkString($var, True);
        $this->service_account_id = $var;

        return $this;
    }

}

