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

namespace Google\Cloud\ServiceHealth\V1;

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

/**
 * Represents the asset impacted by the events.
 *
 * Generated from protobuf message <code>google.cloud.servicehealth.v1.Asset</code>
 */
class Asset extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Full name of the resource as defined in
     * [Resource
     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name).
     *
     * Generated from protobuf field <code>string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $asset_name = '';
    /**
     * Output only. Type of the asset. Example:
     * `"cloudresourcemanager.googleapis.com/Project"`
     *
     * Generated from protobuf field <code>string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $asset_type = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $asset_name
     *           Output only. Full name of the resource as defined in
     *           [Resource
     *           Names](https://cloud.google.com/apis/design/resource_names#full_resource_name).
     *     @type string $asset_type
     *           Output only. Type of the asset. Example:
     *           `"cloudresourcemanager.googleapis.com/Project"`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Servicehealth\V1\EventResources::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Full name of the resource as defined in
     * [Resource
     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name).
     *
     * Generated from protobuf field <code>string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getAssetName()
    {
        return $this->asset_name;
    }

    /**
     * Output only. Full name of the resource as defined in
     * [Resource
     * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name).
     *
     * Generated from protobuf field <code>string asset_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setAssetName($var)
    {
        GPBUtil::checkString($var, True);
        $this->asset_name = $var;

        return $this;
    }

    /**
     * Output only. Type of the asset. Example:
     * `"cloudresourcemanager.googleapis.com/Project"`
     *
     * Generated from protobuf field <code>string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getAssetType()
    {
        return $this->asset_type;
    }

    /**
     * Output only. Type of the asset. Example:
     * `"cloudresourcemanager.googleapis.com/Project"`
     *
     * Generated from protobuf field <code>string asset_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setAssetType($var)
    {
        GPBUtil::checkString($var, True);
        $this->asset_type = $var;

        return $this;
    }

}

