Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class VisualSegment.
Grounding information for a visual segment.
Generated from protobuf message google.cloud.discoveryengine.v1.AssistantGroundedContent.TextGroundingMetadata.VisualSegment
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ AssistantGroundedContent \ TextGroundingMetadataMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ reference_indices |
int[]
References for the visual segment. |
↳ content_id |
string
The content id of the visual segment. In order to display the citation of the visual element, this content_id needs to match with the |
getReferenceIndices
References for the visual segment.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<int> |
|
setReferenceIndices
References for the visual segment.
| Parameter | |
|---|---|
| Name | Description |
var |
int[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getContentId
The content id of the visual segment. In order to display the citation
of the visual element, this content_id needs to match with the
grounded_content.content_metadata.content_id field.
| Returns | |
|---|---|
| Type | Description |
string |
|
setContentId
The content id of the visual segment. In order to display the citation
of the visual element, this content_id needs to match with the
grounded_content.content_metadata.content_id field.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|