Google Cloud Discovery Engine V1 Client - Class Reference (1.17.0)

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

Referenced content and related document metadata.

Generated from protobuf message google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.Reference

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ AssistantGroundedContent \ TextGroundingMetadata

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ content string

Referenced text content.

↳ code_snippet string

Chunk of code snippet from the referenced document.

↳ document_metadata Reference\DocumentMetadata

Document metadata.

↳ chunk_metadata Google\Protobuf\Struct

Output only. Generic structured chunk metadata from upstream data source connectors.

getContent

Referenced text content.

Returns
Type Description
string

setContent

Referenced text content.

Parameter
Name Description
var string
Returns
Type Description
$this

getCodeSnippet

Chunk of code snippet from the referenced document.

Returns
Type Description
string

setCodeSnippet

Chunk of code snippet from the referenced document.

Parameter
Name Description
var string
Returns
Type Description
$this

getDocumentMetadata

Document metadata.

Returns
Type Description
Reference\DocumentMetadata|null

hasDocumentMetadata

clearDocumentMetadata

setDocumentMetadata

Document metadata.

Parameter
Name Description
var Reference\DocumentMetadata
Returns
Type Description
$this

getChunkMetadata

Output only. Generic structured chunk metadata from upstream data source connectors.

Returns
Type Description
Google\Protobuf\Struct|null

hasChunkMetadata

clearChunkMetadata

setChunkMetadata

Output only. Generic structured chunk metadata from upstream data source connectors.

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this