Class protos.google.cloud.workflows.v1.Workflow

Represents a Workflow.

Package

@google-cloud/workflows!

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.workflows.v1.IWorkflow);

Constructs a new Workflow.

Parameter
TypeNameDescription
IWorkflowproperties

Properties to set

Properties

createTime

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

Workflow createTime.

Property Value
TypeDescription
(google.protobuf.ITimestamp|null)

description

public description: string;

Workflow description.

Property Value
TypeDescription
string

labels

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

Workflow labels.

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

name

public name: string;

Workflow name.

Property Value
TypeDescription
string

revisionCreateTime

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

Workflow revisionCreateTime.

Property Value
TypeDescription
(google.protobuf.ITimestamp|null)

revisionId

public revisionId: string;

Workflow revisionId.

Property Value
TypeDescription
string

serviceAccount

public serviceAccount: string;

Workflow serviceAccount.

Property Value
TypeDescription
string

sourceCode

public sourceCode?: "sourceContents";

Workflow sourceCode.

Property Value
TypeDescription
"sourceContents"

sourceContents

public sourceContents?: (string|null);

Workflow sourceContents.

Property Value
TypeDescription
(string|null)

state

public state: (google.cloud.workflows.v1.Workflow.State|keyof typeof google.cloud.workflows.v1.Workflow.State);

Workflow state.

Property Value
TypeDescription
(google.cloud.workflows.v1.Workflow.State|keyof typeof google.cloud.workflows.v1.Workflow.State)

updateTime

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

Workflow updateTime.

Property Value
TypeDescription
(google.protobuf.ITimestamp|null)

Methods

create(properties)

public static create(properties?: google.cloud.workflows.v1.IWorkflow): google.cloud.workflows.v1.Workflow;

Creates a new Workflow instance using the specified properties.

Parameter
TypeNameDescription
IWorkflowproperties

Properties to set

Returns
TypeDescription
google.cloud.workflows.v1.Workflow

Workflow instance

decode(reader, length)

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

Decodes a Workflow 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.cloud.workflows.v1.Workflow

Workflow

decodeDelimited(reader)

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

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

Parameter
TypeNameDescription
($protobuf.Reader|Uint8Array)reader

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.workflows.v1.Workflow

Workflow

encode(message, writer)

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

Encodes the specified Workflow message. Does not implicitly messages.

Parameters
TypeNameDescription
IWorkflowmessage

Workflow 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.cloud.workflows.v1.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
TypeNameDescription
IWorkflowmessage

Workflow 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.cloud.workflows.v1.Workflow;

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

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

Plain object

Returns
TypeDescription
google.cloud.workflows.v1.Workflow

Workflow

toJSON()

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

Converts this Workflow to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
TypeNameDescription
google.cloud.workflows.v1.Workflowmessage

Workflow

$protobuf.IConversionOptionsoptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

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

Verifies a Workflow 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