Struct google_api_proto::google::pubsub::v1::BigQueryConfig
source · pub struct BigQueryConfig {
pub table: String,
pub use_topic_schema: bool,
pub write_metadata: bool,
pub drop_unknown_fields: bool,
pub state: i32,
pub use_table_schema: bool,
pub service_account_email: String,
}
Expand description
Configuration for a BigQuery subscription.
Fields§
§table: String
Optional. The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}
use_topic_schema: bool
Optional. When true, use the topic’s schema as the columns to write to in
BigQuery, if it exists. use_topic_schema
and use_table_schema
cannot be
enabled at the same time.
write_metadata: bool
Optional. When true, write the subscription name, message_id, publish_time, attributes, and ordering_key to additional columns in the table. The subscription name, message_id, and publish_time fields are put in their own columns while all other message properties (other than data) are written to a JSON object in the attributes column.
drop_unknown_fields: bool
Optional. When true and use_topic_schema is true, any fields that are a part of the topic schema that are not part of the BigQuery table schema are dropped when writing to BigQuery. Otherwise, the schemas must be kept in sync and any messages with extra fields are not written and remain in the subscription’s backlog.
state: i32
Output only. An output-only field that indicates whether or not the subscription can receive messages.
use_table_schema: bool
Optional. When true, use the BigQuery table’s schema as the columns to
write to in BigQuery. use_table_schema
and use_topic_schema
cannot be
enabled at the same time.
service_account_email: String
Optional. The service account to use to write to BigQuery. The subscription
creator or updater that specifies this field must have
iam.serviceAccounts.actAs
permission on the service account. If not
specified, the Pub/Sub service
agent,
service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
Implementations§
Trait Implementations§
source§impl Clone for BigQueryConfig
impl Clone for BigQueryConfig
source§fn clone(&self) -> BigQueryConfig
fn clone(&self) -> BigQueryConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BigQueryConfig
impl Debug for BigQueryConfig
source§impl Default for BigQueryConfig
impl Default for BigQueryConfig
source§impl Message for BigQueryConfig
impl Message for BigQueryConfig
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 BigQueryConfig
impl PartialEq for BigQueryConfig
source§fn eq(&self, other: &BigQueryConfig) -> bool
fn eq(&self, other: &BigQueryConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BigQueryConfig
Auto Trait Implementations§
impl Freeze for BigQueryConfig
impl RefUnwindSafe for BigQueryConfig
impl Send for BigQueryConfig
impl Sync for BigQueryConfig
impl Unpin for BigQueryConfig
impl UnwindSafe for BigQueryConfig
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