Class ListReservationTopicsResponse.Builder (1.16.5)

public static final class ListReservationTopicsResponse.Builder extends GeneratedMessage.Builder<ListReservationTopicsResponse.Builder> implements ListReservationTopicsResponseOrBuilder

Response for ListReservationTopics.

Protobuf type google.cloud.pubsublite.v1.ListReservationTopicsResponse

Static Methods

getDescriptor()

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

Methods

addAllTopics(Iterable<String> values)

public ListReservationTopicsResponse.Builder addAllTopics(Iterable<String> values)

The names of topics attached to the reservation. The order of the topics is unspecified.

repeated string topics = 1;

Parameter
Name Description
values Iterable<String>

The topics to add.

Returns
Type Description
ListReservationTopicsResponse.Builder

This builder for chaining.

addTopics(String value)

public ListReservationTopicsResponse.Builder addTopics(String value)

The names of topics attached to the reservation. The order of the topics is unspecified.

repeated string topics = 1;

Parameter
Name Description
value String

The topics to add.

Returns
Type Description
ListReservationTopicsResponse.Builder

This builder for chaining.

addTopicsBytes(ByteString value)

public ListReservationTopicsResponse.Builder addTopicsBytes(ByteString value)

The names of topics attached to the reservation. The order of the topics is unspecified.

repeated string topics = 1;

Parameter
Name Description
value ByteString

The bytes of the topics to add.

Returns
Type Description
ListReservationTopicsResponse.Builder

This builder for chaining.

build()

public ListReservationTopicsResponse build()
Returns
Type Description
ListReservationTopicsResponse

buildPartial()

public ListReservationTopicsResponse buildPartial()
Returns
Type Description
ListReservationTopicsResponse

clear()

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

clearNextPageToken()

public ListReservationTopicsResponse.Builder clearNextPageToken()

A token that can be sent as page_token to retrieve the next page of results. If this field is omitted, there are no more results.

string next_page_token = 2;

Returns
Type Description
ListReservationTopicsResponse.Builder

This builder for chaining.

clearTopics()

public ListReservationTopicsResponse.Builder clearTopics()

The names of topics attached to the reservation. The order of the topics is unspecified.

repeated string topics = 1;

Returns
Type Description
ListReservationTopicsResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListReservationTopicsResponse getDefaultInstanceForType()
Returns
Type Description
ListReservationTopicsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token that can be sent as page_token to retrieve the next page of results. If this field is omitted, there are no more results.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token that can be sent as page_token to retrieve the next page of results. If this field is omitted, there are no more results.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTopics(int index)

public String getTopics(int index)

The names of topics attached to the reservation. The order of the topics is unspecified.

repeated string topics = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The topics at the given index.

getTopicsBytes(int index)

public ByteString getTopicsBytes(int index)

The names of topics attached to the reservation. The order of the topics is unspecified.

repeated string topics = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the topics at the given index.

getTopicsCount()

public int getTopicsCount()

The names of topics attached to the reservation. The order of the topics is unspecified.

repeated string topics = 1;

Returns
Type Description
int

The count of topics.

getTopicsList()

public ProtocolStringList getTopicsList()

The names of topics attached to the reservation. The order of the topics is unspecified.

repeated string topics = 1;

Returns
Type Description
ProtocolStringList

A list containing the topics.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListReservationTopicsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setNextPageToken(String value)

public ListReservationTopicsResponse.Builder setNextPageToken(String value)

A token that can be sent as page_token to retrieve the next page of results. If this field is omitted, there are no more results.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListReservationTopicsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListReservationTopicsResponse.Builder setNextPageTokenBytes(ByteString value)

A token that can be sent as page_token to retrieve the next page of results. If this field is omitted, there are no more results.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListReservationTopicsResponse.Builder

This builder for chaining.

setTopics(int index, String value)

public ListReservationTopicsResponse.Builder setTopics(int index, String value)

The names of topics attached to the reservation. The order of the topics is unspecified.

repeated string topics = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The topics to set.

Returns
Type Description
ListReservationTopicsResponse.Builder

This builder for chaining.