public static final class ListTopicsResponse.Builder extends GeneratedMessage.Builder<ListTopicsResponse.Builder> implements ListTopicsResponseOrBuilderResponse for ListTopics.
Protobuf type google.cloud.managedkafka.v1.ListTopicsResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ListTopicsResponse.BuilderImplements
ListTopicsResponseOrBuilderStatic 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)The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.managedkafka.v1.Topic> |
| Returns | |
|---|---|
| Type | Description |
ListTopicsResponse.Builder |
|
addTopics(Topic value)
public ListTopicsResponse.Builder addTopics(Topic value)The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Topic |
| Returns | |
|---|---|
| Type | Description |
ListTopicsResponse.Builder |
|
addTopics(Topic.Builder builderForValue)
public ListTopicsResponse.Builder addTopics(Topic.Builder builderForValue)The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Topic.Builder |
| Returns | |
|---|---|
| Type | Description |
ListTopicsResponse.Builder |
|
addTopics(int index, Topic value)
public ListTopicsResponse.Builder addTopics(int index, Topic value)The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| 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)The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Topic.Builder |
| Returns | |
|---|---|
| Type | Description |
ListTopicsResponse.Builder |
|
addTopicsBuilder()
public Topic.Builder addTopicsBuilder()The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Returns | |
|---|---|
| Type | Description |
Topic.Builder |
|
addTopicsBuilder(int index)
public Topic.Builder addTopicsBuilder(int index)The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| 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 |
|
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 | |
|---|---|
| Type | Description |
ListTopicsResponse.Builder |
This builder for chaining. |
clearTopics()
public ListTopicsResponse.Builder clearTopics()The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Returns | |
|---|---|
| Type | Description |
ListTopicsResponse.Builder |
|
getDefaultInstanceForType()
public ListTopicsResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ListTopicsResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for nextPageToken. |
getTopics(int index)
public Topic getTopics(int index)The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Topic |
|
getTopicsBuilder(int index)
public Topic.Builder getTopicsBuilder(int index)The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Topic.Builder |
|
getTopicsBuilderList()
public List<Topic.Builder> getTopicsBuilderList()The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getTopicsCount()
public int getTopicsCount()The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Returns | |
|---|---|
| Type | Description |
int |
|
getTopicsList()
public List<Topic> getTopicsList()The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Returns | |
|---|---|
| Type | Description |
List<Topic> |
|
getTopicsOrBuilder(int index)
public TopicOrBuilder getTopicsOrBuilder(int index)The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TopicOrBuilder |
|
getTopicsOrBuilderList()
public List<? extends TopicOrBuilder> getTopicsOrBuilderList()The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.managedkafka.v1.TopicOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ListTopicsResponse other)
public ListTopicsResponse.Builder mergeFrom(ListTopicsResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
ListTopicsResponse |
| Returns | |
|---|---|
| Type | Description |
ListTopicsResponse.Builder |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ListTopicsResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListTopicsResponse.Builder |
|
removeTopics(int index)
public ListTopicsResponse.Builder removeTopics(int index)The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ListTopicsResponse.Builder |
|
setNextPageToken(String value)
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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListTopicsResponse.Builder |
This builder for chaining. |
setNextPageTokenBytes(ByteString value)
public ListTopicsResponse.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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListTopicsResponse.Builder |
This builder for chaining. |
setTopics(int index, Topic value)
public ListTopicsResponse.Builder setTopics(int index, Topic value)The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| 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)The list of topics in the requested parent. The order of the topics is unspecified.
repeated .google.cloud.managedkafka.v1.Topic topics = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Topic.Builder |
| Returns | |
|---|---|
| Type | Description |
ListTopicsResponse.Builder |
|