Class protos.google.cloud.dataproc.v1.Batch (5.5.0)

Represents a Batch.

Package

@google-cloud/dataproc

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.dataproc.v1.IBatch);

Constructs a new Batch.

Parameter
NameDescription
properties IBatch

Properties to set

Properties

batchConfig

public batchConfig?: ("pysparkBatch"|"sparkBatch"|"sparkRBatch"|"sparkSqlBatch");

Batch batchConfig.

createTime

public createTime?: (google.protobuf.ITimestamp|null);

Batch createTime.

creator

public creator: string;

Batch creator.

environmentConfig

public environmentConfig?: (google.cloud.dataproc.v1.IEnvironmentConfig|null);

Batch environmentConfig.

labels

public labels: { [k: string]: string };

Batch labels.

name

public name: string;

Batch name.

operation

public operation: string;

Batch operation.

pysparkBatch

public pysparkBatch?: (google.cloud.dataproc.v1.IPySparkBatch|null);

Batch pysparkBatch.

runtimeConfig

public runtimeConfig?: (google.cloud.dataproc.v1.IRuntimeConfig|null);

Batch runtimeConfig.

runtimeInfo

public runtimeInfo?: (google.cloud.dataproc.v1.IRuntimeInfo|null);

Batch runtimeInfo.

sparkBatch

public sparkBatch?: (google.cloud.dataproc.v1.ISparkBatch|null);

Batch sparkBatch.

sparkRBatch

public sparkRBatch?: (google.cloud.dataproc.v1.ISparkRBatch|null);

Batch sparkRBatch.

sparkSqlBatch

public sparkSqlBatch?: (google.cloud.dataproc.v1.ISparkSqlBatch|null);

Batch sparkSqlBatch.

state

public state: (google.cloud.dataproc.v1.Batch.State|keyof typeof google.cloud.dataproc.v1.Batch.State);

Batch state.

stateHistory

public stateHistory: google.cloud.dataproc.v1.Batch.IStateHistory[];

Batch stateHistory.

stateMessage

public stateMessage: string;

Batch stateMessage.

stateTime

public stateTime?: (google.protobuf.ITimestamp|null);

Batch stateTime.

uuid

public uuid: string;

Batch uuid.

Methods

create(properties)

public static create(properties?: google.cloud.dataproc.v1.IBatch): google.cloud.dataproc.v1.Batch;

Creates a new Batch instance using the specified properties.

Parameter
NameDescription
properties IBatch

Properties to set

Returns
TypeDescription
Batch

Batch instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataproc.v1.Batch;

Decodes a Batch message from the specified reader or buffer.

Parameters
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
Batch

Batch

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataproc.v1.Batch;

Decodes a Batch message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
Batch

Batch

encode(message, writer)

public static encode(message: google.cloud.dataproc.v1.IBatch, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified Batch message. Does not implicitly messages.

Parameters
NameDescription
message IBatch

Batch message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.dataproc.v1.IBatch, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified Batch message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IBatch

Batch message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.dataproc.v1.Batch;

Creates a Batch message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
Batch

Batch

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for Batch

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this Batch to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.dataproc.v1.Batch, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a Batch message. Also converts values to other types if specified.

Parameters
NameDescription
message Batch

Batch

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a Batch message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not