public static enum CloudStorageConfig.State extends Enum<CloudStorageConfig.State> implements com.google.protobuf.ProtocolMessageEnum
Possible states for a Cloud Storage subscription.Protobuf enum
google.pubsub.v1.CloudStorageConfig.State
Enum Constant and Description |
---|
ACTIVE
The subscription can actively send messages to Cloud Storage.
|
NOT_FOUND
Cannot write to the Cloud Storage bucket because it does not exist.
|
PERMISSION_DENIED
Cannot write to the Cloud Storage bucket because of permission denied
errors.
|
STATE_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
ACTIVE_VALUE
The subscription can actively send messages to Cloud Storage.
|
static int |
NOT_FOUND_VALUE
Cannot write to the Cloud Storage bucket because it does not exist.
|
static int |
PERMISSION_DENIED_VALUE
Cannot write to the Cloud Storage bucket because of permission denied
errors.
|
static int |
STATE_UNSPECIFIED_VALUE
Default value.
|
Modifier and Type | Method and Description |
---|---|
static CloudStorageConfig.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<CloudStorageConfig.State> |
internalGetValueMap() |
static CloudStorageConfig.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CloudStorageConfig.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CloudStorageConfig.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CloudStorageConfig.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloudStorageConfig.State STATE_UNSPECIFIED
Default value. This value is unused.
STATE_UNSPECIFIED = 0;
public static final CloudStorageConfig.State ACTIVE
The subscription can actively send messages to Cloud Storage.
ACTIVE = 1;
public static final CloudStorageConfig.State PERMISSION_DENIED
Cannot write to the Cloud Storage bucket because of permission denied errors.
PERMISSION_DENIED = 2;
public static final CloudStorageConfig.State NOT_FOUND
Cannot write to the Cloud Storage bucket because it does not exist.
NOT_FOUND = 3;
public static final CloudStorageConfig.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 send messages to Cloud Storage.
ACTIVE = 1;
public static final int PERMISSION_DENIED_VALUE
Cannot write to the Cloud Storage bucket because of permission denied errors.
PERMISSION_DENIED = 2;
public static final int NOT_FOUND_VALUE
Cannot write to the Cloud Storage bucket because it does not exist.
NOT_FOUND = 3;
public static CloudStorageConfig.State[] values()
for (CloudStorageConfig.State c : CloudStorageConfig.State.values()) System.out.println(c);
public static CloudStorageConfig.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 CloudStorageConfig.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static CloudStorageConfig.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<CloudStorageConfig.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 CloudStorageConfig.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.