Google Cloud Discovery Engine V1 Client - Class Query (1.2.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class Query.

Defines a user inputed query.

Generated from protobuf message google.cloud.discoveryengine.v1.Query

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ text string

Plain text.

↳ query_id string

Unique Id for the query.

getText

Plain text.

Returns
Type Description
string

hasText

setText

Plain text.

Parameter
Name Description
var string
Returns
Type Description
$this

getQueryId

Unique Id for the query.

Returns
Type Description
string

setQueryId

Unique Id for the query.

Parameter
Name Description
var string
Returns
Type Description
$this

getContent

Returns
Type Description
string