Class SequencedMessage.Builder (1.10.0)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SequencedMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SequencedMessage.Builder
Overrides

build()

public SequencedMessage build()
Returns
TypeDescription
SequencedMessage

buildPartial()

public SequencedMessage buildPartial()
Returns
TypeDescription
SequencedMessage

clear()

public SequencedMessage.Builder clear()
Returns
TypeDescription
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
TypeDescription
SequencedMessage.Builder

clearField(Descriptors.FieldDescriptor field)

public SequencedMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SequencedMessage.Builder
Overrides

clearMessage()

public SequencedMessage.Builder clearMessage()

The user message.

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

Returns
TypeDescription
SequencedMessage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SequencedMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
SequencedMessage.Builder

This builder for chaining.

clone()

public SequencedMessage.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CursorOrBuilder

getDefaultInstanceForType()

public SequencedMessage getDefaultInstanceForType()
Returns
TypeDescription
SequencedMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessage()

public PubSubMessage getMessage()

The user message.

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

Returns
TypeDescription
PubSubMessage

The message.

getMessageBuilder()

public PubSubMessage.Builder getMessageBuilder()

The user message.

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

Returns
TypeDescription
PubSubMessage.Builder

getMessageOrBuilder()

public PubSubMessageOrBuilder getMessageOrBuilder()

The user message.

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

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

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCursor
Returns
TypeDescription
SequencedMessage.Builder

mergeFrom(SequencedMessage other)

public SequencedMessage.Builder mergeFrom(SequencedMessage other)
Parameter
NameDescription
otherSequencedMessage
Returns
TypeDescription
SequencedMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SequencedMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SequencedMessage.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SequencedMessage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SequencedMessage.Builder
Overrides

mergeMessage(PubSubMessage value)

public SequencedMessage.Builder mergeMessage(PubSubMessage value)

The user message.

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

Parameter
NameDescription
valuePubSubMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
SequencedMessage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SequencedMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueCursor
Returns
TypeDescription
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
NameDescription
builderForValueCursor.Builder
Returns
TypeDescription
SequencedMessage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SequencedMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SequencedMessage.Builder
Overrides

setMessage(PubSubMessage value)

public SequencedMessage.Builder setMessage(PubSubMessage value)

The user message.

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

Parameter
NameDescription
valuePubSubMessage
Returns
TypeDescription
SequencedMessage.Builder

setMessage(PubSubMessage.Builder builderForValue)

public SequencedMessage.Builder setMessage(PubSubMessage.Builder builderForValue)

The user message.

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

Parameter
NameDescription
builderForValuePubSubMessage.Builder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
SequencedMessage.Builder

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

public SequencedMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The sizeBytes to set.

Returns
TypeDescription
SequencedMessage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SequencedMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SequencedMessage.Builder
Overrides