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

namespace Google\Cloud\DiscoveryEngine\V1beta\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult;

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

/**
 * Chunk information.
 *
 * Generated from protobuf message <code>google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo</code>
 */
class ChunkInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Chunk resource name.
     *
     * Generated from protobuf field <code>string chunk = 1 [(.google.api.resource_reference) = {</code>
     */
    protected $chunk = '';
    /**
     * Chunk textual content.
     *
     * Generated from protobuf field <code>string content = 2;</code>
     */
    protected $content = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $chunk
     *           Chunk resource name.
     *     @type string $content
     *           Chunk textual content.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Discoveryengine\V1Beta\ConversationalSearchService::initOnce();
        parent::__construct($data);
    }

    /**
     * Chunk resource name.
     *
     * Generated from protobuf field <code>string chunk = 1 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getChunk()
    {
        return $this->chunk;
    }

    /**
     * Chunk resource name.
     *
     * Generated from protobuf field <code>string chunk = 1 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setChunk($var)
    {
        GPBUtil::checkString($var, True);
        $this->chunk = $var;

        return $this;
    }

    /**
     * Chunk textual content.
     *
     * Generated from protobuf field <code>string content = 2;</code>
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Chunk textual content.
     *
     * Generated from protobuf field <code>string content = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setContent($var)
    {
        GPBUtil::checkString($var, True);
        $this->content = $var;

        return $this;
    }

}


