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

namespace Google\Cloud\DiscoveryEngine\V1\Chunk;

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

/**
 * The structured content information.
 *
 * Generated from protobuf message <code>google.cloud.discoveryengine.v1.Chunk.StructuredContent</code>
 */
class StructuredContent extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The structure type of the structured content.
     *
     * Generated from protobuf field <code>.google.cloud.discoveryengine.v1.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $structure_type = 0;
    /**
     * Output only. The content of the structured content.
     *
     * Generated from protobuf field <code>string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $content = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $structure_type
     *           Output only. The structure type of the structured content.
     *     @type string $content
     *           Output only. The content of the structured content.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Discoveryengine\V1\Chunk::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The structure type of the structured content.
     *
     * Generated from protobuf field <code>.google.cloud.discoveryengine.v1.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getStructureType()
    {
        return $this->structure_type;
    }

    /**
     * Output only. The structure type of the structured content.
     *
     * Generated from protobuf field <code>.google.cloud.discoveryengine.v1.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setStructureType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\Chunk\StructureType::class);
        $this->structure_type = $var;

        return $this;
    }

    /**
     * Output only. The content of the structured content.
     *
     * Generated from protobuf field <code>string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Output only. The content of the structured content.
     *
     * Generated from protobuf field <code>string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setContent($var)
    {
        GPBUtil::checkString($var, True);
        $this->content = $var;

        return $this;
    }

}


