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

namespace Google\Cloud\Compute\V1;

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

/**
 * An instance's screenshot.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.Screenshot</code>
 */
class Screenshot extends \Google\Protobuf\Internal\Message
{
    /**
     * [Output Only] The Base64-encoded screenshot data.
     *
     * Generated from protobuf field <code>optional string contents = 506419994;</code>
     */
    protected $contents = null;
    /**
     * [Output Only] Type of the resource. Always compute#screenshot
     * for the screenshots.
     *
     * Generated from protobuf field <code>optional string kind = 3292052;</code>
     */
    protected $kind = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $contents
     *           [Output Only] The Base64-encoded screenshot data.
     *     @type string $kind
     *           [Output Only] Type of the resource. Always compute#screenshot
     *           for the screenshots.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * [Output Only] The Base64-encoded screenshot data.
     *
     * Generated from protobuf field <code>optional string contents = 506419994;</code>
     * @return string
     */
    public function getContents()
    {
        return isset($this->contents) ? $this->contents : '';
    }

    public function hasContents()
    {
        return isset($this->contents);
    }

    public function clearContents()
    {
        unset($this->contents);
    }

    /**
     * [Output Only] The Base64-encoded screenshot data.
     *
     * Generated from protobuf field <code>optional string contents = 506419994;</code>
     * @param string $var
     * @return $this
     */
    public function setContents($var)
    {
        GPBUtil::checkString($var, True);
        $this->contents = $var;

        return $this;
    }

    /**
     * [Output Only] Type of the resource. Always compute#screenshot
     * for the screenshots.
     *
     * Generated from protobuf field <code>optional string kind = 3292052;</code>
     * @return string
     */
    public function getKind()
    {
        return isset($this->kind) ? $this->kind : '';
    }

    public function hasKind()
    {
        return isset($this->kind);
    }

    public function clearKind()
    {
        unset($this->kind);
    }

    /**
     * [Output Only] Type of the resource. Always compute#screenshot
     * for the screenshots.
     *
     * Generated from protobuf field <code>optional string kind = 3292052;</code>
     * @param string $var
     * @return $this
     */
    public function setKind($var)
    {
        GPBUtil::checkString($var, True);
        $this->kind = $var;

        return $this;
    }

}

