Class RagChunk.PageSpan.Builder (1.43.0)

public static final class RagChunk.PageSpan.Builder extends GeneratedMessage.Builder<RagChunk.PageSpan.Builder> implements RagChunk.PageSpanOrBuilder

Represents where the chunk starts and ends in the document.

Protobuf type google.cloud.vertexai.v1.RagChunk.PageSpan

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public RagChunk.PageSpan build()
Returns
Type Description
RagChunk.PageSpan

buildPartial()

public RagChunk.PageSpan buildPartial()
Returns
Type Description
RagChunk.PageSpan

clear()

public RagChunk.PageSpan.Builder clear()
Returns
Type Description
RagChunk.PageSpan.Builder
Overrides

clearFirstPage()

public RagChunk.PageSpan.Builder clearFirstPage()

Page where chunk starts in the document. Inclusive. 1-indexed.

int32 first_page = 1;

Returns
Type Description
RagChunk.PageSpan.Builder

This builder for chaining.

clearLastPage()

public RagChunk.PageSpan.Builder clearLastPage()

Page where chunk ends in the document. Inclusive. 1-indexed.

int32 last_page = 2;

Returns
Type Description
RagChunk.PageSpan.Builder

This builder for chaining.

getDefaultInstanceForType()

public RagChunk.PageSpan getDefaultInstanceForType()
Returns
Type Description
RagChunk.PageSpan

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFirstPage()

public int getFirstPage()

Page where chunk starts in the document. Inclusive. 1-indexed.

int32 first_page = 1;

Returns
Type Description
int

The firstPage.

getLastPage()

public int getLastPage()

Page where chunk ends in the document. Inclusive. 1-indexed.

int32 last_page = 2;

Returns
Type Description
int

The lastPage.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RagChunk.PageSpan other)

public RagChunk.PageSpan.Builder mergeFrom(RagChunk.PageSpan other)
Parameter
Name Description
other RagChunk.PageSpan
Returns
Type Description
RagChunk.PageSpan.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RagChunk.PageSpan.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagChunk.PageSpan.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RagChunk.PageSpan.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RagChunk.PageSpan.Builder
Overrides

setFirstPage(int value)

public RagChunk.PageSpan.Builder setFirstPage(int value)

Page where chunk starts in the document. Inclusive. 1-indexed.

int32 first_page = 1;

Parameter
Name Description
value int

The firstPage to set.

Returns
Type Description
RagChunk.PageSpan.Builder

This builder for chaining.

setLastPage(int value)

public RagChunk.PageSpan.Builder setLastPage(int value)

Page where chunk ends in the document. Inclusive. 1-indexed.

int32 last_page = 2;

Parameter
Name Description
value int

The lastPage to set.

Returns
Type Description
RagChunk.PageSpan.Builder

This builder for chaining.