Class ListPartitionCursorsResponse.Builder (1.12.8)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.pubsublite.proto.PartitionCursor>
Returns
TypeDescription
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
NameDescription
valuePartitionCursor
Returns
TypeDescription
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
NameDescription
builderForValuePartitionCursor.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePartitionCursor
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePartitionCursor.Builder
Returns
TypeDescription
ListPartitionCursorsResponse.Builder

addPartitionCursorsBuilder()

public PartitionCursor.Builder addPartitionCursorsBuilder()

The partition cursors from this request.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PartitionCursor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPartitionCursorsResponse build()
Returns
TypeDescription
ListPartitionCursorsResponse

buildPartial()

public ListPartitionCursorsResponse buildPartial()
Returns
TypeDescription
ListPartitionCursorsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartitionCursors()

public ListPartitionCursorsResponse.Builder clearPartitionCursors()

The partition cursors from this request.

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

Returns
TypeDescription
ListPartitionCursorsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListPartitionCursorsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListPartitionCursorsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PartitionCursor.Builder

getPartitionCursorsBuilderList()

public List<PartitionCursor.Builder> getPartitionCursorsBuilderList()

The partition cursors from this request.

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

Returns
TypeDescription
List<Builder>

getPartitionCursorsCount()

public int getPartitionCursorsCount()

The partition cursors from this request.

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

Returns
TypeDescription
int

getPartitionCursorsList()

public List<PartitionCursor> getPartitionCursorsList()

The partition cursors from this request.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PartitionCursorOrBuilder

getPartitionCursorsOrBuilderList()

public List<? extends PartitionCursorOrBuilder> getPartitionCursorsOrBuilderList()

The partition cursors from this request.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListPartitionCursorsResponse other)

public ListPartitionCursorsResponse.Builder mergeFrom(ListPartitionCursorsResponse other)
Parameter
NameDescription
otherListPartitionCursorsResponse
Returns
TypeDescription
ListPartitionCursorsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListPartitionCursorsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListPartitionCursorsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valuePartitionCursor
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePartitionCursor.Builder
Returns
TypeDescription
ListPartitionCursorsResponse.Builder

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

public ListPartitionCursorsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListPartitionCursorsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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