Class ListTopicSubscriptionsResponse.Builder (1.147.0)

public static final class ListTopicSubscriptionsResponse.Builder extends GeneratedMessage.Builder<ListTopicSubscriptionsResponse.Builder> implements ListTopicSubscriptionsResponseOrBuilder

Response for the ListTopicSubscriptions method.

Protobuf type google.pubsub.v1.ListTopicSubscriptionsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSubscriptions(Iterable<String> values)

public ListTopicSubscriptionsResponse.Builder addAllSubscriptions(Iterable<String> values)

Optional. The names of subscriptions attached to the topic specified in the request.

repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The subscriptions to add.

Returns
Type Description
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

addSubscriptions(String value)

public ListTopicSubscriptionsResponse.Builder addSubscriptions(String value)

Optional. The names of subscriptions attached to the topic specified in the request.

repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The subscriptions to add.

Returns
Type Description
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

addSubscriptionsBytes(ByteString value)

public ListTopicSubscriptionsResponse.Builder addSubscriptionsBytes(ByteString value)

Optional. The names of subscriptions attached to the topic specified in the request.

repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the subscriptions to add.

Returns
Type Description
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

build()

public ListTopicSubscriptionsResponse build()
Returns
Type Description
ListTopicSubscriptionsResponse

buildPartial()

public ListTopicSubscriptionsResponse buildPartial()
Returns
Type Description
ListTopicSubscriptionsResponse

clear()

public ListTopicSubscriptionsResponse.Builder clear()
Returns
Type Description
ListTopicSubscriptionsResponse.Builder
Overrides

clearNextPageToken()

public ListTopicSubscriptionsResponse.Builder clearNextPageToken()

Optional. If not empty, indicates that there may be more subscriptions that match the request; this value should be passed in a new ListTopicSubscriptionsRequest to get more subscriptions.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

clearSubscriptions()

public ListTopicSubscriptionsResponse.Builder clearSubscriptions()

Optional. The names of subscriptions attached to the topic specified in the request.

repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public ListTopicSubscriptionsResponse getDefaultInstanceForType()
Returns
Type Description
ListTopicSubscriptionsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Optional. If not empty, indicates that there may be more subscriptions that match the request; this value should be passed in a new ListTopicSubscriptionsRequest to get more subscriptions.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Optional. If not empty, indicates that there may be more subscriptions that match the request; this value should be passed in a new ListTopicSubscriptionsRequest to get more subscriptions.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for nextPageToken.

getSubscriptions(int index)

public String getSubscriptions(int index)

Optional. The names of subscriptions attached to the topic specified in the request.

repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The subscriptions at the given index.

getSubscriptionsBytes(int index)

public ByteString getSubscriptionsBytes(int index)

Optional. The names of subscriptions attached to the topic specified in the request.

repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the subscriptions at the given index.

getSubscriptionsCount()

public int getSubscriptionsCount()

Optional. The names of subscriptions attached to the topic specified in the request.

repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of subscriptions.

getSubscriptionsList()

public ProtocolStringList getSubscriptionsList()

Optional. The names of subscriptions attached to the topic specified in the request.

repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the subscriptions.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListTopicSubscriptionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListTopicSubscriptionsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListTopicSubscriptionsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListTopicSubscriptionsResponse.Builder
Overrides

mergeFrom(ListTopicSubscriptionsResponse other)

public ListTopicSubscriptionsResponse.Builder mergeFrom(ListTopicSubscriptionsResponse other)
Parameter
Name Description
other ListTopicSubscriptionsResponse
Returns
Type Description
ListTopicSubscriptionsResponse.Builder

setNextPageToken(String value)

public ListTopicSubscriptionsResponse.Builder setNextPageToken(String value)

Optional. If not empty, indicates that there may be more subscriptions that match the request; this value should be passed in a new ListTopicSubscriptionsRequest to get more subscriptions.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListTopicSubscriptionsResponse.Builder setNextPageTokenBytes(ByteString value)

Optional. If not empty, indicates that there may be more subscriptions that match the request; this value should be passed in a new ListTopicSubscriptionsRequest to get more subscriptions.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

setSubscriptions(int index, String value)

public ListTopicSubscriptionsResponse.Builder setSubscriptions(int index, String value)

Optional. The names of subscriptions attached to the topic specified in the request.

repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The subscriptions to set.

Returns
Type Description
ListTopicSubscriptionsResponse.Builder

This builder for chaining.