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

namespace Grafeas\V1\DSSEAttestationNote;

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

/**
 * This submessage provides human-readable hints about the purpose of the
 * authority. Because the name of a note acts as its resource reference, it is
 * important to disambiguate the canonical name of the Note (which might be a
 * UUID for security purposes) from "readable" names more suitable for debug
 * output. Note that these hints should not be used to look up authorities in
 * security sensitive contexts, such as when looking up attestations to
 * verify.
 *
 * Generated from protobuf message <code>grafeas.v1.DSSEAttestationNote.DSSEHint</code>
 */
class DSSEHint extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The human readable name of this attestation authority, for
     * example "cloudbuild-prod".
     *
     * Generated from protobuf field <code>string human_readable_name = 1;</code>
     */
    private $human_readable_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $human_readable_name
     *           Required. The human readable name of this attestation authority, for
     *           example "cloudbuild-prod".
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Grafeas\V1\DsseAttestation::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The human readable name of this attestation authority, for
     * example "cloudbuild-prod".
     *
     * Generated from protobuf field <code>string human_readable_name = 1;</code>
     * @return string
     */
    public function getHumanReadableName()
    {
        return $this->human_readable_name;
    }

    /**
     * Required. The human readable name of this attestation authority, for
     * example "cloudbuild-prod".
     *
     * Generated from protobuf field <code>string human_readable_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setHumanReadableName($var)
    {
        GPBUtil::checkString($var, True);
        $this->human_readable_name = $var;

        return $this;
    }

}


