Enum google_api_proto::google::cloud::dataplex::v1::task::spark_task_config::Driver
source · pub enum Driver {
MainJarFileUri(String),
MainClass(String),
PythonScriptFile(String),
SqlScriptFile(String),
SqlScript(String),
}
Expand description
Required. The specification of the main method to call to drive the job. Specify either the jar file that contains the main class or the main class name.
Variants§
MainJarFileUri(String)
The Cloud Storage URI of the jar file that contains the main class.
The execution args are passed in as a sequence of named process
arguments (--key=value
).
MainClass(String)
The name of the driver’s main class. The jar file that contains the
class must be in the default CLASSPATH or specified in
jar_file_uris
.
The execution args are passed in as a sequence of named process
arguments (--key=value
).
PythonScriptFile(String)
The Gcloud Storage URI of the main Python file to use as the driver.
Must be a .py file. The execution args are passed in as a sequence of
named process arguments (--key=value
).
SqlScriptFile(String)
A reference to a query file. This can be the Cloud Storage URI of the
query file or it can the path to a SqlScript Content. The execution
args are used to declare a set of script variables
(set key="value";
).
SqlScript(String)
The query text.
The execution args are used to declare a set of script variables
(set key="value";
).
Implementations§
source§impl Driver
impl Driver
sourcepub fn merge(
field: &mut Option<Driver>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Driver>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl PartialEq for Driver
impl PartialEq for Driver
impl StructuralPartialEq for Driver
Auto Trait Implementations§
impl Freeze for Driver
impl RefUnwindSafe for Driver
impl Send for Driver
impl Sync for Driver
impl Unpin for Driver
impl UnwindSafe for Driver
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