<?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;

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.FileContentBuffer</code>
 */
class FileContentBuffer extends \Google\Protobuf\Internal\Message
{
    /**
     * The raw content in the secure keys file.
     *
     * Generated from protobuf field <code>optional string content = 414659705;</code>
     */
    private $content = null;
    /**
     * The file type of source file.
     * Check the FileType enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string file_type = 294346781;</code>
     */
    private $file_type = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $content
     *           The raw content in the secure keys file.
     *     @type string $file_type
     *           The file type of source file.
     *           Check the FileType enum for the list of possible values.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The raw content in the secure keys file.
     *
     * Generated from protobuf field <code>optional string content = 414659705;</code>
     * @return string
     */
    public function getContent()
    {
        return isset($this->content) ? $this->content : '';
    }

    public function hasContent()
    {
        return isset($this->content);
    }

    public function clearContent()
    {
        unset($this->content);
    }

    /**
     * The raw content in the secure keys file.
     *
     * Generated from protobuf field <code>optional string content = 414659705;</code>
     * @param string $var
     * @return $this
     */
    public function setContent($var)
    {
        GPBUtil::checkString($var, True);
        $this->content = $var;

        return $this;
    }

    /**
     * The file type of source file.
     * Check the FileType enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string file_type = 294346781;</code>
     * @return string
     */
    public function getFileType()
    {
        return isset($this->file_type) ? $this->file_type : '';
    }

    public function hasFileType()
    {
        return isset($this->file_type);
    }

    public function clearFileType()
    {
        unset($this->file_type);
    }

    /**
     * The file type of source file.
     * Check the FileType enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string file_type = 294346781;</code>
     * @param string $var
     * @return $this
     */
    public function setFileType($var)
    {
        GPBUtil::checkString($var, True);
        $this->file_type = $var;

        return $this;
    }

}

