UNPKG

@temporalio/proto

Version:
1,106 lines (923 loc) 5.54 MB
import * as $protobuf from "protobufjs"; import Long = require("long"); /** Namespace coresdk. */ export namespace coresdk { /** Properties of an ActivityHeartbeat. */ interface IActivityHeartbeat { /** ActivityHeartbeat taskToken */ taskToken?: (Uint8Array|null); /** ActivityHeartbeat details */ details?: (temporal.api.common.v1.IPayload[]|null); } /** A request as given to `record_activity_heartbeat` */ class ActivityHeartbeat implements IActivityHeartbeat { /** * Constructs a new ActivityHeartbeat. * @param [properties] Properties to set */ constructor(properties?: coresdk.IActivityHeartbeat); /** ActivityHeartbeat taskToken. */ public taskToken: Uint8Array; /** ActivityHeartbeat details. */ public details: temporal.api.common.v1.IPayload[]; /** * Creates a new ActivityHeartbeat instance using the specified properties. * @param [properties] Properties to set * @returns ActivityHeartbeat instance */ public static create(properties?: coresdk.IActivityHeartbeat): coresdk.ActivityHeartbeat; /** * Encodes the specified ActivityHeartbeat message. Does not implicitly {@link coresdk.ActivityHeartbeat.verify|verify} messages. * @param message ActivityHeartbeat message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: coresdk.IActivityHeartbeat, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ActivityHeartbeat message, length delimited. Does not implicitly {@link coresdk.ActivityHeartbeat.verify|verify} messages. * @param message ActivityHeartbeat message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: coresdk.IActivityHeartbeat, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an ActivityHeartbeat message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ActivityHeartbeat * @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): coresdk.ActivityHeartbeat; /** * Decodes an ActivityHeartbeat message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ActivityHeartbeat * @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)): coresdk.ActivityHeartbeat; /** * Creates an ActivityHeartbeat message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ActivityHeartbeat */ public static fromObject(object: { [k: string]: any }): coresdk.ActivityHeartbeat; /** * Creates a plain object from an ActivityHeartbeat message. Also converts values to other types if specified. * @param message ActivityHeartbeat * @param [options] Conversion options * @returns Plain object */ public static toObject(message: coresdk.ActivityHeartbeat, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ActivityHeartbeat to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ActivityHeartbeat * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an ActivityTaskCompletion. */ interface IActivityTaskCompletion { /** ActivityTaskCompletion taskToken */ taskToken?: (Uint8Array|null); /** ActivityTaskCompletion result */ result?: (coresdk.activity_result.IActivityExecutionResult|null); } /** A request as given to `complete_activity_task` */ class ActivityTaskCompletion implements IActivityTaskCompletion { /** * Constructs a new ActivityTaskCompletion. * @param [properties] Properties to set */ constructor(properties?: coresdk.IActivityTaskCompletion); /** ActivityTaskCompletion taskToken. */ public taskToken: Uint8Array; /** ActivityTaskCompletion result. */ public result?: (coresdk.activity_result.IActivityExecutionResult|null); /** * Creates a new ActivityTaskCompletion instance using the specified properties. * @param [properties] Properties to set * @returns ActivityTaskCompletion instance */ public static create(properties?: coresdk.IActivityTaskCompletion): coresdk.ActivityTaskCompletion; /** * Encodes the specified ActivityTaskCompletion message. Does not implicitly {@link coresdk.ActivityTaskCompletion.verify|verify} messages. * @param message ActivityTaskCompletion message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: coresdk.IActivityTaskCompletion, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ActivityTaskCompletion message, length delimited. Does not implicitly {@link coresdk.ActivityTaskCompletion.verify|verify} messages. * @param message ActivityTaskCompletion message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: coresdk.IActivityTaskCompletion, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an ActivityTaskCompletion message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ActivityTaskCompletion * @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): coresdk.ActivityTaskCompletion; /** * Decodes an ActivityTaskCompletion message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ActivityTaskCompletion * @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)): coresdk.ActivityTaskCompletion; /** * Creates an ActivityTaskCompletion message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ActivityTaskCompletion */ public static fromObject(object: { [k: string]: any }): coresdk.ActivityTaskCompletion; /** * Creates a plain object from an ActivityTaskCompletion message. Also converts values to other types if specified. * @param message ActivityTaskCompletion * @param [options] Conversion options * @returns Plain object */ public static toObject(message: coresdk.ActivityTaskCompletion, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ActivityTaskCompletion to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ActivityTaskCompletion * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a WorkflowSlotInfo. */ interface IWorkflowSlotInfo { /** WorkflowSlotInfo workflowType */ workflowType?: (string|null); /** WorkflowSlotInfo isSticky */ isSticky?: (boolean|null); } /** Info about workflow task slot usage */ class WorkflowSlotInfo implements IWorkflowSlotInfo { /** * Constructs a new WorkflowSlotInfo. * @param [properties] Properties to set */ constructor(properties?: coresdk.IWorkflowSlotInfo); /** WorkflowSlotInfo workflowType. */ public workflowType: string; /** WorkflowSlotInfo isSticky. */ public isSticky: boolean; /** * Creates a new WorkflowSlotInfo instance using the specified properties. * @param [properties] Properties to set * @returns WorkflowSlotInfo instance */ public static create(properties?: coresdk.IWorkflowSlotInfo): coresdk.WorkflowSlotInfo; /** * Encodes the specified WorkflowSlotInfo message. Does not implicitly {@link coresdk.WorkflowSlotInfo.verify|verify} messages. * @param message WorkflowSlotInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: coresdk.IWorkflowSlotInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified WorkflowSlotInfo message, length delimited. Does not implicitly {@link coresdk.WorkflowSlotInfo.verify|verify} messages. * @param message WorkflowSlotInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: coresdk.IWorkflowSlotInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a WorkflowSlotInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns WorkflowSlotInfo * @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): coresdk.WorkflowSlotInfo; /** * Decodes a WorkflowSlotInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns WorkflowSlotInfo * @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)): coresdk.WorkflowSlotInfo; /** * Creates a WorkflowSlotInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns WorkflowSlotInfo */ public static fromObject(object: { [k: string]: any }): coresdk.WorkflowSlotInfo; /** * Creates a plain object from a WorkflowSlotInfo message. Also converts values to other types if specified. * @param message WorkflowSlotInfo * @param [options] Conversion options * @returns Plain object */ public static toObject(message: coresdk.WorkflowSlotInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this WorkflowSlotInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for WorkflowSlotInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an ActivitySlotInfo. */ interface IActivitySlotInfo { /** ActivitySlotInfo activityType */ activityType?: (string|null); } /** Info about activity task slot usage */ class ActivitySlotInfo implements IActivitySlotInfo { /** * Constructs a new ActivitySlotInfo. * @param [properties] Properties to set */ constructor(properties?: coresdk.IActivitySlotInfo); /** ActivitySlotInfo activityType. */ public activityType: string; /** * Creates a new ActivitySlotInfo instance using the specified properties. * @param [properties] Properties to set * @returns ActivitySlotInfo instance */ public static create(properties?: coresdk.IActivitySlotInfo): coresdk.ActivitySlotInfo; /** * Encodes the specified ActivitySlotInfo message. Does not implicitly {@link coresdk.ActivitySlotInfo.verify|verify} messages. * @param message ActivitySlotInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: coresdk.IActivitySlotInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ActivitySlotInfo message, length delimited. Does not implicitly {@link coresdk.ActivitySlotInfo.verify|verify} messages. * @param message ActivitySlotInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: coresdk.IActivitySlotInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an ActivitySlotInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ActivitySlotInfo * @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): coresdk.ActivitySlotInfo; /** * Decodes an ActivitySlotInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ActivitySlotInfo * @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)): coresdk.ActivitySlotInfo; /** * Creates an ActivitySlotInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ActivitySlotInfo */ public static fromObject(object: { [k: string]: any }): coresdk.ActivitySlotInfo; /** * Creates a plain object from an ActivitySlotInfo message. Also converts values to other types if specified. * @param message ActivitySlotInfo * @param [options] Conversion options * @returns Plain object */ public static toObject(message: coresdk.ActivitySlotInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ActivitySlotInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ActivitySlotInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a LocalActivitySlotInfo. */ interface ILocalActivitySlotInfo { /** LocalActivitySlotInfo activityType */ activityType?: (string|null); } /** Info about local activity slot usage */ class LocalActivitySlotInfo implements ILocalActivitySlotInfo { /** * Constructs a new LocalActivitySlotInfo. * @param [properties] Properties to set */ constructor(properties?: coresdk.ILocalActivitySlotInfo); /** LocalActivitySlotInfo activityType. */ public activityType: string; /** * Creates a new LocalActivitySlotInfo instance using the specified properties. * @param [properties] Properties to set * @returns LocalActivitySlotInfo instance */ public static create(properties?: coresdk.ILocalActivitySlotInfo): coresdk.LocalActivitySlotInfo; /** * Encodes the specified LocalActivitySlotInfo message. Does not implicitly {@link coresdk.LocalActivitySlotInfo.verify|verify} messages. * @param message LocalActivitySlotInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: coresdk.ILocalActivitySlotInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified LocalActivitySlotInfo message, length delimited. Does not implicitly {@link coresdk.LocalActivitySlotInfo.verify|verify} messages. * @param message LocalActivitySlotInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: coresdk.ILocalActivitySlotInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a LocalActivitySlotInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns LocalActivitySlotInfo * @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): coresdk.LocalActivitySlotInfo; /** * Decodes a LocalActivitySlotInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns LocalActivitySlotInfo * @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)): coresdk.LocalActivitySlotInfo; /** * Creates a LocalActivitySlotInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns LocalActivitySlotInfo */ public static fromObject(object: { [k: string]: any }): coresdk.LocalActivitySlotInfo; /** * Creates a plain object from a LocalActivitySlotInfo message. Also converts values to other types if specified. * @param message LocalActivitySlotInfo * @param [options] Conversion options * @returns Plain object */ public static toObject(message: coresdk.LocalActivitySlotInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this LocalActivitySlotInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for LocalActivitySlotInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NexusSlotInfo. */ interface INexusSlotInfo { /** NexusSlotInfo service */ service?: (string|null); /** NexusSlotInfo operation */ operation?: (string|null); } /** Info about nexus task slot usage */ class NexusSlotInfo implements INexusSlotInfo { /** * Constructs a new NexusSlotInfo. * @param [properties] Properties to set */ constructor(properties?: coresdk.INexusSlotInfo); /** NexusSlotInfo service. */ public service: string; /** NexusSlotInfo operation. */ public operation: string; /** * Creates a new NexusSlotInfo instance using the specified properties. * @param [properties] Properties to set * @returns NexusSlotInfo instance */ public static create(properties?: coresdk.INexusSlotInfo): coresdk.NexusSlotInfo; /** * Encodes the specified NexusSlotInfo message. Does not implicitly {@link coresdk.NexusSlotInfo.verify|verify} messages. * @param message NexusSlotInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: coresdk.INexusSlotInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified NexusSlotInfo message, length delimited. Does not implicitly {@link coresdk.NexusSlotInfo.verify|verify} messages. * @param message NexusSlotInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: coresdk.INexusSlotInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a NexusSlotInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns NexusSlotInfo * @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): coresdk.NexusSlotInfo; /** * Decodes a NexusSlotInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns NexusSlotInfo * @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)): coresdk.NexusSlotInfo; /** * Creates a NexusSlotInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns NexusSlotInfo */ public static fromObject(object: { [k: string]: any }): coresdk.NexusSlotInfo; /** * Creates a plain object from a NexusSlotInfo message. Also converts values to other types if specified. * @param message NexusSlotInfo * @param [options] Conversion options * @returns Plain object */ public static toObject(message: coresdk.NexusSlotInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this NexusSlotInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for NexusSlotInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Namespace activity_result. */ namespace activity_result { /** Properties of an ActivityExecutionResult. */ interface IActivityExecutionResult { /** ActivityExecutionResult completed */ completed?: (coresdk.activity_result.ISuccess|null); /** ActivityExecutionResult failed */ failed?: (coresdk.activity_result.IFailure|null); /** ActivityExecutionResult cancelled */ cancelled?: (coresdk.activity_result.ICancellation|null); /** ActivityExecutionResult willCompleteAsync */ willCompleteAsync?: (coresdk.activity_result.IWillCompleteAsync|null); } /** Used to report activity completions to core */ class ActivityExecutionResult implements IActivityExecutionResult { /** * Constructs a new ActivityExecutionResult. * @param [properties] Properties to set */ constructor(properties?: coresdk.activity_result.IActivityExecutionResult); /** ActivityExecutionResult completed. */ public completed?: (coresdk.activity_result.ISuccess|null); /** ActivityExecutionResult failed. */ public failed?: (coresdk.activity_result.IFailure|null); /** ActivityExecutionResult cancelled. */ public cancelled?: (coresdk.activity_result.ICancellation|null); /** ActivityExecutionResult willCompleteAsync. */ public willCompleteAsync?: (coresdk.activity_result.IWillCompleteAsync|null); /** ActivityExecutionResult status. */ public status?: ("completed"|"failed"|"cancelled"|"willCompleteAsync"); /** * Creates a new ActivityExecutionResult instance using the specified properties. * @param [properties] Properties to set * @returns ActivityExecutionResult instance */ public static create(properties?: coresdk.activity_result.IActivityExecutionResult): coresdk.activity_result.ActivityExecutionResult; /** * Encodes the specified ActivityExecutionResult message. Does not implicitly {@link coresdk.activity_result.ActivityExecutionResult.verify|verify} messages. * @param message ActivityExecutionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: coresdk.activity_result.IActivityExecutionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ActivityExecutionResult message, length delimited. Does not implicitly {@link coresdk.activity_result.ActivityExecutionResult.verify|verify} messages. * @param message ActivityExecutionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: coresdk.activity_result.IActivityExecutionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an ActivityExecutionResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ActivityExecutionResult * @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): coresdk.activity_result.ActivityExecutionResult; /** * Decodes an ActivityExecutionResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ActivityExecutionResult * @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)): coresdk.activity_result.ActivityExecutionResult; /** * Creates an ActivityExecutionResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ActivityExecutionResult */ public static fromObject(object: { [k: string]: any }): coresdk.activity_result.ActivityExecutionResult; /** * Creates a plain object from an ActivityExecutionResult message. Also converts values to other types if specified. * @param message ActivityExecutionResult * @param [options] Conversion options * @returns Plain object */ public static toObject(message: coresdk.activity_result.ActivityExecutionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ActivityExecutionResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ActivityExecutionResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an ActivityResolution. */ interface IActivityResolution { /** ActivityResolution completed */ completed?: (coresdk.activity_result.ISuccess|null); /** ActivityResolution failed */ failed?: (coresdk.activity_result.IFailure|null); /** ActivityResolution cancelled */ cancelled?: (coresdk.activity_result.ICancellation|null); /** ActivityResolution backoff */ backoff?: (coresdk.activity_result.IDoBackoff|null); } /** * Used to report activity resolutions to lang. IE: This is what the activities are resolved with * in the workflow. */ class ActivityResolution implements IActivityResolution { /** * Constructs a new ActivityResolution. * @param [properties] Properties to set */ constructor(properties?: coresdk.activity_result.IActivityResolution); /** ActivityResolution completed. */ public completed?: (coresdk.activity_result.ISuccess|null); /** ActivityResolution failed. */ public failed?: (coresdk.activity_result.IFailure|null); /** ActivityResolution cancelled. */ public cancelled?: (coresdk.activity_result.ICancellation|null); /** ActivityResolution backoff. */ public backoff?: (coresdk.activity_result.IDoBackoff|null); /** ActivityResolution status. */ public status?: ("completed"|"failed"|"cancelled"|"backoff"); /** * Creates a new ActivityResolution instance using the specified properties. * @param [properties] Properties to set * @returns ActivityResolution instance */ public static create(properties?: coresdk.activity_result.IActivityResolution): coresdk.activity_result.ActivityResolution; /** * Encodes the specified ActivityResolution message. Does not implicitly {@link coresdk.activity_result.ActivityResolution.verify|verify} messages. * @param message ActivityResolution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: coresdk.activity_result.IActivityResolution, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ActivityResolution message, length delimited. Does not implicitly {@link coresdk.activity_result.ActivityResolution.verify|verify} messages. * @param message ActivityResolution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: coresdk.activity_result.IActivityResolution, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an ActivityResolution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ActivityResolution * @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): coresdk.activity_result.ActivityResolution; /** * Decodes an ActivityResolution message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ActivityResolution * @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)): coresdk.activity_result.ActivityResolution; /** * Creates an ActivityResolution message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ActivityResolution */ public static fromObject(object: { [k: string]: any }): coresdk.activity_result.ActivityResolution; /** * Creates a plain object from an ActivityResolution message. Also converts values to other types if specified. * @param message ActivityResolution * @param [options] Conversion options * @returns Plain object */ public static toObject(message: coresdk.activity_result.ActivityResolution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ActivityResolution to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ActivityResolution * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Success. */ interface ISuccess { /** Success result */ result?: (temporal.api.common.v1.IPayload|null); } /** Used to report successful completion either when executing or resolving */ class Success implements ISuccess { /** * Constructs a new Success. * @param [properties] Properties to set */ constructor(properties?: coresdk.activity_result.ISuccess); /** Success result. */ public result?: (temporal.api.common.v1.IPayload|null); /** * Creates a new Success instance using the specified properties. * @param [properties] Properties to set * @returns Success instance */ public static create(properties?: coresdk.activity_result.ISuccess): coresdk.activity_result.Success; /** * Encodes the specified Success message. Does not implicitly {@link coresdk.activity_result.Success.verify|verify} messages. * @param message Success message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: coresdk.activity_result.ISuccess, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Success message, length delimited. Does not implicitly {@link coresdk.activity_result.Success.verify|verify} messages. * @param message Success message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: coresdk.activity_result.ISuccess, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Success message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Success * @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): coresdk.activity_result.Success; /** * Decodes a Success message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Success * @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)): coresdk.activity_result.Success; /** * Creates a Success message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Success */ public static fromObject(object: { [k: string]: any }): coresdk.activity_result.Success; /** * Creates a plain object from a Success message. Also converts values to other types if specified. * @param message Success * @param [options] Conversion options * @returns Plain object */ public static toObject(message: coresdk.activity_result.Success, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Success to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Success * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Failure. */ interface IFailure { /** Failure failure */ failure?: (temporal.api.failure.v1.IFailure|null); } /** Used to report activity failure either when executing or resolving */ class Failure implements IFailure { /** * Constructs a new Failure. * @param [properties] Properties to set */ constructor(properties?: coresdk.activity_result.IFailure); /** Failure failure. */ public failure?: (temporal.api.failure.v1.IFailure|null); /** * Creates a new Failure instance using the specified properties. * @param [properties] Properties to set * @returns Failure instance */ public static create(properties?: coresdk.activity_result.IFailure): coresdk.activity_result.Failure; /** * Encodes the specified Failure message. Does not implicitly {@link coresdk.activity_result.Failure.verify|verify} messages. * @param message Failure message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: coresdk.activity_result.IFailure, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Failure message, length delimited. Does not implicitly {@link coresdk.activity_result.Failure.verify|verify} messages. * @param message Failure message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: coresdk.activity_result.IFailure, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Failure message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Failure * @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): coresdk.activity_result.Failure; /** * Decodes a Failure message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Failure * @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)): coresdk.activity_result.Failure; /** * Creates a Failure message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Failure */ public static fromObject(object: { [k: string]: any }): coresdk.activity_result.Failure; /** * Creates a plain object from a Failure message. Also converts values to other types if specified. * @param message Failure * @param [options] Conversion options * @returns Plain object */ public static toObject(message: coresdk.activity_result.Failure, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Failure to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Failure * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Cancellation. */ interface ICancellation { /** Cancellation failure */ failure?: (temporal.api.failure.v1.IFailure|null); } /** * Used to report cancellation from both Core and Lang. * When Lang reports a cancelled activity, it must put a CancelledFailure in the failure field. * When Core reports a cancelled activity, it must put an ActivityFailure with CancelledFailure * as the cause in the failure field. */ class Cancellation implements ICancellation { /** * Constructs a new Cancellation. * @param [properties] Properties to set */ constructor(properties?: coresdk.activity_result.ICancellation); /** Cancellation failure. */ public failure?: (temporal.api.failure.v1.IFailure|null); /** * Creates a new Cancellation instance using the specified properties. * @param [properties] Properties to set * @returns Cancellation instance */ public static create(properties?: coresdk.activity_result.ICancellation): coresdk.activity_result.Cancellation; /** * Encodes the specified Cancellation message. Does not implicitly {@link coresdk.activity_result.Cancellation.verify|verify} messages. * @param message Cancellation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: coresdk.activity_result.ICancellation, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Cancellation message, length delimited. Does not implicitly {@link coresdk.activity_result.Cancellation.verify|verify} messages. * @param message Cancellation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: coresdk.activity_result.ICancellation, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Cancellation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Cancellation * @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): coresdk.activity_result.Cancellation; /** * Decodes a Cancellation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Cancellation * @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)): coresdk.activity_result.Cancellation; /** * Creates a Cancellation message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Cancellation */ public static fromObject(object: { [k: string]: any }): coresdk.activity_result.Cancellation; /** * Creates a plain object from a Cancellation message. Also converts values to other types if specified. * @param message Cancellation * @param [options] Conversion options * @returns Plain object */ public static toObject(message: coresdk.activity_result.Cancellation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Cancellation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for Cancellation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a WillCompleteAsync. */ interface IWillCompleteAsync { } /** * Used in ActivityExecutionResult to notify Core that this Activity will complete asynchronously. * Core will forget about this Activity and free up resources used to track this Activity. */ class WillCompleteAsync implements IWillCompleteAsync { /** * Constructs a new WillCompleteAsync. * @param [properties] Properties to set */ constructor(properties?: coresdk.activity_result.IWillCompleteAsync); /** * Creates a new WillCompleteAsync instance using the specified properties. * @param [properties] Properties to set * @returns WillCompleteAsync instance */ public static create(properties?: coresdk.activity_result.IWillCompleteAsync): coresdk.activity_result.WillCompleteAsync; /** * Encodes the specified WillCompleteAsync message. Does not implicitly {@link coresdk.activity_result.WillCompleteAsync.verify|verify} messages. * @param message WillCompleteAsync message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: coresdk.activity_result.IWillCompleteAsync, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified WillCompleteAsync message, length delimited. Does not implicitly {@link coresdk.activity_result.WillCompleteAsync.verify|verify} messages. * @param message WillCompleteAsync message or plain object to enc