Package com.google.pubsub.v1
Enum IngestionDataSourceSettings.CloudStorage.State
java.lang.Object
java.lang.Enum<IngestionDataSourceSettings.CloudStorage.State>
com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<IngestionDataSourceSettings.CloudStorage.State>
- Enclosing class:
- IngestionDataSourceSettings.CloudStorage
public static enum IngestionDataSourceSettings.CloudStorage.State
extends Enum<IngestionDataSourceSettings.CloudStorage.State>
implements com.google.protobuf.ProtocolMessageEnum
Possible states for ingestion from Cloud Storage.Protobuf enum
google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIngestion is active.The provided Cloud Storage bucket doesn't exist.Permission denied encountered while calling the Cloud Storage API.Permission denied encountered while publishing to the topic.Default value.The Cloud Storage bucket has too many objects, ingestion will be paused. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIngestion is active.static final intThe provided Cloud Storage bucket doesn't exist.static final intPermission denied encountered while calling the Cloud Storage API.static final intPermission denied encountered while publishing to the topic.static final intDefault value.static final intThe Cloud Storage bucket has too many objects, ingestion will be paused. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<IngestionDataSourceSettings.CloudStorage.State>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATE_UNSPECIFIED
Default value. This value is unused.
STATE_UNSPECIFIED = 0; -
ACTIVE
Ingestion is active.
ACTIVE = 1; -
CLOUD_STORAGE_PERMISSION_DENIED
Permission denied encountered while calling the Cloud Storage API. This can happen if the Pub/Sub SA has not been granted the [appropriate permissions](https://cloud.google.com/storage/docs/access-control/iam-permissions): - storage.objects.list: to list the objects in a bucket. - storage.objects.get: to read the objects in a bucket. - storage.buckets.get: to verify the bucket exists.
CLOUD_STORAGE_PERMISSION_DENIED = 2; -
PUBLISH_PERMISSION_DENIED
Permission denied encountered while publishing to the topic. This can happen if the Pub/Sub SA has not been granted the [appropriate publish permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
PUBLISH_PERMISSION_DENIED = 3; -
BUCKET_NOT_FOUND
The provided Cloud Storage bucket doesn't exist.
BUCKET_NOT_FOUND = 4; -
TOO_MANY_OBJECTS
The Cloud Storage bucket has too many objects, ingestion will be paused.
TOO_MANY_OBJECTS = 5; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEDefault value. This value is unused.
STATE_UNSPECIFIED = 0;- See Also:
-
ACTIVE_VALUE
public static final int ACTIVE_VALUEIngestion is active.
ACTIVE = 1;- See Also:
-
CLOUD_STORAGE_PERMISSION_DENIED_VALUE
public static final int CLOUD_STORAGE_PERMISSION_DENIED_VALUEPermission denied encountered while calling the Cloud Storage API. This can happen if the Pub/Sub SA has not been granted the [appropriate permissions](https://cloud.google.com/storage/docs/access-control/iam-permissions): - storage.objects.list: to list the objects in a bucket. - storage.objects.get: to read the objects in a bucket. - storage.buckets.get: to verify the bucket exists.
CLOUD_STORAGE_PERMISSION_DENIED = 2;- See Also:
-
PUBLISH_PERMISSION_DENIED_VALUE
public static final int PUBLISH_PERMISSION_DENIED_VALUEPermission denied encountered while publishing to the topic. This can happen if the Pub/Sub SA has not been granted the [appropriate publish permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
PUBLISH_PERMISSION_DENIED = 3;- See Also:
-
BUCKET_NOT_FOUND_VALUE
public static final int BUCKET_NOT_FOUND_VALUEThe provided Cloud Storage bucket doesn't exist.
BUCKET_NOT_FOUND = 4;- See Also:
-
TOO_MANY_OBJECTS_VALUE
public static final int TOO_MANY_OBJECTS_VALUEThe Cloud Storage bucket has too many objects, ingestion will be paused.
TOO_MANY_OBJECTS = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<IngestionDataSourceSettings.CloudStorage.State> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static IngestionDataSourceSettings.CloudStorage.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-