Struct gapi_grpc::google::cloud::bigquery::storage::v1beta1::ReadSession[][src]

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>,
}

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

impl ReadSession[src]

pub fn sharding_strategy(&self) -> ShardingStrategy[src]

Returns the enum value of sharding_strategy, or the default if the field is set to an invalid enum value.

pub fn set_sharding_strategy(&mut self, value: ShardingStrategy)[src]

Sets sharding_strategy to the provided enum value.

Trait Implementations

impl Clone for ReadSession[src]

impl Debug for ReadSession[src]

impl Default for ReadSession[src]

impl Message for ReadSession[src]

impl PartialEq<ReadSession> for ReadSession[src]

impl StructuralPartialEq for ReadSession[src]

Auto Trait Implementations

impl RefUnwindSafe for ReadSession

impl Send for ReadSession

impl Sync for ReadSession

impl Unpin for ReadSession

impl UnwindSafe for ReadSession

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]