Class ListTopicSubscriptionsResponse.Builder (1.122.2)

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

Methods

addAllSubscriptions(Iterable<String> values)

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

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

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

Parameter
NameDescription
valuesIterable<String>

The subscriptions to add.

Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListTopicSubscriptionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder
Overrides

addSubscriptions(String value)

public ListTopicSubscriptionsResponse.Builder addSubscriptions(String value)

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

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

Parameter
NameDescription
valueString

The subscriptions to add.

Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

addSubscriptionsBytes(ByteString value)

public ListTopicSubscriptionsResponse.Builder addSubscriptionsBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes of the subscriptions to add.

Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

build()

public ListTopicSubscriptionsResponse build()
Returns
TypeDescription
ListTopicSubscriptionsResponse

buildPartial()

public ListTopicSubscriptionsResponse buildPartial()
Returns
TypeDescription
ListTopicSubscriptionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListTopicSubscriptionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder
Overrides

clearNextPageToken()

public ListTopicSubscriptionsResponse.Builder clearNextPageToken()

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;

Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListTopicSubscriptionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder
Overrides

clearSubscriptions()

public ListTopicSubscriptionsResponse.Builder clearSubscriptions()

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

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

Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListTopicSubscriptionsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListTopicSubscriptionsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

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;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getSubscriptions(int index)

public String getSubscriptions(int index)

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

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The subscriptions at the given index.

getSubscriptionsBytes(int index)

public ByteString getSubscriptionsBytes(int index)

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

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

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the subscriptions at the given index.

getSubscriptionsCount()

public int getSubscriptionsCount()

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

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

Returns
TypeDescription
int

The count of subscriptions.

getSubscriptionsList()

public ProtocolStringList getSubscriptionsList()

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

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

Returns
TypeDescription
ProtocolStringList

A list containing the subscriptions.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ListTopicSubscriptionsResponse other)

public ListTopicSubscriptionsResponse.Builder mergeFrom(ListTopicSubscriptionsResponse other)
Parameter
NameDescription
otherListTopicSubscriptionsResponse
Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListTopicSubscriptionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ListTopicSubscriptionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder
Overrides

setNextPageToken(String value)

public ListTopicSubscriptionsResponse.Builder setNextPageToken(String value)

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;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListTopicSubscriptionsResponse.Builder setNextPageTokenBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder
Overrides

setSubscriptions(int index, String value)

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

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

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

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The subscriptions to set.

Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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