Class SequencedMessage (1.9.4)

public final class SequencedMessage extends GeneratedMessageV3 implements SequencedMessageOrBuilder

A message that has been stored and sequenced by the Pub/Sub Lite system.

Protobuf type google.cloud.pubsublite.v1.SequencedMessage

Static Fields

CURSOR_FIELD_NUMBER

public static final int CURSOR_FIELD_NUMBER
Field Value
TypeDescription
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

PUBLISH_TIME_FIELD_NUMBER

public static final int PUBLISH_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

SIZE_BYTES_FIELD_NUMBER

public static final int SIZE_BYTES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SequencedMessage getDefaultInstance()
Returns
TypeDescription
SequencedMessage

getDescriptor()

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

newBuilder()

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

newBuilder(SequencedMessage prototype)

public static SequencedMessage.Builder newBuilder(SequencedMessage prototype)
Parameter
NameDescription
prototypeSequencedMessage
Returns
TypeDescription
SequencedMessage.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCursor()

public Cursor getCursor()

The position of a message within the partition where it is stored.

.google.cloud.pubsublite.v1.Cursor cursor = 1;

Returns
TypeDescription
Cursor

The cursor.

getCursorOrBuilder()

public CursorOrBuilder getCursorOrBuilder()

The position of a message within the partition where it is stored.

.google.cloud.pubsublite.v1.Cursor cursor = 1;

Returns
TypeDescription
CursorOrBuilder

getDefaultInstanceForType()

public SequencedMessage getDefaultInstanceForType()
Returns
TypeDescription
SequencedMessage

getMessage()

public PubSubMessage getMessage()

The user message.

.google.cloud.pubsublite.v1.PubSubMessage message = 3;

Returns
TypeDescription
PubSubMessage

The message.

getMessageOrBuilder()

public PubSubMessageOrBuilder getMessageOrBuilder()

The user message.

.google.cloud.pubsublite.v1.PubSubMessage message = 3;

Returns
TypeDescription
PubSubMessageOrBuilder

getParserForType()

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

getPublishTime()

public Timestamp getPublishTime()

The time when the message was received by the server when it was first published.

.google.protobuf.Timestamp publish_time = 2;

Returns
TypeDescription
Timestamp

The publishTime.

getPublishTimeOrBuilder()

public TimestampOrBuilder getPublishTimeOrBuilder()

The time when the message was received by the server when it was first published.

.google.protobuf.Timestamp publish_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSizeBytes()

public long getSizeBytes()

The size in bytes of this message for flow control and quota purposes.

int64 size_bytes = 4;

Returns
TypeDescription
long

The sizeBytes.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCursor()

public boolean hasCursor()

The position of a message within the partition where it is stored.

.google.cloud.pubsublite.v1.Cursor cursor = 1;

Returns
TypeDescription
boolean

Whether the cursor field is set.

hasMessage()

public boolean hasMessage()

The user message.

.google.cloud.pubsublite.v1.PubSubMessage message = 3;

Returns
TypeDescription
boolean

Whether the message field is set.

hasPublishTime()

public boolean hasPublishTime()

The time when the message was received by the server when it was first published.

.google.protobuf.Timestamp publish_time = 2;

Returns
TypeDescription
boolean

Whether the publishTime 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 SequencedMessage.Builder newBuilderForType()
Returns
TypeDescription
SequencedMessage.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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