Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class AssistantGroundedContent.
A piece of content and possibly its grounding information.
Not all content needs grounding. Phrases like "Of course, I will gladly search it for you." do not need grounding.
Generated from protobuf message google.cloud.discoveryengine.v1.AssistantGroundedContent
Namespace
Google \ Cloud \ DiscoveryEngine \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ text_grounding_metadata |
AssistantGroundedContent\TextGroundingMetadata
Metadata for grounding based on text sources. |
↳ content |
AssistantContent
The content. |
getTextGroundingMetadata
Metadata for grounding based on text sources.
| Returns | |
|---|---|
| Type | Description |
AssistantGroundedContent\TextGroundingMetadata|null |
|
hasTextGroundingMetadata
setTextGroundingMetadata
Metadata for grounding based on text sources.
| Parameter | |
|---|---|
| Name | Description |
var |
AssistantGroundedContent\TextGroundingMetadata
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getContent
The content.
| Returns | |
|---|---|
| Type | Description |
AssistantContent|null |
|
hasContent
clearContent
setContent
The content.
| Parameter | |
|---|---|
| Name | Description |
var |
AssistantContent
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMetadata
| Returns | |
|---|---|
| Type | Description |
string |
|