Class ListReservationTopicsResponse.Builder (1.6.3)

Stay organized with collections Save and categorize content based on your preferences.
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
TypeDescription
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
NameDescription
valuesIterable<String>

The topics to add.

Returns
TypeDescription
ListReservationTopicsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

The topics to add.

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

The bytes of the topics to add.

Returns
TypeDescription
ListReservationTopicsResponse.Builder

This builder for chaining.

build()

public ListReservationTopicsResponse build()
Returns
TypeDescription
ListReservationTopicsResponse

buildPartial()

public ListReservationTopicsResponse buildPartial()
Returns
TypeDescription
ListReservationTopicsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListReservationTopicsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ListReservationTopicsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListReservationTopicsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListReservationTopicsResponse

getDescriptorForType()

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the topics.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListReservationTopicsResponse other)

public ListReservationTopicsResponse.Builder mergeFrom(ListReservationTopicsResponse other)
Parameter
NameDescription
otherListReservationTopicsResponse
Returns
TypeDescription
ListReservationTopicsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

The index to set the value at.

valueString

The topics to set.

Returns
TypeDescription
ListReservationTopicsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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