Struct google_api_proto::google::cloud::retail::v2beta::BigQuerySource
source · pub struct BigQuerySource {
pub project_id: String,
pub dataset_id: String,
pub table_id: String,
pub gcs_staging_dir: String,
pub data_schema: String,
pub partition: Option<Partition>,
}
Expand description
BigQuery source import data from.
Fields§
§project_id: String
The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
dataset_id: String
Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.
table_id: String
Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.
gcs_staging_dir: String
Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.
data_schema: String
The schema to use when parsing the data from the source.
Supported values for product imports:
product
(default): One JSON [Product][google.cloud.retail.v2beta.Product] per line. Each product must have a valid [Product.id][google.cloud.retail.v2beta.Product.id].product_merchant_center
: See Importing catalog data from Merchant Center.
Supported values for user events imports:
user_event
(default): One JSON [UserEvent][google.cloud.retail.v2beta.UserEvent] per line.user_event_ga360
: The schema is available here: https://support.google.com/analytics/answer/3437719.user_event_ga4
: The schema is available here: https://support.google.com/analytics/answer/7029846.
Supported values for autocomplete imports:
suggestions
(default): One JSON completion suggestion per line.denylist
: One JSON deny suggestion per line.allowlist
: One JSON allow suggestion per line.
partition: Option<Partition>
BigQuery table partition info. Leave this empty if the BigQuery table is not partitioned.
Trait Implementations§
source§impl Clone for BigQuerySource
impl Clone for BigQuerySource
source§fn clone(&self) -> BigQuerySource
fn clone(&self) -> BigQuerySource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BigQuerySource
impl Debug for BigQuerySource
source§impl Default for BigQuerySource
impl Default for BigQuerySource
source§impl Message for BigQuerySource
impl Message for BigQuerySource
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 BigQuerySource
impl PartialEq for BigQuerySource
source§fn eq(&self, other: &BigQuerySource) -> bool
fn eq(&self, other: &BigQuerySource) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BigQuerySource
Auto Trait Implementations§
impl Freeze for BigQuerySource
impl RefUnwindSafe for BigQuerySource
impl Send for BigQuerySource
impl Sync for BigQuerySource
impl Unpin for BigQuerySource
impl UnwindSafe for BigQuerySource
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