Class SequencedMessage.Builder (1.13.8)

public static final class SequencedMessage.Builder extends GeneratedMessageV3.Builder<SequencedMessage.Builder> implements SequencedMessageOrBuilder

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

Protobuf type google.cloud.pubsublite.v1.SequencedMessage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SequencedMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SequencedMessage.Builder
Overrides

build()

public SequencedMessage build()
Returns
Type Description
SequencedMessage

buildPartial()

public SequencedMessage buildPartial()
Returns
Type Description
SequencedMessage

clear()

public SequencedMessage.Builder clear()
Returns
Type Description
SequencedMessage.Builder
Overrides

clearCursor()

public SequencedMessage.Builder clearCursor()

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

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

Returns
Type Description
SequencedMessage.Builder

clearField(Descriptors.FieldDescriptor field)

public SequencedMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SequencedMessage.Builder
Overrides

clearMessage()

public SequencedMessage.Builder clearMessage()

The user message.

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

Returns
Type Description
SequencedMessage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SequencedMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SequencedMessage.Builder
Overrides

clearPublishTime()

public SequencedMessage.Builder clearPublishTime()

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

.google.protobuf.Timestamp publish_time = 2;

Returns
Type Description
SequencedMessage.Builder

clearSizeBytes()

public SequencedMessage.Builder clearSizeBytes()

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

int64 size_bytes = 4;

Returns
Type Description
SequencedMessage.Builder

This builder for chaining.

clone()

public SequencedMessage.Builder clone()
Returns
Type Description
SequencedMessage.Builder
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
Type Description
Cursor

The cursor.

getCursorBuilder()

public Cursor.Builder getCursorBuilder()

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

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

Returns
Type Description
Cursor.Builder

getCursorOrBuilder()

public CursorOrBuilder getCursorOrBuilder()

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

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

Returns
Type Description
CursorOrBuilder

getDefaultInstanceForType()

public SequencedMessage getDefaultInstanceForType()
Returns
Type Description
SequencedMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMessage()

public PubSubMessage getMessage()

The user message.

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

Returns
Type Description
PubSubMessage

The message.

getMessageBuilder()

public PubSubMessage.Builder getMessageBuilder()

The user message.

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

Returns
Type Description
PubSubMessage.Builder

getMessageOrBuilder()

public PubSubMessageOrBuilder getMessageOrBuilder()

The user message.

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

Returns
Type Description
PubSubMessageOrBuilder

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
Type Description
Timestamp

The publishTime.

getPublishTimeBuilder()

public Timestamp.Builder getPublishTimeBuilder()

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

.google.protobuf.Timestamp publish_time = 2;

Returns
Type Description
Builder

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
Type Description
TimestampOrBuilder

getSizeBytes()

public long getSizeBytes()

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

int64 size_bytes = 4;

Returns
Type Description
long

The sizeBytes.

hasCursor()

public boolean hasCursor()

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

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

Returns
Type Description
boolean

Whether the cursor field is set.

hasMessage()

public boolean hasMessage()

The user message.

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

Returns
Type Description
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
Type Description
boolean

Whether the publishTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCursor(Cursor value)

public SequencedMessage.Builder mergeCursor(Cursor value)

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

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

Parameter
Name Description
value Cursor
Returns
Type Description
SequencedMessage.Builder

mergeFrom(SequencedMessage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SequencedMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SequencedMessage.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SequencedMessage.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SequencedMessage.Builder
Overrides

mergeMessage(PubSubMessage value)

public SequencedMessage.Builder mergeMessage(PubSubMessage value)

The user message.

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

Parameter
Name Description
value PubSubMessage
Returns
Type Description
SequencedMessage.Builder

mergePublishTime(Timestamp value)

public SequencedMessage.Builder mergePublishTime(Timestamp value)

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

.google.protobuf.Timestamp publish_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
SequencedMessage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SequencedMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SequencedMessage.Builder
Overrides

setCursor(Cursor value)

public SequencedMessage.Builder setCursor(Cursor value)

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

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

Parameter
Name Description
value Cursor
Returns
Type Description
SequencedMessage.Builder

setCursor(Cursor.Builder builderForValue)

public SequencedMessage.Builder setCursor(Cursor.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Cursor.Builder
Returns
Type Description
SequencedMessage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SequencedMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SequencedMessage.Builder
Overrides

setMessage(PubSubMessage value)

public SequencedMessage.Builder setMessage(PubSubMessage value)

The user message.

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

Parameter
Name Description
value PubSubMessage
Returns
Type Description
SequencedMessage.Builder

setMessage(PubSubMessage.Builder builderForValue)

public SequencedMessage.Builder setMessage(PubSubMessage.Builder builderForValue)

The user message.

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

Parameter
Name Description
builderForValue PubSubMessage.Builder
Returns
Type Description
SequencedMessage.Builder

setPublishTime(Timestamp value)

public SequencedMessage.Builder setPublishTime(Timestamp value)

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

.google.protobuf.Timestamp publish_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
SequencedMessage.Builder

setPublishTime(Timestamp.Builder builderForValue)

public SequencedMessage.Builder setPublishTime(Timestamp.Builder builderForValue)

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

.google.protobuf.Timestamp publish_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SequencedMessage.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SequencedMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SequencedMessage.Builder
Overrides

setSizeBytes(long value)

public SequencedMessage.Builder setSizeBytes(long value)

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

int64 size_bytes = 4;

Parameter
Name Description
value long

The sizeBytes to set.

Returns
Type Description
SequencedMessage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SequencedMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SequencedMessage.Builder
Overrides