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

namespace Google\Cloud\StorageTransfer\V1;

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

/**
 * Google service account
 *
 * Generated from protobuf message <code>google.storagetransfer.v1.GoogleServiceAccount</code>
 */
class GoogleServiceAccount extends \Google\Protobuf\Internal\Message
{
    /**
     * Email address of the service account.
     *
     * Generated from protobuf field <code>string account_email = 1;</code>
     */
    private $account_email = '';
    /**
     * Unique identifier for the service account.
     *
     * Generated from protobuf field <code>string subject_id = 2;</code>
     */
    private $subject_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $account_email
     *           Email address of the service account.
     *     @type string $subject_id
     *           Unique identifier for the service account.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce();
        parent::__construct($data);
    }

    /**
     * Email address of the service account.
     *
     * Generated from protobuf field <code>string account_email = 1;</code>
     * @return string
     */
    public function getAccountEmail()
    {
        return $this->account_email;
    }

    /**
     * Email address of the service account.
     *
     * Generated from protobuf field <code>string account_email = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setAccountEmail($var)
    {
        GPBUtil::checkString($var, True);
        $this->account_email = $var;

        return $this;
    }

    /**
     * Unique identifier for the service account.
     *
     * Generated from protobuf field <code>string subject_id = 2;</code>
     * @return string
     */
    public function getSubjectId()
    {
        return $this->subject_id;
    }

    /**
     * Unique identifier for the service account.
     *
     * Generated from protobuf field <code>string subject_id = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setSubjectId($var)
    {
        GPBUtil::checkString($var, True);
        $this->subject_id = $var;

        return $this;
    }

}

