Class ListTopicsResponse.Builder (1.129.3)

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
Type Description
Descriptor

Methods

addAllTopics(Iterable<? extends Topic> values)

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

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.pubsub.v1.Topic>
Returns
Type Description
ListTopicsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTopics(Topic value)

public ListTopicsResponse.Builder addTopics(Topic value)

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Topic
Returns
Type Description
ListTopicsResponse.Builder

addTopics(Topic.Builder builderForValue)

public ListTopicsResponse.Builder addTopics(Topic.Builder builderForValue)

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Topic.Builder
Returns
Type Description
ListTopicsResponse.Builder

addTopics(int index, Topic value)

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

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Topic
Returns
Type Description
ListTopicsResponse.Builder

addTopics(int index, Topic.Builder builderForValue)

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

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Topic.Builder
Returns
Type Description
ListTopicsResponse.Builder

addTopicsBuilder()

public Topic.Builder addTopicsBuilder()

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Topic.Builder

addTopicsBuilder(int index)

public Topic.Builder addTopicsBuilder(int index)

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Topic.Builder

build()

public ListTopicsResponse build()
Returns
Type Description
ListTopicsResponse

buildPartial()

public ListTopicsResponse buildPartial()
Returns
Type Description
ListTopicsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListTopicsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListTopicsResponse.Builder
Overrides

clearNextPageToken()

public ListTopicsResponse.Builder clearNextPageToken()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListTopicsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTopics()

public ListTopicsResponse.Builder clearTopics()

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListTopicsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListTopicsResponse getDefaultInstanceForType()
Returns
Type Description
ListTopicsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTopics(int index)

public Topic getTopics(int index)

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Topic

getTopicsBuilder(int index)

public Topic.Builder getTopicsBuilder(int index)

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Topic.Builder

getTopicsBuilderList()

public List<Topic.Builder> getTopicsBuilderList()

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getTopicsCount()

public int getTopicsCount()

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getTopicsList()

public List<Topic> getTopicsList()

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Topic>

getTopicsOrBuilder(int index)

public TopicOrBuilder getTopicsOrBuilder(int index)

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TopicOrBuilder

getTopicsOrBuilderList()

public List<? extends TopicOrBuilder> getTopicsOrBuilderList()

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ListTopicsResponse other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTopics(int index)

public ListTopicsResponse.Builder removeTopics(int index)

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ListTopicsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListTopicsResponse.Builder setNextPageToken(String value)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListTopicsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListTopicsResponse.Builder setNextPageTokenBytes(ByteString value)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListTopicsResponse.Builder
Overrides

setTopics(int index, Topic value)

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

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Topic
Returns
Type Description
ListTopicsResponse.Builder

setTopics(int index, Topic.Builder builderForValue)

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

Optional. The resulting topics.

repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Topic.Builder
Returns
Type Description
ListTopicsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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