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

namespace Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings;

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

/**
 * Configures fields for performing SSH authentication.
 *
 * Generated from protobuf message <code>google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig</code>
 */
class SshAuthenticationConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The name of the Secret Manager secret version to use as a
     * ssh private key for Git operations.
     * Must be in the format `projects/&#42;&#47;secrets/&#42;&#47;versions/&#42;`.
     *
     * Generated from protobuf field <code>string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $user_private_key_secret_version = '';
    /**
     * Required. Content of a public SSH key to verify an identity of a remote
     * Git host.
     *
     * Generated from protobuf field <code>string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $host_public_key = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $user_private_key_secret_version
     *           Required. The name of the Secret Manager secret version to use as a
     *           ssh private key for Git operations.
     *           Must be in the format `projects/&#42;&#47;secrets/&#42;&#47;versions/&#42;`.
     *     @type string $host_public_key
     *           Required. Content of a public SSH key to verify an identity of a remote
     *           Git host.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The name of the Secret Manager secret version to use as a
     * ssh private key for Git operations.
     * Must be in the format `projects/&#42;&#47;secrets/&#42;&#47;versions/&#42;`.
     *
     * Generated from protobuf field <code>string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getUserPrivateKeySecretVersion()
    {
        return $this->user_private_key_secret_version;
    }

    /**
     * Required. The name of the Secret Manager secret version to use as a
     * ssh private key for Git operations.
     * Must be in the format `projects/&#42;&#47;secrets/&#42;&#47;versions/&#42;`.
     *
     * Generated from protobuf field <code>string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setUserPrivateKeySecretVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->user_private_key_secret_version = $var;

        return $this;
    }

    /**
     * Required. Content of a public SSH key to verify an identity of a remote
     * Git host.
     *
     * Generated from protobuf field <code>string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getHostPublicKey()
    {
        return $this->host_public_key;
    }

    /**
     * Required. Content of a public SSH key to verify an identity of a remote
     * Git host.
     *
     * Generated from protobuf field <code>string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setHostPublicKey($var)
    {
        GPBUtil::checkString($var, True);
        $this->host_public_key = $var;

        return $this;
    }

}


