public static final class RagChunk.Builder extends GeneratedMessage.Builder<RagChunk.Builder> implements RagChunkOrBuilderA RagChunk includes the content of a chunk of a RagFile, and associated metadata.
Protobuf type google.cloud.vertexai.v1.RagChunk
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RagChunk.BuilderImplements
RagChunkOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RagChunk build()| Returns | |
|---|---|
| Type | Description |
RagChunk |
|
buildPartial()
public RagChunk buildPartial()| Returns | |
|---|---|
| Type | Description |
RagChunk |
|
clear()
public RagChunk.Builder clear()| Returns | |
|---|---|
| Type | Description |
RagChunk.Builder |
|
clearPageSpan()
public RagChunk.Builder clearPageSpan()If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.vertexai.v1.RagChunk.PageSpan page_span = 2;
| Returns | |
|---|---|
| Type | Description |
RagChunk.Builder |
|
clearText()
public RagChunk.Builder clearText()The content of the chunk.
string text = 1;
| Returns | |
|---|---|
| Type | Description |
RagChunk.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public RagChunk getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RagChunk |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPageSpan()
public RagChunk.PageSpan getPageSpan()If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.vertexai.v1.RagChunk.PageSpan page_span = 2;
| Returns | |
|---|---|
| Type | Description |
RagChunk.PageSpan |
The pageSpan. |
getPageSpanBuilder()
public RagChunk.PageSpan.Builder getPageSpanBuilder()If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.vertexai.v1.RagChunk.PageSpan page_span = 2;
| Returns | |
|---|---|
| Type | Description |
RagChunk.PageSpan.Builder |
|
getPageSpanOrBuilder()
public RagChunk.PageSpanOrBuilder getPageSpanOrBuilder()If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.vertexai.v1.RagChunk.PageSpan page_span = 2;
| Returns | |
|---|---|
| Type | Description |
RagChunk.PageSpanOrBuilder |
|
getText()
public String getText()The content of the chunk.
string text = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The text. |
getTextBytes()
public ByteString getTextBytes()The content of the chunk.
string text = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for text. |
hasPageSpan()
public boolean hasPageSpan()If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.vertexai.v1.RagChunk.PageSpan page_span = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pageSpan field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(RagChunk other)
public RagChunk.Builder mergeFrom(RagChunk other)| Parameter | |
|---|---|
| Name | Description |
other |
RagChunk |
| Returns | |
|---|---|
| Type | Description |
RagChunk.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RagChunk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RagChunk.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RagChunk.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RagChunk.Builder |
|
mergePageSpan(RagChunk.PageSpan value)
public RagChunk.Builder mergePageSpan(RagChunk.PageSpan value)If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.vertexai.v1.RagChunk.PageSpan page_span = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
RagChunk.PageSpan |
| Returns | |
|---|---|
| Type | Description |
RagChunk.Builder |
|
setPageSpan(RagChunk.PageSpan value)
public RagChunk.Builder setPageSpan(RagChunk.PageSpan value)If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.vertexai.v1.RagChunk.PageSpan page_span = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
RagChunk.PageSpan |
| Returns | |
|---|---|
| Type | Description |
RagChunk.Builder |
|
setPageSpan(RagChunk.PageSpan.Builder builderForValue)
public RagChunk.Builder setPageSpan(RagChunk.PageSpan.Builder builderForValue)If populated, represents where the chunk starts and ends in the document.
optional .google.cloud.vertexai.v1.RagChunk.PageSpan page_span = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
RagChunk.PageSpan.Builder |
| Returns | |
|---|---|
| Type | Description |
RagChunk.Builder |
|
setText(String value)
public RagChunk.Builder setText(String value)The content of the chunk.
string text = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe text to set. |
| Returns | |
|---|---|
| Type | Description |
RagChunk.Builder |
This builder for chaining. |
setTextBytes(ByteString value)
public RagChunk.Builder setTextBytes(ByteString value)The content of the chunk.
string text = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for text to set. |
| Returns | |
|---|---|
| Type | Description |
RagChunk.Builder |
This builder for chaining. |