Enum google_api_proto::google::cloud::bigquery::storage::v1::read_session::table_read_options::ResponseCompressionCodec
source · #[repr(i32)]pub enum ResponseCompressionCodec {
Unspecified = 0,
Lz4 = 2,
}
Expand description
Specifies which compression codec to attempt on the entire serialized response payload (either Arrow record batch or Avro rows). This is not to be confused with the Apache Arrow native compression codecs specified in ArrowSerializationOptions. For performance reasons, when creating a read session requesting Arrow responses, setting both native Arrow compression and application-level response compression will not be allowed - choose, at most, one kind of compression.
Variants§
Implementations§
source§impl ResponseCompressionCodec
impl ResponseCompressionCodec
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of ResponseCompressionCodec
.
sourcepub fn from_i32(value: i32) -> Option<ResponseCompressionCodec>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ResponseCompressionCodec>
Converts an i32
to a ResponseCompressionCodec
, or None
if value
is not a valid variant.
source§impl ResponseCompressionCodec
impl ResponseCompressionCodec
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 Clone for ResponseCompressionCodec
impl Clone for ResponseCompressionCodec
source§fn clone(&self) -> ResponseCompressionCodec
fn clone(&self) -> ResponseCompressionCodec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResponseCompressionCodec
impl Debug for ResponseCompressionCodec
source§impl Default for ResponseCompressionCodec
impl Default for ResponseCompressionCodec
source§fn default() -> ResponseCompressionCodec
fn default() -> ResponseCompressionCodec
source§impl From<ResponseCompressionCodec> for i32
impl From<ResponseCompressionCodec> for i32
source§fn from(value: ResponseCompressionCodec) -> i32
fn from(value: ResponseCompressionCodec) -> i32
source§impl Hash for ResponseCompressionCodec
impl Hash for ResponseCompressionCodec
source§impl Ord for ResponseCompressionCodec
impl Ord for ResponseCompressionCodec
source§fn cmp(&self, other: &ResponseCompressionCodec) -> Ordering
fn cmp(&self, other: &ResponseCompressionCodec) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ResponseCompressionCodec
impl PartialEq for ResponseCompressionCodec
source§fn eq(&self, other: &ResponseCompressionCodec) -> bool
fn eq(&self, other: &ResponseCompressionCodec) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ResponseCompressionCodec
impl PartialOrd for ResponseCompressionCodec
source§fn partial_cmp(&self, other: &ResponseCompressionCodec) -> Option<Ordering>
fn partial_cmp(&self, other: &ResponseCompressionCodec) -> Option<Ordering>
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 ResponseCompressionCodec
impl TryFrom<i32> for ResponseCompressionCodec
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<ResponseCompressionCodec, DecodeError>
fn try_from(value: i32) -> Result<ResponseCompressionCodec, DecodeError>
impl Copy for ResponseCompressionCodec
impl Eq for ResponseCompressionCodec
impl StructuralPartialEq for ResponseCompressionCodec
Auto Trait Implementations§
impl Freeze for ResponseCompressionCodec
impl RefUnwindSafe for ResponseCompressionCodec
impl Send for ResponseCompressionCodec
impl Sync for ResponseCompressionCodec
impl Unpin for ResponseCompressionCodec
impl UnwindSafe for ResponseCompressionCodec
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