Class ListTopicSubscriptionsResponse.Builder (1.135.0)

public static final class ListTopicSubscriptionsResponse.Builder extends GeneratedMessageV3.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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListTopicSubscriptionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListTopicSubscriptionsResponse.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public ListTopicSubscriptionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListTopicSubscriptionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListTopicSubscriptionsResponse.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListTopicSubscriptionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListTopicSubscriptionsResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ListTopicSubscriptionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListTopicSubscriptionsResponse.Builder
Overrides

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.

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

public ListTopicSubscriptionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListTopicSubscriptionsResponse.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final ListTopicSubscriptionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListTopicSubscriptionsResponse.Builder
Overrides