public static final class ListSubscriptionsResponse.Builder extends GeneratedMessageV3.Builder<ListSubscriptionsResponse.Builder> implements ListSubscriptionsResponseOrBuilder
Response for ListSubscriptions.
Protobuf type google.cloud.pubsublite.v1.ListSubscriptionsResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllSubscriptions(Iterable<? extends Subscription> values)
public ListSubscriptionsResponse.Builder addAllSubscriptions(Iterable<? extends Subscription> values)
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.pubsublite.proto.Subscription>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListSubscriptionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addSubscriptions(Subscription value)
public ListSubscriptionsResponse.Builder addSubscriptions(Subscription value)
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Parameter
Returns
addSubscriptions(Subscription.Builder builderForValue)
public ListSubscriptionsResponse.Builder addSubscriptions(Subscription.Builder builderForValue)
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Parameter
Returns
addSubscriptions(int index, Subscription value)
public ListSubscriptionsResponse.Builder addSubscriptions(int index, Subscription value)
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Parameters
Returns
addSubscriptions(int index, Subscription.Builder builderForValue)
public ListSubscriptionsResponse.Builder addSubscriptions(int index, Subscription.Builder builderForValue)
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Parameters
Returns
addSubscriptionsBuilder()
public Subscription.Builder addSubscriptionsBuilder()
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Returns
addSubscriptionsBuilder(int index)
public Subscription.Builder addSubscriptionsBuilder(int index)
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Parameter
Returns
build()
public ListSubscriptionsResponse build()
Returns
buildPartial()
public ListSubscriptionsResponse buildPartial()
Returns
clear()
public ListSubscriptionsResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListSubscriptionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNextPageToken()
public ListSubscriptionsResponse.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
clearOneof(Descriptors.OneofDescriptor oneof)
public ListSubscriptionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSubscriptions()
public ListSubscriptionsResponse.Builder clearSubscriptions()
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Returns
clone()
public ListSubscriptionsResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListSubscriptionsResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.
|
getSubscriptions(int index)
public Subscription getSubscriptions(int index)
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Parameter
Returns
getSubscriptionsBuilder(int index)
public Subscription.Builder getSubscriptionsBuilder(int index)
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Parameter
Returns
getSubscriptionsBuilderList()
public List<Subscription.Builder> getSubscriptionsBuilderList()
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Returns
getSubscriptionsCount()
public int getSubscriptionsCount()
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Returns
getSubscriptionsList()
public List<Subscription> getSubscriptionsList()
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Returns
getSubscriptionsOrBuilder(int index)
public SubscriptionOrBuilder getSubscriptionsOrBuilder(int index)
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Parameter
Returns
getSubscriptionsOrBuilderList()
public List<? extends SubscriptionOrBuilder> getSubscriptionsOrBuilderList()
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Returns
Type | Description |
List<? extends com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListSubscriptionsResponse other)
public ListSubscriptionsResponse.Builder mergeFrom(ListSubscriptionsResponse other)
Parameter
Returns
public ListSubscriptionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListSubscriptionsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListSubscriptionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeSubscriptions(int index)
public ListSubscriptionsResponse.Builder removeSubscriptions(int index)
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListSubscriptionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setNextPageToken(String value)
public ListSubscriptionsResponse.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 | String
The nextPageToken to set.
|
Returns
setNextPageTokenBytes(ByteString value)
public ListSubscriptionsResponse.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 | ByteString
The bytes for nextPageToken to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListSubscriptionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSubscriptions(int index, Subscription value)
public ListSubscriptionsResponse.Builder setSubscriptions(int index, Subscription value)
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Parameters
Returns
setSubscriptions(int index, Subscription.Builder builderForValue)
public ListSubscriptionsResponse.Builder setSubscriptions(int index, Subscription.Builder builderForValue)
The list of subscriptions in the requested parent. The order of the
subscriptions is unspecified.
repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ListSubscriptionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides