@moonset/model
Version:
The Moonset Model
477 lines (399 loc) • 16.7 kB
TypeScript
import * as $protobuf from "protobufjs";
/** Properties of a DataSet. */
export interface IDataSet {
}
/** Represents a DataSet. */
export class DataSet implements IDataSet {
/**
* Constructs a new DataSet.
* @param [properties] Properties to set
*/
constructor(properties?: IDataSet);
/**
* Creates a new DataSet instance using the specified properties.
* @param [properties] Properties to set
* @returns DataSet instance
*/
public static create(properties?: IDataSet): DataSet;
/**
* Encodes the specified DataSet message. Does not implicitly {@link DataSet.verify|verify} messages.
* @param message DataSet message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: IDataSet, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified DataSet message, length delimited. Does not implicitly {@link DataSet.verify|verify} messages.
* @param message DataSet message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: IDataSet, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a DataSet message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns DataSet
* @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): DataSet;
/**
* Decodes a DataSet message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns DataSet
* @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)): DataSet;
/**
* Verifies a DataSet 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 DataSet message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns DataSet
*/
public static fromObject(object: { [k: string]: any }): DataSet;
/**
* Creates a plain object from a DataSet message. Also converts values to other types if specified.
* @param message DataSet
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: DataSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this DataSet to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a Job. */
export interface IJob {
/** Job input */
input?: (IDataSet[]|null);
/** Job output */
output?: (IDataSet[]|null);
/** Job task */
task?: (ITask[]|null);
/** Job platform */
platform?: (IPlatform|null);
}
/** Represents a Job. */
export class Job implements IJob {
/**
* Constructs a new Job.
* @param [properties] Properties to set
*/
constructor(properties?: IJob);
/** Job input. */
public input: IDataSet[];
/** Job output. */
public output: IDataSet[];
/** Job task. */
public task: ITask[];
/** Job platform. */
public platform?: (IPlatform|null);
/**
* Creates a new Job instance using the specified properties.
* @param [properties] Properties to set
* @returns Job instance
*/
public static create(properties?: IJob): Job;
/**
* Encodes the specified Job message. Does not implicitly {@link Job.verify|verify} messages.
* @param message Job message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: IJob, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Job message, length delimited. Does not implicitly {@link Job.verify|verify} messages.
* @param message Job message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: IJob, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Job message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Job
* @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): Job;
/**
* Decodes a Job message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Job
* @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)): Job;
/**
* Verifies a Job 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 Job message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Job
*/
public static fromObject(object: { [k: string]: any }): Job;
/**
* Creates a plain object from a Job message. Also converts values to other types if specified.
* @param message Job
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: Job, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Job to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a Task. */
export interface ITask {
}
/** Represents a Task. */
export class Task implements ITask {
/**
* Constructs a new Task.
* @param [properties] Properties to set
*/
constructor(properties?: ITask);
/**
* Creates a new Task instance using the specified properties.
* @param [properties] Properties to set
* @returns Task instance
*/
public static create(properties?: ITask): Task;
/**
* Encodes the specified Task message. Does not implicitly {@link Task.verify|verify} messages.
* @param message Task message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ITask, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Task message, length delimited. Does not implicitly {@link Task.verify|verify} messages.
* @param message Task message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ITask, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Task message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Task
* @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): Task;
/**
* Decodes a Task message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Task
* @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)): Task;
/**
* Verifies a Task 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 Task message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Task
*/
public static fromObject(object: { [k: string]: any }): Task;
/**
* Creates a plain object from a Task message. Also converts values to other types if specified.
* @param message Task
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: Task, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Task to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a Platform. */
export interface IPlatform {
/** Platform type */
type?: (string|null);
/** Platform settings */
settings?: (google.protobuf.IAny|null);
}
/** Represents a Platform. */
export class Platform implements IPlatform {
/**
* Constructs a new Platform.
* @param [properties] Properties to set
*/
constructor(properties?: IPlatform);
/** Platform type. */
public type: string;
/** Platform settings. */
public settings?: (google.protobuf.IAny|null);
/**
* Creates a new Platform instance using the specified properties.
* @param [properties] Properties to set
* @returns Platform instance
*/
public static create(properties?: IPlatform): Platform;
/**
* Encodes the specified Platform message. Does not implicitly {@link Platform.verify|verify} messages.
* @param message Platform message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: IPlatform, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Platform message, length delimited. Does not implicitly {@link Platform.verify|verify} messages.
* @param message Platform message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: IPlatform, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Platform message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Platform
* @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): Platform;
/**
* Decodes a Platform message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Platform
* @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)): Platform;
/**
* Verifies a Platform 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 Platform message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Platform
*/
public static fromObject(object: { [k: string]: any }): Platform;
/**
* Creates a plain object from a Platform message. Also converts values to other types if specified.
* @param message Platform
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: Platform, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Platform to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Namespace google. */
export namespace google {
/** Namespace protobuf. */
namespace protobuf {
/** Properties of an Any. */
interface IAny {
/** Any type_url */
type_url?: (string|null);
/** Any value */
value?: (Uint8Array|null);
}
/** Represents an Any. */
class Any implements IAny {
/**
* Constructs a new Any.
* @param [properties] Properties to set
*/
constructor(properties?: google.protobuf.IAny);
/** Any type_url. */
public type_url: string;
/** Any value. */
public value: Uint8Array;
/**
* Creates a new Any instance using the specified properties.
* @param [properties] Properties to set
* @returns Any instance
*/
public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
/**
* Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
* @param message Any message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
* @param message Any message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an Any message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Any
* @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.protobuf.Any;
/**
* Decodes an Any message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Any
* @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.protobuf.Any;
/**
* Verifies an Any 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 Any message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Any
*/
public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
/**
* Creates a plain object from an Any message. Also converts values to other types if specified.
* @param message Any
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Any to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
}
}