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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SequencedMessage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SequencedMessage build()
Returns
buildPartial()
public SequencedMessage buildPartial()
Returns
clear()
public SequencedMessage.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public SequencedMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMessage()
public SequencedMessage.Builder clearMessage()
The user message.
.google.cloud.pubsublite.v1.PubSubMessage message = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SequencedMessage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clearSizeBytes()
public SequencedMessage.Builder clearSizeBytes()
The size in bytes of this message for flow control and quota purposes.
int64 size_bytes = 4;
Returns
clone()
public SequencedMessage.Builder clone()
Returns
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
getCursorOrBuilder()
public CursorOrBuilder getCursorOrBuilder()
The position of a message within the partition where it is stored.
.google.cloud.pubsublite.v1.Cursor cursor = 1;
Returns
getDefaultInstanceForType()
public SequencedMessage getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMessage()
public PubSubMessage getMessage()
The user message.
.google.cloud.pubsublite.v1.PubSubMessage message = 3;
Returns
getMessageBuilder()
public PubSubMessage.Builder getMessageBuilder()
The user message.
.google.cloud.pubsublite.v1.PubSubMessage message = 3;
Returns
getMessageOrBuilder()
public PubSubMessageOrBuilder getMessageOrBuilder()
The user message.
.google.cloud.pubsublite.v1.PubSubMessage message = 3;
Returns
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(SequencedMessage other)
public SequencedMessage.Builder mergeFrom(SequencedMessage other)
Parameter
Returns
public SequencedMessage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SequencedMessage.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeMessage(PubSubMessage value)
public SequencedMessage.Builder mergeMessage(PubSubMessage value)
The user message.
.google.cloud.pubsublite.v1.PubSubMessage message = 3;
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SequencedMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SequencedMessage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMessage(PubSubMessage value)
public SequencedMessage.Builder setMessage(PubSubMessage value)
The user message.
.google.cloud.pubsublite.v1.PubSubMessage message = 3;
Parameter
Returns
setMessage(PubSubMessage.Builder builderForValue)
public SequencedMessage.Builder setMessage(PubSubMessage.Builder builderForValue)
The user message.
.google.cloud.pubsublite.v1.PubSubMessage message = 3;
Parameter
Returns
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
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SequencedMessage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final SequencedMessage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides