Package com.google.cloud.aiplatform.v1
Class GroundingChunk.RetrievedContext.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GroundingChunk.RetrievedContext.Builder>
com.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext.Builder
- All Implemented Interfaces:
GroundingChunk.RetrievedContextOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GroundingChunk.RetrievedContext
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Additional context for the RAG retrieval result.Text of the attribution.Title of the attribution.clearUri()URI reference of the attribution.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Additional context for the RAG retrieval result.Additional context for the RAG retrieval result.Additional context for the RAG retrieval result.getText()Text of the attribution.com.google.protobuf.ByteStringText of the attribution.getTitle()Title of the attribution.com.google.protobuf.ByteStringTitle of the attribution.getUri()URI reference of the attribution.com.google.protobuf.ByteStringURI reference of the attribution.booleanOutput only.booleanAdditional context for the RAG retrieval result.booleanhasText()Text of the attribution.booleanhasTitle()Title of the attribution.booleanhasUri()URI reference of the attribution.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRagChunk(RagChunk value) Additional context for the RAG retrieval result.setDocumentName(String value) Output only.setDocumentNameBytes(com.google.protobuf.ByteString value) Output only.setRagChunk(RagChunk value) Additional context for the RAG retrieval result.setRagChunk(RagChunk.Builder builderForValue) Additional context for the RAG retrieval result.Text of the attribution.setTextBytes(com.google.protobuf.ByteString value) Text of the attribution.Title of the attribution.setTitleBytes(com.google.protobuf.ByteString value) Title of the attribution.URI reference of the attribution.setUriBytes(com.google.protobuf.ByteString value) URI reference of the attribution.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GroundingChunk.RetrievedContext.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GroundingChunk.RetrievedContext.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GroundingChunk.RetrievedContext.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GroundingChunk.RetrievedContext.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GroundingChunk.RetrievedContext.Builder>
-
mergeFrom
public GroundingChunk.RetrievedContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GroundingChunk.RetrievedContext.Builder>- Throws:
IOException
-
getContextDetailsCase
- Specified by:
getContextDetailsCasein interfaceGroundingChunk.RetrievedContextOrBuilder
-
clearContextDetails
-
hasRagChunk
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;- Specified by:
hasRagChunkin interfaceGroundingChunk.RetrievedContextOrBuilder- Returns:
- Whether the ragChunk field is set.
-
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;- Specified by:
getRagChunkin interfaceGroundingChunk.RetrievedContextOrBuilder- Returns:
- The ragChunk.
-
setRagChunk
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; -
setRagChunk
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; -
mergeRagChunk
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; -
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; -
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; -
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;- Specified by:
getRagChunkOrBuilderin interfaceGroundingChunk.RetrievedContextOrBuilder
-
hasUri
public boolean hasUri()URI reference of the attribution.
optional string uri = 1;- Specified by:
hasUriin interfaceGroundingChunk.RetrievedContextOrBuilder- Returns:
- Whether the uri field is set.
-
getUri
URI reference of the attribution.
optional string uri = 1;- Specified by:
getUriin interfaceGroundingChunk.RetrievedContextOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()URI reference of the attribution.
optional string uri = 1;- Specified by:
getUriBytesin interfaceGroundingChunk.RetrievedContextOrBuilder- Returns:
- The bytes for uri.
-
setUri
URI reference of the attribution.
optional string uri = 1;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
URI reference of the attribution.
optional string uri = 1;- Returns:
- This builder for chaining.
-
setUriBytes
URI reference of the attribution.
optional string uri = 1;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
hasTitle
public boolean hasTitle()Title of the attribution.
optional string title = 2;- Specified by:
hasTitlein interfaceGroundingChunk.RetrievedContextOrBuilder- Returns:
- Whether the title field is set.
-
getTitle
Title of the attribution.
optional string title = 2;- Specified by:
getTitlein interfaceGroundingChunk.RetrievedContextOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Title of the attribution.
optional string title = 2;- Specified by:
getTitleBytesin interfaceGroundingChunk.RetrievedContextOrBuilder- Returns:
- The bytes for title.
-
setTitle
Title of the attribution.
optional string title = 2;- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Title of the attribution.
optional string title = 2;- Returns:
- This builder for chaining.
-
setTitleBytes
Title of the attribution.
optional string title = 2;- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
hasText
public boolean hasText()Text of the attribution.
optional string text = 3;- Specified by:
hasTextin interfaceGroundingChunk.RetrievedContextOrBuilder- Returns:
- Whether the text field is set.
-
getText
Text of the attribution.
optional string text = 3;- Specified by:
getTextin interfaceGroundingChunk.RetrievedContextOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()Text of the attribution.
optional string text = 3;- Specified by:
getTextBytesin interfaceGroundingChunk.RetrievedContextOrBuilder- Returns:
- The bytes for text.
-
setText
Text of the attribution.
optional string text = 3;- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
Text of the attribution.
optional string text = 3;- Returns:
- This builder for chaining.
-
setTextBytes
Text of the attribution.
optional string text = 3;- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
hasDocumentName
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];- Specified by:
hasDocumentNamein interfaceGroundingChunk.RetrievedContextOrBuilder- Returns:
- Whether the documentName field is set.
-
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];- Specified by:
getDocumentNamein interfaceGroundingChunk.RetrievedContextOrBuilder- Returns:
- The documentName.
-
getDocumentNameBytes
public 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];- Specified by:
getDocumentNameBytesin interfaceGroundingChunk.RetrievedContextOrBuilder- Returns:
- The bytes for documentName.
-
setDocumentName
Output only. The full document name for the referenced Vertex AI Search document.
optional string document_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The documentName to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setDocumentNameBytes
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];- Parameters:
value- The bytes for documentName to set.- Returns:
- This builder for chaining.
-