Represents a SparkBatch.
Package
@google-cloud/dataprocConstructors
(constructor)(properties)
constructor(properties?: google.cloud.dataproc.v1.ISparkBatch);
Constructs a new SparkBatch.
Name | Description |
properties |
ISparkBatch
Properties to set |
Properties
archiveUris
public archiveUris: string[];
SparkBatch archiveUris.
args
public args: string[];
SparkBatch args.
driver
public driver?: ("mainJarFileUri"|"mainClass");
SparkBatch driver.
fileUris
public fileUris: string[];
SparkBatch fileUris.
jarFileUris
public jarFileUris: string[];
SparkBatch jarFileUris.
mainClass
public mainClass?: (string|null);
SparkBatch mainClass.
mainJarFileUri
public mainJarFileUri?: (string|null);
SparkBatch mainJarFileUri.
Methods
create(properties)
public static create(properties?: google.cloud.dataproc.v1.ISparkBatch): google.cloud.dataproc.v1.SparkBatch;
Creates a new SparkBatch instance using the specified properties.
Name | Description |
properties |
ISparkBatch
Properties to set |
Type | Description |
google.cloud.dataproc.v1.SparkBatch | SparkBatch instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataproc.v1.SparkBatch;
Decodes a SparkBatch message from the specified reader or buffer.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Type | Description |
google.cloud.dataproc.v1.SparkBatch | SparkBatch |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataproc.v1.SparkBatch;
Decodes a SparkBatch message from the specified reader or buffer, length delimited.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Type | Description |
google.cloud.dataproc.v1.SparkBatch | SparkBatch |
encode(message, writer)
public static encode(message: google.cloud.dataproc.v1.ISparkBatch, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified SparkBatch message. Does not implicitly messages.
Name | Description |
message |
ISparkBatch
SparkBatch message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$protobuf.Writer | Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.dataproc.v1.ISparkBatch, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified SparkBatch message, length delimited. Does not implicitly messages.
Name | Description |
message |
ISparkBatch
SparkBatch message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$protobuf.Writer | Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.dataproc.v1.SparkBatch;
Creates a SparkBatch message from a plain object. Also converts values to their respective internal types.
Name | Description |
object |
{ [k: string]: any }
Plain object |
Type | Description |
google.cloud.dataproc.v1.SparkBatch | SparkBatch |
toJSON()
public toJSON(): { [k: string]: any };
Converts this SparkBatch to JSON.
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.dataproc.v1.SparkBatch, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a SparkBatch message. Also converts values to other types if specified.
Name | Description |
message |
google.cloud.dataproc.v1.SparkBatch
SparkBatch |
options |
$protobuf.IConversionOptions
Conversion options |
Type | Description |
{ [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a SparkBatch message.
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Type | Description |
(string|null) |
|