Send feedback
Class ListTopicsResponse.Builder (1.120.10)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.120.10 keyboard_arrow_down
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
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
Name Description values Iterable <? extends com.google.pubsub.v1.Topic >
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListTopicsResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
addTopics(Topic value)
public ListTopicsResponse . Builder addTopics ( Topic value )
The resulting topics.
repeated .google.pubsub.v1.Topic topics = 1;
Parameter
Name Description value Topic
Returns
addTopics(Topic.Builder builderForValue)
public ListTopicsResponse . Builder addTopics ( Topic . Builder builderForValue )
The resulting topics.
repeated .google.pubsub.v1.Topic topics = 1;
Parameter
Returns
addTopics(int index, Topic value)
public ListTopicsResponse . Builder addTopics ( int index , Topic value )
The resulting topics.
repeated .google.pubsub.v1.Topic topics = 1;
Parameters
Returns
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
Returns
addTopicsBuilder()
public Topic . Builder addTopicsBuilder ()
The resulting topics.
repeated .google.pubsub.v1.Topic topics = 1;
Returns
addTopicsBuilder(int index)
public Topic . Builder addTopicsBuilder ( int index )
The resulting topics.
repeated .google.pubsub.v1.Topic topics = 1;
Parameter
Returns
build()
public ListTopicsResponse build ()
Returns
buildPartial()
public ListTopicsResponse buildPartial ()
Returns
clear()
public ListTopicsResponse . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListTopicsResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ListTopicsResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearTopics()
public ListTopicsResponse . Builder clearTopics ()
The resulting topics.
repeated .google.pubsub.v1.Topic topics = 1;
Returns
clone()
public ListTopicsResponse . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public ListTopicsResponse getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
Type Description 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
Type Description ByteString The bytes for nextPageToken.
getTopics(int index)
public Topic getTopics ( int index )
The resulting topics.
repeated .google.pubsub.v1.Topic topics = 1;
Parameter
Returns
getTopicsBuilder(int index)
public Topic . Builder getTopicsBuilder ( int index )
The resulting topics.
repeated .google.pubsub.v1.Topic topics = 1;
Parameter
Returns
getTopicsBuilderList()
public List<Topic . Builder > getTopicsBuilderList ()
The resulting topics.
repeated .google.pubsub.v1.Topic topics = 1;
Returns
getTopicsCount()
public int getTopicsCount ()
The resulting topics.
repeated .google.pubsub.v1.Topic topics = 1;
Returns
getTopicsList()
public List<Topic> getTopicsList ()
The resulting topics.
repeated .google.pubsub.v1.Topic topics = 1;
Returns
getTopicsOrBuilder(int index)
public TopicOrBuilder getTopicsOrBuilder ( int index )
The resulting topics.
repeated .google.pubsub.v1.Topic topics = 1;
Parameter
Returns
getTopicsOrBuilderList()
public List <? extends TopicOrBuilder > getTopicsOrBuilderList ()
The resulting topics.
repeated .google.pubsub.v1.Topic topics = 1;
Returns
Type Description List <? extends com.google.pubsub.v1.TopicOrBuilder >
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
public ListTopicsResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListTopicsResponse . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeFrom(ListTopicsResponse other)
public ListTopicsResponse . Builder mergeFrom ( ListTopicsResponse other )
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListTopicsResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
removeTopics(int index)
public ListTopicsResponse . Builder removeTopics ( int index )
The resulting topics.
repeated .google.pubsub.v1.Topic topics = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListTopicsResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
Name Description value String
The nextPageToken to set.
Returns
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
Name Description value ByteString
The bytes for nextPageToken to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListTopicsResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ListTopicsResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]