Struct google_api_proto::google::cloud::visionai::v1::BigQueryConfig
source · pub struct BigQueryConfig {
pub table: String,
pub cloud_function_mapping: BTreeMap<String, String>,
pub create_default_table_if_not_exists: bool,
}
Expand description
Message of configurations for BigQuery processor.
Fields§
§table: String
BigQuery table resource for Vision AI Platform to ingest annotations to.
cloud_function_mapping: BTreeMap<String, String>
Data Schema By default, Vision AI Application will try to write annotations to the target BigQuery table using the following schema:
ingestion_time: TIMESTAMP, the ingestion time of the original data.
application: STRING, name of the application which produces the annotation.
instance: STRING, Id of the instance which produces the annotation.
node: STRING, name of the application graph node which produces the annotation.
annotation: STRING or JSON, the actual annotation protobuf will be converted to json string with bytes field as 64 encoded string. It can be written to both String or Json type column.
To forward annotation data to an existing BigQuery table, customer needs to make sure the compatibility of the schema. The map maps application node name to its corresponding cloud function endpoint to transform the annotations directly to the google.cloud.bigquery.storage.v1.AppendRowsRequest (only avro_rows or proto_rows should be set). If configured, annotations produced by corresponding application node will sent to the Cloud Function at first before be forwarded to BigQuery.
If the default table schema doesn’t fit, customer is able to transform the annotation output from Vision AI Application to arbitrary BigQuery table schema with CloudFunction.
- The cloud function will receive AppPlatformCloudFunctionRequest where the annotations field will be the json format of Vision AI annotation.
- The cloud function should return AppPlatformCloudFunctionResponse with AppendRowsRequest stored in the annotations field.
- To drop the annotation, simply clear the annotations field in the returned AppPlatformCloudFunctionResponse.
create_default_table_if_not_exists: bool
If true, App Platform will create the BigQuery DataSet and the BigQuery Table with default schema if the specified table doesn’t exist. This doesn’t work if any cloud function customized schema is specified since the system doesn’t know your desired schema. JSON column will be used in the default table created by App Platform.
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