Class ListSubscriptionsResponse.Builder

public static final class ListSubscriptionsResponse.Builder extends GeneratedMessageV3.Builder<ListSubscriptionsResponse.Builder> implements ListSubscriptionsResponseOrBuilder

Response for ListSubscriptions.

Protobuf type google.cloud.pubsublite.v1.ListSubscriptionsResponse

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
NameDescription
valuesIterable<? extends com.google.cloud.pubsublite.proto.Subscription>
Returns
TypeDescription
ListSubscriptionsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListSubscriptionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListSubscriptionsResponse.Builder
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
NameDescription
valueSubscription
Returns
TypeDescription
ListSubscriptionsResponse.Builder

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
NameDescription
builderForValueSubscription.Builder
Returns
TypeDescription
ListSubscriptionsResponse.Builder

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
NameDescription
indexint
valueSubscription
Returns
TypeDescription
ListSubscriptionsResponse.Builder

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
NameDescription
indexint
builderForValueSubscription.Builder
Returns
TypeDescription
ListSubscriptionsResponse.Builder

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
TypeDescription
Subscription.Builder

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
NameDescription
indexint
Returns
TypeDescription
Subscription.Builder

build()

public ListSubscriptionsResponse build()
Returns
TypeDescription
ListSubscriptionsResponse

buildPartial()

public ListSubscriptionsResponse buildPartial()
Returns
TypeDescription
ListSubscriptionsResponse

clear()

public ListSubscriptionsResponse.Builder clear()
Returns
TypeDescription
ListSubscriptionsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListSubscriptionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListSubscriptionsResponse.Builder
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
TypeDescription
ListSubscriptionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListSubscriptionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListSubscriptionsResponse.Builder
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
TypeDescription
ListSubscriptionsResponse.Builder

clone()

public ListSubscriptionsResponse.Builder clone()
Returns
TypeDescription
ListSubscriptionsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListSubscriptionsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListSubscriptionsResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Subscription

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
NameDescription
indexint
Returns
TypeDescription
Subscription.Builder

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
TypeDescription
List<Builder>

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
TypeDescription
int

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
TypeDescription
List<Subscription>

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
NameDescription
indexint
Returns
TypeDescription
SubscriptionOrBuilder

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
TypeDescription
List<? extends com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListSubscriptionsResponse other)

public ListSubscriptionsResponse.Builder mergeFrom(ListSubscriptionsResponse other)
Parameter
NameDescription
otherListSubscriptionsResponse
Returns
TypeDescription
ListSubscriptionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListSubscriptionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListSubscriptionsResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListSubscriptionsResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListSubscriptionsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListSubscriptionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListSubscriptionsResponse.Builder
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
NameDescription
indexint
Returns
TypeDescription
ListSubscriptionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListSubscriptionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListSubscriptionsResponse.Builder
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListSubscriptionsResponse.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListSubscriptionsResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListSubscriptionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListSubscriptionsResponse.Builder
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
NameDescription
indexint
valueSubscription
Returns
TypeDescription
ListSubscriptionsResponse.Builder

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
NameDescription
indexint
builderForValueSubscription.Builder
Returns
TypeDescription
ListSubscriptionsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListSubscriptionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListSubscriptionsResponse.Builder
Overrides