Struct google_api_proto::google::cloud::audit::big_query_audit_metadata::job_config::Query
source · pub struct Query {
pub query: String,
pub query_truncated: bool,
pub destination_table: String,
pub create_disposition: i32,
pub write_disposition: i32,
pub default_dataset: String,
pub table_definitions: Vec<TableDefinition>,
pub priority: i32,
pub destination_table_encryption: Option<EncryptionInfo>,
pub statement_type: i32,
}Expand description
Query job configuration.
Fields§
§query: StringThe SQL query to run. Truncated if exceeds 50K.
query_truncated: boolTrue if the query field was truncated.
destination_table: StringThe destination table for the query results.
create_disposition: i32Destination table create disposition.
write_disposition: i32Destination table write disposition.
default_dataset: StringDefault dataset for the query.
table_definitions: Vec<TableDefinition>External data sources used in the query.
priority: i32Priority given to the query.
destination_table_encryption: Option<EncryptionInfo>Result table encryption information. Set when non-default encryption is used.
statement_type: i32Type of the query.
Implementations§
source§impl Query
impl Query
sourcepub fn create_disposition(&self) -> CreateDisposition
pub fn create_disposition(&self) -> CreateDisposition
Returns the enum value of create_disposition, or the default if the field is set to an invalid enum value.
sourcepub fn set_create_disposition(&mut self, value: CreateDisposition)
pub fn set_create_disposition(&mut self, value: CreateDisposition)
Sets create_disposition to the provided enum value.
sourcepub fn write_disposition(&self) -> WriteDisposition
pub fn write_disposition(&self) -> WriteDisposition
Returns the enum value of write_disposition, or the default if the field is set to an invalid enum value.
sourcepub fn set_write_disposition(&mut self, value: WriteDisposition)
pub fn set_write_disposition(&mut self, value: WriteDisposition)
Sets write_disposition to the provided enum value.
sourcepub fn priority(&self) -> Priority
pub fn priority(&self) -> Priority
Returns the enum value of priority, or the default if the field is set to an invalid enum value.
sourcepub fn set_priority(&mut self, value: Priority)
pub fn set_priority(&mut self, value: Priority)
Sets priority to the provided enum value.
sourcepub fn statement_type(&self) -> QueryStatementType
pub fn statement_type(&self) -> QueryStatementType
Returns the enum value of statement_type, or the default if the field is set to an invalid enum value.
sourcepub fn set_statement_type(&mut self, value: QueryStatementType)
pub fn set_statement_type(&mut self, value: QueryStatementType)
Sets statement_type to the provided enum value.
Trait Implementations§
source§impl Message for Query
impl Message for Query
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 Query
impl PartialEq for Query
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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