public static final class GroundingChunk.RetrievedContext.Builder extends com.google.protobuf.GeneratedMessageV3.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.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GroundingChunk.RetrievedContext |
build() |
GroundingChunk.RetrievedContext |
buildPartial() |
GroundingChunk.RetrievedContext.Builder |
clear() |
GroundingChunk.RetrievedContext.Builder |
clearContextDetails() |
GroundingChunk.RetrievedContext.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GroundingChunk.RetrievedContext.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
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.Builder |
clone() |
GroundingChunk.RetrievedContext.ContextDetailsCase |
getContextDetailsCase() |
GroundingChunk.RetrievedContext |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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 |
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GroundingChunk.RetrievedContext.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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 |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
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 |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingChunk.RetrievedContext.Builder>public GroundingChunk.RetrievedContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingChunk.RetrievedContext.Builder>public GroundingChunk.RetrievedContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingChunk.RetrievedContext.Builder>public GroundingChunk.RetrievedContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingChunk.RetrievedContext.Builder>public GroundingChunk.RetrievedContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingChunk.RetrievedContext.Builder>public GroundingChunk.RetrievedContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingChunk.RetrievedContext.Builder>public 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.GeneratedMessageV3.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 final GroundingChunk.RetrievedContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingChunk.RetrievedContext.Builder>public final GroundingChunk.RetrievedContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingChunk.RetrievedContext.Builder>Copyright © 2025 Google LLC. All rights reserved.