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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Google search entry point.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.SearchEntryPoint</code>
 */
class SearchEntryPoint extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Web content snippet that can be embedded in a web page or an app
     * webview.
     *
     * Generated from protobuf field <code>string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $rendered_content = '';
    /**
     * Optional. Base64 encoded JSON representing array of <search term, search
     * url> tuple.
     *
     * Generated from protobuf field <code>bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $sdk_blob = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $rendered_content
     *           Optional. Web content snippet that can be embedded in a web page or an app
     *           webview.
     *     @type string $sdk_blob
     *           Optional. Base64 encoded JSON representing array of <search term, search
     *           url> tuple.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\Content::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Web content snippet that can be embedded in a web page or an app
     * webview.
     *
     * Generated from protobuf field <code>string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getRenderedContent()
    {
        return $this->rendered_content;
    }

    /**
     * Optional. Web content snippet that can be embedded in a web page or an app
     * webview.
     *
     * Generated from protobuf field <code>string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setRenderedContent($var)
    {
        GPBUtil::checkString($var, True);
        $this->rendered_content = $var;

        return $this;
    }

    /**
     * Optional. Base64 encoded JSON representing array of <search term, search
     * url> tuple.
     *
     * Generated from protobuf field <code>bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getSdkBlob()
    {
        return $this->sdk_blob;
    }

    /**
     * Optional. Base64 encoded JSON representing array of <search term, search
     * url> tuple.
     *
     * Generated from protobuf field <code>bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setSdkBlob($var)
    {
        GPBUtil::checkString($var, False);
        $this->sdk_blob = $var;

        return $this;
    }

}

