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

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

/**
 * Extractive answer.
 * [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#get-answers)
 *
 * Generated from protobuf message <code>google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer</code>
 */
class ExtractiveAnswer extends \Google\Protobuf\Internal\Message
{
    /**
     * Page identifier.
     *
     * Generated from protobuf field <code>string page_identifier = 1;</code>
     */
    protected $page_identifier = '';
    /**
     * Extractive answer 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 $page_identifier
     *           Page identifier.
     *     @type string $content
     *           Extractive answer content.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Discoveryengine\V1Beta\ConversationalSearchService::initOnce();
        parent::__construct($data);
    }

    /**
     * Page identifier.
     *
     * Generated from protobuf field <code>string page_identifier = 1;</code>
     * @return string
     */
    public function getPageIdentifier()
    {
        return $this->page_identifier;
    }

    /**
     * Page identifier.
     *
     * Generated from protobuf field <code>string page_identifier = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setPageIdentifier($var)
    {
        GPBUtil::checkString($var, True);
        $this->page_identifier = $var;

        return $this;
    }

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

    /**
     * Extractive answer 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;
    }

}


