Skip to content

Commit

Permalink
Undo generated artifacts, ready to merge
Browse files Browse the repository at this point in the history
  • Loading branch information
n0nick committed Apr 17, 2024
1 parent 89e8124 commit c4ea8e3
Show file tree
Hide file tree
Showing 9 changed files with 268 additions and 1,332 deletions.
769 changes: 265 additions & 504 deletions app/mltraining/v1/ml_training.pb.go

Large diffs are not rendered by default.

85 changes: 0 additions & 85 deletions app/mltraining/v1/ml_training.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 0 additions & 38 deletions app/mltraining/v1/ml_training_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 0 additions & 61 deletions gen/js/app/mltraining/v1/ml_training_grpc_web_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,67 +144,6 @@ proto.viam.app.mltraining.v1.MLTrainingServicePromiseClient.prototype.submitTrai
};


/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest,
* !proto.viam.app.mltraining.v1.SubmitCustomTrainingJobResponse>}
*/
const methodDescriptor_MLTrainingService_SubmitCustomTrainingJob = new grpc.web.MethodDescriptor(
'/viam.app.mltraining.v1.MLTrainingService/SubmitCustomTrainingJob',
grpc.web.MethodType.UNARY,
proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest,
proto.viam.app.mltraining.v1.SubmitCustomTrainingJobResponse,
/**
* @param {!proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest} request
* @return {!Uint8Array}
*/
function(request) {
return request.serializeBinary();
},
proto.viam.app.mltraining.v1.SubmitCustomTrainingJobResponse.deserializeBinary
);


/**
* @param {!proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.viam.app.mltraining.v1.SubmitCustomTrainingJobResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.viam.app.mltraining.v1.SubmitCustomTrainingJobResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.viam.app.mltraining.v1.MLTrainingServiceClient.prototype.submitCustomTrainingJob =
function(request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ +
'/viam.app.mltraining.v1.MLTrainingService/SubmitCustomTrainingJob',
request,
metadata || {},
methodDescriptor_MLTrainingService_SubmitCustomTrainingJob,
callback);
};


/**
* @param {!proto.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.viam.app.mltraining.v1.SubmitCustomTrainingJobResponse>}
* Promise that resolves to the response
*/
proto.viam.app.mltraining.v1.MLTrainingServicePromiseClient.prototype.submitCustomTrainingJob =
function(request, metadata) {
return this.client_.unaryCall(this.hostname_ +
'/viam.app.mltraining.v1.MLTrainingService/SubmitCustomTrainingJob',
request,
metadata || {},
methodDescriptor_MLTrainingService_SubmitCustomTrainingJob);
};


/**
* @const
* @type {!grpc.web.MethodDescriptor<
Expand Down
68 changes: 0 additions & 68 deletions gen/js/app/mltraining/v1/ml_training_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,62 +68,6 @@ export namespace SubmitTrainingJobResponse {
}
}

export class SubmitCustomTrainingJobRequest extends jspb.Message {
getDatasetId(): string;
setDatasetId(value: string): void;

getRegistryItemId(): string;
setRegistryItemId(value: string): void;

getOrganizationId(): string;
setOrganizationId(value: string): void;

getModelName(): string;
setModelName(value: string): void;

getModelVersion(): string;
setModelVersion(value: string): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): SubmitCustomTrainingJobRequest.AsObject;
static toObject(includeInstance: boolean, msg: SubmitCustomTrainingJobRequest): SubmitCustomTrainingJobRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: SubmitCustomTrainingJobRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): SubmitCustomTrainingJobRequest;
static deserializeBinaryFromReader(message: SubmitCustomTrainingJobRequest, reader: jspb.BinaryReader): SubmitCustomTrainingJobRequest;
}

export namespace SubmitCustomTrainingJobRequest {
export type AsObject = {
datasetId: string,
registryItemId: string,
organizationId: string,
modelName: string,
modelVersion: string,
}
}

export class SubmitCustomTrainingJobResponse extends jspb.Message {
getId(): string;
setId(value: string): void;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): SubmitCustomTrainingJobResponse.AsObject;
static toObject(includeInstance: boolean, msg: SubmitCustomTrainingJobResponse): SubmitCustomTrainingJobResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: SubmitCustomTrainingJobResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): SubmitCustomTrainingJobResponse;
static deserializeBinaryFromReader(message: SubmitCustomTrainingJobResponse, reader: jspb.BinaryReader): SubmitCustomTrainingJobResponse;
}

export namespace SubmitCustomTrainingJobResponse {
export type AsObject = {
id: string,
}
}

export class GetTrainingJobRequest extends jspb.Message {
getId(): string;
setId(value: string): void;
Expand Down Expand Up @@ -236,15 +180,6 @@ export class TrainingJobMetadata extends jspb.Message {
getModelType(): ModelTypeMap[keyof ModelTypeMap];
setModelType(value: ModelTypeMap[keyof ModelTypeMap]): void;

getModelFramework(): ModelFrameworkMap[keyof ModelFrameworkMap];
setModelFramework(value: ModelFrameworkMap[keyof ModelFrameworkMap]): void;

getIsCustomJob(): boolean;
setIsCustomJob(value: boolean): void;

getRegistryItemId(): string;
setRegistryItemId(value: string): void;

getStatus(): TrainingStatusMap[keyof TrainingStatusMap];
setStatus(value: TrainingStatusMap[keyof TrainingStatusMap]): void;

Expand Down Expand Up @@ -300,9 +235,6 @@ export namespace TrainingJobMetadata {
modelName: string,
modelVersion: string,
modelType: ModelTypeMap[keyof ModelTypeMap],
modelFramework: ModelFrameworkMap[keyof ModelFrameworkMap],
isCustomJob: boolean,
registryItemId: string,
status: TrainingStatusMap[keyof TrainingStatusMap],
errorStatus?: google_rpc_status_pb.Status.AsObject,
createdOn?: google_protobuf_timestamp_pb.Timestamp.AsObject,
Expand Down
Loading

0 comments on commit c4ea8e3

Please sign in to comment.