Enum google_api_proto::google::storage::v2::service_constants::Values
source · #[repr(i32)]pub enum Values {
Show 15 variants
Unspecified = 0,
MaxReadChunkBytes = 2_097_152,
MaxObjectSizeMb = 5_242_880,
MaxCustomMetadataFieldNameBytes = 1_024,
MaxCustomMetadataFieldValueBytes = 4_096,
MaxCustomMetadataTotalSizeBytes = 8_192,
MaxBucketMetadataTotalSizeBytes = 20_480,
MaxNotificationConfigsPerBucket = 100,
MaxNotificationCustomAttributes = 5,
MaxNotificationCustomAttributeKeyLength = 256,
MaxLabelsEntriesCount = 64,
MaxLabelsKeyValueLength = 63,
MaxLabelsKeyValueBytes = 128,
MaxObjectIdsPerDeleteObjectsRequest = 1_000,
SplitTokenMaxValidDays = 14,
}
Expand description
A collection of constant values meaningful to the Storage API.
Variants§
Unspecified = 0
Unused. Proto3 requires first enum to be 0.
MaxReadChunkBytes = 2_097_152
The maximum size chunk that can will be returned in a single ReadRequest. 2 MiB.
MaxObjectSizeMb = 5_242_880
The maximum size of an object in MB - whether written in a single stream or composed from multiple other objects. 5 TiB.
MaxCustomMetadataFieldNameBytes = 1_024
The maximum length field name that can be sent in a single custom metadata field. 1 KiB.
MaxCustomMetadataFieldValueBytes = 4_096
The maximum length field value that can be sent in a single custom_metadata field. 4 KiB.
MaxCustomMetadataTotalSizeBytes = 8_192
The maximum total bytes that can be populated into all field names and values of the custom_metadata for one object. 8 KiB.
MaxBucketMetadataTotalSizeBytes = 20_480
The maximum total bytes that can be populated into all bucket metadata fields. 20 KiB.
MaxNotificationConfigsPerBucket = 100
The maximum number of NotificationConfigs that can be registered for a given bucket.
MaxNotificationCustomAttributes = 5
The maximum number of custom attributes per NotificationConfigs.
MaxNotificationCustomAttributeKeyLength = 256
The maximum length of a custom attribute key included in NotificationConfig.
MaxLabelsEntriesCount = 64
The maximum number of key/value entries per bucket label.
MaxLabelsKeyValueLength = 63
The maximum character length of the key or value in a bucket label map.
MaxLabelsKeyValueBytes = 128
The maximum byte size of the key or value in a bucket label map.
MaxObjectIdsPerDeleteObjectsRequest = 1_000
The maximum number of object IDs that can be included in a DeleteObjectsRequest.
SplitTokenMaxValidDays = 14
The maximum number of days for which a token returned by the GetListObjectsSplitPoints RPC is valid.
Implementations§
source§impl Values
impl Values
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Values
impl Ord for Values
source§impl PartialEq for Values
impl PartialEq for Values
source§impl PartialOrd for Values
impl PartialOrd for Values
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Values
impl TryFrom<i32> for Values
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for Values
impl Eq for Values
impl StructuralPartialEq for Values
Auto Trait Implementations§
impl Freeze for Values
impl RefUnwindSafe for Values
impl Send for Values
impl Sync for Values
impl Unpin for Values
impl UnwindSafe for Values
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request