Class SubscribeResponse (1.8.0)

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

MESSAGES_FIELD_NUMBER

public static final int MESSAGES_FIELD_NUMBER
Field Value
TypeDescription
int

SEEK_FIELD_NUMBER

public static final int SEEK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SubscribeResponse getDefaultInstance()
Returns
TypeDescription
SubscribeResponse

getDescriptor()

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

newBuilder()

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

newBuilder(SubscribeResponse prototype)

public static SubscribeResponse.Builder newBuilder(SubscribeResponse prototype)
Parameter
NameDescription
prototypeSubscribeResponse
Returns
TypeDescription
SubscribeResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SubscribeResponse getDefaultInstanceForType()
Returns
TypeDescription
SubscribeResponse

getInitial()

public InitialSubscribeResponse getInitial()

Initial response on the stream.

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

Returns
TypeDescription
InitialSubscribeResponse

The initial.

getInitialOrBuilder()

public InitialSubscribeResponseOrBuilder getInitialOrBuilder()

Initial response on the stream.

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

Returns
TypeDescription
InitialSubscribeResponseOrBuilder

getMessages()

public MessageResponse getMessages()

Response containing messages from the topic partition.

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

Returns
TypeDescription
MessageResponse

The messages.

getMessagesOrBuilder()

public MessageResponseOrBuilder getMessagesOrBuilder()

Response containing messages from the topic partition.

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

Returns
TypeDescription
MessageResponseOrBuilder

getParserForType()

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

getResponseCase()

public SubscribeResponse.ResponseCase getResponseCase()
Returns
TypeDescription
SubscribeResponse.ResponseCase

getSeek()

public SeekResponse getSeek()

Response to a Seek operation.

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

Returns
TypeDescription
SeekResponse

The seek.

getSeekOrBuilder()

public SeekResponseOrBuilder getSeekOrBuilder()

Response to a Seek operation.

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

Returns
TypeDescription
SeekResponseOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasInitial()

public boolean hasInitial()

Initial response on the stream.

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

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

Whether the messages field is set.

hasSeek()

public boolean hasSeek()

Response to a Seek operation.

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

Returns
TypeDescription
boolean

Whether the seek field is set.

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 SubscribeResponse.Builder newBuilderForType()
Returns
TypeDescription
SubscribeResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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