Class SubscribeResponse (1.13.3)

public final class SubscribeResponse extends GeneratedMessageV3 implements SubscribeResponseOrBuilder

Response to SubscribeRequest.

Protobuf type google.cloud.pubsublite.v1.SubscribeResponse

Static Fields

INITIAL_FIELD_NUMBER

public static final int INITIAL_FIELD_NUMBER
Field Value
Type Description
int

MESSAGES_FIELD_NUMBER

public static final int MESSAGES_FIELD_NUMBER
Field Value
Type Description
int

SEEK_FIELD_NUMBER

public static final int SEEK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SubscribeResponse getDefaultInstance()
Returns
Type Description
SubscribeResponse

getDescriptor()

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

newBuilder()

public static SubscribeResponse.Builder newBuilder()
Returns
Type Description
SubscribeResponse.Builder

newBuilder(SubscribeResponse prototype)

public static SubscribeResponse.Builder newBuilder(SubscribeResponse prototype)
Parameter
Name Description
prototype SubscribeResponse
Returns
Type Description
SubscribeResponse.Builder

parseDelimitedFrom(InputStream input)

public static SubscribeResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SubscribeResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubscribeResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscribeResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SubscribeResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SubscribeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SubscribeResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscribeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SubscribeResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SubscribeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SubscribeResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscribeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SubscribeResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SubscribeResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SubscribeResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscribeResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SubscribeResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SubscribeResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubscribeResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscribeResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SubscribeResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SubscribeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SubscribeResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubscribeResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SubscribeResponse> parser()
Returns
Type Description
Parser<SubscribeResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SubscribeResponse getDefaultInstanceForType()
Returns
Type Description
SubscribeResponse

getInitial()

public InitialSubscribeResponse getInitial()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;

Returns
Type Description
InitialSubscribeResponse

The initial.

getInitialOrBuilder()

public InitialSubscribeResponseOrBuilder getInitialOrBuilder()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;

Returns
Type Description
InitialSubscribeResponseOrBuilder

getMessages()

public MessageResponse getMessages()

Response containing messages from the topic partition.

.google.cloud.pubsublite.v1.MessageResponse messages = 3;

Returns
Type Description
MessageResponse

The messages.

getMessagesOrBuilder()

public MessageResponseOrBuilder getMessagesOrBuilder()

Response containing messages from the topic partition.

.google.cloud.pubsublite.v1.MessageResponse messages = 3;

Returns
Type Description
MessageResponseOrBuilder

getParserForType()

public Parser<SubscribeResponse> getParserForType()
Returns
Type Description
Parser<SubscribeResponse>
Overrides

getResponseCase()

public SubscribeResponse.ResponseCase getResponseCase()
Returns
Type Description
SubscribeResponse.ResponseCase

getSeek()

public SeekResponse getSeek()

Response to a Seek operation.

.google.cloud.pubsublite.v1.SeekResponse seek = 2;

Returns
Type Description
SeekResponse

The seek.

getSeekOrBuilder()

public SeekResponseOrBuilder getSeekOrBuilder()

Response to a Seek operation.

.google.cloud.pubsublite.v1.SeekResponse seek = 2;

Returns
Type Description
SeekResponseOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasInitial()

public boolean hasInitial()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1;

Returns
Type Description
boolean

Whether the initial field is set.

hasMessages()

public boolean hasMessages()

Response containing messages from the topic partition.

.google.cloud.pubsublite.v1.MessageResponse messages = 3;

Returns
Type Description
boolean

Whether the messages field is set.

hasSeek()

public boolean hasSeek()

Response to a Seek operation.

.google.cloud.pubsublite.v1.SeekResponse seek = 2;

Returns
Type Description
boolean

Whether the seek field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SubscribeResponse.Builder newBuilderForType()
Returns
Type Description
SubscribeResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SubscribeResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SubscribeResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SubscribeResponse.Builder toBuilder()
Returns
Type Description
SubscribeResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException