<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/maintenance/api/v1beta/maintenance_service.proto

namespace Google\Cloud\Maintenance\Api\V1beta;

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

/**
 * ResourceMaintenance is a resource that represents a maintenance operation
 * on a resource.
 *
 * Generated from protobuf message <code>google.cloud.maintenance.api.v1beta.ResourceMaintenance</code>
 */
class ResourceMaintenance extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifier. The name of the resource_maintenance resource.
     * Format:
     * `"projects/{project}/locations/{location}/resourceMaintenance/{resource-maintenance-id}"`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     */
    protected $name = '';
    /**
     * Output only. The resource spec of the resource maintenance.
     *
     * Generated from protobuf field <code>.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $resource = null;
    /**
     * Output only. The details of the maintenance.
     *
     * Generated from protobuf field <code>.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Maintenance maintenance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $maintenance = null;
    /**
     * Output only. The state of the resource maintenance.
     *
     * Generated from protobuf field <code>.google.cloud.maintenance.api.v1beta.ResourceMaintenance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $state = 0;
    /**
     * Output only. The create time of the resource maintenance.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $create_time = null;
    /**
     * Output only. The update time of the resource maintenance.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $update_time = null;
    /**
     * Output only. The time when the resource maintenance has started.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $maintenance_start_time = null;
    /**
     * Output only. The time when the resource maintenance has completed.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $maintenance_end_time = null;
    /**
     * Output only. The time when the resource maintenance was cancelled.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_cancel_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $maintenance_cancel_time = null;
    /**
     * Output only. The time when the maintenance on the resource was scheduled to
     * start.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_scheduled_start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $maintenance_scheduled_start_time = null;
    /**
     * Output only. The time when the maintenance on the resource was scheduled to
     * end.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_scheduled_end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $maintenance_scheduled_end_time = null;
    /**
     * Output only. Indicates whether the user has some control over that
     * maintenance, either
     *  proactively before maintenance was scheduled with maintenance policy or
     *  with reactive controls after it was scheduled (see controls field)
     *
     * Generated from protobuf field <code>bool user_controllable = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $user_controllable = false;
    /**
     * Output only. The controls of the maintenance.
     *
     * Generated from protobuf field <code>repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $controls;
    /**
     * Optional. The labels on the resource, which can be used for categorization.
     * similar to Kubernetes resource labels.
     *
     * Generated from protobuf field <code>map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $labels;
    /**
     * Optional. Annotations is an unstructured key-value map stored with a
     * resource that may be set by external tools to store and retrieve arbitrary
     * metadata. They are not queryable and should be preserved when modifying
     * objects.
     * More info: https://kubernetes.io/docs/user-guide/annotations
     *
     * Generated from protobuf field <code>map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $annotations;
    /**
     * Output only. The unique identifier of the resource. UID is unique in the
     * time and space for this resource within the scope of the service. It is
     * typically generated by the server on successful creation of a resource
     * and must not be changed. UID is used to uniquely identify resources
     * with resource name reuses. This should be a UUID4.
     *
     * Generated from protobuf field <code>string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = {</code>
     */
    protected $uid = '';
    /**
     * Output only. An opaque value that uniquely identifies a version or
     * generation of a resource. It can be used to confirm that the client
     * and server agree on the ordering of a resource being written.
     *
     * Generated from protobuf field <code>string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $etag = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Identifier. The name of the resource_maintenance resource.
     *           Format:
     *           `"projects/{project}/locations/{location}/resourceMaintenance/{resource-maintenance-id}"`
     *     @type \Google\Cloud\Maintenance\Api\V1beta\ResourceMaintenance\Resource $resource
     *           Output only. The resource spec of the resource maintenance.
     *     @type \Google\Cloud\Maintenance\Api\V1beta\ResourceMaintenance\Maintenance $maintenance
     *           Output only. The details of the maintenance.
     *     @type int $state
     *           Output only. The state of the resource maintenance.
     *     @type \Google\Protobuf\Timestamp $create_time
     *           Output only. The create time of the resource maintenance.
     *     @type \Google\Protobuf\Timestamp $update_time
     *           Output only. The update time of the resource maintenance.
     *     @type \Google\Protobuf\Timestamp $maintenance_start_time
     *           Output only. The time when the resource maintenance has started.
     *     @type \Google\Protobuf\Timestamp $maintenance_end_time
     *           Output only. The time when the resource maintenance has completed.
     *     @type \Google\Protobuf\Timestamp $maintenance_cancel_time
     *           Output only. The time when the resource maintenance was cancelled.
     *     @type \Google\Protobuf\Timestamp $maintenance_scheduled_start_time
     *           Output only. The time when the maintenance on the resource was scheduled to
     *           start.
     *     @type \Google\Protobuf\Timestamp $maintenance_scheduled_end_time
     *           Output only. The time when the maintenance on the resource was scheduled to
     *           end.
     *     @type bool $user_controllable
     *           Output only. Indicates whether the user has some control over that
     *           maintenance, either
     *            proactively before maintenance was scheduled with maintenance policy or
     *            with reactive controls after it was scheduled (see controls field)
     *     @type array<\Google\Cloud\Maintenance\Api\V1beta\MaintenanceControl>|\Google\Protobuf\Internal\RepeatedField $controls
     *           Output only. The controls of the maintenance.
     *     @type array|\Google\Protobuf\Internal\MapField $labels
     *           Optional. The labels on the resource, which can be used for categorization.
     *           similar to Kubernetes resource labels.
     *     @type array|\Google\Protobuf\Internal\MapField $annotations
     *           Optional. Annotations is an unstructured key-value map stored with a
     *           resource that may be set by external tools to store and retrieve arbitrary
     *           metadata. They are not queryable and should be preserved when modifying
     *           objects.
     *           More info: https://kubernetes.io/docs/user-guide/annotations
     *     @type string $uid
     *           Output only. The unique identifier of the resource. UID is unique in the
     *           time and space for this resource within the scope of the service. It is
     *           typically generated by the server on successful creation of a resource
     *           and must not be changed. UID is used to uniquely identify resources
     *           with resource name reuses. This should be a UUID4.
     *     @type string $etag
     *           Output only. An opaque value that uniquely identifies a version or
     *           generation of a resource. It can be used to confirm that the client
     *           and server agree on the ordering of a resource being written.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Maintenance\Api\V1Beta\MaintenanceService::initOnce();
        parent::__construct($data);
    }

    /**
     * Identifier. The name of the resource_maintenance resource.
     * Format:
     * `"projects/{project}/locations/{location}/resourceMaintenance/{resource-maintenance-id}"`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Identifier. The name of the resource_maintenance resource.
     * Format:
     * `"projects/{project}/locations/{location}/resourceMaintenance/{resource-maintenance-id}"`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Output only. The resource spec of the resource maintenance.
     *
     * Generated from protobuf field <code>.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\Maintenance\Api\V1beta\ResourceMaintenance\Resource|null
     */
    public function getResource()
    {
        return $this->resource;
    }

    public function hasResource()
    {
        return isset($this->resource);
    }

    public function clearResource()
    {
        unset($this->resource);
    }

    /**
     * Output only. The resource spec of the resource maintenance.
     *
     * Generated from protobuf field <code>.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\Maintenance\Api\V1beta\ResourceMaintenance\Resource $var
     * @return $this
     */
    public function setResource($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Maintenance\Api\V1beta\ResourceMaintenance\Resource::class);
        $this->resource = $var;

        return $this;
    }

    /**
     * Output only. The details of the maintenance.
     *
     * Generated from protobuf field <code>.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Maintenance maintenance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\Maintenance\Api\V1beta\ResourceMaintenance\Maintenance|null
     */
    public function getMaintenance()
    {
        return $this->maintenance;
    }

    public function hasMaintenance()
    {
        return isset($this->maintenance);
    }

    public function clearMaintenance()
    {
        unset($this->maintenance);
    }

    /**
     * Output only. The details of the maintenance.
     *
     * Generated from protobuf field <code>.google.cloud.maintenance.api.v1beta.ResourceMaintenance.Maintenance maintenance = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\Maintenance\Api\V1beta\ResourceMaintenance\Maintenance $var
     * @return $this
     */
    public function setMaintenance($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Maintenance\Api\V1beta\ResourceMaintenance\Maintenance::class);
        $this->maintenance = $var;

        return $this;
    }

    /**
     * Output only. The state of the resource maintenance.
     *
     * Generated from protobuf field <code>.google.cloud.maintenance.api.v1beta.ResourceMaintenance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * Output only. The state of the resource maintenance.
     *
     * Generated from protobuf field <code>.google.cloud.maintenance.api.v1beta.ResourceMaintenance.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Maintenance\Api\V1beta\ResourceMaintenance\State::class);
        $this->state = $var;

        return $this;
    }

    /**
     * Output only. The create time of the resource maintenance.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCreateTime()
    {
        return $this->create_time;
    }

    public function hasCreateTime()
    {
        return isset($this->create_time);
    }

    public function clearCreateTime()
    {
        unset($this->create_time);
    }

    /**
     * Output only. The create time of the resource maintenance.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCreateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->create_time = $var;

        return $this;
    }

    /**
     * Output only. The update time of the resource maintenance.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getUpdateTime()
    {
        return $this->update_time;
    }

    public function hasUpdateTime()
    {
        return isset($this->update_time);
    }

    public function clearUpdateTime()
    {
        unset($this->update_time);
    }

    /**
     * Output only. The update time of the resource maintenance.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setUpdateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->update_time = $var;

        return $this;
    }

    /**
     * Output only. The time when the resource maintenance has started.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getMaintenanceStartTime()
    {
        return $this->maintenance_start_time;
    }

    public function hasMaintenanceStartTime()
    {
        return isset($this->maintenance_start_time);
    }

    public function clearMaintenanceStartTime()
    {
        unset($this->maintenance_start_time);
    }

    /**
     * Output only. The time when the resource maintenance has started.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setMaintenanceStartTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->maintenance_start_time = $var;

        return $this;
    }

    /**
     * Output only. The time when the resource maintenance has completed.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getMaintenanceEndTime()
    {
        return $this->maintenance_end_time;
    }

    public function hasMaintenanceEndTime()
    {
        return isset($this->maintenance_end_time);
    }

    public function clearMaintenanceEndTime()
    {
        unset($this->maintenance_end_time);
    }

    /**
     * Output only. The time when the resource maintenance has completed.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setMaintenanceEndTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->maintenance_end_time = $var;

        return $this;
    }

    /**
     * Output only. The time when the resource maintenance was cancelled.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_cancel_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getMaintenanceCancelTime()
    {
        return $this->maintenance_cancel_time;
    }

    public function hasMaintenanceCancelTime()
    {
        return isset($this->maintenance_cancel_time);
    }

    public function clearMaintenanceCancelTime()
    {
        unset($this->maintenance_cancel_time);
    }

    /**
     * Output only. The time when the resource maintenance was cancelled.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_cancel_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setMaintenanceCancelTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->maintenance_cancel_time = $var;

        return $this;
    }

    /**
     * Output only. The time when the maintenance on the resource was scheduled to
     * start.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_scheduled_start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getMaintenanceScheduledStartTime()
    {
        return $this->maintenance_scheduled_start_time;
    }

    public function hasMaintenanceScheduledStartTime()
    {
        return isset($this->maintenance_scheduled_start_time);
    }

    public function clearMaintenanceScheduledStartTime()
    {
        unset($this->maintenance_scheduled_start_time);
    }

    /**
     * Output only. The time when the maintenance on the resource was scheduled to
     * start.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_scheduled_start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setMaintenanceScheduledStartTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->maintenance_scheduled_start_time = $var;

        return $this;
    }

    /**
     * Output only. The time when the maintenance on the resource was scheduled to
     * end.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_scheduled_end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getMaintenanceScheduledEndTime()
    {
        return $this->maintenance_scheduled_end_time;
    }

    public function hasMaintenanceScheduledEndTime()
    {
        return isset($this->maintenance_scheduled_end_time);
    }

    public function clearMaintenanceScheduledEndTime()
    {
        unset($this->maintenance_scheduled_end_time);
    }

    /**
     * Output only. The time when the maintenance on the resource was scheduled to
     * end.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp maintenance_scheduled_end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setMaintenanceScheduledEndTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->maintenance_scheduled_end_time = $var;

        return $this;
    }

    /**
     * Output only. Indicates whether the user has some control over that
     * maintenance, either
     *  proactively before maintenance was scheduled with maintenance policy or
     *  with reactive controls after it was scheduled (see controls field)
     *
     * Generated from protobuf field <code>bool user_controllable = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return bool
     */
    public function getUserControllable()
    {
        return $this->user_controllable;
    }

    /**
     * Output only. Indicates whether the user has some control over that
     * maintenance, either
     *  proactively before maintenance was scheduled with maintenance policy or
     *  with reactive controls after it was scheduled (see controls field)
     *
     * Generated from protobuf field <code>bool user_controllable = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param bool $var
     * @return $this
     */
    public function setUserControllable($var)
    {
        GPBUtil::checkBool($var);
        $this->user_controllable = $var;

        return $this;
    }

    /**
     * Output only. The controls of the maintenance.
     *
     * Generated from protobuf field <code>repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getControls()
    {
        return $this->controls;
    }

    /**
     * Output only. The controls of the maintenance.
     *
     * Generated from protobuf field <code>repeated .google.cloud.maintenance.api.v1beta.MaintenanceControl controls = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param array<\Google\Cloud\Maintenance\Api\V1beta\MaintenanceControl>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setControls($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Maintenance\Api\V1beta\MaintenanceControl::class);
        $this->controls = $arr;

        return $this;
    }

    /**
     * Optional. The labels on the resource, which can be used for categorization.
     * similar to Kubernetes resource labels.
     *
     * Generated from protobuf field <code>map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getLabels()
    {
        return $this->labels;
    }

    /**
     * Optional. The labels on the resource, which can be used for categorization.
     * similar to Kubernetes resource labels.
     *
     * Generated from protobuf field <code>map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setLabels($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->labels = $arr;

        return $this;
    }

    /**
     * Optional. Annotations is an unstructured key-value map stored with a
     * resource that may be set by external tools to store and retrieve arbitrary
     * metadata. They are not queryable and should be preserved when modifying
     * objects.
     * More info: https://kubernetes.io/docs/user-guide/annotations
     *
     * Generated from protobuf field <code>map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getAnnotations()
    {
        return $this->annotations;
    }

    /**
     * Optional. Annotations is an unstructured key-value map stored with a
     * resource that may be set by external tools to store and retrieve arbitrary
     * metadata. They are not queryable and should be preserved when modifying
     * objects.
     * More info: https://kubernetes.io/docs/user-guide/annotations
     *
     * Generated from protobuf field <code>map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setAnnotations($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->annotations = $arr;

        return $this;
    }

    /**
     * Output only. The unique identifier of the resource. UID is unique in the
     * time and space for this resource within the scope of the service. It is
     * typically generated by the server on successful creation of a resource
     * and must not be changed. UID is used to uniquely identify resources
     * with resource name reuses. This should be a UUID4.
     *
     * Generated from protobuf field <code>string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = {</code>
     * @return string
     */
    public function getUid()
    {
        return $this->uid;
    }

    /**
     * Output only. The unique identifier of the resource. UID is unique in the
     * time and space for this resource within the scope of the service. It is
     * typically generated by the server on successful creation of a resource
     * and must not be changed. UID is used to uniquely identify resources
     * with resource name reuses. This should be a UUID4.
     *
     * Generated from protobuf field <code>string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = {</code>
     * @param string $var
     * @return $this
     */
    public function setUid($var)
    {
        GPBUtil::checkString($var, True);
        $this->uid = $var;

        return $this;
    }

    /**
     * Output only. An opaque value that uniquely identifies a version or
     * generation of a resource. It can be used to confirm that the client
     * and server agree on the ordering of a resource being written.
     *
     * Generated from protobuf field <code>string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getEtag()
    {
        return $this->etag;
    }

    /**
     * Output only. An opaque value that uniquely identifies a version or
     * generation of a resource. It can be used to confirm that the client
     * and server agree on the ordering of a resource being written.
     *
     * Generated from protobuf field <code>string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setEtag($var)
    {
        GPBUtil::checkString($var, True);
        $this->etag = $var;

        return $this;
    }

}

