Enum google_api_proto::google::cloud::dataproc::v1::spark_batch::Driver
source · pub enum Driver {
MainJarFileUri(String),
MainClass(String),
}
Expand description
The specification of the main method to call to drive the Spark
workload. Specify either the jar file that contains the main class or the
main class name. To pass both a main jar and a main class in that jar, add
the jar to jar_file_uris
, and then specify the main class
name in main_class
.
Variants§
MainJarFileUri(String)
Optional. The HCFS URI of the jar file that contains the main class.
MainClass(String)
Optional. The name of the driver main class. The jar file that contains
the class must be in the classpath or specified in jar_file_uris
.
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
Mutably borrows from an owned value. Read more
§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>
Wrap the input message
T
in a tonic::Request