Class ListPartitionCursorsResponse.Builder (1.13.7)

public static final class ListPartitionCursorsResponse.Builder extends GeneratedMessageV3.Builder<ListPartitionCursorsResponse.Builder> implements ListPartitionCursorsResponseOrBuilder

Response for ListPartitionCursors

Protobuf type google.cloud.pubsublite.v1.ListPartitionCursorsResponse

Static Methods

getDescriptor()

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

Methods

addAllPartitionCursors(Iterable<? extends PartitionCursor> values)

public ListPartitionCursorsResponse.Builder addAllPartitionCursors(Iterable<? extends PartitionCursor> values)

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.pubsublite.proto.PartitionCursor>
Returns
Type Description
ListPartitionCursorsResponse.Builder

addPartitionCursors(PartitionCursor value)

public ListPartitionCursorsResponse.Builder addPartitionCursors(PartitionCursor value)

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Parameter
Name Description
value PartitionCursor
Returns
Type Description
ListPartitionCursorsResponse.Builder

addPartitionCursors(PartitionCursor.Builder builderForValue)

public ListPartitionCursorsResponse.Builder addPartitionCursors(PartitionCursor.Builder builderForValue)

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Parameter
Name Description
builderForValue PartitionCursor.Builder
Returns
Type Description
ListPartitionCursorsResponse.Builder

addPartitionCursors(int index, PartitionCursor value)

public ListPartitionCursorsResponse.Builder addPartitionCursors(int index, PartitionCursor value)

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Parameters
Name Description
index int
value PartitionCursor
Returns
Type Description
ListPartitionCursorsResponse.Builder

addPartitionCursors(int index, PartitionCursor.Builder builderForValue)

public ListPartitionCursorsResponse.Builder addPartitionCursors(int index, PartitionCursor.Builder builderForValue)

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Parameters
Name Description
index int
builderForValue PartitionCursor.Builder
Returns
Type Description
ListPartitionCursorsResponse.Builder

addPartitionCursorsBuilder()

public PartitionCursor.Builder addPartitionCursorsBuilder()

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Returns
Type Description
PartitionCursor.Builder

addPartitionCursorsBuilder(int index)

public PartitionCursor.Builder addPartitionCursorsBuilder(int index)

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Parameter
Name Description
index int
Returns
Type Description
PartitionCursor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPartitionCursorsResponse build()
Returns
Type Description
ListPartitionCursorsResponse

buildPartial()

public ListPartitionCursorsResponse buildPartial()
Returns
Type Description
ListPartitionCursorsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListPartitionCursorsResponse.Builder clearNextPageToken()

A token, which can be sent as 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
ListPartitionCursorsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartitionCursors()

public ListPartitionCursorsResponse.Builder clearPartitionCursors()

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Returns
Type Description
ListPartitionCursorsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListPartitionCursorsResponse getDefaultInstanceForType()
Returns
Type Description
ListPartitionCursorsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as 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, which can be sent as 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.

getPartitionCursors(int index)

public PartitionCursor getPartitionCursors(int index)

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Parameter
Name Description
index int
Returns
Type Description
PartitionCursor

getPartitionCursorsBuilder(int index)

public PartitionCursor.Builder getPartitionCursorsBuilder(int index)

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Parameter
Name Description
index int
Returns
Type Description
PartitionCursor.Builder

getPartitionCursorsBuilderList()

public List<PartitionCursor.Builder> getPartitionCursorsBuilderList()

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Returns
Type Description
List<Builder>

getPartitionCursorsCount()

public int getPartitionCursorsCount()

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Returns
Type Description
int

getPartitionCursorsList()

public List<PartitionCursor> getPartitionCursorsList()

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Returns
Type Description
List<PartitionCursor>

getPartitionCursorsOrBuilder(int index)

public PartitionCursorOrBuilder getPartitionCursorsOrBuilder(int index)

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Parameter
Name Description
index int
Returns
Type Description
PartitionCursorOrBuilder

getPartitionCursorsOrBuilderList()

public List<? extends PartitionCursorOrBuilder> getPartitionCursorsOrBuilderList()

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Returns
Type Description
List<? extends com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListPartitionCursorsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePartitionCursors(int index)

public ListPartitionCursorsResponse.Builder removePartitionCursors(int index)

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Parameter
Name Description
index int
Returns
Type Description
ListPartitionCursorsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListPartitionCursorsResponse.Builder setNextPageToken(String value)

A token, which can be sent as 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
ListPartitionCursorsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListPartitionCursorsResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as 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
ListPartitionCursorsResponse.Builder

This builder for chaining.

setPartitionCursors(int index, PartitionCursor value)

public ListPartitionCursorsResponse.Builder setPartitionCursors(int index, PartitionCursor value)

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Parameters
Name Description
index int
value PartitionCursor
Returns
Type Description
ListPartitionCursorsResponse.Builder

setPartitionCursors(int index, PartitionCursor.Builder builderForValue)

public ListPartitionCursorsResponse.Builder setPartitionCursors(int index, PartitionCursor.Builder builderForValue)

The partition cursors from this request.

repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1;

Parameters
Name Description
index int
builderForValue PartitionCursor.Builder
Returns
Type Description
ListPartitionCursorsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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