Class ListTopicsResponse.Builder (1.118.0)

public static final class ListTopicsResponse.Builder extends GeneratedMessageV3.Builder<ListTopicsResponse.Builder> implements ListTopicsResponseOrBuilder

Response for the ListTopics method.

Protobuf type google.pubsub.v1.ListTopicsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllTopics(Iterable<? extends Topic> values)

public ListTopicsResponse.Builder addAllTopics(Iterable<? extends Topic> values)

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.pubsub.v1.Topic>
Returns
TypeDescription
ListTopicsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTopics(Topic value)

public ListTopicsResponse.Builder addTopics(Topic value)

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Parameter
NameDescription
valueTopic
Returns
TypeDescription
ListTopicsResponse.Builder

addTopics(Topic.Builder builderForValue)

public ListTopicsResponse.Builder addTopics(Topic.Builder builderForValue)

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Parameter
NameDescription
builderForValueTopic.Builder
Returns
TypeDescription
ListTopicsResponse.Builder

addTopics(int index, Topic value)

public ListTopicsResponse.Builder addTopics(int index, Topic value)

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Parameters
NameDescription
indexint
valueTopic
Returns
TypeDescription
ListTopicsResponse.Builder

addTopics(int index, Topic.Builder builderForValue)

public ListTopicsResponse.Builder addTopics(int index, Topic.Builder builderForValue)

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Parameters
NameDescription
indexint
builderForValueTopic.Builder
Returns
TypeDescription
ListTopicsResponse.Builder

addTopicsBuilder()

public Topic.Builder addTopicsBuilder()

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Returns
TypeDescription
Topic.Builder

addTopicsBuilder(int index)

public Topic.Builder addTopicsBuilder(int index)

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Topic.Builder

build()

public ListTopicsResponse build()
Returns
TypeDescription
ListTopicsResponse

buildPartial()

public ListTopicsResponse buildPartial()
Returns
TypeDescription
ListTopicsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListTopicsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListTopicsResponse.Builder
Overrides

clearNextPageToken()

public ListTopicsResponse.Builder clearNextPageToken()

If not empty, indicates that there may be more topics that match the request; this value should be passed in a new ListTopicsRequest.

string next_page_token = 2;

Returns
TypeDescription
ListTopicsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTopics()

public ListTopicsResponse.Builder clearTopics()

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Returns
TypeDescription
ListTopicsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListTopicsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListTopicsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

If not empty, indicates that there may be more topics that match the request; this value should be passed in a new ListTopicsRequest.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If not empty, indicates that there may be more topics that match the request; this value should be passed in a new ListTopicsRequest.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getTopics(int index)

public Topic getTopics(int index)

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Topic

getTopicsBuilder(int index)

public Topic.Builder getTopicsBuilder(int index)

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Topic.Builder

getTopicsBuilderList()

public List<Topic.Builder> getTopicsBuilderList()

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Returns
TypeDescription
List<Builder>

getTopicsCount()

public int getTopicsCount()

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Returns
TypeDescription
int

getTopicsList()

public List<Topic> getTopicsList()

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Returns
TypeDescription
List<Topic>

getTopicsOrBuilder(int index)

public TopicOrBuilder getTopicsOrBuilder(int index)

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TopicOrBuilder

getTopicsOrBuilderList()

public List<? extends TopicOrBuilder> getTopicsOrBuilderList()

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Returns
TypeDescription
List<? extends com.google.pubsub.v1.TopicOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ListTopicsResponse other)

public ListTopicsResponse.Builder mergeFrom(ListTopicsResponse other)
Parameter
NameDescription
otherListTopicsResponse
Returns
TypeDescription
ListTopicsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTopics(int index)

public ListTopicsResponse.Builder removeTopics(int index)

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListTopicsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListTopicsResponse.Builder setNextPageToken(String value)

If not empty, indicates that there may be more topics that match the request; this value should be passed in a new ListTopicsRequest.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListTopicsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListTopicsResponse.Builder setNextPageTokenBytes(ByteString value)

If not empty, indicates that there may be more topics that match the request; this value should be passed in a new ListTopicsRequest.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListTopicsResponse.Builder

This builder for chaining.

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

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

setTopics(int index, Topic value)

public ListTopicsResponse.Builder setTopics(int index, Topic value)

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Parameters
NameDescription
indexint
valueTopic
Returns
TypeDescription
ListTopicsResponse.Builder

setTopics(int index, Topic.Builder builderForValue)

public ListTopicsResponse.Builder setTopics(int index, Topic.Builder builderForValue)

The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1;

Parameters
NameDescription
indexint
builderForValueTopic.Builder
Returns
TypeDescription
ListTopicsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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