Class ListTopicSubscriptionsResponse.Builder (1.14.2)

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

Response for ListTopicSubscriptions.

Protobuf type google.cloud.pubsublite.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)

The names of subscriptions attached to the topic. The order of the subscriptions is unspecified.

repeated string subscriptions = 1;

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)

The names of subscriptions attached to the topic. The order of the subscriptions is unspecified.

repeated string subscriptions = 1;

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)

The names of subscriptions attached to the topic. The order of the subscriptions is unspecified.

repeated string subscriptions = 1;

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()

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
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()

The names of subscriptions attached to the topic. The order of the subscriptions is unspecified.

repeated string subscriptions = 1;

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()

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 String getSubscriptions(int index)

The names of subscriptions attached to the topic. The order of the subscriptions is unspecified.

repeated string subscriptions = 1;

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)

The names of subscriptions attached to the topic. The order of the subscriptions is unspecified.

repeated string subscriptions = 1;

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()

The names of subscriptions attached to the topic. The order of the subscriptions is unspecified.

repeated string subscriptions = 1;

Returns
Type Description
int

The count of subscriptions.

getSubscriptionsList()

public ProtocolStringList getSubscriptionsList()

The names of subscriptions attached to the topic. The order of the subscriptions is unspecified.

repeated string subscriptions = 1;

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(ListTopicSubscriptionsResponse other)

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

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

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)

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
Type Description
ListTopicSubscriptionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListTopicSubscriptionsResponse.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
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)

The names of subscriptions attached to the topic. The order of the subscriptions is unspecified.

repeated string subscriptions = 1;

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