Struct google_api_proto::google::cloud::bigquery::storage::v1beta2::ReadSession
source · pub struct ReadSession {
pub name: String,
pub expire_time: Option<Timestamp>,
pub data_format: i32,
pub table: String,
pub table_modifiers: Option<TableModifiers>,
pub read_options: Option<TableReadOptions>,
pub streams: Vec<ReadStream>,
pub schema: Option<Schema>,
}
Expand description
Information about the ReadSession.
Fields§
§name: String
Output only. Unique identifier for the session, in the form
projects/{project_id}/locations/{location}/sessions/{session_id}
.
expire_time: Option<Timestamp>
Output only. Time at which the session becomes invalid. After this time, subsequent requests to read this Session will return errors. The expire_time is automatically assigned and currently cannot be specified or updated.
data_format: i32
Immutable. Data format of the output data.
table: String
Immutable. Table that this ReadSession is reading from, in the form `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
table_modifiers: Option<TableModifiers>
Optional. Any modifiers which are applied when reading from the specified table.
read_options: Option<TableReadOptions>
Optional. Read options for this session (e.g. column selection, filters).
streams: Vec<ReadStream>
Output only. A list of streams created with the session.
At least one stream is created with the session. In the future, larger request_stream_count values may result in this list being unpopulated, in that case, the user will need to use a List method to get the streams instead, which is not yet available.
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 data_format(&self) -> DataFormat
pub fn data_format(&self) -> DataFormat
Returns the enum value of data_format
, or the default if the field is set to an invalid enum value.
sourcepub fn set_data_format(&mut self, value: DataFormat)
pub fn set_data_format(&mut self, value: DataFormat)
Sets data_format
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