Package com.google.storage.v2
Enum ServiceConstants.Values
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ServiceConstants.Values>
- Enclosing class:
- ServiceConstants
public static enum ServiceConstants.Values
extends Enum<ServiceConstants.Values>
implements com.google.protobuf.ProtocolMessageEnum
A collection of constant values meaningful to the Storage API.Protobuf enum
google.storage.v2.ServiceConstants.Values-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe maximum total bytes that can be populated into all bucket metadata fields.The maximum length field name that can be sent in a single custom metadata field.The maximum length field value that can be sent in a single custom_metadata field.The maximum total bytes that can be populated into all field names and values of the custom_metadata for one object.The maximum number of key/value entries per bucket label.The maximum byte size of the key or value in a bucket label map.The maximum character length of the key or value in a bucket label map.The maximum number of NotificationConfigs that can be registered for a given bucket.The maximum length of a custom attribute key included in NotificationConfig.The maximum number of custom attributes per NotificationConfigs.The maximum number of object IDs that can be included in a DeleteObjectsRequest.The maximum size of an object in MB - whether written in a single stream or composed from multiple other objects.The maximum size chunk that can will be returned in a single ReadRequest.The maximum number of days for which a token returned by the GetListObjectsSplitPoints RPC is valid.Unused. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe maximum total bytes that can be populated into all bucket metadata fields.static final intThe maximum length field name that can be sent in a single custom metadata field.static final intThe maximum length field value that can be sent in a single custom_metadata field.static final intThe maximum total bytes that can be populated into all field names and values of the custom_metadata for one object.static final intThe maximum number of key/value entries per bucket label.static final intThe maximum byte size of the key or value in a bucket label map.static final intThe maximum character length of the key or value in a bucket label map.static final ServiceConstants.ValuesThe maximum number of LifecycleRules that can be registered for a given bucket.static final intThe maximum number of LifecycleRules that can be registered for a given bucket.static final intThe maximum number of NotificationConfigs that can be registered for a given bucket.static final intThe maximum length of a custom attribute key included in NotificationConfig.static final ServiceConstants.ValuesThe maximum length of a custom attribute value included in a NotificationConfig.static final intThe maximum length of a custom attribute value included in a NotificationConfig.static final intThe maximum number of custom attributes per NotificationConfigs.static final intThe maximum number of object IDs that can be included in a DeleteObjectsRequest.static final intThe maximum size of an object in MB - whether written in a single stream or composed from multiple other objects.static final intThe maximum size chunk that can will be returned in a single ReadRequest.static final ServiceConstants.ValuesThe maximum size chunk that can be sent in a single WriteObjectRequest.static final intThe maximum size chunk that can be sent in a single WriteObjectRequest.static final intThe maximum number of days for which a token returned by the GetListObjectsSplitPoints RPC is valid.static final intUnused. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceConstants.ValuesforNumber(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<ServiceConstants.Values>static ServiceConstants.ValuesvalueOf(int value) Deprecated.static ServiceConstants.ValuesvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ServiceConstants.ValuesReturns the enum constant of this type with the specified name.static ServiceConstants.Values[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
VALUES_UNSPECIFIED
Unused. Proto3 requires first enum to be 0.
VALUES_UNSPECIFIED = 0; -
MAX_READ_CHUNK_BYTES
The maximum size chunk that can will be returned in a single ReadRequest. 2 MiB.
MAX_READ_CHUNK_BYTES = 2097152; -
MAX_OBJECT_SIZE_MB
The maximum size of an object in MB - whether written in a single stream or composed from multiple other objects. 5 TiB.
MAX_OBJECT_SIZE_MB = 5242880; -
MAX_CUSTOM_METADATA_FIELD_NAME_BYTES
The maximum length field name that can be sent in a single custom metadata field. 1 KiB.
MAX_CUSTOM_METADATA_FIELD_NAME_BYTES = 1024; -
MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES
The maximum length field value that can be sent in a single custom_metadata field. 4 KiB.
MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES = 4096; -
MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES
The maximum total bytes that can be populated into all field names and values of the custom_metadata for one object. 8 KiB.
MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES = 8192; -
MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES
The maximum total bytes that can be populated into all bucket metadata fields. 20 KiB.
MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES = 20480; -
MAX_NOTIFICATION_CONFIGS_PER_BUCKET
The maximum number of NotificationConfigs that can be registered for a given bucket.
MAX_NOTIFICATION_CONFIGS_PER_BUCKET = 100; -
MAX_NOTIFICATION_CUSTOM_ATTRIBUTES
The maximum number of custom attributes per NotificationConfigs.
MAX_NOTIFICATION_CUSTOM_ATTRIBUTES = 5; -
MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH
The maximum length of a custom attribute key included in NotificationConfig.
MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH = 256; -
MAX_LABELS_ENTRIES_COUNT
The maximum number of key/value entries per bucket label.
MAX_LABELS_ENTRIES_COUNT = 64; -
MAX_LABELS_KEY_VALUE_LENGTH
The maximum character length of the key or value in a bucket label map.
MAX_LABELS_KEY_VALUE_LENGTH = 63; -
MAX_LABELS_KEY_VALUE_BYTES
The maximum byte size of the key or value in a bucket label map.
MAX_LABELS_KEY_VALUE_BYTES = 128; -
MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST
The maximum number of object IDs that can be included in a DeleteObjectsRequest.
MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST = 1000; -
SPLIT_TOKEN_MAX_VALID_DAYS
The maximum number of days for which a token returned by the GetListObjectsSplitPoints RPC is valid.
SPLIT_TOKEN_MAX_VALID_DAYS = 14; -
UNRECOGNIZED
-
-
Field Details
-
MAX_WRITE_CHUNK_BYTES
The maximum size chunk that can be sent in a single WriteObjectRequest. 2 MiB.
MAX_WRITE_CHUNK_BYTES = 2097152; -
MAX_LIFECYCLE_RULES_PER_BUCKET
The maximum number of LifecycleRules that can be registered for a given bucket.
MAX_LIFECYCLE_RULES_PER_BUCKET = 100; -
MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH
The maximum length of a custom attribute value included in a NotificationConfig.
MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH = 1024; -
VALUES_UNSPECIFIED_VALUE
public static final int VALUES_UNSPECIFIED_VALUEUnused. Proto3 requires first enum to be 0.
VALUES_UNSPECIFIED = 0;- See Also:
-
MAX_READ_CHUNK_BYTES_VALUE
public static final int MAX_READ_CHUNK_BYTES_VALUEThe maximum size chunk that can will be returned in a single ReadRequest. 2 MiB.
MAX_READ_CHUNK_BYTES = 2097152;- See Also:
-
MAX_WRITE_CHUNK_BYTES_VALUE
public static final int MAX_WRITE_CHUNK_BYTES_VALUEThe maximum size chunk that can be sent in a single WriteObjectRequest. 2 MiB.
MAX_WRITE_CHUNK_BYTES = 2097152;- See Also:
-
MAX_OBJECT_SIZE_MB_VALUE
public static final int MAX_OBJECT_SIZE_MB_VALUEThe maximum size of an object in MB - whether written in a single stream or composed from multiple other objects. 5 TiB.
MAX_OBJECT_SIZE_MB = 5242880;- See Also:
-
MAX_CUSTOM_METADATA_FIELD_NAME_BYTES_VALUE
public static final int MAX_CUSTOM_METADATA_FIELD_NAME_BYTES_VALUEThe maximum length field name that can be sent in a single custom metadata field. 1 KiB.
MAX_CUSTOM_METADATA_FIELD_NAME_BYTES = 1024;- See Also:
-
MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES_VALUE
public static final int MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES_VALUEThe maximum length field value that can be sent in a single custom_metadata field. 4 KiB.
MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES = 4096;- See Also:
-
MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES_VALUE
public static final int MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES_VALUEThe maximum total bytes that can be populated into all field names and values of the custom_metadata for one object. 8 KiB.
MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES = 8192;- See Also:
-
MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES_VALUE
public static final int MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES_VALUEThe maximum total bytes that can be populated into all bucket metadata fields. 20 KiB.
MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES = 20480;- See Also:
-
MAX_NOTIFICATION_CONFIGS_PER_BUCKET_VALUE
public static final int MAX_NOTIFICATION_CONFIGS_PER_BUCKET_VALUEThe maximum number of NotificationConfigs that can be registered for a given bucket.
MAX_NOTIFICATION_CONFIGS_PER_BUCKET = 100;- See Also:
-
MAX_LIFECYCLE_RULES_PER_BUCKET_VALUE
public static final int MAX_LIFECYCLE_RULES_PER_BUCKET_VALUEThe maximum number of LifecycleRules that can be registered for a given bucket.
MAX_LIFECYCLE_RULES_PER_BUCKET = 100;- See Also:
-
MAX_NOTIFICATION_CUSTOM_ATTRIBUTES_VALUE
public static final int MAX_NOTIFICATION_CUSTOM_ATTRIBUTES_VALUEThe maximum number of custom attributes per NotificationConfigs.
MAX_NOTIFICATION_CUSTOM_ATTRIBUTES = 5;- See Also:
-
MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH_VALUE
public static final int MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH_VALUEThe maximum length of a custom attribute key included in NotificationConfig.
MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH = 256;- See Also:
-
MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH_VALUE
public static final int MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH_VALUEThe maximum length of a custom attribute value included in a NotificationConfig.
MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH = 1024;- See Also:
-
MAX_LABELS_ENTRIES_COUNT_VALUE
public static final int MAX_LABELS_ENTRIES_COUNT_VALUEThe maximum number of key/value entries per bucket label.
MAX_LABELS_ENTRIES_COUNT = 64;- See Also:
-
MAX_LABELS_KEY_VALUE_LENGTH_VALUE
public static final int MAX_LABELS_KEY_VALUE_LENGTH_VALUEThe maximum character length of the key or value in a bucket label map.
MAX_LABELS_KEY_VALUE_LENGTH = 63;- See Also:
-
MAX_LABELS_KEY_VALUE_BYTES_VALUE
public static final int MAX_LABELS_KEY_VALUE_BYTES_VALUEThe maximum byte size of the key or value in a bucket label map.
MAX_LABELS_KEY_VALUE_BYTES = 128;- See Also:
-
MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST_VALUE
public static final int MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST_VALUEThe maximum number of object IDs that can be included in a DeleteObjectsRequest.
MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST = 1000;- See Also:
-
SPLIT_TOKEN_MAX_VALID_DAYS_VALUE
public static final int SPLIT_TOKEN_MAX_VALID_DAYS_VALUEThe maximum number of days for which a token returned by the GetListObjectsSplitPoints RPC is valid.
SPLIT_TOKEN_MAX_VALID_DAYS = 14;- 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<ServiceConstants.Values> 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 ServiceConstants.Values 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
-