weave-typescript 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/google/api/annotations.pb.d.ts +1 -0
- package/dist/google/api/annotations.pb.js +10 -0
- package/dist/google/api/http.pb.d.ts +371 -0
- package/dist/google/api/http.pb.js +360 -0
- package/dist/google/protobuf/descriptor.pb.d.ts +1285 -0
- package/dist/google/protobuf/descriptor.pb.js +5217 -0
- package/dist/google/protobuf/struct.pb.d.ts +107 -0
- package/dist/google/protobuf/struct.pb.js +461 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +54 -0
- package/dist/weave/datamanagement/generate/v1/configuration.pb.d.ts +123 -0
- package/dist/weave/datamanagement/generate/v1/configuration.pb.js +799 -0
- package/dist/weave/datamanagement/generate/v1/generate.pb.d.ts +30 -0
- package/dist/weave/datamanagement/generate/v1/generate.pb.js +119 -0
- package/dist/weave/datamanagement/generate/v1/service.pb.d.ts +126 -0
- package/dist/weave/datamanagement/generate/v1/service.pb.js +578 -0
- package/dist/weave/datamanagement/storage/v1/auth.pb.d.ts +27 -0
- package/dist/weave/datamanagement/storage/v1/auth.pb.js +98 -0
- package/dist/weave/datamanagement/storage/v1/nosql_database.pb.d.ts +91 -0
- package/dist/weave/datamanagement/storage/v1/nosql_database.pb.js +1030 -0
- package/dist/weave/datamanagement/storage/v1/object_store.pb.d.ts +49 -0
- package/dist/weave/datamanagement/storage/v1/object_store.pb.js +405 -0
- package/dist/weave/datamanagement/storage/v1/service.pb.d.ts +257 -0
- package/dist/weave/datamanagement/storage/v1/service.pb.js +1188 -0
- package/dist/weave/datamanagement/storage/v1/sql_database.pb.d.ts +98 -0
- package/dist/weave/datamanagement/storage/v1/sql_database.pb.js +1142 -0
- package/dist/weave/datamanagement/storage/v1/storage.pb.d.ts +33 -0
- package/dist/weave/datamanagement/storage/v1/storage.pb.js +159 -0
- package/dist/weave/datamanagement/synthesize/v1/dataset.pb.d.ts +68 -0
- package/dist/weave/datamanagement/synthesize/v1/dataset.pb.js +439 -0
- package/dist/weave/datamanagement/synthesize/v1/inline_data.pb.d.ts +45 -0
- package/dist/weave/datamanagement/synthesize/v1/inline_data.pb.js +166 -0
- package/dist/weave/datamanagement/synthesize/v1/relationship.pb.d.ts +58 -0
- package/dist/weave/datamanagement/synthesize/v1/relationship.pb.js +241 -0
- package/dist/weave/datamanagement/synthesize/v1/service.pb.d.ts +133 -0
- package/dist/weave/datamanagement/synthesize/v1/service.pb.js +705 -0
- package/dist/weave/datamanagement/synthesize/v1/training.pb.d.ts +58 -0
- package/dist/weave/datamanagement/synthesize/v1/training.pb.js +353 -0
- package/package.json +27 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { NoSqlDatabase } from "./nosql_database.pb";
|
|
3
|
+
import { ObjectStore } from "./object_store.pb";
|
|
4
|
+
import { SqlDatabase } from "./sql_database.pb";
|
|
5
|
+
export declare const protobufPackage = "weave.datamanagement.storage.v1";
|
|
6
|
+
export interface StorageConnection {
|
|
7
|
+
organizationId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
objectStore?: ObjectStore | undefined;
|
|
11
|
+
sqlDatabase?: SqlDatabase | undefined;
|
|
12
|
+
nosqlDatabase?: NoSqlDatabase | undefined;
|
|
13
|
+
}
|
|
14
|
+
export declare const StorageConnection: MessageFns<StorageConnection>;
|
|
15
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
16
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
17
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
18
|
+
} : Partial<T>;
|
|
19
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
20
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
21
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
22
|
+
} & {
|
|
23
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
24
|
+
};
|
|
25
|
+
export interface MessageFns<T> {
|
|
26
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
27
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
28
|
+
fromJSON(object: any): T;
|
|
29
|
+
toJSON(message: T): unknown;
|
|
30
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
31
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.6.1
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: weave/datamanagement/storage/v1/storage.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.StorageConnection = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const nosql_database_pb_1 = require("./nosql_database.pb");
|
|
12
|
+
const object_store_pb_1 = require("./object_store.pb");
|
|
13
|
+
const sql_database_pb_1 = require("./sql_database.pb");
|
|
14
|
+
exports.protobufPackage = "weave.datamanagement.storage.v1";
|
|
15
|
+
function createBaseStorageConnection() {
|
|
16
|
+
return {
|
|
17
|
+
organizationId: "",
|
|
18
|
+
name: "",
|
|
19
|
+
description: "",
|
|
20
|
+
objectStore: undefined,
|
|
21
|
+
sqlDatabase: undefined,
|
|
22
|
+
nosqlDatabase: undefined,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
exports.StorageConnection = {
|
|
26
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
27
|
+
if (message.organizationId !== "") {
|
|
28
|
+
writer.uint32(10).string(message.organizationId);
|
|
29
|
+
}
|
|
30
|
+
if (message.name !== "") {
|
|
31
|
+
writer.uint32(18).string(message.name);
|
|
32
|
+
}
|
|
33
|
+
if (message.description !== "") {
|
|
34
|
+
writer.uint32(26).string(message.description);
|
|
35
|
+
}
|
|
36
|
+
if (message.objectStore !== undefined) {
|
|
37
|
+
object_store_pb_1.ObjectStore.encode(message.objectStore, writer.uint32(34).fork()).join();
|
|
38
|
+
}
|
|
39
|
+
if (message.sqlDatabase !== undefined) {
|
|
40
|
+
sql_database_pb_1.SqlDatabase.encode(message.sqlDatabase, writer.uint32(42).fork()).join();
|
|
41
|
+
}
|
|
42
|
+
if (message.nosqlDatabase !== undefined) {
|
|
43
|
+
nosql_database_pb_1.NoSqlDatabase.encode(message.nosqlDatabase, writer.uint32(50).fork()).join();
|
|
44
|
+
}
|
|
45
|
+
return writer;
|
|
46
|
+
},
|
|
47
|
+
decode(input, length) {
|
|
48
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
49
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
50
|
+
const message = createBaseStorageConnection();
|
|
51
|
+
while (reader.pos < end) {
|
|
52
|
+
const tag = reader.uint32();
|
|
53
|
+
switch (tag >>> 3) {
|
|
54
|
+
case 1: {
|
|
55
|
+
if (tag !== 10) {
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
message.organizationId = reader.string();
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
case 2: {
|
|
62
|
+
if (tag !== 18) {
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
message.name = reader.string();
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
case 3: {
|
|
69
|
+
if (tag !== 26) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.description = reader.string();
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
case 4: {
|
|
76
|
+
if (tag !== 34) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
message.objectStore = object_store_pb_1.ObjectStore.decode(reader, reader.uint32());
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
case 5: {
|
|
83
|
+
if (tag !== 42) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.sqlDatabase = sql_database_pb_1.SqlDatabase.decode(reader, reader.uint32());
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
case 6: {
|
|
90
|
+
if (tag !== 50) {
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
message.nosqlDatabase = nosql_database_pb_1.NoSqlDatabase.decode(reader, reader.uint32());
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
reader.skip(tag & 7);
|
|
101
|
+
}
|
|
102
|
+
return message;
|
|
103
|
+
},
|
|
104
|
+
fromJSON(object) {
|
|
105
|
+
return {
|
|
106
|
+
organizationId: isSet(object.organizationId) ? globalThis.String(object.organizationId) : "",
|
|
107
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
108
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
109
|
+
objectStore: isSet(object.objectStore) ? object_store_pb_1.ObjectStore.fromJSON(object.objectStore) : undefined,
|
|
110
|
+
sqlDatabase: isSet(object.sqlDatabase) ? sql_database_pb_1.SqlDatabase.fromJSON(object.sqlDatabase) : undefined,
|
|
111
|
+
nosqlDatabase: isSet(object.nosqlDatabase) ? nosql_database_pb_1.NoSqlDatabase.fromJSON(object.nosqlDatabase) : undefined,
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
toJSON(message) {
|
|
115
|
+
const obj = {};
|
|
116
|
+
if (message.organizationId !== "") {
|
|
117
|
+
obj.organizationId = message.organizationId;
|
|
118
|
+
}
|
|
119
|
+
if (message.name !== "") {
|
|
120
|
+
obj.name = message.name;
|
|
121
|
+
}
|
|
122
|
+
if (message.description !== "") {
|
|
123
|
+
obj.description = message.description;
|
|
124
|
+
}
|
|
125
|
+
if (message.objectStore !== undefined) {
|
|
126
|
+
obj.objectStore = object_store_pb_1.ObjectStore.toJSON(message.objectStore);
|
|
127
|
+
}
|
|
128
|
+
if (message.sqlDatabase !== undefined) {
|
|
129
|
+
obj.sqlDatabase = sql_database_pb_1.SqlDatabase.toJSON(message.sqlDatabase);
|
|
130
|
+
}
|
|
131
|
+
if (message.nosqlDatabase !== undefined) {
|
|
132
|
+
obj.nosqlDatabase = nosql_database_pb_1.NoSqlDatabase.toJSON(message.nosqlDatabase);
|
|
133
|
+
}
|
|
134
|
+
return obj;
|
|
135
|
+
},
|
|
136
|
+
create(base) {
|
|
137
|
+
return exports.StorageConnection.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
138
|
+
},
|
|
139
|
+
fromPartial(object) {
|
|
140
|
+
var _a, _b, _c;
|
|
141
|
+
const message = createBaseStorageConnection();
|
|
142
|
+
message.organizationId = (_a = object.organizationId) !== null && _a !== void 0 ? _a : "";
|
|
143
|
+
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
144
|
+
message.description = (_c = object.description) !== null && _c !== void 0 ? _c : "";
|
|
145
|
+
message.objectStore = (object.objectStore !== undefined && object.objectStore !== null)
|
|
146
|
+
? object_store_pb_1.ObjectStore.fromPartial(object.objectStore)
|
|
147
|
+
: undefined;
|
|
148
|
+
message.sqlDatabase = (object.sqlDatabase !== undefined && object.sqlDatabase !== null)
|
|
149
|
+
? sql_database_pb_1.SqlDatabase.fromPartial(object.sqlDatabase)
|
|
150
|
+
: undefined;
|
|
151
|
+
message.nosqlDatabase = (object.nosqlDatabase !== undefined && object.nosqlDatabase !== null)
|
|
152
|
+
? nosql_database_pb_1.NoSqlDatabase.fromPartial(object.nosqlDatabase)
|
|
153
|
+
: undefined;
|
|
154
|
+
return message;
|
|
155
|
+
},
|
|
156
|
+
};
|
|
157
|
+
function isSet(value) {
|
|
158
|
+
return value !== null && value !== undefined;
|
|
159
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "weave.datamanagement.synthesize.v1";
|
|
3
|
+
/** DataType defines the data type of a column */
|
|
4
|
+
export declare enum DataType {
|
|
5
|
+
DATA_TYPE_UNSPECIFIED = 0,
|
|
6
|
+
DATA_TYPE_STRING = 1,
|
|
7
|
+
DATA_TYPE_INTEGER = 2,
|
|
8
|
+
DATA_TYPE_FLOAT = 3,
|
|
9
|
+
DATA_TYPE_BOOLEAN = 4,
|
|
10
|
+
DATA_TYPE_TIMESTAMP = 5,
|
|
11
|
+
DATA_TYPE_DATE = 6,
|
|
12
|
+
DATA_TYPE_BINARY = 7,
|
|
13
|
+
DATA_TYPE_CATEGORICAL = 8,
|
|
14
|
+
DATA_TYPE_ORDINAL = 9,
|
|
15
|
+
UNRECOGNIZED = -1
|
|
16
|
+
}
|
|
17
|
+
export declare function dataTypeFromJSON(object: any): DataType;
|
|
18
|
+
export declare function dataTypeToJSON(object: DataType): string;
|
|
19
|
+
/** Dataset represents a tabular dataset within a storage source */
|
|
20
|
+
export interface Dataset {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
storageId: string;
|
|
25
|
+
schemaId: string;
|
|
26
|
+
isSynthetic: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface Schema {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
description: string;
|
|
32
|
+
columns: Column[];
|
|
33
|
+
}
|
|
34
|
+
/** Column represents a column in a tabular dataset */
|
|
35
|
+
export interface Column {
|
|
36
|
+
/** Unique identifier for this column */
|
|
37
|
+
id: string;
|
|
38
|
+
/** Name of the column */
|
|
39
|
+
name: string;
|
|
40
|
+
/** Data type of the column */
|
|
41
|
+
dataType: DataType;
|
|
42
|
+
/** Whether this column is a primary key */
|
|
43
|
+
isPrimaryKey: boolean;
|
|
44
|
+
/** Optional description */
|
|
45
|
+
description: string;
|
|
46
|
+
}
|
|
47
|
+
export declare const Dataset: MessageFns<Dataset>;
|
|
48
|
+
export declare const Schema: MessageFns<Schema>;
|
|
49
|
+
export declare const Column: MessageFns<Column>;
|
|
50
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
51
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
52
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
53
|
+
} : Partial<T>;
|
|
54
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
55
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
56
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
57
|
+
} & {
|
|
58
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
59
|
+
};
|
|
60
|
+
export interface MessageFns<T> {
|
|
61
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
62
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
63
|
+
fromJSON(object: any): T;
|
|
64
|
+
toJSON(message: T): unknown;
|
|
65
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
66
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.6.1
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: weave/datamanagement/synthesize/v1/dataset.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Column = exports.Schema = exports.Dataset = exports.DataType = exports.protobufPackage = void 0;
|
|
9
|
+
exports.dataTypeFromJSON = dataTypeFromJSON;
|
|
10
|
+
exports.dataTypeToJSON = dataTypeToJSON;
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
13
|
+
exports.protobufPackage = "weave.datamanagement.synthesize.v1";
|
|
14
|
+
/** DataType defines the data type of a column */
|
|
15
|
+
var DataType;
|
|
16
|
+
(function (DataType) {
|
|
17
|
+
DataType[DataType["DATA_TYPE_UNSPECIFIED"] = 0] = "DATA_TYPE_UNSPECIFIED";
|
|
18
|
+
DataType[DataType["DATA_TYPE_STRING"] = 1] = "DATA_TYPE_STRING";
|
|
19
|
+
DataType[DataType["DATA_TYPE_INTEGER"] = 2] = "DATA_TYPE_INTEGER";
|
|
20
|
+
DataType[DataType["DATA_TYPE_FLOAT"] = 3] = "DATA_TYPE_FLOAT";
|
|
21
|
+
DataType[DataType["DATA_TYPE_BOOLEAN"] = 4] = "DATA_TYPE_BOOLEAN";
|
|
22
|
+
DataType[DataType["DATA_TYPE_TIMESTAMP"] = 5] = "DATA_TYPE_TIMESTAMP";
|
|
23
|
+
DataType[DataType["DATA_TYPE_DATE"] = 6] = "DATA_TYPE_DATE";
|
|
24
|
+
DataType[DataType["DATA_TYPE_BINARY"] = 7] = "DATA_TYPE_BINARY";
|
|
25
|
+
DataType[DataType["DATA_TYPE_CATEGORICAL"] = 8] = "DATA_TYPE_CATEGORICAL";
|
|
26
|
+
DataType[DataType["DATA_TYPE_ORDINAL"] = 9] = "DATA_TYPE_ORDINAL";
|
|
27
|
+
DataType[DataType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
28
|
+
})(DataType || (exports.DataType = DataType = {}));
|
|
29
|
+
function dataTypeFromJSON(object) {
|
|
30
|
+
switch (object) {
|
|
31
|
+
case 0:
|
|
32
|
+
case "DATA_TYPE_UNSPECIFIED":
|
|
33
|
+
return DataType.DATA_TYPE_UNSPECIFIED;
|
|
34
|
+
case 1:
|
|
35
|
+
case "DATA_TYPE_STRING":
|
|
36
|
+
return DataType.DATA_TYPE_STRING;
|
|
37
|
+
case 2:
|
|
38
|
+
case "DATA_TYPE_INTEGER":
|
|
39
|
+
return DataType.DATA_TYPE_INTEGER;
|
|
40
|
+
case 3:
|
|
41
|
+
case "DATA_TYPE_FLOAT":
|
|
42
|
+
return DataType.DATA_TYPE_FLOAT;
|
|
43
|
+
case 4:
|
|
44
|
+
case "DATA_TYPE_BOOLEAN":
|
|
45
|
+
return DataType.DATA_TYPE_BOOLEAN;
|
|
46
|
+
case 5:
|
|
47
|
+
case "DATA_TYPE_TIMESTAMP":
|
|
48
|
+
return DataType.DATA_TYPE_TIMESTAMP;
|
|
49
|
+
case 6:
|
|
50
|
+
case "DATA_TYPE_DATE":
|
|
51
|
+
return DataType.DATA_TYPE_DATE;
|
|
52
|
+
case 7:
|
|
53
|
+
case "DATA_TYPE_BINARY":
|
|
54
|
+
return DataType.DATA_TYPE_BINARY;
|
|
55
|
+
case 8:
|
|
56
|
+
case "DATA_TYPE_CATEGORICAL":
|
|
57
|
+
return DataType.DATA_TYPE_CATEGORICAL;
|
|
58
|
+
case 9:
|
|
59
|
+
case "DATA_TYPE_ORDINAL":
|
|
60
|
+
return DataType.DATA_TYPE_ORDINAL;
|
|
61
|
+
case -1:
|
|
62
|
+
case "UNRECOGNIZED":
|
|
63
|
+
default:
|
|
64
|
+
return DataType.UNRECOGNIZED;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function dataTypeToJSON(object) {
|
|
68
|
+
switch (object) {
|
|
69
|
+
case DataType.DATA_TYPE_UNSPECIFIED:
|
|
70
|
+
return "DATA_TYPE_UNSPECIFIED";
|
|
71
|
+
case DataType.DATA_TYPE_STRING:
|
|
72
|
+
return "DATA_TYPE_STRING";
|
|
73
|
+
case DataType.DATA_TYPE_INTEGER:
|
|
74
|
+
return "DATA_TYPE_INTEGER";
|
|
75
|
+
case DataType.DATA_TYPE_FLOAT:
|
|
76
|
+
return "DATA_TYPE_FLOAT";
|
|
77
|
+
case DataType.DATA_TYPE_BOOLEAN:
|
|
78
|
+
return "DATA_TYPE_BOOLEAN";
|
|
79
|
+
case DataType.DATA_TYPE_TIMESTAMP:
|
|
80
|
+
return "DATA_TYPE_TIMESTAMP";
|
|
81
|
+
case DataType.DATA_TYPE_DATE:
|
|
82
|
+
return "DATA_TYPE_DATE";
|
|
83
|
+
case DataType.DATA_TYPE_BINARY:
|
|
84
|
+
return "DATA_TYPE_BINARY";
|
|
85
|
+
case DataType.DATA_TYPE_CATEGORICAL:
|
|
86
|
+
return "DATA_TYPE_CATEGORICAL";
|
|
87
|
+
case DataType.DATA_TYPE_ORDINAL:
|
|
88
|
+
return "DATA_TYPE_ORDINAL";
|
|
89
|
+
case DataType.UNRECOGNIZED:
|
|
90
|
+
default:
|
|
91
|
+
return "UNRECOGNIZED";
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function createBaseDataset() {
|
|
95
|
+
return { id: "", name: "", description: "", storageId: "", schemaId: "", isSynthetic: false };
|
|
96
|
+
}
|
|
97
|
+
exports.Dataset = {
|
|
98
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
99
|
+
if (message.id !== "") {
|
|
100
|
+
writer.uint32(10).string(message.id);
|
|
101
|
+
}
|
|
102
|
+
if (message.name !== "") {
|
|
103
|
+
writer.uint32(18).string(message.name);
|
|
104
|
+
}
|
|
105
|
+
if (message.description !== "") {
|
|
106
|
+
writer.uint32(26).string(message.description);
|
|
107
|
+
}
|
|
108
|
+
if (message.storageId !== "") {
|
|
109
|
+
writer.uint32(34).string(message.storageId);
|
|
110
|
+
}
|
|
111
|
+
if (message.schemaId !== "") {
|
|
112
|
+
writer.uint32(42).string(message.schemaId);
|
|
113
|
+
}
|
|
114
|
+
if (message.isSynthetic !== false) {
|
|
115
|
+
writer.uint32(48).bool(message.isSynthetic);
|
|
116
|
+
}
|
|
117
|
+
return writer;
|
|
118
|
+
},
|
|
119
|
+
decode(input, length) {
|
|
120
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
121
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
122
|
+
const message = createBaseDataset();
|
|
123
|
+
while (reader.pos < end) {
|
|
124
|
+
const tag = reader.uint32();
|
|
125
|
+
switch (tag >>> 3) {
|
|
126
|
+
case 1: {
|
|
127
|
+
if (tag !== 10) {
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
message.id = reader.string();
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
case 2: {
|
|
134
|
+
if (tag !== 18) {
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
message.name = reader.string();
|
|
138
|
+
continue;
|
|
139
|
+
}
|
|
140
|
+
case 3: {
|
|
141
|
+
if (tag !== 26) {
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
message.description = reader.string();
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
case 4: {
|
|
148
|
+
if (tag !== 34) {
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
message.storageId = reader.string();
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
case 5: {
|
|
155
|
+
if (tag !== 42) {
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
message.schemaId = reader.string();
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
case 6: {
|
|
162
|
+
if (tag !== 48) {
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
message.isSynthetic = reader.bool();
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
reader.skip(tag & 7);
|
|
173
|
+
}
|
|
174
|
+
return message;
|
|
175
|
+
},
|
|
176
|
+
fromJSON(object) {
|
|
177
|
+
return {
|
|
178
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
179
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
180
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
181
|
+
storageId: isSet(object.storageId) ? globalThis.String(object.storageId) : "",
|
|
182
|
+
schemaId: isSet(object.schemaId) ? globalThis.String(object.schemaId) : "",
|
|
183
|
+
isSynthetic: isSet(object.isSynthetic) ? globalThis.Boolean(object.isSynthetic) : false,
|
|
184
|
+
};
|
|
185
|
+
},
|
|
186
|
+
toJSON(message) {
|
|
187
|
+
const obj = {};
|
|
188
|
+
if (message.id !== "") {
|
|
189
|
+
obj.id = message.id;
|
|
190
|
+
}
|
|
191
|
+
if (message.name !== "") {
|
|
192
|
+
obj.name = message.name;
|
|
193
|
+
}
|
|
194
|
+
if (message.description !== "") {
|
|
195
|
+
obj.description = message.description;
|
|
196
|
+
}
|
|
197
|
+
if (message.storageId !== "") {
|
|
198
|
+
obj.storageId = message.storageId;
|
|
199
|
+
}
|
|
200
|
+
if (message.schemaId !== "") {
|
|
201
|
+
obj.schemaId = message.schemaId;
|
|
202
|
+
}
|
|
203
|
+
if (message.isSynthetic !== false) {
|
|
204
|
+
obj.isSynthetic = message.isSynthetic;
|
|
205
|
+
}
|
|
206
|
+
return obj;
|
|
207
|
+
},
|
|
208
|
+
create(base) {
|
|
209
|
+
return exports.Dataset.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
210
|
+
},
|
|
211
|
+
fromPartial(object) {
|
|
212
|
+
var _a, _b, _c, _d, _e, _f;
|
|
213
|
+
const message = createBaseDataset();
|
|
214
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
215
|
+
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
216
|
+
message.description = (_c = object.description) !== null && _c !== void 0 ? _c : "";
|
|
217
|
+
message.storageId = (_d = object.storageId) !== null && _d !== void 0 ? _d : "";
|
|
218
|
+
message.schemaId = (_e = object.schemaId) !== null && _e !== void 0 ? _e : "";
|
|
219
|
+
message.isSynthetic = (_f = object.isSynthetic) !== null && _f !== void 0 ? _f : false;
|
|
220
|
+
return message;
|
|
221
|
+
},
|
|
222
|
+
};
|
|
223
|
+
function createBaseSchema() {
|
|
224
|
+
return { id: "", name: "", description: "", columns: [] };
|
|
225
|
+
}
|
|
226
|
+
exports.Schema = {
|
|
227
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
228
|
+
if (message.id !== "") {
|
|
229
|
+
writer.uint32(10).string(message.id);
|
|
230
|
+
}
|
|
231
|
+
if (message.name !== "") {
|
|
232
|
+
writer.uint32(18).string(message.name);
|
|
233
|
+
}
|
|
234
|
+
if (message.description !== "") {
|
|
235
|
+
writer.uint32(26).string(message.description);
|
|
236
|
+
}
|
|
237
|
+
for (const v of message.columns) {
|
|
238
|
+
exports.Column.encode(v, writer.uint32(34).fork()).join();
|
|
239
|
+
}
|
|
240
|
+
return writer;
|
|
241
|
+
},
|
|
242
|
+
decode(input, length) {
|
|
243
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
244
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
245
|
+
const message = createBaseSchema();
|
|
246
|
+
while (reader.pos < end) {
|
|
247
|
+
const tag = reader.uint32();
|
|
248
|
+
switch (tag >>> 3) {
|
|
249
|
+
case 1: {
|
|
250
|
+
if (tag !== 10) {
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
message.id = reader.string();
|
|
254
|
+
continue;
|
|
255
|
+
}
|
|
256
|
+
case 2: {
|
|
257
|
+
if (tag !== 18) {
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
message.name = reader.string();
|
|
261
|
+
continue;
|
|
262
|
+
}
|
|
263
|
+
case 3: {
|
|
264
|
+
if (tag !== 26) {
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
message.description = reader.string();
|
|
268
|
+
continue;
|
|
269
|
+
}
|
|
270
|
+
case 4: {
|
|
271
|
+
if (tag !== 34) {
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
message.columns.push(exports.Column.decode(reader, reader.uint32()));
|
|
275
|
+
continue;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
reader.skip(tag & 7);
|
|
282
|
+
}
|
|
283
|
+
return message;
|
|
284
|
+
},
|
|
285
|
+
fromJSON(object) {
|
|
286
|
+
return {
|
|
287
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
288
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
289
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
290
|
+
columns: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.columns) ? object.columns.map((e) => exports.Column.fromJSON(e)) : [],
|
|
291
|
+
};
|
|
292
|
+
},
|
|
293
|
+
toJSON(message) {
|
|
294
|
+
var _a;
|
|
295
|
+
const obj = {};
|
|
296
|
+
if (message.id !== "") {
|
|
297
|
+
obj.id = message.id;
|
|
298
|
+
}
|
|
299
|
+
if (message.name !== "") {
|
|
300
|
+
obj.name = message.name;
|
|
301
|
+
}
|
|
302
|
+
if (message.description !== "") {
|
|
303
|
+
obj.description = message.description;
|
|
304
|
+
}
|
|
305
|
+
if ((_a = message.columns) === null || _a === void 0 ? void 0 : _a.length) {
|
|
306
|
+
obj.columns = message.columns.map((e) => exports.Column.toJSON(e));
|
|
307
|
+
}
|
|
308
|
+
return obj;
|
|
309
|
+
},
|
|
310
|
+
create(base) {
|
|
311
|
+
return exports.Schema.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
312
|
+
},
|
|
313
|
+
fromPartial(object) {
|
|
314
|
+
var _a, _b, _c, _d;
|
|
315
|
+
const message = createBaseSchema();
|
|
316
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
317
|
+
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
318
|
+
message.description = (_c = object.description) !== null && _c !== void 0 ? _c : "";
|
|
319
|
+
message.columns = ((_d = object.columns) === null || _d === void 0 ? void 0 : _d.map((e) => exports.Column.fromPartial(e))) || [];
|
|
320
|
+
return message;
|
|
321
|
+
},
|
|
322
|
+
};
|
|
323
|
+
function createBaseColumn() {
|
|
324
|
+
return { id: "", name: "", dataType: 0, isPrimaryKey: false, description: "" };
|
|
325
|
+
}
|
|
326
|
+
exports.Column = {
|
|
327
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
328
|
+
if (message.id !== "") {
|
|
329
|
+
writer.uint32(10).string(message.id);
|
|
330
|
+
}
|
|
331
|
+
if (message.name !== "") {
|
|
332
|
+
writer.uint32(18).string(message.name);
|
|
333
|
+
}
|
|
334
|
+
if (message.dataType !== 0) {
|
|
335
|
+
writer.uint32(24).int32(message.dataType);
|
|
336
|
+
}
|
|
337
|
+
if (message.isPrimaryKey !== false) {
|
|
338
|
+
writer.uint32(32).bool(message.isPrimaryKey);
|
|
339
|
+
}
|
|
340
|
+
if (message.description !== "") {
|
|
341
|
+
writer.uint32(42).string(message.description);
|
|
342
|
+
}
|
|
343
|
+
return writer;
|
|
344
|
+
},
|
|
345
|
+
decode(input, length) {
|
|
346
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
347
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
348
|
+
const message = createBaseColumn();
|
|
349
|
+
while (reader.pos < end) {
|
|
350
|
+
const tag = reader.uint32();
|
|
351
|
+
switch (tag >>> 3) {
|
|
352
|
+
case 1: {
|
|
353
|
+
if (tag !== 10) {
|
|
354
|
+
break;
|
|
355
|
+
}
|
|
356
|
+
message.id = reader.string();
|
|
357
|
+
continue;
|
|
358
|
+
}
|
|
359
|
+
case 2: {
|
|
360
|
+
if (tag !== 18) {
|
|
361
|
+
break;
|
|
362
|
+
}
|
|
363
|
+
message.name = reader.string();
|
|
364
|
+
continue;
|
|
365
|
+
}
|
|
366
|
+
case 3: {
|
|
367
|
+
if (tag !== 24) {
|
|
368
|
+
break;
|
|
369
|
+
}
|
|
370
|
+
message.dataType = reader.int32();
|
|
371
|
+
continue;
|
|
372
|
+
}
|
|
373
|
+
case 4: {
|
|
374
|
+
if (tag !== 32) {
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
377
|
+
message.isPrimaryKey = reader.bool();
|
|
378
|
+
continue;
|
|
379
|
+
}
|
|
380
|
+
case 5: {
|
|
381
|
+
if (tag !== 42) {
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
message.description = reader.string();
|
|
385
|
+
continue;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
389
|
+
break;
|
|
390
|
+
}
|
|
391
|
+
reader.skip(tag & 7);
|
|
392
|
+
}
|
|
393
|
+
return message;
|
|
394
|
+
},
|
|
395
|
+
fromJSON(object) {
|
|
396
|
+
return {
|
|
397
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
398
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
399
|
+
dataType: isSet(object.dataType) ? dataTypeFromJSON(object.dataType) : 0,
|
|
400
|
+
isPrimaryKey: isSet(object.isPrimaryKey) ? globalThis.Boolean(object.isPrimaryKey) : false,
|
|
401
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
402
|
+
};
|
|
403
|
+
},
|
|
404
|
+
toJSON(message) {
|
|
405
|
+
const obj = {};
|
|
406
|
+
if (message.id !== "") {
|
|
407
|
+
obj.id = message.id;
|
|
408
|
+
}
|
|
409
|
+
if (message.name !== "") {
|
|
410
|
+
obj.name = message.name;
|
|
411
|
+
}
|
|
412
|
+
if (message.dataType !== 0) {
|
|
413
|
+
obj.dataType = dataTypeToJSON(message.dataType);
|
|
414
|
+
}
|
|
415
|
+
if (message.isPrimaryKey !== false) {
|
|
416
|
+
obj.isPrimaryKey = message.isPrimaryKey;
|
|
417
|
+
}
|
|
418
|
+
if (message.description !== "") {
|
|
419
|
+
obj.description = message.description;
|
|
420
|
+
}
|
|
421
|
+
return obj;
|
|
422
|
+
},
|
|
423
|
+
create(base) {
|
|
424
|
+
return exports.Column.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
425
|
+
},
|
|
426
|
+
fromPartial(object) {
|
|
427
|
+
var _a, _b, _c, _d, _e;
|
|
428
|
+
const message = createBaseColumn();
|
|
429
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
430
|
+
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
431
|
+
message.dataType = (_c = object.dataType) !== null && _c !== void 0 ? _c : 0;
|
|
432
|
+
message.isPrimaryKey = (_d = object.isPrimaryKey) !== null && _d !== void 0 ? _d : false;
|
|
433
|
+
message.description = (_e = object.description) !== null && _e !== void 0 ? _e : "";
|
|
434
|
+
return message;
|
|
435
|
+
},
|
|
436
|
+
};
|
|
437
|
+
function isSet(value) {
|
|
438
|
+
return value !== null && value !== undefined;
|
|
439
|
+
}
|