public static interface Citations.InlineCitationOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getCitedChunkIndices(int index)
public abstract int getCitedChunkIndices(int index) The indices of the cited chunks that back this text segment.
Indices refer to the elements in cited_chunks.
repeated int32 cited_chunk_indices = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The citedChunkIndices at the given index. |
getCitedChunkIndicesCount()
public abstract int getCitedChunkIndicesCount() The indices of the cited chunks that back this text segment.
Indices refer to the elements in cited_chunks.
repeated int32 cited_chunk_indices = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The count of citedChunkIndices. |
getCitedChunkIndicesList()
public abstract List<Integer> getCitedChunkIndicesList() The indices of the cited chunks that back this text segment.
Indices refer to the elements in cited_chunks.
repeated int32 cited_chunk_indices = 3;
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the citedChunkIndices. |
getEndIndex()
public abstract int getEndIndex()The ending index (in bytes) of the text segment in the agent response.
int32 end_index = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The endIndex. |
getStartIndex()
public abstract int getStartIndex()The starting index (in bytes) of the text segment in the agent response.
int32 start_index = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The startIndex. |