@aneoconsultingfr/armonik.api
Version:
gRPC API to interact with ArmoniK built for the web
83 lines (80 loc) • 3.98 kB
text/typescript
import _m0 from 'protobufjs/minimal.js';
declare const protobufPackage = "armonik.api.grpc.v1.applications";
/** Represents every available field in an application. */
declare enum ApplicationRawEnumField {
/** APPLICATION_RAW_ENUM_FIELD_UNSPECIFIED - Unspecified */
APPLICATION_RAW_ENUM_FIELD_UNSPECIFIED = 0,
/** APPLICATION_RAW_ENUM_FIELD_NAME - Application name. */
APPLICATION_RAW_ENUM_FIELD_NAME = 1,
/** APPLICATION_RAW_ENUM_FIELD_VERSION - Application version. */
APPLICATION_RAW_ENUM_FIELD_VERSION = 2,
/** APPLICATION_RAW_ENUM_FIELD_NAMESPACE - Application namespace. */
APPLICATION_RAW_ENUM_FIELD_NAMESPACE = 3,
/** APPLICATION_RAW_ENUM_FIELD_SERVICE - Application service. */
APPLICATION_RAW_ENUM_FIELD_SERVICE = 4,
UNRECOGNIZED = -1
}
declare function applicationRawEnumFieldFromJSON(object: any): ApplicationRawEnumField;
declare function applicationRawEnumFieldToJSON(object: ApplicationRawEnumField): string;
/** This message is used to wrap the enum in order to facilitate the 'oneOf' generation. */
interface ApplicationRawField {
field: ApplicationRawEnumField;
}
declare const ApplicationRawField: {
encode(message: ApplicationRawField, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): ApplicationRawField;
fromJSON(object: any): ApplicationRawField;
toJSON(message: ApplicationRawField): unknown;
create<I extends {
field?: ApplicationRawEnumField | undefined;
} & {
field?: ApplicationRawEnumField | undefined;
} & { [K in Exclude<keyof I, "field">]: never; }>(base?: I | undefined): ApplicationRawField;
fromPartial<I_1 extends {
field?: ApplicationRawEnumField | undefined;
} & {
field?: ApplicationRawEnumField | undefined;
} & { [K_1 in Exclude<keyof I_1, "field">]: never; }>(object: I_1): ApplicationRawField;
};
interface ApplicationField {
applicationField?: ApplicationRawField | undefined;
}
declare const ApplicationField: {
encode(message: ApplicationField, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): ApplicationField;
fromJSON(object: any): ApplicationField;
toJSON(message: ApplicationField): unknown;
create<I extends {
applicationField?: {
field?: ApplicationRawEnumField | undefined;
} | undefined;
} & {
applicationField?: ({
field?: ApplicationRawEnumField | undefined;
} & {
field?: ApplicationRawEnumField | undefined;
} & { [K in Exclude<keyof I["applicationField"], "field">]: never; }) | undefined;
} & { [K_1 in Exclude<keyof I, "applicationField">]: never; }>(base?: I | undefined): ApplicationField;
fromPartial<I_1 extends {
applicationField?: {
field?: ApplicationRawEnumField | undefined;
} | undefined;
} & {
applicationField?: ({
field?: ApplicationRawEnumField | undefined;
} & {
field?: ApplicationRawEnumField | undefined;
} & { [K_2 in Exclude<keyof I_1["applicationField"], "field">]: never; }) | undefined;
} & { [K_3 in Exclude<keyof I_1, "applicationField">]: never; }>(object: I_1): ApplicationField;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
[K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
type KeysOfUnion<T> = T extends T ? keyof T : never;
type Exact<P, I extends P> = P extends Builtin ? P : P & {
[K in keyof P]: Exact<P[K], I[K]>;
} & {
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
};
export { ApplicationField, ApplicationRawEnumField, ApplicationRawField, DeepPartial, Exact, applicationRawEnumFieldFromJSON, applicationRawEnumFieldToJSON, protobufPackage };