Class ListReservationTopicsResponse.Builder (1.13.8)

public static final class ListReservationTopicsResponse.Builder extends GeneratedMessageV3.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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public ListReservationTopicsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ListReservationTopicsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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