UNPKG

@aneoconsultingfr/armonik.api.angular

Version:

gRPC API to interact with ArmoniK built for Angular

333 lines (332 loc) 13.8 kB
import { GrpcMessage, RecursivePartial, ToProtobufJSONOptions } from '@ngx-grpc/common'; import { BinaryReader, BinaryWriter, ByteSource } from 'google-protobuf'; export declare enum TaskSummaryEnumField { TASK_SUMMARY_ENUM_FIELD_UNSPECIFIED = 0, TASK_SUMMARY_ENUM_FIELD_TASK_ID = 16, TASK_SUMMARY_ENUM_FIELD_SESSION_ID = 1, TASK_SUMMARY_ENUM_FIELD_OWNER_POD_ID = 9, TASK_SUMMARY_ENUM_FIELD_INITIAL_TASK_ID = 10, TASK_SUMMARY_ENUM_FIELD_STATUS = 2, TASK_SUMMARY_ENUM_FIELD_CREATED_AT = 3, TASK_SUMMARY_ENUM_FIELD_SUBMITTED_AT = 11, TASK_SUMMARY_ENUM_FIELD_STARTED_AT = 4, TASK_SUMMARY_ENUM_FIELD_ENDED_AT = 5, TASK_SUMMARY_ENUM_FIELD_CREATION_TO_END_DURATION = 6, TASK_SUMMARY_ENUM_FIELD_PROCESSING_TO_END_DURATION = 7, TASK_SUMMARY_ENUM_FIELD_RECEIVED_TO_END_DURATION = 18, TASK_SUMMARY_ENUM_FIELD_POD_TTL = 12, TASK_SUMMARY_ENUM_FIELD_POD_HOSTNAME = 13, TASK_SUMMARY_ENUM_FIELD_RECEIVED_AT = 14, TASK_SUMMARY_ENUM_FIELD_ACQUIRED_AT = 15, TASK_SUMMARY_ENUM_FIELD_PROCESSED_AT = 17, TASK_SUMMARY_ENUM_FIELD_ERROR = 8, TASK_SUMMARY_ENUM_FIELD_FETCHED_AT = 19, TASK_SUMMARY_ENUM_FIELD_PAYLOAD_ID = 20, TASK_SUMMARY_ENUM_FIELD_CREATED_BY = 21 } export declare enum TaskOptionEnumField { TASK_OPTION_ENUM_FIELD_UNSPECIFIED = 0, TASK_OPTION_ENUM_FIELD_MAX_DURATION = 1, TASK_OPTION_ENUM_FIELD_MAX_RETRIES = 2, TASK_OPTION_ENUM_FIELD_PRIORITY = 3, TASK_OPTION_ENUM_FIELD_PARTITION_ID = 4, TASK_OPTION_ENUM_FIELD_APPLICATION_NAME = 5, TASK_OPTION_ENUM_FIELD_APPLICATION_VERSION = 6, TASK_OPTION_ENUM_FIELD_APPLICATION_NAMESPACE = 7, TASK_OPTION_ENUM_FIELD_APPLICATION_SERVICE = 8, TASK_OPTION_ENUM_FIELD_ENGINE_TYPE = 9 } /** * Message implementation for armonik.api.grpc.v1.tasks.TaskSummaryField */ export declare class TaskSummaryField implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): TaskSummaryField; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: TaskSummaryField): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: TaskSummaryField, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: TaskSummaryField, _writer: BinaryWriter): void; private _field; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of TaskSummaryField to deeply clone from */ constructor(_value?: RecursivePartial<TaskSummaryField.AsObject>); get field(): TaskSummaryEnumField; set field(value: TaskSummaryEnumField); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): Uint8Array; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): TaskSummaryField.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): TaskSummaryField.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): TaskSummaryField.AsProtobufJSON; } export declare namespace TaskSummaryField { /** * Standard JavaScript object representation for TaskSummaryField */ interface AsObject { field: TaskSummaryEnumField; } /** * Protobuf JSON representation for TaskSummaryField */ interface AsProtobufJSON { field: string; } } /** * Message implementation for armonik.api.grpc.v1.tasks.TaskOptionField */ export declare class TaskOptionField implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): TaskOptionField; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: TaskOptionField): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: TaskOptionField, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: TaskOptionField, _writer: BinaryWriter): void; private _field; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of TaskOptionField to deeply clone from */ constructor(_value?: RecursivePartial<TaskOptionField.AsObject>); get field(): TaskOptionEnumField; set field(value: TaskOptionEnumField); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): Uint8Array; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): TaskOptionField.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): TaskOptionField.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): TaskOptionField.AsProtobufJSON; } export declare namespace TaskOptionField { /** * Standard JavaScript object representation for TaskOptionField */ interface AsObject { field: TaskOptionEnumField; } /** * Protobuf JSON representation for TaskOptionField */ interface AsProtobufJSON { field: string; } } /** * Message implementation for armonik.api.grpc.v1.tasks.TaskOptionGenericField */ export declare class TaskOptionGenericField implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): TaskOptionGenericField; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: TaskOptionGenericField): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: TaskOptionGenericField, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: TaskOptionGenericField, _writer: BinaryWriter): void; private _field; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of TaskOptionGenericField to deeply clone from */ constructor(_value?: RecursivePartial<TaskOptionGenericField.AsObject>); get field(): string; set field(value: string); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): Uint8Array; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): TaskOptionGenericField.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): TaskOptionGenericField.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): TaskOptionGenericField.AsProtobufJSON; } export declare namespace TaskOptionGenericField { /** * Standard JavaScript object representation for TaskOptionGenericField */ interface AsObject { field: string; } /** * Protobuf JSON representation for TaskOptionGenericField */ interface AsProtobufJSON { field: string; } } /** * Message implementation for armonik.api.grpc.v1.tasks.TaskField */ export declare class TaskField implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): TaskField; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: TaskField): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: TaskField, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: TaskField, _writer: BinaryWriter): void; private _taskSummaryField?; private _taskOptionField?; private _taskOptionGenericField?; private _field; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of TaskField to deeply clone from */ constructor(_value?: RecursivePartial<TaskField.AsObject>); get taskSummaryField(): TaskSummaryField | undefined; set taskSummaryField(value: TaskSummaryField | undefined); get taskOptionField(): TaskOptionField | undefined; set taskOptionField(value: TaskOptionField | undefined); get taskOptionGenericField(): TaskOptionGenericField | undefined; set taskOptionGenericField(value: TaskOptionGenericField | undefined); get field(): TaskField.FieldCase; /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): Uint8Array; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): TaskField.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): TaskField.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required */ toProtobufJSON(options?: ToProtobufJSONOptions): TaskField.AsProtobufJSON; } export declare namespace TaskField { /** * Standard JavaScript object representation for TaskField */ interface AsObject { taskSummaryField?: TaskSummaryField.AsObject; taskOptionField?: TaskOptionField.AsObject; taskOptionGenericField?: TaskOptionGenericField.AsObject; } /** * Protobuf JSON representation for TaskField */ interface AsProtobufJSON { taskSummaryField: TaskSummaryField.AsProtobufJSON | null; taskOptionField: TaskOptionField.AsProtobufJSON | null; taskOptionGenericField: TaskOptionGenericField.AsProtobufJSON | null; } enum FieldCase { none = 0, taskSummaryField = 1, taskOptionField = 2, taskOptionGenericField = 3 } }