Class ListTopicsResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ListTopicsResponse.Builder>
-
- com.google.cloud.pubsublite.proto.ListTopicsResponse.Builder
-
- All Implemented Interfaces:
ListTopicsResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ListTopicsResponse
public static final class ListTopicsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListTopicsResponse.Builder> implements ListTopicsResponseOrBuilder
Response for ListTopics.
Protobuf typegoogle.cloud.pubsublite.v1.ListTopicsResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListTopicsResponse.Builder
addAllTopics(Iterable<? extends Topic> values)
The list of topic in the requested parent.ListTopicsResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListTopicsResponse.Builder
addTopics(int index, Topic value)
The list of topic in the requested parent.ListTopicsResponse.Builder
addTopics(int index, Topic.Builder builderForValue)
The list of topic in the requested parent.ListTopicsResponse.Builder
addTopics(Topic value)
The list of topic in the requested parent.ListTopicsResponse.Builder
addTopics(Topic.Builder builderForValue)
The list of topic in the requested parent.Topic.Builder
addTopicsBuilder()
The list of topic in the requested parent.Topic.Builder
addTopicsBuilder(int index)
The list of topic in the requested parent.ListTopicsResponse
build()
ListTopicsResponse
buildPartial()
ListTopicsResponse.Builder
clear()
ListTopicsResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ListTopicsResponse.Builder
clearNextPageToken()
A token that can be sent as `page_token` to retrieve the next page of results.ListTopicsResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ListTopicsResponse.Builder
clearTopics()
The list of topic in the requested parent.ListTopicsResponse.Builder
clone()
ListTopicsResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getNextPageToken()
A token that can be sent as `page_token` to retrieve the next page of results.com.google.protobuf.ByteString
getNextPageTokenBytes()
A token that can be sent as `page_token` to retrieve the next page of results.Topic
getTopics(int index)
The list of topic in the requested parent.Topic.Builder
getTopicsBuilder(int index)
The list of topic in the requested parent.List<Topic.Builder>
getTopicsBuilderList()
The list of topic in the requested parent.int
getTopicsCount()
The list of topic in the requested parent.List<Topic>
getTopicsList()
The list of topic in the requested parent.TopicOrBuilder
getTopicsOrBuilder(int index)
The list of topic in the requested parent.List<? extends TopicOrBuilder>
getTopicsOrBuilderList()
The list of topic in the requested parent.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ListTopicsResponse.Builder
mergeFrom(ListTopicsResponse other)
ListTopicsResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ListTopicsResponse.Builder
mergeFrom(com.google.protobuf.Message other)
ListTopicsResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ListTopicsResponse.Builder
removeTopics(int index)
The list of topic in the requested parent.ListTopicsResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListTopicsResponse.Builder
setNextPageToken(String value)
A token that can be sent as `page_token` to retrieve the next page of results.ListTopicsResponse.Builder
setNextPageTokenBytes(com.google.protobuf.ByteString value)
A token that can be sent as `page_token` to retrieve the next page of results.ListTopicsResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ListTopicsResponse.Builder
setTopics(int index, Topic value)
The list of topic in the requested parent.ListTopicsResponse.Builder
setTopics(int index, Topic.Builder builderForValue)
The list of topic in the requested parent.ListTopicsResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListTopicsResponse.Builder>
-
clear
public ListTopicsResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListTopicsResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListTopicsResponse.Builder>
-
getDefaultInstanceForType
public ListTopicsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ListTopicsResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ListTopicsResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ListTopicsResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListTopicsResponse.Builder>
-
setField
public ListTopicsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListTopicsResponse.Builder>
-
clearField
public ListTopicsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListTopicsResponse.Builder>
-
clearOneof
public ListTopicsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListTopicsResponse.Builder>
-
setRepeatedField
public ListTopicsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListTopicsResponse.Builder>
-
addRepeatedField
public ListTopicsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListTopicsResponse.Builder>
-
mergeFrom
public ListTopicsResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListTopicsResponse.Builder>
-
mergeFrom
public ListTopicsResponse.Builder mergeFrom(ListTopicsResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListTopicsResponse.Builder>
-
mergeFrom
public ListTopicsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListTopicsResponse.Builder>
- Throws:
IOException
-
getTopicsList
public List<Topic> getTopicsList()
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
- Specified by:
getTopicsList
in interfaceListTopicsResponseOrBuilder
-
getTopicsCount
public int getTopicsCount()
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
- Specified by:
getTopicsCount
in interfaceListTopicsResponseOrBuilder
-
getTopics
public Topic getTopics(int index)
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
- Specified by:
getTopics
in interfaceListTopicsResponseOrBuilder
-
setTopics
public ListTopicsResponse.Builder setTopics(int index, Topic value)
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
-
setTopics
public ListTopicsResponse.Builder setTopics(int index, Topic.Builder builderForValue)
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
-
addTopics
public ListTopicsResponse.Builder addTopics(Topic value)
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
-
addTopics
public ListTopicsResponse.Builder addTopics(int index, Topic value)
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
-
addTopics
public ListTopicsResponse.Builder addTopics(Topic.Builder builderForValue)
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
-
addTopics
public ListTopicsResponse.Builder addTopics(int index, Topic.Builder builderForValue)
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
-
addAllTopics
public ListTopicsResponse.Builder addAllTopics(Iterable<? extends Topic> values)
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
-
clearTopics
public ListTopicsResponse.Builder clearTopics()
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
-
removeTopics
public ListTopicsResponse.Builder removeTopics(int index)
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
-
getTopicsBuilder
public Topic.Builder getTopicsBuilder(int index)
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
-
getTopicsOrBuilder
public TopicOrBuilder getTopicsOrBuilder(int index)
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
- Specified by:
getTopicsOrBuilder
in interfaceListTopicsResponseOrBuilder
-
getTopicsOrBuilderList
public List<? extends TopicOrBuilder> getTopicsOrBuilderList()
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
- Specified by:
getTopicsOrBuilderList
in interfaceListTopicsResponseOrBuilder
-
addTopicsBuilder
public Topic.Builder addTopicsBuilder()
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
-
addTopicsBuilder
public Topic.Builder addTopicsBuilder(int index)
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
-
getTopicsBuilderList
public List<Topic.Builder> getTopicsBuilderList()
The list of topic in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.pubsublite.v1.Topic topics = 1;
-
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;
- Specified by:
getNextPageToken
in interfaceListTopicsResponseOrBuilder
- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.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;
- Specified by:
getNextPageTokenBytes
in interfaceListTopicsResponseOrBuilder
- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
public ListTopicsResponse.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;
- Parameters:
value
- The nextPageToken to set.- Returns:
- This builder for chaining.
-
clearNextPageToken
public ListTopicsResponse.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:
- This builder for chaining.
-
setNextPageTokenBytes
public ListTopicsResponse.Builder setNextPageTokenBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for nextPageToken to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ListTopicsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListTopicsResponse.Builder>
-
mergeUnknownFields
public final ListTopicsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListTopicsResponse.Builder>
-
-