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