Struct google_api_proto::google::cloud::dataform::v1alpha2::compilation_result_action::Relation
source · pub struct Relation {Show 14 fields
pub dependency_targets: Vec<Target>,
pub disabled: bool,
pub tags: Vec<String>,
pub relation_descriptor: Option<RelationDescriptor>,
pub relation_type: i32,
pub select_query: String,
pub pre_operations: Vec<String>,
pub post_operations: Vec<String>,
pub incremental_table_config: Option<IncrementalTableConfig>,
pub partition_expression: String,
pub cluster_expressions: Vec<String>,
pub partition_expiration_days: i32,
pub require_partition_filter: bool,
pub additional_options: BTreeMap<String, String>,
}
Expand description
Represents a database relation.
Fields§
§dependency_targets: Vec<Target>
A list of actions that this action depends on.
disabled: bool
Whether this action is disabled (i.e. should not be run).
Arbitrary, user-defined tags on this action.
relation_descriptor: Option<RelationDescriptor>
Descriptor for the relation and its columns.
relation_type: i32
The type of this relation.
select_query: String
The SELECT query which returns rows which this relation should contain.
pre_operations: Vec<String>
SQL statements to be executed before creating the relation.
post_operations: Vec<String>
SQL statements to be executed after creating the relation.
incremental_table_config: Option<IncrementalTableConfig>
Configures INCREMENTAL_TABLE
settings for this relation. Only set if
relation_type
is INCREMENTAL_TABLE
.
partition_expression: String
The SQL expression used to partition the relation.
cluster_expressions: Vec<String>
A list of columns or SQL expressions used to cluster the table.
partition_expiration_days: i32
Sets the partition expiration in days.
require_partition_filter: bool
Specifies whether queries on this table must include a predicate filter that filters on the partitioning column.
additional_options: BTreeMap<String, String>
Additional options that will be provided as key/value pairs into the options clause of a create table/view statement. See https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language for more information on which options are supported.
Implementations§
source§impl Relation
impl Relation
sourcepub fn relation_type(&self) -> RelationType
pub fn relation_type(&self) -> RelationType
Returns the enum value of relation_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_relation_type(&mut self, value: RelationType)
pub fn set_relation_type(&mut self, value: RelationType)
Sets relation_type
to the provided enum value.
Trait Implementations§
source§impl Message for Relation
impl Message for Relation
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 Relation
impl PartialEq for Relation
impl StructuralPartialEq for Relation
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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