Google Cloud Discovery Engine V1beta Client - Class TextInput (0.6.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class TextInput.

Defines text input.

Generated from protobuf message google.cloud.discoveryengine.v1beta.TextInput

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ input string

Text input.

↳ context Google\Cloud\DiscoveryEngine\V1beta\ConversationContext

Conversation context of the input.

getInput

Text input.

Returns
TypeDescription
string

setInput

Text input.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getContext

Conversation context of the input.

Returns
TypeDescription
Google\Cloud\DiscoveryEngine\V1beta\ConversationContext|null

hasContext

clearContext

setContext

Conversation context of the input.

Parameter
NameDescription
var Google\Cloud\DiscoveryEngine\V1beta\ConversationContext
Returns
TypeDescription
$this