Struct google_api_proto::google::cloud::bigquery::storage::v1beta1::ReadSession
source · pub struct ReadSession {
pub name: String,
pub expire_time: Option<Timestamp>,
pub streams: Vec<Stream>,
pub table_reference: Option<TableReference>,
pub table_modifiers: Option<TableModifiers>,
pub sharding_strategy: i32,
pub schema: Option<Schema>,
}
Expand description
Information returned from a CreateReadSession
request.
Fields§
§name: String
Unique identifier for the session, in the form
projects/{project_id}/locations/{location}/sessions/{session_id}
.
expire_time: Option<Timestamp>
Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors.
streams: Vec<Stream>
Streams associated with this session.
table_reference: Option<TableReference>
Table that this ReadSession is reading from.
table_modifiers: Option<TableModifiers>
Any modifiers which are applied when reading from the specified table.
sharding_strategy: i32
The strategy to use for distributing data among the streams.
schema: Option<Schema>
The schema for the read. If read_options.selected_fields is set, the schema may be different from the table schema as it will only contain the selected fields.
Implementations§
source§impl ReadSession
impl ReadSession
sourcepub fn sharding_strategy(&self) -> ShardingStrategy
pub fn sharding_strategy(&self) -> ShardingStrategy
Returns the enum value of sharding_strategy
, or the default if the field is set to an invalid enum value.
sourcepub fn set_sharding_strategy(&mut self, value: ShardingStrategy)
pub fn set_sharding_strategy(&mut self, value: ShardingStrategy)
Sets sharding_strategy
to the provided enum value.
Trait Implementations§
source§impl Clone for ReadSession
impl Clone for ReadSession
source§fn clone(&self) -> ReadSession
fn clone(&self) -> ReadSession
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReadSession
impl Debug for ReadSession
source§impl Default for ReadSession
impl Default for ReadSession
source§impl Message for ReadSession
impl Message for ReadSession
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ReadSession
impl PartialEq for ReadSession
source§fn eq(&self, other: &ReadSession) -> bool
fn eq(&self, other: &ReadSession) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReadSession
Auto Trait Implementations§
impl !Freeze for ReadSession
impl RefUnwindSafe for ReadSession
impl Send for ReadSession
impl Sync for ReadSession
impl Unpin for ReadSession
impl UnwindSafe for ReadSession
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<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