Class Chunk.ChunkMetadata (0.51.0)

public static final class Chunk.ChunkMetadata extends GeneratedMessageV3 implements Chunk.ChunkMetadataOrBuilder

Metadata of the current chunk. This field is only populated on SearchService.Search API.

Protobuf type google.cloud.discoveryengine.v1alpha.Chunk.ChunkMetadata

Static Fields

NEXT_CHUNKS_FIELD_NUMBER

public static final int NEXT_CHUNKS_FIELD_NUMBER
Field Value
Type Description
int

PREVIOUS_CHUNKS_FIELD_NUMBER

public static final int PREVIOUS_CHUNKS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Chunk.ChunkMetadata getDefaultInstance()
Returns
Type Description
Chunk.ChunkMetadata

getDescriptor()

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

newBuilder()

public static Chunk.ChunkMetadata.Builder newBuilder()
Returns
Type Description
Chunk.ChunkMetadata.Builder

newBuilder(Chunk.ChunkMetadata prototype)

public static Chunk.ChunkMetadata.Builder newBuilder(Chunk.ChunkMetadata prototype)
Parameter
Name Description
prototype Chunk.ChunkMetadata
Returns
Type Description
Chunk.ChunkMetadata.Builder

parseDelimitedFrom(InputStream input)

public static Chunk.ChunkMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Chunk.ChunkMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Chunk.ChunkMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Chunk.ChunkMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Chunk.ChunkMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Chunk.ChunkMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Chunk.ChunkMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Chunk.ChunkMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Chunk.ChunkMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Chunk.ChunkMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Chunk.ChunkMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Chunk.ChunkMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Chunk.ChunkMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Chunk.ChunkMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Chunk.ChunkMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Chunk.ChunkMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Chunk.ChunkMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Chunk.ChunkMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Chunk.ChunkMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Chunk.ChunkMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Chunk.ChunkMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Chunk.ChunkMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Chunk.ChunkMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Chunk.ChunkMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Chunk.ChunkMetadata> parser()
Returns
Type Description
Parser<ChunkMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Chunk.ChunkMetadata getDefaultInstanceForType()
Returns
Type Description
Chunk.ChunkMetadata

getNextChunks(int index)

public Chunk getNextChunks(int index)

The next chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks. This field is only populated on SearchService.Search API.

repeated .google.cloud.discoveryengine.v1alpha.Chunk next_chunks = 2;

Parameter
Name Description
index int
Returns
Type Description
Chunk

getNextChunksCount()

public int getNextChunksCount()

The next chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks. This field is only populated on SearchService.Search API.

repeated .google.cloud.discoveryengine.v1alpha.Chunk next_chunks = 2;

Returns
Type Description
int

getNextChunksList()

public List<Chunk> getNextChunksList()

The next chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks. This field is only populated on SearchService.Search API.

repeated .google.cloud.discoveryengine.v1alpha.Chunk next_chunks = 2;

Returns
Type Description
List<Chunk>

getNextChunksOrBuilder(int index)

public ChunkOrBuilder getNextChunksOrBuilder(int index)

The next chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks. This field is only populated on SearchService.Search API.

repeated .google.cloud.discoveryengine.v1alpha.Chunk next_chunks = 2;

Parameter
Name Description
index int
Returns
Type Description
ChunkOrBuilder

getNextChunksOrBuilderList()

public List<? extends ChunkOrBuilder> getNextChunksOrBuilderList()

The next chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks. This field is only populated on SearchService.Search API.

repeated .google.cloud.discoveryengine.v1alpha.Chunk next_chunks = 2;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder>

getParserForType()

public Parser<Chunk.ChunkMetadata> getParserForType()
Returns
Type Description
Parser<ChunkMetadata>
Overrides

getPreviousChunks(int index)

public Chunk getPreviousChunks(int index)

The previous chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks. This field is only populated on SearchService.Search API.

repeated .google.cloud.discoveryengine.v1alpha.Chunk previous_chunks = 1;

Parameter
Name Description
index int
Returns
Type Description
Chunk

getPreviousChunksCount()

public int getPreviousChunksCount()

The previous chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks. This field is only populated on SearchService.Search API.

repeated .google.cloud.discoveryengine.v1alpha.Chunk previous_chunks = 1;

Returns
Type Description
int

getPreviousChunksList()

public List<Chunk> getPreviousChunksList()

The previous chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks. This field is only populated on SearchService.Search API.

repeated .google.cloud.discoveryengine.v1alpha.Chunk previous_chunks = 1;

Returns
Type Description
List<Chunk>

getPreviousChunksOrBuilder(int index)

public ChunkOrBuilder getPreviousChunksOrBuilder(int index)

The previous chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks. This field is only populated on SearchService.Search API.

repeated .google.cloud.discoveryengine.v1alpha.Chunk previous_chunks = 1;

Parameter
Name Description
index int
Returns
Type Description
ChunkOrBuilder

getPreviousChunksOrBuilderList()

public List<? extends ChunkOrBuilder> getPreviousChunksOrBuilderList()

The previous chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks. This field is only populated on SearchService.Search API.

repeated .google.cloud.discoveryengine.v1alpha.Chunk previous_chunks = 1;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Chunk.ChunkMetadata.Builder newBuilderForType()
Returns
Type Description
Chunk.ChunkMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Chunk.ChunkMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Chunk.ChunkMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Chunk.ChunkMetadata.Builder toBuilder()
Returns
Type Description
Chunk.ChunkMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException