Package com.google.cloud.aiplatform.v1
Interface RagChunkOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RagChunk,RagChunk.Builder
@Generated
public interface RagChunkOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionIf populated, represents where the chunk starts and ends in the document.If populated, represents where the chunk starts and ends in the document.getText()The content of the chunk.com.google.protobuf.ByteStringThe content of the chunk.booleanIf populated, represents where the chunk starts and ends in the document.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getText
String getText()The content of the chunk.
string text = 1;- Returns:
- The text.
-
getTextBytes
com.google.protobuf.ByteString getTextBytes()The content of the chunk.
string text = 1;- Returns:
- The bytes for text.
-
hasPageSpan
boolean hasPageSpan()If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.aiplatform.v1.RagChunk.PageSpan page_span = 2;- Returns:
- Whether the pageSpan field is set.
-
getPageSpan
RagChunk.PageSpan getPageSpan()If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.aiplatform.v1.RagChunk.PageSpan page_span = 2;- Returns:
- The pageSpan.
-
getPageSpanOrBuilder
RagChunk.PageSpanOrBuilder getPageSpanOrBuilder()If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.aiplatform.v1.RagChunk.PageSpan page_span = 2;
-