public static final class ReceivedMessage.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReceivedMessage.Builder> implements ReceivedMessageOrBuilder
A message and its corresponding acknowledgment ID.Protobuf type
google.pubsub.v1.ReceivedMessage
Modifier and Type | Method and Description |
---|---|
ReceivedMessage.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ReceivedMessage |
build() |
ReceivedMessage |
buildPartial() |
ReceivedMessage.Builder |
clear() |
ReceivedMessage.Builder |
clearAckId()
This ID can be used to acknowledge the received message.
|
ReceivedMessage.Builder |
clearDeliveryAttempt()
The approximate number of times that Cloud Pub/Sub has attempted to deliver
the associated message to a subscriber.
|
ReceivedMessage.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ReceivedMessage.Builder |
clearMessage()
The message.
|
ReceivedMessage.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ReceivedMessage.Builder |
clone() |
String |
getAckId()
This ID can be used to acknowledge the received message.
|
com.google.protobuf.ByteString |
getAckIdBytes()
This ID can be used to acknowledge the received message.
|
ReceivedMessage |
getDefaultInstanceForType() |
int |
getDeliveryAttempt()
The approximate number of times that Cloud Pub/Sub has attempted to deliver
the associated message to a subscriber.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
PubsubMessage |
getMessage()
The message.
|
PubsubMessage.Builder |
getMessageBuilder()
The message.
|
PubsubMessageOrBuilder |
getMessageOrBuilder()
The message.
|
boolean |
hasMessage()
The message.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ReceivedMessage.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ReceivedMessage.Builder |
mergeFrom(com.google.protobuf.Message other) |
ReceivedMessage.Builder |
mergeFrom(ReceivedMessage other) |
ReceivedMessage.Builder |
mergeMessage(PubsubMessage value)
The message.
|
ReceivedMessage.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ReceivedMessage.Builder |
setAckId(String value)
This ID can be used to acknowledge the received message.
|
ReceivedMessage.Builder |
setAckIdBytes(com.google.protobuf.ByteString value)
This ID can be used to acknowledge the received message.
|
ReceivedMessage.Builder |
setDeliveryAttempt(int value)
The approximate number of times that Cloud Pub/Sub has attempted to deliver
the associated message to a subscriber.
|
ReceivedMessage.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ReceivedMessage.Builder |
setMessage(PubsubMessage.Builder builderForValue)
The message.
|
ReceivedMessage.Builder |
setMessage(PubsubMessage value)
The message.
|
ReceivedMessage.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ReceivedMessage.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<ReceivedMessage.Builder>
public ReceivedMessage.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<ReceivedMessage.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<ReceivedMessage.Builder>
public ReceivedMessage getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ReceivedMessage build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ReceivedMessage buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ReceivedMessage.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<ReceivedMessage.Builder>
public ReceivedMessage.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<ReceivedMessage.Builder>
public ReceivedMessage.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ReceivedMessage.Builder>
public ReceivedMessage.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ReceivedMessage.Builder>
public ReceivedMessage.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ReceivedMessage.Builder>
public ReceivedMessage.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ReceivedMessage.Builder>
public ReceivedMessage.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ReceivedMessage.Builder>
public ReceivedMessage.Builder mergeFrom(ReceivedMessage other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ReceivedMessage.Builder>
public ReceivedMessage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ReceivedMessage.Builder>
IOException
public String getAckId()
This ID can be used to acknowledge the received message.
string ack_id = 1;
getAckId
in interface ReceivedMessageOrBuilder
public com.google.protobuf.ByteString getAckIdBytes()
This ID can be used to acknowledge the received message.
string ack_id = 1;
getAckIdBytes
in interface ReceivedMessageOrBuilder
public ReceivedMessage.Builder setAckId(String value)
This ID can be used to acknowledge the received message.
string ack_id = 1;
value
- The ackId to set.public ReceivedMessage.Builder clearAckId()
This ID can be used to acknowledge the received message.
string ack_id = 1;
public ReceivedMessage.Builder setAckIdBytes(com.google.protobuf.ByteString value)
This ID can be used to acknowledge the received message.
string ack_id = 1;
value
- The bytes for ackId to set.public boolean hasMessage()
The message.
.google.pubsub.v1.PubsubMessage message = 2;
hasMessage
in interface ReceivedMessageOrBuilder
public PubsubMessage getMessage()
The message.
.google.pubsub.v1.PubsubMessage message = 2;
getMessage
in interface ReceivedMessageOrBuilder
public ReceivedMessage.Builder setMessage(PubsubMessage value)
The message.
.google.pubsub.v1.PubsubMessage message = 2;
public ReceivedMessage.Builder setMessage(PubsubMessage.Builder builderForValue)
The message.
.google.pubsub.v1.PubsubMessage message = 2;
public ReceivedMessage.Builder mergeMessage(PubsubMessage value)
The message.
.google.pubsub.v1.PubsubMessage message = 2;
public ReceivedMessage.Builder clearMessage()
The message.
.google.pubsub.v1.PubsubMessage message = 2;
public PubsubMessage.Builder getMessageBuilder()
The message.
.google.pubsub.v1.PubsubMessage message = 2;
public PubsubMessageOrBuilder getMessageOrBuilder()
The message.
.google.pubsub.v1.PubsubMessage message = 2;
getMessageOrBuilder
in interface ReceivedMessageOrBuilder
public int getDeliveryAttempt()
The approximate number of times that Cloud Pub/Sub has attempted to deliver the associated message to a subscriber. More precisely, this is 1 + (number of NACKs) + (number of ack_deadline exceeds) for this message. A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline exceeds event is whenever a message is not acknowledged within ack_deadline. Note that ack_deadline is initially Subscription.ackDeadlineSeconds, but may get extended automatically by the client library. Upon the first delivery of a given message, `delivery_attempt` will have a value of 1. The value is calculated at best effort and is approximate. If a DeadLetterPolicy is not set on the subscription, this will be 0.
int32 delivery_attempt = 3;
getDeliveryAttempt
in interface ReceivedMessageOrBuilder
public ReceivedMessage.Builder setDeliveryAttempt(int value)
The approximate number of times that Cloud Pub/Sub has attempted to deliver the associated message to a subscriber. More precisely, this is 1 + (number of NACKs) + (number of ack_deadline exceeds) for this message. A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline exceeds event is whenever a message is not acknowledged within ack_deadline. Note that ack_deadline is initially Subscription.ackDeadlineSeconds, but may get extended automatically by the client library. Upon the first delivery of a given message, `delivery_attempt` will have a value of 1. The value is calculated at best effort and is approximate. If a DeadLetterPolicy is not set on the subscription, this will be 0.
int32 delivery_attempt = 3;
value
- The deliveryAttempt to set.public ReceivedMessage.Builder clearDeliveryAttempt()
The approximate number of times that Cloud Pub/Sub has attempted to deliver the associated message to a subscriber. More precisely, this is 1 + (number of NACKs) + (number of ack_deadline exceeds) for this message. A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline exceeds event is whenever a message is not acknowledged within ack_deadline. Note that ack_deadline is initially Subscription.ackDeadlineSeconds, but may get extended automatically by the client library. Upon the first delivery of a given message, `delivery_attempt` will have a value of 1. The value is calculated at best effort and is approximate. If a DeadLetterPolicy is not set on the subscription, this will be 0.
int32 delivery_attempt = 3;
public final ReceivedMessage.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ReceivedMessage.Builder>
public final ReceivedMessage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ReceivedMessage.Builder>
Copyright © 2023 Google LLC. All rights reserved.