Class protos.google.dataflow.v1beta3.CreateJobFromTemplateRequest

Represents a CreateJobFromTemplateRequest.

Package

@google-cloud/dataflow!

Constructors

(constructor)(properties)

constructor(properties?: google.dataflow.v1beta3.ICreateJobFromTemplateRequest);

Constructs a new CreateJobFromTemplateRequest.

Parameter
TypeNameDescription
google.dataflow.v1beta3.ICreateJobFromTemplateRequestproperties

Properties to set

Properties

environment

public environment?: (google.dataflow.v1beta3.IRuntimeEnvironment|null);

CreateJobFromTemplateRequest environment.

Property Value
TypeDescription
(google.dataflow.v1beta3.IRuntimeEnvironment|null)

gcsPath

public gcsPath?: (string|null);

CreateJobFromTemplateRequest gcsPath.

Property Value
TypeDescription
(string|null)

jobName

public jobName: string;

CreateJobFromTemplateRequest jobName.

Property Value
TypeDescription
string

location

public location: string;

CreateJobFromTemplateRequest location.

Property Value
TypeDescription
string

parameters

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

CreateJobFromTemplateRequest parameters.

Property Value
TypeDescription
{ [k: string]: string }

projectId

public projectId: string;

CreateJobFromTemplateRequest projectId.

Property Value
TypeDescription
string

template

public template?: "gcsPath";

CreateJobFromTemplateRequest template.

Property Value
TypeDescription
"gcsPath"

Methods

create(properties)

public static create(properties?: google.dataflow.v1beta3.ICreateJobFromTemplateRequest): google.dataflow.v1beta3.CreateJobFromTemplateRequest;

Creates a new CreateJobFromTemplateRequest instance using the specified properties.

Parameter
TypeNameDescription
google.dataflow.v1beta3.ICreateJobFromTemplateRequestproperties

Properties to set

Returns
TypeDescription
google.dataflow.v1beta3.CreateJobFromTemplateRequest

CreateJobFromTemplateRequest instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.dataflow.v1beta3.CreateJobFromTemplateRequest;

Decodes a CreateJobFromTemplateRequest message from the specified reader or buffer.

Parameters
TypeNameDescription
($protobuf.Reader|Uint8Array)reader

Reader or buffer to decode from

numberlength

Message length if known beforehand

Returns
TypeDescription
google.dataflow.v1beta3.CreateJobFromTemplateRequest

CreateJobFromTemplateRequest

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.dataflow.v1beta3.CreateJobFromTemplateRequest;

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

Parameter
TypeNameDescription
($protobuf.Reader|Uint8Array)reader

Reader or buffer to decode from

Returns
TypeDescription
google.dataflow.v1beta3.CreateJobFromTemplateRequest

CreateJobFromTemplateRequest

encode(message, writer)

public static encode(message: google.dataflow.v1beta3.ICreateJobFromTemplateRequest, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified CreateJobFromTemplateRequest message. Does not implicitly messages.

Parameters
TypeNameDescription
google.dataflow.v1beta3.ICreateJobFromTemplateRequestmessage

CreateJobFromTemplateRequest message or plain object to encode

$protobuf.Writerwriter

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.dataflow.v1beta3.ICreateJobFromTemplateRequest, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
TypeNameDescription
google.dataflow.v1beta3.ICreateJobFromTemplateRequestmessage

CreateJobFromTemplateRequest message or plain object to encode

$protobuf.Writerwriter

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.dataflow.v1beta3.CreateJobFromTemplateRequest;

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

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

Plain object

Returns
TypeDescription
google.dataflow.v1beta3.CreateJobFromTemplateRequest

CreateJobFromTemplateRequest

toJSON()

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

Converts this CreateJobFromTemplateRequest to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.dataflow.v1beta3.CreateJobFromTemplateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
TypeNameDescription
google.dataflow.v1beta3.CreateJobFromTemplateRequestmessage

CreateJobFromTemplateRequest

$protobuf.IConversionOptionsoptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

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

Verifies a CreateJobFromTemplateRequest message.

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

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not