Class ListTopicSubscriptionsResponse (1.11.2)

public final class ListTopicSubscriptionsResponse extends GeneratedMessageV3 implements ListTopicSubscriptionsResponseOrBuilder

Response for ListTopicSubscriptions.

Protobuf type google.cloud.pubsublite.v1.ListTopicSubscriptionsResponse

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ListTopicSubscriptionsResponse

Static Fields

NEXT_PAGE_TOKEN_FIELD_NUMBER

public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

SUBSCRIPTIONS_FIELD_NUMBER

public static final int SUBSCRIPTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ListTopicSubscriptionsResponse getDefaultInstance()
Returns
TypeDescription
ListTopicSubscriptionsResponse

getDescriptor()

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

newBuilder()

public static ListTopicSubscriptionsResponse.Builder newBuilder()
Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder

newBuilder(ListTopicSubscriptionsResponse prototype)

public static ListTopicSubscriptionsResponse.Builder newBuilder(ListTopicSubscriptionsResponse prototype)
Parameter
NameDescription
prototypeListTopicSubscriptionsResponse
Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder

parseDelimitedFrom(InputStream input)

public static ListTopicSubscriptionsResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListTopicSubscriptionsResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListTopicSubscriptionsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTopicSubscriptionsResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ListTopicSubscriptionsResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ListTopicSubscriptionsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ListTopicSubscriptionsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTopicSubscriptionsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ListTopicSubscriptionsResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ListTopicSubscriptionsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ListTopicSubscriptionsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTopicSubscriptionsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ListTopicSubscriptionsResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ListTopicSubscriptionsResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ListTopicSubscriptionsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTopicSubscriptionsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ListTopicSubscriptionsResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ListTopicSubscriptionsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ListTopicSubscriptionsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTopicSubscriptionsResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ListTopicSubscriptionsResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ListTopicSubscriptionsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ListTopicSubscriptionsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListTopicSubscriptionsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ListTopicSubscriptionsResponse> parser()
Returns
TypeDescription
Parser<ListTopicSubscriptionsResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ListTopicSubscriptionsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListTopicSubscriptionsResponse

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.

getParserForType()

public Parser<ListTopicSubscriptionsResponse> getParserForType()
Returns
TypeDescription
Parser<ListTopicSubscriptionsResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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
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. The order of the subscriptions is unspecified.

repeated string subscriptions = 1;

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. The order of the subscriptions is unspecified.

repeated string subscriptions = 1;

Returns
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the subscriptions.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ListTopicSubscriptionsResponse.Builder newBuilderForType()
Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ListTopicSubscriptionsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ListTopicSubscriptionsResponse.Builder toBuilder()
Returns
TypeDescription
ListTopicSubscriptionsResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException