UNPKG

@google-cloud/workflows

Version:
862 lines (707 loc) 634 kB
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. import type {protobuf as $protobuf} from "google-gax"; import Long = require("long"); /** Namespace google. */ export namespace google { /** Namespace cloud. */ namespace cloud { /** Namespace workflows. */ namespace workflows { /** Namespace executions. */ namespace executions { /** Namespace v1. */ namespace v1 { /** Represents an Executions */ class Executions extends $protobuf.rpc.Service { /** * Constructs a new Executions service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited */ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** * Creates new Executions service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Executions; /** * Calls ListExecutions. * @param request ListExecutionsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListExecutionsResponse */ public listExecutions(request: google.cloud.workflows.executions.v1.IListExecutionsRequest, callback: google.cloud.workflows.executions.v1.Executions.ListExecutionsCallback): void; /** * Calls ListExecutions. * @param request ListExecutionsRequest message or plain object * @returns Promise */ public listExecutions(request: google.cloud.workflows.executions.v1.IListExecutionsRequest): Promise<google.cloud.workflows.executions.v1.ListExecutionsResponse>; /** * Calls CreateExecution. * @param request CreateExecutionRequest message or plain object * @param callback Node-style callback called with the error, if any, and Execution */ public createExecution(request: google.cloud.workflows.executions.v1.ICreateExecutionRequest, callback: google.cloud.workflows.executions.v1.Executions.CreateExecutionCallback): void; /** * Calls CreateExecution. * @param request CreateExecutionRequest message or plain object * @returns Promise */ public createExecution(request: google.cloud.workflows.executions.v1.ICreateExecutionRequest): Promise<google.cloud.workflows.executions.v1.Execution>; /** * Calls GetExecution. * @param request GetExecutionRequest message or plain object * @param callback Node-style callback called with the error, if any, and Execution */ public getExecution(request: google.cloud.workflows.executions.v1.IGetExecutionRequest, callback: google.cloud.workflows.executions.v1.Executions.GetExecutionCallback): void; /** * Calls GetExecution. * @param request GetExecutionRequest message or plain object * @returns Promise */ public getExecution(request: google.cloud.workflows.executions.v1.IGetExecutionRequest): Promise<google.cloud.workflows.executions.v1.Execution>; /** * Calls CancelExecution. * @param request CancelExecutionRequest message or plain object * @param callback Node-style callback called with the error, if any, and Execution */ public cancelExecution(request: google.cloud.workflows.executions.v1.ICancelExecutionRequest, callback: google.cloud.workflows.executions.v1.Executions.CancelExecutionCallback): void; /** * Calls CancelExecution. * @param request CancelExecutionRequest message or plain object * @returns Promise */ public cancelExecution(request: google.cloud.workflows.executions.v1.ICancelExecutionRequest): Promise<google.cloud.workflows.executions.v1.Execution>; } namespace Executions { /** * Callback as used by {@link google.cloud.workflows.executions.v1.Executions|listExecutions}. * @param error Error, if any * @param [response] ListExecutionsResponse */ type ListExecutionsCallback = (error: (Error|null), response?: google.cloud.workflows.executions.v1.ListExecutionsResponse) => void; /** * Callback as used by {@link google.cloud.workflows.executions.v1.Executions|createExecution}. * @param error Error, if any * @param [response] Execution */ type CreateExecutionCallback = (error: (Error|null), response?: google.cloud.workflows.executions.v1.Execution) => void; /** * Callback as used by {@link google.cloud.workflows.executions.v1.Executions|getExecution}. * @param error Error, if any * @param [response] Execution */ type GetExecutionCallback = (error: (Error|null), response?: google.cloud.workflows.executions.v1.Execution) => void; /** * Callback as used by {@link google.cloud.workflows.executions.v1.Executions|cancelExecution}. * @param error Error, if any * @param [response] Execution */ type CancelExecutionCallback = (error: (Error|null), response?: google.cloud.workflows.executions.v1.Execution) => void; } /** Properties of an Execution. */ interface IExecution { /** Execution name */ name?: (string|null); /** Execution startTime */ startTime?: (google.protobuf.ITimestamp|null); /** Execution endTime */ endTime?: (google.protobuf.ITimestamp|null); /** Execution duration */ duration?: (google.protobuf.IDuration|null); /** Execution state */ state?: (google.cloud.workflows.executions.v1.Execution.State|keyof typeof google.cloud.workflows.executions.v1.Execution.State|null); /** Execution argument */ argument?: (string|null); /** Execution result */ result?: (string|null); /** Execution error */ error?: (google.cloud.workflows.executions.v1.Execution.IError|null); /** Execution workflowRevisionId */ workflowRevisionId?: (string|null); /** Execution callLogLevel */ callLogLevel?: (google.cloud.workflows.executions.v1.Execution.CallLogLevel|keyof typeof google.cloud.workflows.executions.v1.Execution.CallLogLevel|null); /** Execution status */ status?: (google.cloud.workflows.executions.v1.Execution.IStatus|null); /** Execution labels */ labels?: ({ [k: string]: string }|null); /** Execution stateError */ stateError?: (google.cloud.workflows.executions.v1.Execution.IStateError|null); } /** Represents an Execution. */ class Execution implements IExecution { /** * Constructs a new Execution. * @param [properties] Properties to set */ constructor(properties?: google.cloud.workflows.executions.v1.IExecution); /** Execution name. */ public name: string; /** Execution startTime. */ public startTime?: (google.protobuf.ITimestamp|null); /** Execution endTime. */ public endTime?: (google.protobuf.ITimestamp|null); /** Execution duration. */ public duration?: (google.protobuf.IDuration|null); /** Execution state. */ public state: (google.cloud.workflows.executions.v1.Execution.State|keyof typeof google.cloud.workflows.executions.v1.Execution.State); /** Execution argument. */ public argument: string; /** Execution result. */ public result: string; /** Execution error. */ public error?: (google.cloud.workflows.executions.v1.Execution.IError|null); /** Execution workflowRevisionId. */ public workflowRevisionId: string; /** Execution callLogLevel. */ public callLogLevel: (google.cloud.workflows.executions.v1.Execution.CallLogLevel|keyof typeof google.cloud.workflows.executions.v1.Execution.CallLogLevel); /** Execution status. */ public status?: (google.cloud.workflows.executions.v1.Execution.IStatus|null); /** Execution labels. */ public labels: { [k: string]: string }; /** Execution stateError. */ public stateError?: (google.cloud.workflows.executions.v1.Execution.IStateError|null); /** * Creates a new Execution instance using the specified properties. * @param [properties] Properties to set * @returns Execution instance */ public static create(properties?: google.cloud.workflows.executions.v1.IExecution): google.cloud.workflows.executions.v1.Execution; /** * Encodes the specified Execution message. Does not implicitly {@link google.cloud.workflows.executions.v1.Execution.verify|verify} messages. * @param message Execution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.workflows.executions.v1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Execution message, length delimited. Does not implicitly {@link google.cloud.workflows.executions.v1.Execution.verify|verify} messages. * @param message Execution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.workflows.executions.v1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Execution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Execution * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.workflows.executions.v1.Execution; /** * Decodes an Execution message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Execution * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.workflows.executions.v1.Execution; /** * Verifies an Execution message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an Execution message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Execution */ public static fromObject(object: { [k: string]: any }): google.cloud.workflows.executions.v1.Execution; /** * Creates a plain object from an Execution message. Also converts values to other types if specified. * @param message Execution * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.workflows.executions.v1.Execution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Execution to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Execution * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace Execution { /** State enum. */ enum State { STATE_UNSPECIFIED = 0, ACTIVE = 1, SUCCEEDED = 2, FAILED = 3, CANCELLED = 4, UNAVAILABLE = 5, QUEUED = 6 } /** Properties of a StackTraceElement. */ interface IStackTraceElement { /** StackTraceElement step */ step?: (string|null); /** StackTraceElement routine */ routine?: (string|null); /** StackTraceElement position */ position?: (google.cloud.workflows.executions.v1.Execution.StackTraceElement.IPosition|null); } /** Represents a StackTraceElement. */ class StackTraceElement implements IStackTraceElement { /** * Constructs a new StackTraceElement. * @param [properties] Properties to set */ constructor(properties?: google.cloud.workflows.executions.v1.Execution.IStackTraceElement); /** StackTraceElement step. */ public step: string; /** StackTraceElement routine. */ public routine: string; /** StackTraceElement position. */ public position?: (google.cloud.workflows.executions.v1.Execution.StackTraceElement.IPosition|null); /** * Creates a new StackTraceElement instance using the specified properties. * @param [properties] Properties to set * @returns StackTraceElement instance */ public static create(properties?: google.cloud.workflows.executions.v1.Execution.IStackTraceElement): google.cloud.workflows.executions.v1.Execution.StackTraceElement; /** * Encodes the specified StackTraceElement message. Does not implicitly {@link google.cloud.workflows.executions.v1.Execution.StackTraceElement.verify|verify} messages. * @param message StackTraceElement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.workflows.executions.v1.Execution.IStackTraceElement, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified StackTraceElement message, length delimited. Does not implicitly {@link google.cloud.workflows.executions.v1.Execution.StackTraceElement.verify|verify} messages. * @param message StackTraceElement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.workflows.executions.v1.Execution.IStackTraceElement, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a StackTraceElement message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns StackTraceElement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.workflows.executions.v1.Execution.StackTraceElement; /** * Decodes a StackTraceElement message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns StackTraceElement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.workflows.executions.v1.Execution.StackTraceElement; /** * Verifies a StackTraceElement message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a StackTraceElement message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns StackTraceElement */ public static fromObject(object: { [k: string]: any }): google.cloud.workflows.executions.v1.Execution.StackTraceElement; /** * Creates a plain object from a StackTraceElement message. Also converts values to other types if specified. * @param message StackTraceElement * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.workflows.executions.v1.Execution.StackTraceElement, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this StackTraceElement to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for StackTraceElement * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace StackTraceElement { /** Properties of a Position. */ interface IPosition { /** Position line */ line?: (number|Long|string|null); /** Position column */ column?: (number|Long|string|null); /** Position length */ length?: (number|Long|string|null); } /** Represents a Position. */ class Position implements IPosition { /** * Constructs a new Position. * @param [properties] Properties to set */ constructor(properties?: google.cloud.workflows.executions.v1.Execution.StackTraceElement.IPosition); /** Position line. */ public line: (number|Long|string); /** Position column. */ public column: (number|Long|string); /** Position length. */ public length: (number|Long|string); /** * Creates a new Position instance using the specified properties. * @param [properties] Properties to set * @returns Position instance */ public static create(properties?: google.cloud.workflows.executions.v1.Execution.StackTraceElement.IPosition): google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position; /** * Encodes the specified Position message. Does not implicitly {@link google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.verify|verify} messages. * @param message Position message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.workflows.executions.v1.Execution.StackTraceElement.IPosition, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Position message, length delimited. Does not implicitly {@link google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.verify|verify} messages. * @param message Position message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.workflows.executions.v1.Execution.StackTraceElement.IPosition, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Position message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Position * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position; /** * Decodes a Position message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Position * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position; /** * Verifies a Position message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Position message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Position */ public static fromObject(object: { [k: string]: any }): google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position; /** * Creates a plain object from a Position message. Also converts values to other types if specified. * @param message Position * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Position to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Position * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } } /** Properties of a StackTrace. */ interface IStackTrace { /** StackTrace elements */ elements?: (google.cloud.workflows.executions.v1.Execution.IStackTraceElement[]|null); } /** Represents a StackTrace. */ class StackTrace implements IStackTrace { /** * Constructs a new StackTrace. * @param [properties] Properties to set */ constructor(properties?: google.cloud.workflows.executions.v1.Execution.IStackTrace); /** StackTrace elements. */ public elements: google.cloud.workflows.executions.v1.Execution.IStackTraceElement[]; /** * Creates a new StackTrace instance using the specified properties. * @param [properties] Properties to set * @returns StackTrace instance */ public static create(properties?: google.cloud.workflows.executions.v1.Execution.IStackTrace): google.cloud.workflows.executions.v1.Execution.StackTrace; /** * Encodes the specified StackTrace message. Does not implicitly {@link google.cloud.workflows.executions.v1.Execution.StackTrace.verify|verify} messages. * @param message StackTrace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.workflows.executions.v1.Execution.IStackTrace, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified StackTrace message, length delimited. Does not implicitly {@link google.cloud.workflows.executions.v1.Execution.StackTrace.verify|verify} messages. * @param message StackTrace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.workflows.executions.v1.Execution.IStackTrace, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a StackTrace message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns StackTrace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.workflows.executions.v1.Execution.StackTrace; /** * Decodes a StackTrace message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns StackTrace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.workflows.executions.v1.Execution.StackTrace; /** * Verifies a StackTrace message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a StackTrace message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns StackTrace */ public static fromObject(object: { [k: string]: any }): google.cloud.workflows.executions.v1.Execution.StackTrace; /** * Creates a plain object from a StackTrace message. Also converts values to other types if specified. * @param message StackTrace * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.workflows.executions.v1.Execution.StackTrace, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this StackTrace to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for StackTrace * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an Error. */ interface IError { /** Error payload */ payload?: (string|null); /** Error context */ context?: (string|null); /** Error stackTrace */ stackTrace?: (google.cloud.workflows.executions.v1.Execution.IStackTrace|null); } /** Represents an Error. */ class Error implements IError { /** * Constructs a new Error. * @param [properties] Properties to set */ constructor(properties?: google.cloud.workflows.executions.v1.Execution.IError); /** Error payload. */ public payload: string; /** Error context. */ public context: string; /** Error stackTrace. */ public stackTrace?: (google.cloud.workflows.executions.v1.Execution.IStackTrace|null); /** * Creates a new Error instance using the specified properties. * @param [properties] Properties to set * @returns Error instance */ public static create(properties?: google.cloud.workflows.executions.v1.Execution.IError): google.cloud.workflows.executions.v1.Execution.Error; /** * Encodes the specified Error message. Does not implicitly {@link google.cloud.workflows.executions.v1.Execution.Error.verify|verify} messages. * @param message Error message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.workflows.executions.v1.Execution.IError, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Error message, length delimited. Does not implicitly {@link google.cloud.workflows.executions.v1.Execution.Error.verify|verify} messages. * @param message Error message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.workflows.executions.v1.Execution.IError, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Error message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Error * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.workflows.executions.v1.Execution.Error; /** * Decodes an Error message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Error * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.workflows.executions.v1.Execution.Error; /** * Verifies an Error message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an Error message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Error */ public static fromObject(object: { [k: string]: any }): google.cloud.workflows.executions.v1.Execution.Error; /** * Creates a plain object from an Error message. Also converts values to other types if specified. * @param message Error * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.workflows.executions.v1.Execution.Error, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Error to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Error * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** CallLogLevel enum. */ enum CallLogLevel { CALL_LOG_LEVEL_UNSPECIFIED = 0, LOG_ALL_CALLS = 1, LOG_ERRORS_ONLY = 2, LOG_NONE = 3 } /** Properties of a Status. */ interface IStatus { /** Status currentSteps */ currentSteps?: (google.cloud.workflows.executions.v1.Execution.Status.IStep[]|null); } /** Represents a Status. */ class Status implements IStatus { /** * Constructs a new Status. * @param [properties] Properties to set */ constructor(properties?: google.cloud.workflows.executions.v1.Execution.IStatus); /** Status currentSteps. */ public currentSteps: google.cloud.workflows.executions.v1.Execution.Status.IStep[]; /** * Creates a new Status instance using the specified properties. * @param [properties] Properties to set * @returns Status instance */ public static create(properties?: google.cloud.workflows.executions.v1.Execution.IStatus): google.cloud.workflows.executions.v1.Execution.Status; /** * Encodes the specified Status message. Does not implicitly {@link google.cloud.workflows.executions.v1.Execution.Status.verify|verify} messages. * @param message Status message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: google.cloud.workflows.executions.v1.Execution.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Status message, length delimited. Does not implicitly {@link google.cloud.workflows.executions.v1.Execution.Status.verify|verify} messages. * @param message Status message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: google.cloud.workflows.executions.v1.Execution.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Status message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Status * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.workflows.executions.v1.Execution.Status; /** * Decodes a Status message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Status * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.workflows.executions.v1.Execution.Status; /** * Verifies a Status message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Status message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Status */ public static fromObject(object: { [k: string]: any }): google.cloud.workflows.executions.v1.Execution.Status; /** * Creates a plain object from a Status message. Also converts values to other types if specified. * @param message Status * @param [options] Conversion options * @returns Plain object */ public static toObject(message: google.cloud.workflows.executions.v1.Execution.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Status to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Status * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } namespace Status { /** Properties of a Step. */ interface IStep { /** Step routine */ routine?: (string|null); /** Ste