public static enum Subscription.DeliveryConfig.DeliveryRequirement extends Enum<Subscription.DeliveryConfig.DeliveryRequirement> implements com.google.protobuf.ProtocolMessageEnum
When this subscription should send messages to subscribers relative to messages persistence in storage. For details, see [Creating Lite subscriptions](https://cloud.google.com/pubsub/lite/docs/subscriptions#creating_lite_subscriptions).Protobuf enum
google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement| Enum Constant and Description |
|---|
DELIVER_AFTER_STORED
The server will not deliver a published message to subscribers until
the message has been successfully written to storage.
|
DELIVER_IMMEDIATELY
The server does not wait for a published message to be successfully
written to storage before delivering it to subscribers.
|
DELIVERY_REQUIREMENT_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DELIVER_AFTER_STORED_VALUE
The server will not deliver a published message to subscribers until
the message has been successfully written to storage.
|
static int |
DELIVER_IMMEDIATELY_VALUE
The server does not wait for a published message to be successfully
written to storage before delivering it to subscribers.
|
static int |
DELIVERY_REQUIREMENT_UNSPECIFIED_VALUE
Default value.
|
| Modifier and Type | Method and Description |
|---|---|
static Subscription.DeliveryConfig.DeliveryRequirement |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Subscription.DeliveryConfig.DeliveryRequirement> |
internalGetValueMap() |
static Subscription.DeliveryConfig.DeliveryRequirement |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Subscription.DeliveryConfig.DeliveryRequirement |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Subscription.DeliveryConfig.DeliveryRequirement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Subscription.DeliveryConfig.DeliveryRequirement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Subscription.DeliveryConfig.DeliveryRequirement DELIVERY_REQUIREMENT_UNSPECIFIED
Default value. This value is unused.
DELIVERY_REQUIREMENT_UNSPECIFIED = 0;public static final Subscription.DeliveryConfig.DeliveryRequirement DELIVER_IMMEDIATELY
The server does not wait for a published message to be successfully written to storage before delivering it to subscribers.
DELIVER_IMMEDIATELY = 1;public static final Subscription.DeliveryConfig.DeliveryRequirement DELIVER_AFTER_STORED
The server will not deliver a published message to subscribers until the message has been successfully written to storage. This will result in higher end-to-end latency, but consistent delivery.
DELIVER_AFTER_STORED = 2;public static final Subscription.DeliveryConfig.DeliveryRequirement UNRECOGNIZED
public static final int DELIVERY_REQUIREMENT_UNSPECIFIED_VALUE
Default value. This value is unused.
DELIVERY_REQUIREMENT_UNSPECIFIED = 0;public static final int DELIVER_IMMEDIATELY_VALUE
The server does not wait for a published message to be successfully written to storage before delivering it to subscribers.
DELIVER_IMMEDIATELY = 1;public static final int DELIVER_AFTER_STORED_VALUE
The server will not deliver a published message to subscribers until the message has been successfully written to storage. This will result in higher end-to-end latency, but consistent delivery.
DELIVER_AFTER_STORED = 2;public static Subscription.DeliveryConfig.DeliveryRequirement[] values()
for (Subscription.DeliveryConfig.DeliveryRequirement c : Subscription.DeliveryConfig.DeliveryRequirement.values()) System.out.println(c);
public static Subscription.DeliveryConfig.DeliveryRequirement valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Subscription.DeliveryConfig.DeliveryRequirement valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Subscription.DeliveryConfig.DeliveryRequirement forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Subscription.DeliveryConfig.DeliveryRequirement> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Subscription.DeliveryConfig.DeliveryRequirement valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.