Class ListChunksResponse.Builder (0.44.0)

public static final class ListChunksResponse.Builder extends GeneratedMessageV3.Builder<ListChunksResponse.Builder> implements ListChunksResponseOrBuilder

Response message for ChunkService.ListChunks method.

Protobuf type google.cloud.discoveryengine.v1alpha.ListChunksResponse

Static Methods

getDescriptor()

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

Methods

addAllChunks(Iterable<? extends Chunk> values)

public ListChunksResponse.Builder addAllChunks(Iterable<? extends Chunk> values)

The Chunks.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1alpha.Chunk>
Returns
Type Description
ListChunksResponse.Builder

addChunks(Chunk value)

public ListChunksResponse.Builder addChunks(Chunk value)

The Chunks.

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

Parameter
Name Description
value Chunk
Returns
Type Description
ListChunksResponse.Builder

addChunks(Chunk.Builder builderForValue)

public ListChunksResponse.Builder addChunks(Chunk.Builder builderForValue)

The Chunks.

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

Parameter
Name Description
builderForValue Chunk.Builder
Returns
Type Description
ListChunksResponse.Builder

addChunks(int index, Chunk value)

public ListChunksResponse.Builder addChunks(int index, Chunk value)

The Chunks.

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

Parameters
Name Description
index int
value Chunk
Returns
Type Description
ListChunksResponse.Builder

addChunks(int index, Chunk.Builder builderForValue)

public ListChunksResponse.Builder addChunks(int index, Chunk.Builder builderForValue)

The Chunks.

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

Parameters
Name Description
index int
builderForValue Chunk.Builder
Returns
Type Description
ListChunksResponse.Builder

addChunksBuilder()

public Chunk.Builder addChunksBuilder()

The Chunks.

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

Returns
Type Description
Chunk.Builder

addChunksBuilder(int index)

public Chunk.Builder addChunksBuilder(int index)

The Chunks.

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

Parameter
Name Description
index int
Returns
Type Description
Chunk.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListChunksResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListChunksResponse.Builder
Overrides

build()

public ListChunksResponse build()
Returns
Type Description
ListChunksResponse

buildPartial()

public ListChunksResponse buildPartial()
Returns
Type Description
ListChunksResponse

clear()

public ListChunksResponse.Builder clear()
Returns
Type Description
ListChunksResponse.Builder
Overrides

clearChunks()

public ListChunksResponse.Builder clearChunks()

The Chunks.

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

Returns
Type Description
ListChunksResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListChunksResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListChunksResponse.Builder
Overrides

clearNextPageToken()

public ListChunksResponse.Builder clearNextPageToken()

A token that can be sent as ListChunksRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListChunksResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListChunksResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListChunksResponse.Builder
Overrides

clone()

public ListChunksResponse.Builder clone()
Returns
Type Description
ListChunksResponse.Builder
Overrides

getChunks(int index)

public Chunk getChunks(int index)

The Chunks.

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

Parameter
Name Description
index int
Returns
Type Description
Chunk

getChunksBuilder(int index)

public Chunk.Builder getChunksBuilder(int index)

The Chunks.

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

Parameter
Name Description
index int
Returns
Type Description
Chunk.Builder

getChunksBuilderList()

public List<Chunk.Builder> getChunksBuilderList()

The Chunks.

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

Returns
Type Description
List<Builder>

getChunksCount()

public int getChunksCount()

The Chunks.

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

Returns
Type Description
int

getChunksList()

public List<Chunk> getChunksList()

The Chunks.

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

Returns
Type Description
List<Chunk>

getChunksOrBuilder(int index)

public ChunkOrBuilder getChunksOrBuilder(int index)

The Chunks.

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

Parameter
Name Description
index int
Returns
Type Description
ChunkOrBuilder

getChunksOrBuilderList()

public List<? extends ChunkOrBuilder> getChunksOrBuilderList()

The Chunks.

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

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

getDefaultInstanceForType()

public ListChunksResponse getDefaultInstanceForType()
Returns
Type Description
ListChunksResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token that can be sent as ListChunksRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token that can be sent as ListChunksRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListChunksResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListChunksResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListChunksResponse.Builder
Overrides

removeChunks(int index)

public ListChunksResponse.Builder removeChunks(int index)

The Chunks.

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

Parameter
Name Description
index int
Returns
Type Description
ListChunksResponse.Builder

setChunks(int index, Chunk value)

public ListChunksResponse.Builder setChunks(int index, Chunk value)

The Chunks.

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

Parameters
Name Description
index int
value Chunk
Returns
Type Description
ListChunksResponse.Builder

setChunks(int index, Chunk.Builder builderForValue)

public ListChunksResponse.Builder setChunks(int index, Chunk.Builder builderForValue)

The Chunks.

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

Parameters
Name Description
index int
builderForValue Chunk.Builder
Returns
Type Description
ListChunksResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListChunksResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListChunksResponse.Builder
Overrides

setNextPageToken(String value)

public ListChunksResponse.Builder setNextPageToken(String value)

A token that can be sent as ListChunksRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListChunksResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListChunksResponse.Builder setNextPageTokenBytes(ByteString value)

A token that can be sent as ListChunksRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListChunksResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListChunksResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListChunksResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListChunksResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListChunksResponse.Builder
Overrides