pub struct WriteStream {
pub name: String,
pub type: i32,
pub create_time: Option<Timestamp>,
pub commit_time: Option<Timestamp>,
pub table_schema: Option<TableSchema>,
pub write_mode: i32,
pub location: String,
}
Expand description
Information about a single stream that gets data inside the storage system.
Fields§
§name: String
Output only. Name of the stream, in the form
projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}
.
type: i32
Immutable. Type of the stream.
create_time: Option<Timestamp>
Output only. Create time of the stream. For the _default stream, this is the creation_time of the table.
commit_time: Option<Timestamp>
Output only. Commit time of the stream.
If a stream is of COMMITTED
type, then it will have a commit_time same as
create_time
. If the stream is of PENDING
type, empty commit_time
means it is not committed.
table_schema: Option<TableSchema>
Output only. The schema of the destination table. It is only returned in
CreateWriteStream
response. Caller should generate data that’s
compatible with this schema to send in initial AppendRowsRequest
.
The table schema could go out of date during the life time of the stream.
write_mode: i32
Immutable. Mode of the stream.
location: String
Immutable. The geographic location where the stream’s dataset resides. See https://cloud.google.com/bigquery/docs/locations for supported locations.
Implementations§
Source§impl WriteStream
impl WriteStream
Sourcepub fn type(&self) -> Type
pub fn type(&self) -> Type
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
Sourcepub fn write_mode(&self) -> WriteMode
pub fn write_mode(&self) -> WriteMode
Returns the enum value of write_mode
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_write_mode(&mut self, value: WriteMode)
pub fn set_write_mode(&mut self, value: WriteMode)
Sets write_mode
to the provided enum value.
Trait Implementations§
Source§impl Clone for WriteStream
impl Clone for WriteStream
Source§fn clone(&self) -> WriteStream
fn clone(&self) -> WriteStream
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WriteStream
impl Debug for WriteStream
Source§impl Default for WriteStream
impl Default for WriteStream
Source§impl Message for WriteStream
impl Message for WriteStream
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 WriteStream
impl PartialEq for WriteStream
impl StructuralPartialEq for WriteStream
Auto Trait Implementations§
impl Freeze for WriteStream
impl RefUnwindSafe for WriteStream
impl Send for WriteStream
impl Sync for WriteStream
impl Unpin for WriteStream
impl UnwindSafe for WriteStream
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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