Google Cloud Discovery Engine V1 Client - Class GroundingSource (1.5.0)

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

Grounding source.

Generated from protobuf message google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ GenerateGroundedContentRequest

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ inline_sourceGroundingSource\InlineSource

If set, grounding is performed with inline content.

↳ search_sourceGroundingSource\SearchSource

If set, grounding is performed with Vertex AI Search.

↳ google_search_sourceGroundingSource\GoogleSearchSource

If set, grounding is performed with Google Search.

↳ enterprise_web_retrieval_sourceGroundingSource\EnterpriseWebRetrievalSource

If set, grounding is performed with enterprise web retrieval.

getInlineSource

If set, grounding is performed with inline content.

Returns
TypeDescription
GroundingSource\InlineSource|null

hasInlineSource

setInlineSource

If set, grounding is performed with inline content.

Parameter
NameDescription
varGroundingSource\InlineSource
Returns
TypeDescription
$this

getSearchSource

If set, grounding is performed with Vertex AI Search.

Returns
TypeDescription
GroundingSource\SearchSource|null

hasSearchSource

setSearchSource

If set, grounding is performed with Vertex AI Search.

Parameter
NameDescription
varGroundingSource\SearchSource
Returns
TypeDescription
$this

getGoogleSearchSource

If set, grounding is performed with Google Search.

Returns
TypeDescription
GroundingSource\GoogleSearchSource|null

hasGoogleSearchSource

setGoogleSearchSource

If set, grounding is performed with Google Search.

Parameter
NameDescription
varGroundingSource\GoogleSearchSource
Returns
TypeDescription
$this

getEnterpriseWebRetrievalSource

If set, grounding is performed with enterprise web retrieval.

Returns
TypeDescription
GroundingSource\EnterpriseWebRetrievalSource|null

hasEnterpriseWebRetrievalSource

setEnterpriseWebRetrievalSource

If set, grounding is performed with enterprise web retrieval.

Parameter
NameDescription
varGroundingSource\EnterpriseWebRetrievalSource
Returns
TypeDescription
$this

getSource

Returns
TypeDescription
string