Class ListChunksResponse.Builder (0.35.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.discoveryengine.v1alpha.Chunk>
Returns
TypeDescription
ListChunksResponse.Builder

addChunks(Chunk value)

public ListChunksResponse.Builder addChunks(Chunk value)

The Chunks.

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

Parameter
NameDescription
valueChunk
Returns
TypeDescription
ListChunksResponse.Builder

addChunks(Chunk.Builder builderForValue)

public ListChunksResponse.Builder addChunks(Chunk.Builder builderForValue)

The Chunks.

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

Parameter
NameDescription
builderForValueChunk.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueChunk
Returns
TypeDescription
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
NameDescription
indexint
builderForValueChunk.Builder
Returns
TypeDescription
ListChunksResponse.Builder

addChunksBuilder()

public Chunk.Builder addChunksBuilder()

The Chunks.

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

Returns
TypeDescription
Chunk.Builder

addChunksBuilder(int index)

public Chunk.Builder addChunksBuilder(int index)

The Chunks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Chunk.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListChunksResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListChunksResponse.Builder
Overrides

build()

public ListChunksResponse build()
Returns
TypeDescription
ListChunksResponse

buildPartial()

public ListChunksResponse buildPartial()
Returns
TypeDescription
ListChunksResponse

clear()

public ListChunksResponse.Builder clear()
Returns
TypeDescription
ListChunksResponse.Builder
Overrides

clearChunks()

public ListChunksResponse.Builder clearChunks()

The Chunks.

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

Returns
TypeDescription
ListChunksResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListChunksResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListChunksResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListChunksResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListChunksResponse.Builder
Overrides

clone()

public ListChunksResponse.Builder clone()
Returns
TypeDescription
ListChunksResponse.Builder
Overrides

getChunks(int index)

public Chunk getChunks(int index)

The Chunks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Chunk

getChunksBuilder(int index)

public Chunk.Builder getChunksBuilder(int index)

The Chunks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Chunk.Builder

getChunksBuilderList()

public List<Chunk.Builder> getChunksBuilderList()

The Chunks.

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

Returns
TypeDescription
List<Builder>

getChunksCount()

public int getChunksCount()

The Chunks.

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

Returns
TypeDescription
int

getChunksList()

public List<Chunk> getChunksList()

The Chunks.

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

Returns
TypeDescription
List<Chunk>

getChunksOrBuilder(int index)

public ChunkOrBuilder getChunksOrBuilder(int index)

The Chunks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ChunkOrBuilder

getChunksOrBuilderList()

public List<? extends ChunkOrBuilder> getChunksOrBuilderList()

The Chunks.

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

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

getDefaultInstanceForType()

public ListChunksResponse getDefaultInstanceForType()
Returns
TypeDescription
ListChunksResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListChunksResponse other)

public ListChunksResponse.Builder mergeFrom(ListChunksResponse other)
Parameter
NameDescription
otherListChunksResponse
Returns
TypeDescription
ListChunksResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListChunksResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListChunksResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListChunksResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListChunksResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListChunksResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListChunksResponse.Builder
Overrides

removeChunks(int index)

public ListChunksResponse.Builder removeChunks(int index)

The Chunks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueChunk
Returns
TypeDescription
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
NameDescription
indexint
builderForValueChunk.Builder
Returns
TypeDescription
ListChunksResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListChunksResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListChunksResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListChunksResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListChunksResponse.Builder
Overrides