@aneoconsultingfr/armonik.api.angular
Version:
gRPC API to interact with ArmoniK built for Angular
161 lines (160 loc) • 6.43 kB
TypeScript
import { GrpcMessage, RecursivePartial, ToProtobufJSONOptions } from '@ngx-grpc/common';
import { BinaryReader, BinaryWriter, ByteSource } from 'google-protobuf';
export declare enum ResultRawEnumField {
RESULT_RAW_ENUM_FIELD_UNSPECIFIED = 0,
RESULT_RAW_ENUM_FIELD_SESSION_ID = 1,
RESULT_RAW_ENUM_FIELD_NAME = 2,
RESULT_RAW_ENUM_FIELD_OWNER_TASK_ID = 3,
RESULT_RAW_ENUM_FIELD_STATUS = 4,
RESULT_RAW_ENUM_FIELD_CREATED_AT = 5,
RESULT_RAW_ENUM_FIELD_COMPLETED_AT = 6,
RESULT_RAW_ENUM_FIELD_RESULT_ID = 7,
RESULT_RAW_ENUM_FIELD_SIZE = 8,
RESULT_RAW_ENUM_FIELD_CREATED_BY = 9,
RESULT_RAW_ENUM_FIELD_OPAQUE_ID = 10,
RESULT_RAW_ENUM_FIELD_MANUAL_DELETION = 11
}
/**
* Message implementation for armonik.api.grpc.v1.results.ResultRawField
*/
export declare class ResultRawField implements GrpcMessage {
static id: string;
/**
* Deserialize binary data to message
* @param instance message instance
*/
static deserializeBinary(bytes: ByteSource): ResultRawField;
/**
* Check all the properties and set default protobuf values if necessary
* @param _instance message instance
*/
static refineValues(_instance: ResultRawField): void;
/**
* Deserializes / reads binary message into message instance using provided binary reader
* @param _instance message instance
* @param _reader binary reader instance
*/
static deserializeBinaryFromReader(_instance: ResultRawField, _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: ResultRawField, _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 ResultRawField to deeply clone from
*/
constructor(_value?: RecursivePartial<ResultRawField.AsObject>);
get field(): ResultRawEnumField;
set field(value: ResultRawEnumField);
/**
* 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(): ResultRawField.AsObject;
/**
* Convenience method to support JSON.stringify(message), replicates the structure of toObject()
*/
toJSON(): ResultRawField.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): ResultRawField.AsProtobufJSON;
}
export declare namespace ResultRawField {
/**
* Standard JavaScript object representation for ResultRawField
*/
interface AsObject {
field: ResultRawEnumField;
}
/**
* Protobuf JSON representation for ResultRawField
*/
interface AsProtobufJSON {
field: string;
}
}
/**
* Message implementation for armonik.api.grpc.v1.results.ResultField
*/
export declare class ResultField implements GrpcMessage {
static id: string;
/**
* Deserialize binary data to message
* @param instance message instance
*/
static deserializeBinary(bytes: ByteSource): ResultField;
/**
* Check all the properties and set default protobuf values if necessary
* @param _instance message instance
*/
static refineValues(_instance: ResultField): void;
/**
* Deserializes / reads binary message into message instance using provided binary reader
* @param _instance message instance
* @param _reader binary reader instance
*/
static deserializeBinaryFromReader(_instance: ResultField, _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: ResultField, _writer: BinaryWriter): void;
private _resultRawField?;
private _field;
/**
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
* @param _value initial values object or instance of ResultField to deeply clone from
*/
constructor(_value?: RecursivePartial<ResultField.AsObject>);
get resultRawField(): ResultRawField | undefined;
set resultRawField(value: ResultRawField | undefined);
get field(): ResultField.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(): ResultField.AsObject;
/**
* Convenience method to support JSON.stringify(message), replicates the structure of toObject()
*/
toJSON(): ResultField.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): ResultField.AsProtobufJSON;
}
export declare namespace ResultField {
/**
* Standard JavaScript object representation for ResultField
*/
interface AsObject {
resultRawField?: ResultRawField.AsObject;
}
/**
* Protobuf JSON representation for ResultField
*/
interface AsProtobufJSON {
resultRawField: ResultRawField.AsProtobufJSON | null;
}
enum FieldCase {
none = 0,
resultRawField = 1
}
}