public static final class GroundingChunk.RetrievedContext.Builder extends com.google.protobuf.GeneratedMessage.Builder<GroundingChunk.RetrievedContext.Builder> implements GroundingChunk.RetrievedContextOrBuilder
Chunk from context retrieved by the retrieval tools.Protobuf type
google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext| Modifier and Type | Method and Description |
|---|---|
GroundingChunk.RetrievedContext |
build() |
GroundingChunk.RetrievedContext |
buildPartial() |
GroundingChunk.RetrievedContext.Builder |
clear() |
GroundingChunk.RetrievedContext.Builder |
clearContextDetails() |
GroundingChunk.RetrievedContext.Builder |
clearDocumentName()
Output only.
|
GroundingChunk.RetrievedContext.Builder |
clearRagChunk()
Additional context for the RAG retrieval result.
|
GroundingChunk.RetrievedContext.Builder |
clearText()
Text of the attribution.
|
GroundingChunk.RetrievedContext.Builder |
clearTitle()
Title of the attribution.
|
GroundingChunk.RetrievedContext.Builder |
clearUri()
URI reference of the attribution.
|
GroundingChunk.RetrievedContext.ContextDetailsCase |
getContextDetailsCase() |
GroundingChunk.RetrievedContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDocumentName()
Output only.
|
com.google.protobuf.ByteString |
getDocumentNameBytes()
Output only.
|
RagChunk |
getRagChunk()
Additional context for the RAG retrieval result.
|
RagChunk.Builder |
getRagChunkBuilder()
Additional context for the RAG retrieval result.
|
RagChunkOrBuilder |
getRagChunkOrBuilder()
Additional context for the RAG retrieval result.
|
String |
getText()
Text of the attribution.
|
com.google.protobuf.ByteString |
getTextBytes()
Text of the attribution.
|
String |
getTitle()
Title of the attribution.
|
com.google.protobuf.ByteString |
getTitleBytes()
Title of the attribution.
|
String |
getUri()
URI reference of the attribution.
|
com.google.protobuf.ByteString |
getUriBytes()
URI reference of the attribution.
|
boolean |
hasDocumentName()
Output only.
|
boolean |
hasRagChunk()
Additional context for the RAG retrieval result.
|
boolean |
hasText()
Text of the attribution.
|
boolean |
hasTitle()
Title of the attribution.
|
boolean |
hasUri()
URI reference of the attribution.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GroundingChunk.RetrievedContext.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GroundingChunk.RetrievedContext.Builder |
mergeFrom(GroundingChunk.RetrievedContext other) |
GroundingChunk.RetrievedContext.Builder |
mergeFrom(com.google.protobuf.Message other) |
GroundingChunk.RetrievedContext.Builder |
mergeRagChunk(RagChunk value)
Additional context for the RAG retrieval result.
|
GroundingChunk.RetrievedContext.Builder |
setDocumentName(String value)
Output only.
|
GroundingChunk.RetrievedContext.Builder |
setDocumentNameBytes(com.google.protobuf.ByteString value)
Output only.
|
GroundingChunk.RetrievedContext.Builder |
setRagChunk(RagChunk.Builder builderForValue)
Additional context for the RAG retrieval result.
|
GroundingChunk.RetrievedContext.Builder |
setRagChunk(RagChunk value)
Additional context for the RAG retrieval result.
|
GroundingChunk.RetrievedContext.Builder |
setText(String value)
Text of the attribution.
|
GroundingChunk.RetrievedContext.Builder |
setTextBytes(com.google.protobuf.ByteString value)
Text of the attribution.
|
GroundingChunk.RetrievedContext.Builder |
setTitle(String value)
Title of the attribution.
|
GroundingChunk.RetrievedContext.Builder |
setTitleBytes(com.google.protobuf.ByteString value)
Title of the attribution.
|
GroundingChunk.RetrievedContext.Builder |
setUri(String value)
URI reference of the attribution.
|
GroundingChunk.RetrievedContext.Builder |
setUriBytes(com.google.protobuf.ByteString value)
URI reference of the attribution.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GroundingChunk.RetrievedContext.Builder>public GroundingChunk.RetrievedContext.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<GroundingChunk.RetrievedContext.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GroundingChunk.RetrievedContext.Builder>public GroundingChunk.RetrievedContext getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GroundingChunk.RetrievedContext build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GroundingChunk.RetrievedContext buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GroundingChunk.RetrievedContext.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GroundingChunk.RetrievedContext.Builder>public GroundingChunk.RetrievedContext.Builder mergeFrom(GroundingChunk.RetrievedContext other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<GroundingChunk.RetrievedContext.Builder>public GroundingChunk.RetrievedContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GroundingChunk.RetrievedContext.Builder>IOExceptionpublic GroundingChunk.RetrievedContext.ContextDetailsCase getContextDetailsCase()
getContextDetailsCase in interface GroundingChunk.RetrievedContextOrBuilderpublic GroundingChunk.RetrievedContext.Builder clearContextDetails()
public boolean hasRagChunk()
Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool.
.google.cloud.aiplatform.v1.RagChunk rag_chunk = 4;hasRagChunk in interface GroundingChunk.RetrievedContextOrBuilderpublic RagChunk getRagChunk()
Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool.
.google.cloud.aiplatform.v1.RagChunk rag_chunk = 4;getRagChunk in interface GroundingChunk.RetrievedContextOrBuilderpublic GroundingChunk.RetrievedContext.Builder setRagChunk(RagChunk value)
Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool.
.google.cloud.aiplatform.v1.RagChunk rag_chunk = 4;public GroundingChunk.RetrievedContext.Builder setRagChunk(RagChunk.Builder builderForValue)
Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool.
.google.cloud.aiplatform.v1.RagChunk rag_chunk = 4;public GroundingChunk.RetrievedContext.Builder mergeRagChunk(RagChunk value)
Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool.
.google.cloud.aiplatform.v1.RagChunk rag_chunk = 4;public GroundingChunk.RetrievedContext.Builder clearRagChunk()
Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool.
.google.cloud.aiplatform.v1.RagChunk rag_chunk = 4;public RagChunk.Builder getRagChunkBuilder()
Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool.
.google.cloud.aiplatform.v1.RagChunk rag_chunk = 4;public RagChunkOrBuilder getRagChunkOrBuilder()
Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool.
.google.cloud.aiplatform.v1.RagChunk rag_chunk = 4;getRagChunkOrBuilder in interface GroundingChunk.RetrievedContextOrBuilderpublic boolean hasUri()
URI reference of the attribution.
optional string uri = 1;hasUri in interface GroundingChunk.RetrievedContextOrBuilderpublic String getUri()
URI reference of the attribution.
optional string uri = 1;getUri in interface GroundingChunk.RetrievedContextOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
URI reference of the attribution.
optional string uri = 1;getUriBytes in interface GroundingChunk.RetrievedContextOrBuilderpublic GroundingChunk.RetrievedContext.Builder setUri(String value)
URI reference of the attribution.
optional string uri = 1;value - The uri to set.public GroundingChunk.RetrievedContext.Builder clearUri()
URI reference of the attribution.
optional string uri = 1;public GroundingChunk.RetrievedContext.Builder setUriBytes(com.google.protobuf.ByteString value)
URI reference of the attribution.
optional string uri = 1;value - The bytes for uri to set.public boolean hasTitle()
Title of the attribution.
optional string title = 2;hasTitle in interface GroundingChunk.RetrievedContextOrBuilderpublic String getTitle()
Title of the attribution.
optional string title = 2;getTitle in interface GroundingChunk.RetrievedContextOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
Title of the attribution.
optional string title = 2;getTitleBytes in interface GroundingChunk.RetrievedContextOrBuilderpublic GroundingChunk.RetrievedContext.Builder setTitle(String value)
Title of the attribution.
optional string title = 2;value - The title to set.public GroundingChunk.RetrievedContext.Builder clearTitle()
Title of the attribution.
optional string title = 2;public GroundingChunk.RetrievedContext.Builder setTitleBytes(com.google.protobuf.ByteString value)
Title of the attribution.
optional string title = 2;value - The bytes for title to set.public boolean hasText()
Text of the attribution.
optional string text = 3;hasText in interface GroundingChunk.RetrievedContextOrBuilderpublic String getText()
Text of the attribution.
optional string text = 3;getText in interface GroundingChunk.RetrievedContextOrBuilderpublic com.google.protobuf.ByteString getTextBytes()
Text of the attribution.
optional string text = 3;getTextBytes in interface GroundingChunk.RetrievedContextOrBuilderpublic GroundingChunk.RetrievedContext.Builder setText(String value)
Text of the attribution.
optional string text = 3;value - The text to set.public GroundingChunk.RetrievedContext.Builder clearText()
Text of the attribution.
optional string text = 3;public GroundingChunk.RetrievedContext.Builder setTextBytes(com.google.protobuf.ByteString value)
Text of the attribution.
optional string text = 3;value - The bytes for text to set.public boolean hasDocumentName()
Output only. The full document name for the referenced Vertex AI Search document.
optional string document_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasDocumentName in interface GroundingChunk.RetrievedContextOrBuilderpublic String getDocumentName()
Output only. The full document name for the referenced Vertex AI Search document.
optional string document_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDocumentName in interface GroundingChunk.RetrievedContextOrBuilderpublic com.google.protobuf.ByteString getDocumentNameBytes()
Output only. The full document name for the referenced Vertex AI Search document.
optional string document_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDocumentNameBytes in interface GroundingChunk.RetrievedContextOrBuilderpublic GroundingChunk.RetrievedContext.Builder setDocumentName(String value)
Output only. The full document name for the referenced Vertex AI Search document.
optional string document_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The documentName to set.public GroundingChunk.RetrievedContext.Builder clearDocumentName()
Output only. The full document name for the referenced Vertex AI Search document.
optional string document_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public GroundingChunk.RetrievedContext.Builder setDocumentNameBytes(com.google.protobuf.ByteString value)
Output only. The full document name for the referenced Vertex AI Search document.
optional string document_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The bytes for documentName to set.Copyright © 2026 Google LLC. All rights reserved.