Struct google_api_proto::google::cloud::bigquery::migration::v2alpha::TranslationTaskDetails
source · pub struct TranslationTaskDetails {
pub input_path: String,
pub output_path: String,
pub file_paths: Vec<TranslationFileMapping>,
pub schema_path: String,
pub file_encoding: i32,
pub identifier_settings: Option<IdentifierSettings>,
pub special_token_map: BTreeMap<String, i32>,
pub filter: Option<Filter>,
pub translation_exception_table: String,
pub language_options: Option<LanguageOptions>,
}
Expand description
The translation task config to capture necessary settings for a translation task and subtask.
Fields§
§input_path: String
The Cloud Storage path for translation input files.
output_path: String
The Cloud Storage path for translation output files.
file_paths: Vec<TranslationFileMapping>
Cloud Storage files to be processed for translation.
schema_path: String
The Cloud Storage path to DDL files as table schema to assist semantic translation.
file_encoding: i32
The file encoding type.
identifier_settings: Option<IdentifierSettings>
The settings for SQL identifiers.
special_token_map: BTreeMap<String, i32>
The map capturing special tokens to be replaced during translation. The key is special token in string. The value is the token data type. This is used to translate SQL query template which contains special token as place holder. The special token makes a query invalid to parse. This map will be applied to annotate those special token with types to let parser understand how to parse them into proper structure with type information.
filter: Option<Filter>
The filter applied to translation details.
translation_exception_table: String
Specifies the exact name of the bigquery table (“dataset.table”) to be used for surfacing raw translation errors. If the table does not exist, we will create it. If it already exists and the schema is the same, we will re-use. If the table exists and the schema is different, we will throw an error.
language_options: Option<LanguageOptions>
The language specific settings for the translation task.
Implementations§
source§impl TranslationTaskDetails
impl TranslationTaskDetails
sourcepub fn file_encoding(&self) -> FileEncoding
pub fn file_encoding(&self) -> FileEncoding
Returns the enum value of file_encoding
, or the default if the field is set to an invalid enum value.
sourcepub fn set_file_encoding(&mut self, value: FileEncoding)
pub fn set_file_encoding(&mut self, value: FileEncoding)
Sets file_encoding
to the provided enum value.
sourcepub fn get_special_token_map(&self, key: &str) -> Option<TokenType>
pub fn get_special_token_map(&self, key: &str) -> Option<TokenType>
Returns the enum value for the corresponding key in special_token_map
, or None
if the entry does not exist or it is not a valid enum value.
Trait Implementations§
source§impl Clone for TranslationTaskDetails
impl Clone for TranslationTaskDetails
source§fn clone(&self) -> TranslationTaskDetails
fn clone(&self) -> TranslationTaskDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TranslationTaskDetails
impl Debug for TranslationTaskDetails
source§impl Default for TranslationTaskDetails
impl Default for TranslationTaskDetails
source§impl Message for TranslationTaskDetails
impl Message for TranslationTaskDetails
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 TranslationTaskDetails
impl PartialEq for TranslationTaskDetails
source§fn eq(&self, other: &TranslationTaskDetails) -> bool
fn eq(&self, other: &TranslationTaskDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TranslationTaskDetails
Auto Trait Implementations§
impl Freeze for TranslationTaskDetails
impl RefUnwindSafe for TranslationTaskDetails
impl Send for TranslationTaskDetails
impl Sync for TranslationTaskDetails
impl Unpin for TranslationTaskDetails
impl UnwindSafe for TranslationTaskDetails
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