public static enum Subscription.State extends Enum<Subscription.State> implements com.google.protobuf.ProtocolMessageEnum
Possible states for a subscription.Protobuf enum
google.pubsub.v1.Subscription.State
Enum Constant and Description |
---|
ACTIVE
The subscription can actively receive messages
|
RESOURCE_ERROR
The subscription cannot receive messages because of an error with the
resource to which it pushes messages.
|
STATE_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
ACTIVE_VALUE
The subscription can actively receive messages
|
static int |
RESOURCE_ERROR_VALUE
The subscription cannot receive messages because of an error with the
resource to which it pushes messages.
|
static int |
STATE_UNSPECIFIED_VALUE
Default value.
|
Modifier and Type | Method and Description |
---|---|
static Subscription.State |
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.State> |
internalGetValueMap() |
static Subscription.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Subscription.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Subscription.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Subscription.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Subscription.State STATE_UNSPECIFIED
Default value. This value is unused.
STATE_UNSPECIFIED = 0;
public static final Subscription.State ACTIVE
The subscription can actively receive messages
ACTIVE = 1;
public static final Subscription.State RESOURCE_ERROR
The subscription cannot receive messages because of an error with the resource to which it pushes messages. See the more detailed error state in the corresponding configuration.
RESOURCE_ERROR = 2;
public static final Subscription.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Default value. This value is unused.
STATE_UNSPECIFIED = 0;
public static final int ACTIVE_VALUE
The subscription can actively receive messages
ACTIVE = 1;
public static final int RESOURCE_ERROR_VALUE
The subscription cannot receive messages because of an error with the resource to which it pushes messages. See the more detailed error state in the corresponding configuration.
RESOURCE_ERROR = 2;
public static Subscription.State[] values()
for (Subscription.State c : Subscription.State.values()) System.out.println(c);
public static Subscription.State 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.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Subscription.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Subscription.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Subscription.State> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Subscription.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.