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

namespace Google\Cloud\Build\V1;

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

/**
 * GitHubEnterpriseSecrets represents the names of all necessary secrets in
 * Secret Manager for a GitHub Enterprise server.
 * Format is: projects/<project number>/secrets/<secret name>.
 *
 * Generated from protobuf message <code>google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets</code>
 */
class GitHubEnterpriseSecrets extends \Google\Protobuf\Internal\Message
{
    /**
     * The resource name for the private key secret version.
     *
     * Generated from protobuf field <code>string private_key_version_name = 5 [(.google.api.resource_reference) = {</code>
     */
    private $private_key_version_name = '';
    /**
     * The resource name for the webhook secret secret version in Secret Manager.
     *
     * Generated from protobuf field <code>string webhook_secret_version_name = 6 [(.google.api.resource_reference) = {</code>
     */
    private $webhook_secret_version_name = '';
    /**
     * The resource name for the OAuth secret secret version in Secret Manager.
     *
     * Generated from protobuf field <code>string oauth_secret_version_name = 7 [(.google.api.resource_reference) = {</code>
     */
    private $oauth_secret_version_name = '';
    /**
     * The resource name for the OAuth client ID secret version in Secret Manager.
     *
     * Generated from protobuf field <code>string oauth_client_id_version_name = 8 [(.google.api.resource_reference) = {</code>
     */
    private $oauth_client_id_version_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $private_key_version_name
     *           The resource name for the private key secret version.
     *     @type string $webhook_secret_version_name
     *           The resource name for the webhook secret secret version in Secret Manager.
     *     @type string $oauth_secret_version_name
     *           The resource name for the OAuth secret secret version in Secret Manager.
     *     @type string $oauth_client_id_version_name
     *           The resource name for the OAuth client ID secret version in Secret Manager.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Devtools\Cloudbuild\V1\Cloudbuild::initOnce();
        parent::__construct($data);
    }

    /**
     * The resource name for the private key secret version.
     *
     * Generated from protobuf field <code>string private_key_version_name = 5 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getPrivateKeyVersionName()
    {
        return $this->private_key_version_name;
    }

    /**
     * The resource name for the private key secret version.
     *
     * Generated from protobuf field <code>string private_key_version_name = 5 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setPrivateKeyVersionName($var)
    {
        GPBUtil::checkString($var, True);
        $this->private_key_version_name = $var;

        return $this;
    }

    /**
     * The resource name for the webhook secret secret version in Secret Manager.
     *
     * Generated from protobuf field <code>string webhook_secret_version_name = 6 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getWebhookSecretVersionName()
    {
        return $this->webhook_secret_version_name;
    }

    /**
     * The resource name for the webhook secret secret version in Secret Manager.
     *
     * Generated from protobuf field <code>string webhook_secret_version_name = 6 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setWebhookSecretVersionName($var)
    {
        GPBUtil::checkString($var, True);
        $this->webhook_secret_version_name = $var;

        return $this;
    }

    /**
     * The resource name for the OAuth secret secret version in Secret Manager.
     *
     * Generated from protobuf field <code>string oauth_secret_version_name = 7 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getOauthSecretVersionName()
    {
        return $this->oauth_secret_version_name;
    }

    /**
     * The resource name for the OAuth secret secret version in Secret Manager.
     *
     * Generated from protobuf field <code>string oauth_secret_version_name = 7 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setOauthSecretVersionName($var)
    {
        GPBUtil::checkString($var, True);
        $this->oauth_secret_version_name = $var;

        return $this;
    }

    /**
     * The resource name for the OAuth client ID secret version in Secret Manager.
     *
     * Generated from protobuf field <code>string oauth_client_id_version_name = 8 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getOauthClientIdVersionName()
    {
        return $this->oauth_client_id_version_name;
    }

    /**
     * The resource name for the OAuth client ID secret version in Secret Manager.
     *
     * Generated from protobuf field <code>string oauth_client_id_version_name = 8 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setOauthClientIdVersionName($var)
    {
        GPBUtil::checkString($var, True);
        $this->oauth_client_id_version_name = $var;

        return $this;
    }

}

