@dataform/core 1.20.0 → 1.20.1
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/bundle.d.ts +199 -620
- package/bundle.js +830 -2109
- package/package.json +16 -2
package/bundle.js
CHANGED
|
@@ -57,8 +57,8 @@ const dataform = $root.dataform = (() => {
|
|
|
57
57
|
* @property {string|null} [databaseSuffix] ProjectConfig databaseSuffix
|
|
58
58
|
* @property {string|null} [schemaSuffix] ProjectConfig schemaSuffix
|
|
59
59
|
* @property {string|null} [tablePrefix] ProjectConfig tablePrefix
|
|
60
|
-
* @property {boolean|null} [useRunCache] ProjectConfig useRunCache
|
|
61
60
|
* @property {string|null} [gcloudProjectId] ProjectConfig gcloudProjectId
|
|
61
|
+
* @property {boolean|null} [useRunCache] ProjectConfig useRunCache
|
|
62
62
|
*/
|
|
63
63
|
|
|
64
64
|
/**
|
|
@@ -158,20 +158,20 @@ const dataform = $root.dataform = (() => {
|
|
|
158
158
|
ProjectConfig.prototype.tablePrefix = "";
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
|
-
* ProjectConfig
|
|
162
|
-
* @member {
|
|
161
|
+
* ProjectConfig gcloudProjectId.
|
|
162
|
+
* @member {string} gcloudProjectId
|
|
163
163
|
* @memberof dataform.ProjectConfig
|
|
164
164
|
* @instance
|
|
165
165
|
*/
|
|
166
|
-
ProjectConfig.prototype.
|
|
166
|
+
ProjectConfig.prototype.gcloudProjectId = "";
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* ProjectConfig
|
|
170
|
-
* @member {
|
|
169
|
+
* ProjectConfig useRunCache.
|
|
170
|
+
* @member {boolean} useRunCache
|
|
171
171
|
* @memberof dataform.ProjectConfig
|
|
172
172
|
* @instance
|
|
173
173
|
*/
|
|
174
|
-
ProjectConfig.prototype.
|
|
174
|
+
ProjectConfig.prototype.useRunCache = false;
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
* Creates a new ProjectConfig instance using the specified properties.
|
|
@@ -291,12 +291,12 @@ const dataform = $root.dataform = (() => {
|
|
|
291
291
|
case 11:
|
|
292
292
|
message.tablePrefix = reader.string();
|
|
293
293
|
break;
|
|
294
|
-
case 10:
|
|
295
|
-
message.useRunCache = reader.bool();
|
|
296
|
-
break;
|
|
297
294
|
case 6:
|
|
298
295
|
message.gcloudProjectId = reader.string();
|
|
299
296
|
break;
|
|
297
|
+
case 10:
|
|
298
|
+
message.useRunCache = reader.bool();
|
|
299
|
+
break;
|
|
300
300
|
default:
|
|
301
301
|
reader.skipType(tag & 7);
|
|
302
302
|
break;
|
|
@@ -367,12 +367,12 @@ const dataform = $root.dataform = (() => {
|
|
|
367
367
|
if (message.tablePrefix != null && message.hasOwnProperty("tablePrefix"))
|
|
368
368
|
if (!$util.isString(message.tablePrefix))
|
|
369
369
|
return "tablePrefix: string expected";
|
|
370
|
-
if (message.useRunCache != null && message.hasOwnProperty("useRunCache"))
|
|
371
|
-
if (typeof message.useRunCache !== "boolean")
|
|
372
|
-
return "useRunCache: boolean expected";
|
|
373
370
|
if (message.gcloudProjectId != null && message.hasOwnProperty("gcloudProjectId"))
|
|
374
371
|
if (!$util.isString(message.gcloudProjectId))
|
|
375
372
|
return "gcloudProjectId: string expected";
|
|
373
|
+
if (message.useRunCache != null && message.hasOwnProperty("useRunCache"))
|
|
374
|
+
if (typeof message.useRunCache !== "boolean")
|
|
375
|
+
return "useRunCache: boolean expected";
|
|
376
376
|
return null;
|
|
377
377
|
};
|
|
378
378
|
|
|
@@ -413,10 +413,10 @@ const dataform = $root.dataform = (() => {
|
|
|
413
413
|
message.schemaSuffix = String(object.schemaSuffix);
|
|
414
414
|
if (object.tablePrefix != null)
|
|
415
415
|
message.tablePrefix = String(object.tablePrefix);
|
|
416
|
-
if (object.useRunCache != null)
|
|
417
|
-
message.useRunCache = Boolean(object.useRunCache);
|
|
418
416
|
if (object.gcloudProjectId != null)
|
|
419
417
|
message.gcloudProjectId = String(object.gcloudProjectId);
|
|
418
|
+
if (object.useRunCache != null)
|
|
419
|
+
message.useRunCache = Boolean(object.useRunCache);
|
|
420
420
|
return message;
|
|
421
421
|
};
|
|
422
422
|
|
|
@@ -2826,8 +2826,8 @@ const dataform = $root.dataform = (() => {
|
|
|
2826
2826
|
* @property {boolean|null} [includeDependents] RunConfig includeDependents
|
|
2827
2827
|
* @property {boolean|null} [fullRefresh] RunConfig fullRefresh
|
|
2828
2828
|
* @property {number|null} [timeoutMillis] RunConfig timeoutMillis
|
|
2829
|
-
* @property {boolean|null} [useRunCache] RunConfig useRunCache
|
|
2830
2829
|
* @property {boolean|null} [disableSetMetadata] RunConfig disableSetMetadata
|
|
2830
|
+
* @property {boolean|null} [useRunCache] RunConfig useRunCache
|
|
2831
2831
|
*/
|
|
2832
2832
|
|
|
2833
2833
|
/**
|
|
@@ -2896,20 +2896,20 @@ const dataform = $root.dataform = (() => {
|
|
|
2896
2896
|
RunConfig.prototype.timeoutMillis = 0;
|
|
2897
2897
|
|
|
2898
2898
|
/**
|
|
2899
|
-
* RunConfig
|
|
2900
|
-
* @member {boolean}
|
|
2899
|
+
* RunConfig disableSetMetadata.
|
|
2900
|
+
* @member {boolean} disableSetMetadata
|
|
2901
2901
|
* @memberof dataform.RunConfig
|
|
2902
2902
|
* @instance
|
|
2903
2903
|
*/
|
|
2904
|
-
RunConfig.prototype.
|
|
2904
|
+
RunConfig.prototype.disableSetMetadata = false;
|
|
2905
2905
|
|
|
2906
2906
|
/**
|
|
2907
|
-
* RunConfig
|
|
2908
|
-
* @member {boolean}
|
|
2907
|
+
* RunConfig useRunCache.
|
|
2908
|
+
* @member {boolean} useRunCache
|
|
2909
2909
|
* @memberof dataform.RunConfig
|
|
2910
2910
|
* @instance
|
|
2911
2911
|
*/
|
|
2912
|
-
RunConfig.prototype.
|
|
2912
|
+
RunConfig.prototype.useRunCache = false;
|
|
2913
2913
|
|
|
2914
2914
|
/**
|
|
2915
2915
|
* Creates a new RunConfig instance using the specified properties.
|
|
@@ -3009,12 +3009,12 @@ const dataform = $root.dataform = (() => {
|
|
|
3009
3009
|
case 7:
|
|
3010
3010
|
message.timeoutMillis = reader.int32();
|
|
3011
3011
|
break;
|
|
3012
|
-
case 8:
|
|
3013
|
-
message.useRunCache = reader.bool();
|
|
3014
|
-
break;
|
|
3015
3012
|
case 9:
|
|
3016
3013
|
message.disableSetMetadata = reader.bool();
|
|
3017
3014
|
break;
|
|
3015
|
+
case 8:
|
|
3016
|
+
message.useRunCache = reader.bool();
|
|
3017
|
+
break;
|
|
3018
3018
|
default:
|
|
3019
3019
|
reader.skipType(tag & 7);
|
|
3020
3020
|
break;
|
|
@@ -3076,12 +3076,12 @@ const dataform = $root.dataform = (() => {
|
|
|
3076
3076
|
if (message.timeoutMillis != null && message.hasOwnProperty("timeoutMillis"))
|
|
3077
3077
|
if (!$util.isInteger(message.timeoutMillis))
|
|
3078
3078
|
return "timeoutMillis: integer expected";
|
|
3079
|
-
if (message.useRunCache != null && message.hasOwnProperty("useRunCache"))
|
|
3080
|
-
if (typeof message.useRunCache !== "boolean")
|
|
3081
|
-
return "useRunCache: boolean expected";
|
|
3082
3079
|
if (message.disableSetMetadata != null && message.hasOwnProperty("disableSetMetadata"))
|
|
3083
3080
|
if (typeof message.disableSetMetadata !== "boolean")
|
|
3084
3081
|
return "disableSetMetadata: boolean expected";
|
|
3082
|
+
if (message.useRunCache != null && message.hasOwnProperty("useRunCache"))
|
|
3083
|
+
if (typeof message.useRunCache !== "boolean")
|
|
3084
|
+
return "useRunCache: boolean expected";
|
|
3085
3085
|
return null;
|
|
3086
3086
|
};
|
|
3087
3087
|
|
|
@@ -3119,10 +3119,10 @@ const dataform = $root.dataform = (() => {
|
|
|
3119
3119
|
message.fullRefresh = Boolean(object.fullRefresh);
|
|
3120
3120
|
if (object.timeoutMillis != null)
|
|
3121
3121
|
message.timeoutMillis = object.timeoutMillis | 0;
|
|
3122
|
-
if (object.useRunCache != null)
|
|
3123
|
-
message.useRunCache = Boolean(object.useRunCache);
|
|
3124
3122
|
if (object.disableSetMetadata != null)
|
|
3125
3123
|
message.disableSetMetadata = Boolean(object.disableSetMetadata);
|
|
3124
|
+
if (object.useRunCache != null)
|
|
3125
|
+
message.useRunCache = Boolean(object.useRunCache);
|
|
3126
3126
|
return message;
|
|
3127
3127
|
};
|
|
3128
3128
|
|
|
@@ -3199,7 +3199,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3199
3199
|
* @property {dataform.ICompileConfig|null} [compileConfig] GenerateIndexConfig compileConfig
|
|
3200
3200
|
* @property {Array.<string>|null} [includePaths] GenerateIndexConfig includePaths
|
|
3201
3201
|
* @property {Array.<string>|null} [definitionPaths] GenerateIndexConfig definitionPaths
|
|
3202
|
-
* @property {string|null} [returnOverride] GenerateIndexConfig returnOverride
|
|
3203
3202
|
*/
|
|
3204
3203
|
|
|
3205
3204
|
/**
|
|
@@ -3243,14 +3242,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3243
3242
|
*/
|
|
3244
3243
|
GenerateIndexConfig.prototype.definitionPaths = $util.emptyArray;
|
|
3245
3244
|
|
|
3246
|
-
/**
|
|
3247
|
-
* GenerateIndexConfig returnOverride.
|
|
3248
|
-
* @member {string} returnOverride
|
|
3249
|
-
* @memberof dataform.GenerateIndexConfig
|
|
3250
|
-
* @instance
|
|
3251
|
-
*/
|
|
3252
|
-
GenerateIndexConfig.prototype.returnOverride = "";
|
|
3253
|
-
|
|
3254
3245
|
/**
|
|
3255
3246
|
* Creates a new GenerateIndexConfig instance using the specified properties.
|
|
3256
3247
|
* @function create
|
|
@@ -3283,8 +3274,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3283
3274
|
if (message.definitionPaths != null && message.definitionPaths.length)
|
|
3284
3275
|
for (let i = 0; i < message.definitionPaths.length; ++i)
|
|
3285
3276
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.definitionPaths[i]);
|
|
3286
|
-
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3287
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.returnOverride);
|
|
3288
3277
|
return writer;
|
|
3289
3278
|
};
|
|
3290
3279
|
|
|
@@ -3332,9 +3321,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3332
3321
|
message.definitionPaths = [];
|
|
3333
3322
|
message.definitionPaths.push(reader.string());
|
|
3334
3323
|
break;
|
|
3335
|
-
case 4:
|
|
3336
|
-
message.returnOverride = reader.string();
|
|
3337
|
-
break;
|
|
3338
3324
|
default:
|
|
3339
3325
|
reader.skipType(tag & 7);
|
|
3340
3326
|
break;
|
|
@@ -3389,9 +3375,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3389
3375
|
if (!$util.isString(message.definitionPaths[i]))
|
|
3390
3376
|
return "definitionPaths: string[] expected";
|
|
3391
3377
|
}
|
|
3392
|
-
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3393
|
-
if (!$util.isString(message.returnOverride))
|
|
3394
|
-
return "returnOverride: string expected";
|
|
3395
3378
|
return null;
|
|
3396
3379
|
};
|
|
3397
3380
|
|
|
@@ -3426,8 +3409,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3426
3409
|
for (let i = 0; i < object.definitionPaths.length; ++i)
|
|
3427
3410
|
message.definitionPaths[i] = String(object.definitionPaths[i]);
|
|
3428
3411
|
}
|
|
3429
|
-
if (object.returnOverride != null)
|
|
3430
|
-
message.returnOverride = String(object.returnOverride);
|
|
3431
3412
|
return message;
|
|
3432
3413
|
};
|
|
3433
3414
|
|
|
@@ -3448,10 +3429,8 @@ const dataform = $root.dataform = (() => {
|
|
|
3448
3429
|
object.includePaths = [];
|
|
3449
3430
|
object.definitionPaths = [];
|
|
3450
3431
|
}
|
|
3451
|
-
if (options.defaults)
|
|
3432
|
+
if (options.defaults)
|
|
3452
3433
|
object.compileConfig = null;
|
|
3453
|
-
object.returnOverride = "";
|
|
3454
|
-
}
|
|
3455
3434
|
if (message.compileConfig != null && message.hasOwnProperty("compileConfig"))
|
|
3456
3435
|
object.compileConfig = $root.dataform.CompileConfig.toObject(message.compileConfig, options);
|
|
3457
3436
|
if (message.includePaths && message.includePaths.length) {
|
|
@@ -3464,8 +3443,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3464
3443
|
for (let j = 0; j < message.definitionPaths.length; ++j)
|
|
3465
3444
|
object.definitionPaths[j] = message.definitionPaths[j];
|
|
3466
3445
|
}
|
|
3467
|
-
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3468
|
-
object.returnOverride = message.returnOverride;
|
|
3469
3446
|
return object;
|
|
3470
3447
|
};
|
|
3471
3448
|
|
|
@@ -3494,8 +3471,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3494
3471
|
* @property {dataform.IProjectConfig|null} [projectConfigOverride] CompileConfig projectConfigOverride
|
|
3495
3472
|
* @property {number|null} [timeoutMillis] CompileConfig timeoutMillis
|
|
3496
3473
|
* @property {boolean|null} [useMain] CompileConfig useMain
|
|
3497
|
-
* @property {string|null} [schemaSuffixOverride] CompileConfig schemaSuffixOverride
|
|
3498
|
-
* @property {string|null} [returnOverride] CompileConfig returnOverride
|
|
3499
3474
|
*/
|
|
3500
3475
|
|
|
3501
3476
|
/**
|
|
@@ -3554,22 +3529,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3554
3529
|
*/
|
|
3555
3530
|
CompileConfig.prototype.useMain = false;
|
|
3556
3531
|
|
|
3557
|
-
/**
|
|
3558
|
-
* CompileConfig schemaSuffixOverride.
|
|
3559
|
-
* @member {string} schemaSuffixOverride
|
|
3560
|
-
* @memberof dataform.CompileConfig
|
|
3561
|
-
* @instance
|
|
3562
|
-
*/
|
|
3563
|
-
CompileConfig.prototype.schemaSuffixOverride = "";
|
|
3564
|
-
|
|
3565
|
-
/**
|
|
3566
|
-
* CompileConfig returnOverride.
|
|
3567
|
-
* @member {string} returnOverride
|
|
3568
|
-
* @memberof dataform.CompileConfig
|
|
3569
|
-
* @instance
|
|
3570
|
-
*/
|
|
3571
|
-
CompileConfig.prototype.returnOverride = "";
|
|
3572
|
-
|
|
3573
3532
|
/**
|
|
3574
3533
|
* Creates a new CompileConfig instance using the specified properties.
|
|
3575
3534
|
* @function create
|
|
@@ -3596,12 +3555,8 @@ const dataform = $root.dataform = (() => {
|
|
|
3596
3555
|
writer = $Writer.create();
|
|
3597
3556
|
if (message.projectDir != null && message.hasOwnProperty("projectDir"))
|
|
3598
3557
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectDir);
|
|
3599
|
-
if (message.schemaSuffixOverride != null && message.hasOwnProperty("schemaSuffixOverride"))
|
|
3600
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaSuffixOverride);
|
|
3601
3558
|
if (message.projectConfigOverride != null && message.hasOwnProperty("projectConfigOverride"))
|
|
3602
3559
|
$root.dataform.ProjectConfig.encode(message.projectConfigOverride, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
3603
|
-
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3604
|
-
writer.uint32(/* id 5, wireType 2 =*/42).string(message.returnOverride);
|
|
3605
3560
|
if (message.timeoutMillis != null && message.hasOwnProperty("timeoutMillis"))
|
|
3606
3561
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.timeoutMillis);
|
|
3607
3562
|
if (message.filePaths != null && message.filePaths.length)
|
|
@@ -3660,12 +3615,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3660
3615
|
case 9:
|
|
3661
3616
|
message.useMain = reader.bool();
|
|
3662
3617
|
break;
|
|
3663
|
-
case 2:
|
|
3664
|
-
message.schemaSuffixOverride = reader.string();
|
|
3665
|
-
break;
|
|
3666
|
-
case 5:
|
|
3667
|
-
message.returnOverride = reader.string();
|
|
3668
|
-
break;
|
|
3669
3618
|
default:
|
|
3670
3619
|
reader.skipType(tag & 7);
|
|
3671
3620
|
break;
|
|
@@ -3722,12 +3671,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3722
3671
|
if (message.useMain != null && message.hasOwnProperty("useMain"))
|
|
3723
3672
|
if (typeof message.useMain !== "boolean")
|
|
3724
3673
|
return "useMain: boolean expected";
|
|
3725
|
-
if (message.schemaSuffixOverride != null && message.hasOwnProperty("schemaSuffixOverride"))
|
|
3726
|
-
if (!$util.isString(message.schemaSuffixOverride))
|
|
3727
|
-
return "schemaSuffixOverride: string expected";
|
|
3728
|
-
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3729
|
-
if (!$util.isString(message.returnOverride))
|
|
3730
|
-
return "returnOverride: string expected";
|
|
3731
3674
|
return null;
|
|
3732
3675
|
};
|
|
3733
3676
|
|
|
@@ -3761,10 +3704,6 @@ const dataform = $root.dataform = (() => {
|
|
|
3761
3704
|
message.timeoutMillis = object.timeoutMillis | 0;
|
|
3762
3705
|
if (object.useMain != null)
|
|
3763
3706
|
message.useMain = Boolean(object.useMain);
|
|
3764
|
-
if (object.schemaSuffixOverride != null)
|
|
3765
|
-
message.schemaSuffixOverride = String(object.schemaSuffixOverride);
|
|
3766
|
-
if (object.returnOverride != null)
|
|
3767
|
-
message.returnOverride = String(object.returnOverride);
|
|
3768
3707
|
return message;
|
|
3769
3708
|
};
|
|
3770
3709
|
|
|
@@ -3785,20 +3724,14 @@ const dataform = $root.dataform = (() => {
|
|
|
3785
3724
|
object.filePaths = [];
|
|
3786
3725
|
if (options.defaults) {
|
|
3787
3726
|
object.projectDir = "";
|
|
3788
|
-
object.schemaSuffixOverride = "";
|
|
3789
3727
|
object.projectConfigOverride = null;
|
|
3790
|
-
object.returnOverride = "";
|
|
3791
3728
|
object.timeoutMillis = 0;
|
|
3792
3729
|
object.useMain = false;
|
|
3793
3730
|
}
|
|
3794
3731
|
if (message.projectDir != null && message.hasOwnProperty("projectDir"))
|
|
3795
3732
|
object.projectDir = message.projectDir;
|
|
3796
|
-
if (message.schemaSuffixOverride != null && message.hasOwnProperty("schemaSuffixOverride"))
|
|
3797
|
-
object.schemaSuffixOverride = message.schemaSuffixOverride;
|
|
3798
3733
|
if (message.projectConfigOverride != null && message.hasOwnProperty("projectConfigOverride"))
|
|
3799
3734
|
object.projectConfigOverride = $root.dataform.ProjectConfig.toObject(message.projectConfigOverride, options);
|
|
3800
|
-
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3801
|
-
object.returnOverride = message.returnOverride;
|
|
3802
3735
|
if (message.timeoutMillis != null && message.hasOwnProperty("timeoutMillis"))
|
|
3803
3736
|
object.timeoutMillis = message.timeoutMillis;
|
|
3804
3737
|
if (message.filePaths && message.filePaths.length) {
|
|
@@ -5289,7 +5222,6 @@ const dataform = $root.dataform = (() => {
|
|
|
5289
5222
|
* @memberof dataform
|
|
5290
5223
|
* @interface IGraphErrors
|
|
5291
5224
|
* @property {Array.<dataform.ICompilationError>|null} [compilationErrors] GraphErrors compilationErrors
|
|
5292
|
-
* @property {Array.<dataform.IValidationError>|null} [validationErrors] GraphErrors validationErrors
|
|
5293
5225
|
*/
|
|
5294
5226
|
|
|
5295
5227
|
/**
|
|
@@ -5302,7 +5234,6 @@ const dataform = $root.dataform = (() => {
|
|
|
5302
5234
|
*/
|
|
5303
5235
|
function GraphErrors(properties) {
|
|
5304
5236
|
this.compilationErrors = [];
|
|
5305
|
-
this.validationErrors = [];
|
|
5306
5237
|
if (properties)
|
|
5307
5238
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5308
5239
|
if (properties[keys[i]] != null)
|
|
@@ -5317,14 +5248,6 @@ const dataform = $root.dataform = (() => {
|
|
|
5317
5248
|
*/
|
|
5318
5249
|
GraphErrors.prototype.compilationErrors = $util.emptyArray;
|
|
5319
5250
|
|
|
5320
|
-
/**
|
|
5321
|
-
* GraphErrors validationErrors.
|
|
5322
|
-
* @member {Array.<dataform.IValidationError>} validationErrors
|
|
5323
|
-
* @memberof dataform.GraphErrors
|
|
5324
|
-
* @instance
|
|
5325
|
-
*/
|
|
5326
|
-
GraphErrors.prototype.validationErrors = $util.emptyArray;
|
|
5327
|
-
|
|
5328
5251
|
/**
|
|
5329
5252
|
* Creates a new GraphErrors instance using the specified properties.
|
|
5330
5253
|
* @function create
|
|
@@ -5352,9 +5275,6 @@ const dataform = $root.dataform = (() => {
|
|
|
5352
5275
|
if (message.compilationErrors != null && message.compilationErrors.length)
|
|
5353
5276
|
for (let i = 0; i < message.compilationErrors.length; ++i)
|
|
5354
5277
|
$root.dataform.CompilationError.encode(message.compilationErrors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
5355
|
-
if (message.validationErrors != null && message.validationErrors.length)
|
|
5356
|
-
for (let i = 0; i < message.validationErrors.length; ++i)
|
|
5357
|
-
$root.dataform.ValidationError.encode(message.validationErrors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
5358
5278
|
return writer;
|
|
5359
5279
|
};
|
|
5360
5280
|
|
|
@@ -5394,11 +5314,6 @@ const dataform = $root.dataform = (() => {
|
|
|
5394
5314
|
message.compilationErrors = [];
|
|
5395
5315
|
message.compilationErrors.push($root.dataform.CompilationError.decode(reader, reader.uint32()));
|
|
5396
5316
|
break;
|
|
5397
|
-
case 2:
|
|
5398
|
-
if (!(message.validationErrors && message.validationErrors.length))
|
|
5399
|
-
message.validationErrors = [];
|
|
5400
|
-
message.validationErrors.push($root.dataform.ValidationError.decode(reader, reader.uint32()));
|
|
5401
|
-
break;
|
|
5402
5317
|
default:
|
|
5403
5318
|
reader.skipType(tag & 7);
|
|
5404
5319
|
break;
|
|
@@ -5443,15 +5358,6 @@ const dataform = $root.dataform = (() => {
|
|
|
5443
5358
|
return "compilationErrors." + error;
|
|
5444
5359
|
}
|
|
5445
5360
|
}
|
|
5446
|
-
if (message.validationErrors != null && message.hasOwnProperty("validationErrors")) {
|
|
5447
|
-
if (!Array.isArray(message.validationErrors))
|
|
5448
|
-
return "validationErrors: array expected";
|
|
5449
|
-
for (let i = 0; i < message.validationErrors.length; ++i) {
|
|
5450
|
-
let error = $root.dataform.ValidationError.verify(message.validationErrors[i]);
|
|
5451
|
-
if (error)
|
|
5452
|
-
return "validationErrors." + error;
|
|
5453
|
-
}
|
|
5454
|
-
}
|
|
5455
5361
|
return null;
|
|
5456
5362
|
};
|
|
5457
5363
|
|
|
@@ -5477,16 +5383,6 @@ const dataform = $root.dataform = (() => {
|
|
|
5477
5383
|
message.compilationErrors[i] = $root.dataform.CompilationError.fromObject(object.compilationErrors[i]);
|
|
5478
5384
|
}
|
|
5479
5385
|
}
|
|
5480
|
-
if (object.validationErrors) {
|
|
5481
|
-
if (!Array.isArray(object.validationErrors))
|
|
5482
|
-
throw TypeError(".dataform.GraphErrors.validationErrors: array expected");
|
|
5483
|
-
message.validationErrors = [];
|
|
5484
|
-
for (let i = 0; i < object.validationErrors.length; ++i) {
|
|
5485
|
-
if (typeof object.validationErrors[i] !== "object")
|
|
5486
|
-
throw TypeError(".dataform.GraphErrors.validationErrors: object expected");
|
|
5487
|
-
message.validationErrors[i] = $root.dataform.ValidationError.fromObject(object.validationErrors[i]);
|
|
5488
|
-
}
|
|
5489
|
-
}
|
|
5490
5386
|
return message;
|
|
5491
5387
|
};
|
|
5492
5388
|
|
|
@@ -5503,20 +5399,13 @@ const dataform = $root.dataform = (() => {
|
|
|
5503
5399
|
if (!options)
|
|
5504
5400
|
options = {};
|
|
5505
5401
|
let object = {};
|
|
5506
|
-
if (options.arrays || options.defaults)
|
|
5402
|
+
if (options.arrays || options.defaults)
|
|
5507
5403
|
object.compilationErrors = [];
|
|
5508
|
-
object.validationErrors = [];
|
|
5509
|
-
}
|
|
5510
5404
|
if (message.compilationErrors && message.compilationErrors.length) {
|
|
5511
5405
|
object.compilationErrors = [];
|
|
5512
5406
|
for (let j = 0; j < message.compilationErrors.length; ++j)
|
|
5513
5407
|
object.compilationErrors[j] = $root.dataform.CompilationError.toObject(message.compilationErrors[j], options);
|
|
5514
5408
|
}
|
|
5515
|
-
if (message.validationErrors && message.validationErrors.length) {
|
|
5516
|
-
object.validationErrors = [];
|
|
5517
|
-
for (let j = 0; j < message.validationErrors.length; ++j)
|
|
5518
|
-
object.validationErrors[j] = $root.dataform.ValidationError.toObject(message.validationErrors[j], options);
|
|
5519
|
-
}
|
|
5520
5409
|
return object;
|
|
5521
5410
|
};
|
|
5522
5411
|
|
|
@@ -5534,25 +5423,28 @@ const dataform = $root.dataform = (() => {
|
|
|
5534
5423
|
return GraphErrors;
|
|
5535
5424
|
})();
|
|
5536
5425
|
|
|
5537
|
-
dataform.
|
|
5426
|
+
dataform.CompilationError = (function() {
|
|
5538
5427
|
|
|
5539
5428
|
/**
|
|
5540
|
-
* Properties of a
|
|
5429
|
+
* Properties of a CompilationError.
|
|
5541
5430
|
* @memberof dataform
|
|
5542
|
-
* @interface
|
|
5543
|
-
* @property {string|null} [
|
|
5544
|
-
* @property {string|null} [
|
|
5431
|
+
* @interface ICompilationError
|
|
5432
|
+
* @property {string|null} [fileName] CompilationError fileName
|
|
5433
|
+
* @property {string|null} [actionName] CompilationError actionName
|
|
5434
|
+
* @property {dataform.ITarget|null} [actionTarget] CompilationError actionTarget
|
|
5435
|
+
* @property {string|null} [message] CompilationError message
|
|
5436
|
+
* @property {string|null} [stack] CompilationError stack
|
|
5545
5437
|
*/
|
|
5546
5438
|
|
|
5547
5439
|
/**
|
|
5548
|
-
* Constructs a new
|
|
5440
|
+
* Constructs a new CompilationError.
|
|
5549
5441
|
* @memberof dataform
|
|
5550
|
-
* @classdesc Represents a
|
|
5551
|
-
* @implements
|
|
5442
|
+
* @classdesc Represents a CompilationError.
|
|
5443
|
+
* @implements ICompilationError
|
|
5552
5444
|
* @constructor
|
|
5553
|
-
* @param {dataform.
|
|
5445
|
+
* @param {dataform.ICompilationError=} [properties] Properties to set
|
|
5554
5446
|
*/
|
|
5555
|
-
function
|
|
5447
|
+
function CompilationError(properties) {
|
|
5556
5448
|
if (properties)
|
|
5557
5449
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5558
5450
|
if (properties[keys[i]] != null)
|
|
@@ -5560,89 +5452,128 @@ const dataform = $root.dataform = (() => {
|
|
|
5560
5452
|
}
|
|
5561
5453
|
|
|
5562
5454
|
/**
|
|
5563
|
-
*
|
|
5455
|
+
* CompilationError fileName.
|
|
5456
|
+
* @member {string} fileName
|
|
5457
|
+
* @memberof dataform.CompilationError
|
|
5458
|
+
* @instance
|
|
5459
|
+
*/
|
|
5460
|
+
CompilationError.prototype.fileName = "";
|
|
5461
|
+
|
|
5462
|
+
/**
|
|
5463
|
+
* CompilationError actionName.
|
|
5564
5464
|
* @member {string} actionName
|
|
5565
|
-
* @memberof dataform.
|
|
5465
|
+
* @memberof dataform.CompilationError
|
|
5466
|
+
* @instance
|
|
5467
|
+
*/
|
|
5468
|
+
CompilationError.prototype.actionName = "";
|
|
5469
|
+
|
|
5470
|
+
/**
|
|
5471
|
+
* CompilationError actionTarget.
|
|
5472
|
+
* @member {dataform.ITarget|null|undefined} actionTarget
|
|
5473
|
+
* @memberof dataform.CompilationError
|
|
5566
5474
|
* @instance
|
|
5567
5475
|
*/
|
|
5568
|
-
|
|
5476
|
+
CompilationError.prototype.actionTarget = null;
|
|
5569
5477
|
|
|
5570
5478
|
/**
|
|
5571
|
-
*
|
|
5479
|
+
* CompilationError message.
|
|
5572
5480
|
* @member {string} message
|
|
5573
|
-
* @memberof dataform.
|
|
5481
|
+
* @memberof dataform.CompilationError
|
|
5482
|
+
* @instance
|
|
5483
|
+
*/
|
|
5484
|
+
CompilationError.prototype.message = "";
|
|
5485
|
+
|
|
5486
|
+
/**
|
|
5487
|
+
* CompilationError stack.
|
|
5488
|
+
* @member {string} stack
|
|
5489
|
+
* @memberof dataform.CompilationError
|
|
5574
5490
|
* @instance
|
|
5575
5491
|
*/
|
|
5576
|
-
|
|
5492
|
+
CompilationError.prototype.stack = "";
|
|
5577
5493
|
|
|
5578
5494
|
/**
|
|
5579
|
-
* Creates a new
|
|
5495
|
+
* Creates a new CompilationError instance using the specified properties.
|
|
5580
5496
|
* @function create
|
|
5581
|
-
* @memberof dataform.
|
|
5497
|
+
* @memberof dataform.CompilationError
|
|
5582
5498
|
* @static
|
|
5583
|
-
* @param {dataform.
|
|
5584
|
-
* @returns {dataform.
|
|
5499
|
+
* @param {dataform.ICompilationError=} [properties] Properties to set
|
|
5500
|
+
* @returns {dataform.CompilationError} CompilationError instance
|
|
5585
5501
|
*/
|
|
5586
|
-
|
|
5587
|
-
return new
|
|
5502
|
+
CompilationError.create = function create(properties) {
|
|
5503
|
+
return new CompilationError(properties);
|
|
5588
5504
|
};
|
|
5589
5505
|
|
|
5590
5506
|
/**
|
|
5591
|
-
* Encodes the specified
|
|
5507
|
+
* Encodes the specified CompilationError message. Does not implicitly {@link dataform.CompilationError.verify|verify} messages.
|
|
5592
5508
|
* @function encode
|
|
5593
|
-
* @memberof dataform.
|
|
5509
|
+
* @memberof dataform.CompilationError
|
|
5594
5510
|
* @static
|
|
5595
|
-
* @param {dataform.
|
|
5511
|
+
* @param {dataform.ICompilationError} message CompilationError message or plain object to encode
|
|
5596
5512
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5597
5513
|
* @returns {$protobuf.Writer} Writer
|
|
5598
5514
|
*/
|
|
5599
|
-
|
|
5515
|
+
CompilationError.encode = function encode(message, writer) {
|
|
5600
5516
|
if (!writer)
|
|
5601
5517
|
writer = $Writer.create();
|
|
5602
|
-
if (message.
|
|
5603
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
5518
|
+
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
5519
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.fileName);
|
|
5604
5520
|
if (message.message != null && message.hasOwnProperty("message"))
|
|
5605
5521
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
|
|
5522
|
+
if (message.stack != null && message.hasOwnProperty("stack"))
|
|
5523
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.stack);
|
|
5524
|
+
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5525
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.actionName);
|
|
5526
|
+
if (message.actionTarget != null && message.hasOwnProperty("actionTarget"))
|
|
5527
|
+
$root.dataform.Target.encode(message.actionTarget, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
5606
5528
|
return writer;
|
|
5607
5529
|
};
|
|
5608
5530
|
|
|
5609
5531
|
/**
|
|
5610
|
-
* Encodes the specified
|
|
5532
|
+
* Encodes the specified CompilationError message, length delimited. Does not implicitly {@link dataform.CompilationError.verify|verify} messages.
|
|
5611
5533
|
* @function encodeDelimited
|
|
5612
|
-
* @memberof dataform.
|
|
5534
|
+
* @memberof dataform.CompilationError
|
|
5613
5535
|
* @static
|
|
5614
|
-
* @param {dataform.
|
|
5536
|
+
* @param {dataform.ICompilationError} message CompilationError message or plain object to encode
|
|
5615
5537
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5616
5538
|
* @returns {$protobuf.Writer} Writer
|
|
5617
5539
|
*/
|
|
5618
|
-
|
|
5540
|
+
CompilationError.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5619
5541
|
return this.encode(message, writer).ldelim();
|
|
5620
5542
|
};
|
|
5621
5543
|
|
|
5622
5544
|
/**
|
|
5623
|
-
* Decodes a
|
|
5545
|
+
* Decodes a CompilationError message from the specified reader or buffer.
|
|
5624
5546
|
* @function decode
|
|
5625
|
-
* @memberof dataform.
|
|
5547
|
+
* @memberof dataform.CompilationError
|
|
5626
5548
|
* @static
|
|
5627
5549
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5628
5550
|
* @param {number} [length] Message length if known beforehand
|
|
5629
|
-
* @returns {dataform.
|
|
5551
|
+
* @returns {dataform.CompilationError} CompilationError
|
|
5630
5552
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5631
5553
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5632
5554
|
*/
|
|
5633
|
-
|
|
5555
|
+
CompilationError.decode = function decode(reader, length) {
|
|
5634
5556
|
if (!(reader instanceof $Reader))
|
|
5635
5557
|
reader = $Reader.create(reader);
|
|
5636
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.
|
|
5558
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.CompilationError();
|
|
5637
5559
|
while (reader.pos < end) {
|
|
5638
5560
|
let tag = reader.uint32();
|
|
5639
5561
|
switch (tag >>> 3) {
|
|
5640
5562
|
case 1:
|
|
5563
|
+
message.fileName = reader.string();
|
|
5564
|
+
break;
|
|
5565
|
+
case 4:
|
|
5641
5566
|
message.actionName = reader.string();
|
|
5642
5567
|
break;
|
|
5568
|
+
case 5:
|
|
5569
|
+
message.actionTarget = $root.dataform.Target.decode(reader, reader.uint32());
|
|
5570
|
+
break;
|
|
5643
5571
|
case 2:
|
|
5644
5572
|
message.message = reader.string();
|
|
5645
5573
|
break;
|
|
5574
|
+
case 3:
|
|
5575
|
+
message.stack = reader.string();
|
|
5576
|
+
break;
|
|
5646
5577
|
default:
|
|
5647
5578
|
reader.skipType(tag & 7);
|
|
5648
5579
|
break;
|
|
@@ -5652,119 +5583,146 @@ const dataform = $root.dataform = (() => {
|
|
|
5652
5583
|
};
|
|
5653
5584
|
|
|
5654
5585
|
/**
|
|
5655
|
-
* Decodes a
|
|
5586
|
+
* Decodes a CompilationError message from the specified reader or buffer, length delimited.
|
|
5656
5587
|
* @function decodeDelimited
|
|
5657
|
-
* @memberof dataform.
|
|
5588
|
+
* @memberof dataform.CompilationError
|
|
5658
5589
|
* @static
|
|
5659
5590
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5660
|
-
* @returns {dataform.
|
|
5591
|
+
* @returns {dataform.CompilationError} CompilationError
|
|
5661
5592
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5662
5593
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5663
5594
|
*/
|
|
5664
|
-
|
|
5595
|
+
CompilationError.decodeDelimited = function decodeDelimited(reader) {
|
|
5665
5596
|
if (!(reader instanceof $Reader))
|
|
5666
5597
|
reader = new $Reader(reader);
|
|
5667
5598
|
return this.decode(reader, reader.uint32());
|
|
5668
5599
|
};
|
|
5669
5600
|
|
|
5670
5601
|
/**
|
|
5671
|
-
* Verifies a
|
|
5602
|
+
* Verifies a CompilationError message.
|
|
5672
5603
|
* @function verify
|
|
5673
|
-
* @memberof dataform.
|
|
5604
|
+
* @memberof dataform.CompilationError
|
|
5674
5605
|
* @static
|
|
5675
5606
|
* @param {Object.<string,*>} message Plain object to verify
|
|
5676
5607
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5677
5608
|
*/
|
|
5678
|
-
|
|
5609
|
+
CompilationError.verify = function verify(message) {
|
|
5679
5610
|
if (typeof message !== "object" || message === null)
|
|
5680
5611
|
return "object expected";
|
|
5612
|
+
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
5613
|
+
if (!$util.isString(message.fileName))
|
|
5614
|
+
return "fileName: string expected";
|
|
5681
5615
|
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5682
5616
|
if (!$util.isString(message.actionName))
|
|
5683
5617
|
return "actionName: string expected";
|
|
5618
|
+
if (message.actionTarget != null && message.hasOwnProperty("actionTarget")) {
|
|
5619
|
+
let error = $root.dataform.Target.verify(message.actionTarget);
|
|
5620
|
+
if (error)
|
|
5621
|
+
return "actionTarget." + error;
|
|
5622
|
+
}
|
|
5684
5623
|
if (message.message != null && message.hasOwnProperty("message"))
|
|
5685
5624
|
if (!$util.isString(message.message))
|
|
5686
5625
|
return "message: string expected";
|
|
5626
|
+
if (message.stack != null && message.hasOwnProperty("stack"))
|
|
5627
|
+
if (!$util.isString(message.stack))
|
|
5628
|
+
return "stack: string expected";
|
|
5687
5629
|
return null;
|
|
5688
5630
|
};
|
|
5689
5631
|
|
|
5690
5632
|
/**
|
|
5691
|
-
* Creates a
|
|
5633
|
+
* Creates a CompilationError message from a plain object. Also converts values to their respective internal types.
|
|
5692
5634
|
* @function fromObject
|
|
5693
|
-
* @memberof dataform.
|
|
5635
|
+
* @memberof dataform.CompilationError
|
|
5694
5636
|
* @static
|
|
5695
5637
|
* @param {Object.<string,*>} object Plain object
|
|
5696
|
-
* @returns {dataform.
|
|
5638
|
+
* @returns {dataform.CompilationError} CompilationError
|
|
5697
5639
|
*/
|
|
5698
|
-
|
|
5699
|
-
if (object instanceof $root.dataform.
|
|
5640
|
+
CompilationError.fromObject = function fromObject(object) {
|
|
5641
|
+
if (object instanceof $root.dataform.CompilationError)
|
|
5700
5642
|
return object;
|
|
5701
|
-
let message = new $root.dataform.
|
|
5643
|
+
let message = new $root.dataform.CompilationError();
|
|
5644
|
+
if (object.fileName != null)
|
|
5645
|
+
message.fileName = String(object.fileName);
|
|
5702
5646
|
if (object.actionName != null)
|
|
5703
5647
|
message.actionName = String(object.actionName);
|
|
5648
|
+
if (object.actionTarget != null) {
|
|
5649
|
+
if (typeof object.actionTarget !== "object")
|
|
5650
|
+
throw TypeError(".dataform.CompilationError.actionTarget: object expected");
|
|
5651
|
+
message.actionTarget = $root.dataform.Target.fromObject(object.actionTarget);
|
|
5652
|
+
}
|
|
5704
5653
|
if (object.message != null)
|
|
5705
5654
|
message.message = String(object.message);
|
|
5655
|
+
if (object.stack != null)
|
|
5656
|
+
message.stack = String(object.stack);
|
|
5706
5657
|
return message;
|
|
5707
5658
|
};
|
|
5708
5659
|
|
|
5709
5660
|
/**
|
|
5710
|
-
* Creates a plain object from a
|
|
5661
|
+
* Creates a plain object from a CompilationError message. Also converts values to other types if specified.
|
|
5711
5662
|
* @function toObject
|
|
5712
|
-
* @memberof dataform.
|
|
5663
|
+
* @memberof dataform.CompilationError
|
|
5713
5664
|
* @static
|
|
5714
|
-
* @param {dataform.
|
|
5665
|
+
* @param {dataform.CompilationError} message CompilationError
|
|
5715
5666
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5716
5667
|
* @returns {Object.<string,*>} Plain object
|
|
5717
5668
|
*/
|
|
5718
|
-
|
|
5669
|
+
CompilationError.toObject = function toObject(message, options) {
|
|
5719
5670
|
if (!options)
|
|
5720
5671
|
options = {};
|
|
5721
5672
|
let object = {};
|
|
5722
5673
|
if (options.defaults) {
|
|
5723
|
-
object.
|
|
5674
|
+
object.fileName = "";
|
|
5724
5675
|
object.message = "";
|
|
5676
|
+
object.stack = "";
|
|
5677
|
+
object.actionName = "";
|
|
5678
|
+
object.actionTarget = null;
|
|
5725
5679
|
}
|
|
5726
|
-
if (message.
|
|
5727
|
-
object.
|
|
5680
|
+
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
5681
|
+
object.fileName = message.fileName;
|
|
5728
5682
|
if (message.message != null && message.hasOwnProperty("message"))
|
|
5729
5683
|
object.message = message.message;
|
|
5684
|
+
if (message.stack != null && message.hasOwnProperty("stack"))
|
|
5685
|
+
object.stack = message.stack;
|
|
5686
|
+
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5687
|
+
object.actionName = message.actionName;
|
|
5688
|
+
if (message.actionTarget != null && message.hasOwnProperty("actionTarget"))
|
|
5689
|
+
object.actionTarget = $root.dataform.Target.toObject(message.actionTarget, options);
|
|
5730
5690
|
return object;
|
|
5731
5691
|
};
|
|
5732
5692
|
|
|
5733
5693
|
/**
|
|
5734
|
-
* Converts this
|
|
5694
|
+
* Converts this CompilationError to JSON.
|
|
5735
5695
|
* @function toJSON
|
|
5736
|
-
* @memberof dataform.
|
|
5696
|
+
* @memberof dataform.CompilationError
|
|
5737
5697
|
* @instance
|
|
5738
5698
|
* @returns {Object.<string,*>} JSON object
|
|
5739
5699
|
*/
|
|
5740
|
-
|
|
5700
|
+
CompilationError.prototype.toJSON = function toJSON() {
|
|
5741
5701
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5742
5702
|
};
|
|
5743
5703
|
|
|
5744
|
-
return
|
|
5704
|
+
return CompilationError;
|
|
5745
5705
|
})();
|
|
5746
5706
|
|
|
5747
|
-
dataform.
|
|
5707
|
+
dataform.QueryEvaluationError = (function() {
|
|
5748
5708
|
|
|
5749
5709
|
/**
|
|
5750
|
-
* Properties of a
|
|
5710
|
+
* Properties of a QueryEvaluationError.
|
|
5751
5711
|
* @memberof dataform
|
|
5752
|
-
* @interface
|
|
5753
|
-
* @property {string|null} [
|
|
5754
|
-
* @property {
|
|
5755
|
-
* @property {string|null} [message] CompilationError message
|
|
5756
|
-
* @property {string|null} [stack] CompilationError stack
|
|
5712
|
+
* @interface IQueryEvaluationError
|
|
5713
|
+
* @property {string|null} [message] QueryEvaluationError message
|
|
5714
|
+
* @property {dataform.QueryEvaluationError.IErrorLocation|null} [errorLocation] QueryEvaluationError errorLocation
|
|
5757
5715
|
*/
|
|
5758
5716
|
|
|
5759
5717
|
/**
|
|
5760
|
-
* Constructs a new
|
|
5718
|
+
* Constructs a new QueryEvaluationError.
|
|
5761
5719
|
* @memberof dataform
|
|
5762
|
-
* @classdesc Represents a
|
|
5763
|
-
* @implements
|
|
5720
|
+
* @classdesc Represents a QueryEvaluationError.
|
|
5721
|
+
* @implements IQueryEvaluationError
|
|
5764
5722
|
* @constructor
|
|
5765
|
-
* @param {dataform.
|
|
5723
|
+
* @param {dataform.IQueryEvaluationError=} [properties] Properties to set
|
|
5766
5724
|
*/
|
|
5767
|
-
function
|
|
5725
|
+
function QueryEvaluationError(properties) {
|
|
5768
5726
|
if (properties)
|
|
5769
5727
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5770
5728
|
if (properties[keys[i]] != null)
|
|
@@ -5772,269 +5730,17 @@ const dataform = $root.dataform = (() => {
|
|
|
5772
5730
|
}
|
|
5773
5731
|
|
|
5774
5732
|
/**
|
|
5775
|
-
*
|
|
5776
|
-
* @member {string}
|
|
5777
|
-
* @memberof dataform.
|
|
5733
|
+
* QueryEvaluationError message.
|
|
5734
|
+
* @member {string} message
|
|
5735
|
+
* @memberof dataform.QueryEvaluationError
|
|
5778
5736
|
* @instance
|
|
5779
5737
|
*/
|
|
5780
|
-
|
|
5738
|
+
QueryEvaluationError.prototype.message = "";
|
|
5781
5739
|
|
|
5782
5740
|
/**
|
|
5783
|
-
*
|
|
5784
|
-
* @member {
|
|
5785
|
-
* @memberof dataform.
|
|
5786
|
-
* @instance
|
|
5787
|
-
*/
|
|
5788
|
-
CompilationError.prototype.actionName = "";
|
|
5789
|
-
|
|
5790
|
-
/**
|
|
5791
|
-
* CompilationError message.
|
|
5792
|
-
* @member {string} message
|
|
5793
|
-
* @memberof dataform.CompilationError
|
|
5794
|
-
* @instance
|
|
5795
|
-
*/
|
|
5796
|
-
CompilationError.prototype.message = "";
|
|
5797
|
-
|
|
5798
|
-
/**
|
|
5799
|
-
* CompilationError stack.
|
|
5800
|
-
* @member {string} stack
|
|
5801
|
-
* @memberof dataform.CompilationError
|
|
5802
|
-
* @instance
|
|
5803
|
-
*/
|
|
5804
|
-
CompilationError.prototype.stack = "";
|
|
5805
|
-
|
|
5806
|
-
/**
|
|
5807
|
-
* Creates a new CompilationError instance using the specified properties.
|
|
5808
|
-
* @function create
|
|
5809
|
-
* @memberof dataform.CompilationError
|
|
5810
|
-
* @static
|
|
5811
|
-
* @param {dataform.ICompilationError=} [properties] Properties to set
|
|
5812
|
-
* @returns {dataform.CompilationError} CompilationError instance
|
|
5813
|
-
*/
|
|
5814
|
-
CompilationError.create = function create(properties) {
|
|
5815
|
-
return new CompilationError(properties);
|
|
5816
|
-
};
|
|
5817
|
-
|
|
5818
|
-
/**
|
|
5819
|
-
* Encodes the specified CompilationError message. Does not implicitly {@link dataform.CompilationError.verify|verify} messages.
|
|
5820
|
-
* @function encode
|
|
5821
|
-
* @memberof dataform.CompilationError
|
|
5822
|
-
* @static
|
|
5823
|
-
* @param {dataform.ICompilationError} message CompilationError message or plain object to encode
|
|
5824
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5825
|
-
* @returns {$protobuf.Writer} Writer
|
|
5826
|
-
*/
|
|
5827
|
-
CompilationError.encode = function encode(message, writer) {
|
|
5828
|
-
if (!writer)
|
|
5829
|
-
writer = $Writer.create();
|
|
5830
|
-
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
5831
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.fileName);
|
|
5832
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
5833
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
|
|
5834
|
-
if (message.stack != null && message.hasOwnProperty("stack"))
|
|
5835
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.stack);
|
|
5836
|
-
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5837
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.actionName);
|
|
5838
|
-
return writer;
|
|
5839
|
-
};
|
|
5840
|
-
|
|
5841
|
-
/**
|
|
5842
|
-
* Encodes the specified CompilationError message, length delimited. Does not implicitly {@link dataform.CompilationError.verify|verify} messages.
|
|
5843
|
-
* @function encodeDelimited
|
|
5844
|
-
* @memberof dataform.CompilationError
|
|
5845
|
-
* @static
|
|
5846
|
-
* @param {dataform.ICompilationError} message CompilationError message or plain object to encode
|
|
5847
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5848
|
-
* @returns {$protobuf.Writer} Writer
|
|
5849
|
-
*/
|
|
5850
|
-
CompilationError.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5851
|
-
return this.encode(message, writer).ldelim();
|
|
5852
|
-
};
|
|
5853
|
-
|
|
5854
|
-
/**
|
|
5855
|
-
* Decodes a CompilationError message from the specified reader or buffer.
|
|
5856
|
-
* @function decode
|
|
5857
|
-
* @memberof dataform.CompilationError
|
|
5858
|
-
* @static
|
|
5859
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5860
|
-
* @param {number} [length] Message length if known beforehand
|
|
5861
|
-
* @returns {dataform.CompilationError} CompilationError
|
|
5862
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5863
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5864
|
-
*/
|
|
5865
|
-
CompilationError.decode = function decode(reader, length) {
|
|
5866
|
-
if (!(reader instanceof $Reader))
|
|
5867
|
-
reader = $Reader.create(reader);
|
|
5868
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.CompilationError();
|
|
5869
|
-
while (reader.pos < end) {
|
|
5870
|
-
let tag = reader.uint32();
|
|
5871
|
-
switch (tag >>> 3) {
|
|
5872
|
-
case 1:
|
|
5873
|
-
message.fileName = reader.string();
|
|
5874
|
-
break;
|
|
5875
|
-
case 4:
|
|
5876
|
-
message.actionName = reader.string();
|
|
5877
|
-
break;
|
|
5878
|
-
case 2:
|
|
5879
|
-
message.message = reader.string();
|
|
5880
|
-
break;
|
|
5881
|
-
case 3:
|
|
5882
|
-
message.stack = reader.string();
|
|
5883
|
-
break;
|
|
5884
|
-
default:
|
|
5885
|
-
reader.skipType(tag & 7);
|
|
5886
|
-
break;
|
|
5887
|
-
}
|
|
5888
|
-
}
|
|
5889
|
-
return message;
|
|
5890
|
-
};
|
|
5891
|
-
|
|
5892
|
-
/**
|
|
5893
|
-
* Decodes a CompilationError message from the specified reader or buffer, length delimited.
|
|
5894
|
-
* @function decodeDelimited
|
|
5895
|
-
* @memberof dataform.CompilationError
|
|
5896
|
-
* @static
|
|
5897
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5898
|
-
* @returns {dataform.CompilationError} CompilationError
|
|
5899
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5900
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5901
|
-
*/
|
|
5902
|
-
CompilationError.decodeDelimited = function decodeDelimited(reader) {
|
|
5903
|
-
if (!(reader instanceof $Reader))
|
|
5904
|
-
reader = new $Reader(reader);
|
|
5905
|
-
return this.decode(reader, reader.uint32());
|
|
5906
|
-
};
|
|
5907
|
-
|
|
5908
|
-
/**
|
|
5909
|
-
* Verifies a CompilationError message.
|
|
5910
|
-
* @function verify
|
|
5911
|
-
* @memberof dataform.CompilationError
|
|
5912
|
-
* @static
|
|
5913
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
5914
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5915
|
-
*/
|
|
5916
|
-
CompilationError.verify = function verify(message) {
|
|
5917
|
-
if (typeof message !== "object" || message === null)
|
|
5918
|
-
return "object expected";
|
|
5919
|
-
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
5920
|
-
if (!$util.isString(message.fileName))
|
|
5921
|
-
return "fileName: string expected";
|
|
5922
|
-
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5923
|
-
if (!$util.isString(message.actionName))
|
|
5924
|
-
return "actionName: string expected";
|
|
5925
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
5926
|
-
if (!$util.isString(message.message))
|
|
5927
|
-
return "message: string expected";
|
|
5928
|
-
if (message.stack != null && message.hasOwnProperty("stack"))
|
|
5929
|
-
if (!$util.isString(message.stack))
|
|
5930
|
-
return "stack: string expected";
|
|
5931
|
-
return null;
|
|
5932
|
-
};
|
|
5933
|
-
|
|
5934
|
-
/**
|
|
5935
|
-
* Creates a CompilationError message from a plain object. Also converts values to their respective internal types.
|
|
5936
|
-
* @function fromObject
|
|
5937
|
-
* @memberof dataform.CompilationError
|
|
5938
|
-
* @static
|
|
5939
|
-
* @param {Object.<string,*>} object Plain object
|
|
5940
|
-
* @returns {dataform.CompilationError} CompilationError
|
|
5941
|
-
*/
|
|
5942
|
-
CompilationError.fromObject = function fromObject(object) {
|
|
5943
|
-
if (object instanceof $root.dataform.CompilationError)
|
|
5944
|
-
return object;
|
|
5945
|
-
let message = new $root.dataform.CompilationError();
|
|
5946
|
-
if (object.fileName != null)
|
|
5947
|
-
message.fileName = String(object.fileName);
|
|
5948
|
-
if (object.actionName != null)
|
|
5949
|
-
message.actionName = String(object.actionName);
|
|
5950
|
-
if (object.message != null)
|
|
5951
|
-
message.message = String(object.message);
|
|
5952
|
-
if (object.stack != null)
|
|
5953
|
-
message.stack = String(object.stack);
|
|
5954
|
-
return message;
|
|
5955
|
-
};
|
|
5956
|
-
|
|
5957
|
-
/**
|
|
5958
|
-
* Creates a plain object from a CompilationError message. Also converts values to other types if specified.
|
|
5959
|
-
* @function toObject
|
|
5960
|
-
* @memberof dataform.CompilationError
|
|
5961
|
-
* @static
|
|
5962
|
-
* @param {dataform.CompilationError} message CompilationError
|
|
5963
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5964
|
-
* @returns {Object.<string,*>} Plain object
|
|
5965
|
-
*/
|
|
5966
|
-
CompilationError.toObject = function toObject(message, options) {
|
|
5967
|
-
if (!options)
|
|
5968
|
-
options = {};
|
|
5969
|
-
let object = {};
|
|
5970
|
-
if (options.defaults) {
|
|
5971
|
-
object.fileName = "";
|
|
5972
|
-
object.message = "";
|
|
5973
|
-
object.stack = "";
|
|
5974
|
-
object.actionName = "";
|
|
5975
|
-
}
|
|
5976
|
-
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
5977
|
-
object.fileName = message.fileName;
|
|
5978
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
5979
|
-
object.message = message.message;
|
|
5980
|
-
if (message.stack != null && message.hasOwnProperty("stack"))
|
|
5981
|
-
object.stack = message.stack;
|
|
5982
|
-
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5983
|
-
object.actionName = message.actionName;
|
|
5984
|
-
return object;
|
|
5985
|
-
};
|
|
5986
|
-
|
|
5987
|
-
/**
|
|
5988
|
-
* Converts this CompilationError to JSON.
|
|
5989
|
-
* @function toJSON
|
|
5990
|
-
* @memberof dataform.CompilationError
|
|
5991
|
-
* @instance
|
|
5992
|
-
* @returns {Object.<string,*>} JSON object
|
|
5993
|
-
*/
|
|
5994
|
-
CompilationError.prototype.toJSON = function toJSON() {
|
|
5995
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5996
|
-
};
|
|
5997
|
-
|
|
5998
|
-
return CompilationError;
|
|
5999
|
-
})();
|
|
6000
|
-
|
|
6001
|
-
dataform.QueryEvaluationError = (function() {
|
|
6002
|
-
|
|
6003
|
-
/**
|
|
6004
|
-
* Properties of a QueryEvaluationError.
|
|
6005
|
-
* @memberof dataform
|
|
6006
|
-
* @interface IQueryEvaluationError
|
|
6007
|
-
* @property {string|null} [message] QueryEvaluationError message
|
|
6008
|
-
* @property {dataform.QueryEvaluationError.IErrorLocation|null} [errorLocation] QueryEvaluationError errorLocation
|
|
6009
|
-
*/
|
|
6010
|
-
|
|
6011
|
-
/**
|
|
6012
|
-
* Constructs a new QueryEvaluationError.
|
|
6013
|
-
* @memberof dataform
|
|
6014
|
-
* @classdesc Represents a QueryEvaluationError.
|
|
6015
|
-
* @implements IQueryEvaluationError
|
|
6016
|
-
* @constructor
|
|
6017
|
-
* @param {dataform.IQueryEvaluationError=} [properties] Properties to set
|
|
6018
|
-
*/
|
|
6019
|
-
function QueryEvaluationError(properties) {
|
|
6020
|
-
if (properties)
|
|
6021
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6022
|
-
if (properties[keys[i]] != null)
|
|
6023
|
-
this[keys[i]] = properties[keys[i]];
|
|
6024
|
-
}
|
|
6025
|
-
|
|
6026
|
-
/**
|
|
6027
|
-
* QueryEvaluationError message.
|
|
6028
|
-
* @member {string} message
|
|
6029
|
-
* @memberof dataform.QueryEvaluationError
|
|
6030
|
-
* @instance
|
|
6031
|
-
*/
|
|
6032
|
-
QueryEvaluationError.prototype.message = "";
|
|
6033
|
-
|
|
6034
|
-
/**
|
|
6035
|
-
* QueryEvaluationError errorLocation.
|
|
6036
|
-
* @member {dataform.QueryEvaluationError.IErrorLocation|null|undefined} errorLocation
|
|
6037
|
-
* @memberof dataform.QueryEvaluationError
|
|
5741
|
+
* QueryEvaluationError errorLocation.
|
|
5742
|
+
* @member {dataform.QueryEvaluationError.IErrorLocation|null|undefined} errorLocation
|
|
5743
|
+
* @memberof dataform.QueryEvaluationError
|
|
6038
5744
|
* @instance
|
|
6039
5745
|
*/
|
|
6040
5746
|
QueryEvaluationError.prototype.errorLocation = null;
|
|
@@ -7697,10 +7403,6 @@ const dataform = $root.dataform = (() => {
|
|
|
7697
7403
|
* @property {dataform.ISQLDataWarehouseOptions|null} [sqlDataWarehouse] Table sqlDataWarehouse
|
|
7698
7404
|
* @property {dataform.IPrestoOptions|null} [presto] Table presto
|
|
7699
7405
|
* @property {string|null} [fileName] Table fileName
|
|
7700
|
-
* @property {Array.<string>|null} [deprecatedParsedColumns] Table deprecatedParsedColumns
|
|
7701
|
-
* @property {Array.<dataform.IValidationError>|null} [deprecatedValidationErrors] Table deprecatedValidationErrors
|
|
7702
|
-
* @property {string|null} [name] Table name
|
|
7703
|
-
* @property {Array.<string>|null} [dependencies] Table dependencies
|
|
7704
7406
|
*/
|
|
7705
7407
|
|
|
7706
7408
|
/**
|
|
@@ -7719,9 +7421,6 @@ const dataform = $root.dataform = (() => {
|
|
|
7719
7421
|
this.postOps = [];
|
|
7720
7422
|
this.incrementalPreOps = [];
|
|
7721
7423
|
this.incrementalPostOps = [];
|
|
7722
|
-
this.deprecatedParsedColumns = [];
|
|
7723
|
-
this.deprecatedValidationErrors = [];
|
|
7724
|
-
this.dependencies = [];
|
|
7725
7424
|
if (properties)
|
|
7726
7425
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7727
7426
|
if (properties[keys[i]] != null)
|
|
@@ -7913,40 +7612,8 @@ const dataform = $root.dataform = (() => {
|
|
|
7913
7612
|
Table.prototype.fileName = "";
|
|
7914
7613
|
|
|
7915
7614
|
/**
|
|
7916
|
-
* Table
|
|
7917
|
-
* @
|
|
7918
|
-
* @memberof dataform.Table
|
|
7919
|
-
* @instance
|
|
7920
|
-
*/
|
|
7921
|
-
Table.prototype.deprecatedParsedColumns = $util.emptyArray;
|
|
7922
|
-
|
|
7923
|
-
/**
|
|
7924
|
-
* Table deprecatedValidationErrors.
|
|
7925
|
-
* @member {Array.<dataform.IValidationError>} deprecatedValidationErrors
|
|
7926
|
-
* @memberof dataform.Table
|
|
7927
|
-
* @instance
|
|
7928
|
-
*/
|
|
7929
|
-
Table.prototype.deprecatedValidationErrors = $util.emptyArray;
|
|
7930
|
-
|
|
7931
|
-
/**
|
|
7932
|
-
* Table name.
|
|
7933
|
-
* @member {string} name
|
|
7934
|
-
* @memberof dataform.Table
|
|
7935
|
-
* @instance
|
|
7936
|
-
*/
|
|
7937
|
-
Table.prototype.name = "";
|
|
7938
|
-
|
|
7939
|
-
/**
|
|
7940
|
-
* Table dependencies.
|
|
7941
|
-
* @member {Array.<string>} dependencies
|
|
7942
|
-
* @memberof dataform.Table
|
|
7943
|
-
* @instance
|
|
7944
|
-
*/
|
|
7945
|
-
Table.prototype.dependencies = $util.emptyArray;
|
|
7946
|
-
|
|
7947
|
-
/**
|
|
7948
|
-
* Creates a new Table instance using the specified properties.
|
|
7949
|
-
* @function create
|
|
7615
|
+
* Creates a new Table instance using the specified properties.
|
|
7616
|
+
* @function create
|
|
7950
7617
|
* @memberof dataform.Table
|
|
7951
7618
|
* @static
|
|
7952
7619
|
* @param {dataform.ITable=} [properties] Properties to set
|
|
@@ -7968,11 +7635,6 @@ const dataform = $root.dataform = (() => {
|
|
|
7968
7635
|
Table.encode = function encode(message, writer) {
|
|
7969
7636
|
if (!writer)
|
|
7970
7637
|
writer = $Writer.create();
|
|
7971
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
7972
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
7973
|
-
if (message.dependencies != null && message.dependencies.length)
|
|
7974
|
-
for (let i = 0; i < message.dependencies.length; ++i)
|
|
7975
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.dependencies[i]);
|
|
7976
7638
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
7977
7639
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
|
|
7978
7640
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
@@ -7981,16 +7643,10 @@ const dataform = $root.dataform = (() => {
|
|
|
7981
7643
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.query);
|
|
7982
7644
|
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
7983
7645
|
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disabled);
|
|
7984
|
-
if (message.deprecatedValidationErrors != null && message.deprecatedValidationErrors.length)
|
|
7985
|
-
for (let i = 0; i < message.deprecatedValidationErrors.length; ++i)
|
|
7986
|
-
$root.dataform.ValidationError.encode(message.deprecatedValidationErrors[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
7987
7646
|
if (message.where != null && message.hasOwnProperty("where"))
|
|
7988
7647
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.where);
|
|
7989
7648
|
if (message["protected"] != null && message.hasOwnProperty("protected"))
|
|
7990
7649
|
writer.uint32(/* id 9, wireType 0 =*/72).bool(message["protected"]);
|
|
7991
|
-
if (message.deprecatedParsedColumns != null && message.deprecatedParsedColumns.length)
|
|
7992
|
-
for (let i = 0; i < message.deprecatedParsedColumns.length; ++i)
|
|
7993
|
-
writer.uint32(/* id 12, wireType 2 =*/98).string(message.deprecatedParsedColumns[i]);
|
|
7994
7650
|
if (message.preOps != null && message.preOps.length)
|
|
7995
7651
|
for (let i = 0; i < message.preOps.length; ++i)
|
|
7996
7652
|
writer.uint32(/* id 13, wireType 2 =*/106).string(message.preOps[i]);
|
|
@@ -8149,24 +7805,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8149
7805
|
case 18:
|
|
8150
7806
|
message.fileName = reader.string();
|
|
8151
7807
|
break;
|
|
8152
|
-
case 12:
|
|
8153
|
-
if (!(message.deprecatedParsedColumns && message.deprecatedParsedColumns.length))
|
|
8154
|
-
message.deprecatedParsedColumns = [];
|
|
8155
|
-
message.deprecatedParsedColumns.push(reader.string());
|
|
8156
|
-
break;
|
|
8157
|
-
case 7:
|
|
8158
|
-
if (!(message.deprecatedValidationErrors && message.deprecatedValidationErrors.length))
|
|
8159
|
-
message.deprecatedValidationErrors = [];
|
|
8160
|
-
message.deprecatedValidationErrors.push($root.dataform.ValidationError.decode(reader, reader.uint32()));
|
|
8161
|
-
break;
|
|
8162
|
-
case 1:
|
|
8163
|
-
message.name = reader.string();
|
|
8164
|
-
break;
|
|
8165
|
-
case 2:
|
|
8166
|
-
if (!(message.dependencies && message.dependencies.length))
|
|
8167
|
-
message.dependencies = [];
|
|
8168
|
-
message.dependencies.push(reader.string());
|
|
8169
|
-
break;
|
|
8170
7808
|
default:
|
|
8171
7809
|
reader.skipType(tag & 7);
|
|
8172
7810
|
break;
|
|
@@ -8323,32 +7961,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8323
7961
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
8324
7962
|
if (!$util.isString(message.fileName))
|
|
8325
7963
|
return "fileName: string expected";
|
|
8326
|
-
if (message.deprecatedParsedColumns != null && message.hasOwnProperty("deprecatedParsedColumns")) {
|
|
8327
|
-
if (!Array.isArray(message.deprecatedParsedColumns))
|
|
8328
|
-
return "deprecatedParsedColumns: array expected";
|
|
8329
|
-
for (let i = 0; i < message.deprecatedParsedColumns.length; ++i)
|
|
8330
|
-
if (!$util.isString(message.deprecatedParsedColumns[i]))
|
|
8331
|
-
return "deprecatedParsedColumns: string[] expected";
|
|
8332
|
-
}
|
|
8333
|
-
if (message.deprecatedValidationErrors != null && message.hasOwnProperty("deprecatedValidationErrors")) {
|
|
8334
|
-
if (!Array.isArray(message.deprecatedValidationErrors))
|
|
8335
|
-
return "deprecatedValidationErrors: array expected";
|
|
8336
|
-
for (let i = 0; i < message.deprecatedValidationErrors.length; ++i) {
|
|
8337
|
-
let error = $root.dataform.ValidationError.verify(message.deprecatedValidationErrors[i]);
|
|
8338
|
-
if (error)
|
|
8339
|
-
return "deprecatedValidationErrors." + error;
|
|
8340
|
-
}
|
|
8341
|
-
}
|
|
8342
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
8343
|
-
if (!$util.isString(message.name))
|
|
8344
|
-
return "name: string expected";
|
|
8345
|
-
if (message.dependencies != null && message.hasOwnProperty("dependencies")) {
|
|
8346
|
-
if (!Array.isArray(message.dependencies))
|
|
8347
|
-
return "dependencies: array expected";
|
|
8348
|
-
for (let i = 0; i < message.dependencies.length; ++i)
|
|
8349
|
-
if (!$util.isString(message.dependencies[i]))
|
|
8350
|
-
return "dependencies: string[] expected";
|
|
8351
|
-
}
|
|
8352
7964
|
return null;
|
|
8353
7965
|
};
|
|
8354
7966
|
|
|
@@ -8484,32 +8096,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8484
8096
|
}
|
|
8485
8097
|
if (object.fileName != null)
|
|
8486
8098
|
message.fileName = String(object.fileName);
|
|
8487
|
-
if (object.deprecatedParsedColumns) {
|
|
8488
|
-
if (!Array.isArray(object.deprecatedParsedColumns))
|
|
8489
|
-
throw TypeError(".dataform.Table.deprecatedParsedColumns: array expected");
|
|
8490
|
-
message.deprecatedParsedColumns = [];
|
|
8491
|
-
for (let i = 0; i < object.deprecatedParsedColumns.length; ++i)
|
|
8492
|
-
message.deprecatedParsedColumns[i] = String(object.deprecatedParsedColumns[i]);
|
|
8493
|
-
}
|
|
8494
|
-
if (object.deprecatedValidationErrors) {
|
|
8495
|
-
if (!Array.isArray(object.deprecatedValidationErrors))
|
|
8496
|
-
throw TypeError(".dataform.Table.deprecatedValidationErrors: array expected");
|
|
8497
|
-
message.deprecatedValidationErrors = [];
|
|
8498
|
-
for (let i = 0; i < object.deprecatedValidationErrors.length; ++i) {
|
|
8499
|
-
if (typeof object.deprecatedValidationErrors[i] !== "object")
|
|
8500
|
-
throw TypeError(".dataform.Table.deprecatedValidationErrors: object expected");
|
|
8501
|
-
message.deprecatedValidationErrors[i] = $root.dataform.ValidationError.fromObject(object.deprecatedValidationErrors[i]);
|
|
8502
|
-
}
|
|
8503
|
-
}
|
|
8504
|
-
if (object.name != null)
|
|
8505
|
-
message.name = String(object.name);
|
|
8506
|
-
if (object.dependencies) {
|
|
8507
|
-
if (!Array.isArray(object.dependencies))
|
|
8508
|
-
throw TypeError(".dataform.Table.dependencies: array expected");
|
|
8509
|
-
message.dependencies = [];
|
|
8510
|
-
for (let i = 0; i < object.dependencies.length; ++i)
|
|
8511
|
-
message.dependencies[i] = String(object.dependencies[i]);
|
|
8512
|
-
}
|
|
8513
8099
|
return message;
|
|
8514
8100
|
};
|
|
8515
8101
|
|
|
@@ -8527,9 +8113,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8527
8113
|
options = {};
|
|
8528
8114
|
let object = {};
|
|
8529
8115
|
if (options.arrays || options.defaults) {
|
|
8530
|
-
object.dependencies = [];
|
|
8531
|
-
object.deprecatedValidationErrors = [];
|
|
8532
|
-
object.deprecatedParsedColumns = [];
|
|
8533
8116
|
object.preOps = [];
|
|
8534
8117
|
object.postOps = [];
|
|
8535
8118
|
object.tags = [];
|
|
@@ -8539,7 +8122,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8539
8122
|
object.uniqueKey = [];
|
|
8540
8123
|
}
|
|
8541
8124
|
if (options.defaults) {
|
|
8542
|
-
object.name = "";
|
|
8543
8125
|
object.type = "";
|
|
8544
8126
|
object.target = null;
|
|
8545
8127
|
object.query = "";
|
|
@@ -8557,13 +8139,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8557
8139
|
object.snowflake = null;
|
|
8558
8140
|
object.presto = null;
|
|
8559
8141
|
}
|
|
8560
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
8561
|
-
object.name = message.name;
|
|
8562
|
-
if (message.dependencies && message.dependencies.length) {
|
|
8563
|
-
object.dependencies = [];
|
|
8564
|
-
for (let j = 0; j < message.dependencies.length; ++j)
|
|
8565
|
-
object.dependencies[j] = message.dependencies[j];
|
|
8566
|
-
}
|
|
8567
8142
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
8568
8143
|
object.type = message.type;
|
|
8569
8144
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
@@ -8572,20 +8147,10 @@ const dataform = $root.dataform = (() => {
|
|
|
8572
8147
|
object.query = message.query;
|
|
8573
8148
|
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
8574
8149
|
object.disabled = message.disabled;
|
|
8575
|
-
if (message.deprecatedValidationErrors && message.deprecatedValidationErrors.length) {
|
|
8576
|
-
object.deprecatedValidationErrors = [];
|
|
8577
|
-
for (let j = 0; j < message.deprecatedValidationErrors.length; ++j)
|
|
8578
|
-
object.deprecatedValidationErrors[j] = $root.dataform.ValidationError.toObject(message.deprecatedValidationErrors[j], options);
|
|
8579
|
-
}
|
|
8580
8150
|
if (message.where != null && message.hasOwnProperty("where"))
|
|
8581
8151
|
object.where = message.where;
|
|
8582
8152
|
if (message["protected"] != null && message.hasOwnProperty("protected"))
|
|
8583
8153
|
object["protected"] = message["protected"];
|
|
8584
|
-
if (message.deprecatedParsedColumns && message.deprecatedParsedColumns.length) {
|
|
8585
|
-
object.deprecatedParsedColumns = [];
|
|
8586
|
-
for (let j = 0; j < message.deprecatedParsedColumns.length; ++j)
|
|
8587
|
-
object.deprecatedParsedColumns[j] = message.deprecatedParsedColumns[j];
|
|
8588
|
-
}
|
|
8589
8154
|
if (message.preOps && message.preOps.length) {
|
|
8590
8155
|
object.preOps = [];
|
|
8591
8156
|
for (let j = 0; j < message.preOps.length; ++j)
|
|
@@ -8674,8 +8239,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8674
8239
|
* @property {Array.<string>|null} [tags] Operation tags
|
|
8675
8240
|
* @property {dataform.IActionDescriptor|null} [actionDescriptor] Operation actionDescriptor
|
|
8676
8241
|
* @property {string|null} [fileName] Operation fileName
|
|
8677
|
-
* @property {string|null} [name] Operation name
|
|
8678
|
-
* @property {Array.<string>|null} [dependencies] Operation dependencies
|
|
8679
8242
|
*/
|
|
8680
8243
|
|
|
8681
8244
|
/**
|
|
@@ -8690,7 +8253,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8690
8253
|
this.dependencyTargets = [];
|
|
8691
8254
|
this.queries = [];
|
|
8692
8255
|
this.tags = [];
|
|
8693
|
-
this.dependencies = [];
|
|
8694
8256
|
if (properties)
|
|
8695
8257
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8696
8258
|
if (properties[keys[i]] != null)
|
|
@@ -8777,22 +8339,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8777
8339
|
*/
|
|
8778
8340
|
Operation.prototype.fileName = "";
|
|
8779
8341
|
|
|
8780
|
-
/**
|
|
8781
|
-
* Operation name.
|
|
8782
|
-
* @member {string} name
|
|
8783
|
-
* @memberof dataform.Operation
|
|
8784
|
-
* @instance
|
|
8785
|
-
*/
|
|
8786
|
-
Operation.prototype.name = "";
|
|
8787
|
-
|
|
8788
|
-
/**
|
|
8789
|
-
* Operation dependencies.
|
|
8790
|
-
* @member {Array.<string>} dependencies
|
|
8791
|
-
* @memberof dataform.Operation
|
|
8792
|
-
* @instance
|
|
8793
|
-
*/
|
|
8794
|
-
Operation.prototype.dependencies = $util.emptyArray;
|
|
8795
|
-
|
|
8796
8342
|
/**
|
|
8797
8343
|
* Creates a new Operation instance using the specified properties.
|
|
8798
8344
|
* @function create
|
|
@@ -8817,11 +8363,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8817
8363
|
Operation.encode = function encode(message, writer) {
|
|
8818
8364
|
if (!writer)
|
|
8819
8365
|
writer = $Writer.create();
|
|
8820
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
8821
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
8822
|
-
if (message.dependencies != null && message.dependencies.length)
|
|
8823
|
-
for (let i = 0; i < message.dependencies.length; ++i)
|
|
8824
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.dependencies[i]);
|
|
8825
8366
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
8826
8367
|
$root.dataform.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
8827
8368
|
if (message.queries != null && message.queries.length)
|
|
@@ -8915,14 +8456,6 @@ const dataform = $root.dataform = (() => {
|
|
|
8915
8456
|
case 7:
|
|
8916
8457
|
message.fileName = reader.string();
|
|
8917
8458
|
break;
|
|
8918
|
-
case 1:
|
|
8919
|
-
message.name = reader.string();
|
|
8920
|
-
break;
|
|
8921
|
-
case 2:
|
|
8922
|
-
if (!(message.dependencies && message.dependencies.length))
|
|
8923
|
-
message.dependencies = [];
|
|
8924
|
-
message.dependencies.push(reader.string());
|
|
8925
|
-
break;
|
|
8926
8459
|
default:
|
|
8927
8460
|
reader.skipType(tag & 7);
|
|
8928
8461
|
break;
|
|
@@ -9014,16 +8547,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9014
8547
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
9015
8548
|
if (!$util.isString(message.fileName))
|
|
9016
8549
|
return "fileName: string expected";
|
|
9017
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9018
|
-
if (!$util.isString(message.name))
|
|
9019
|
-
return "name: string expected";
|
|
9020
|
-
if (message.dependencies != null && message.hasOwnProperty("dependencies")) {
|
|
9021
|
-
if (!Array.isArray(message.dependencies))
|
|
9022
|
-
return "dependencies: array expected";
|
|
9023
|
-
for (let i = 0; i < message.dependencies.length; ++i)
|
|
9024
|
-
if (!$util.isString(message.dependencies[i]))
|
|
9025
|
-
return "dependencies: string[] expected";
|
|
9026
|
-
}
|
|
9027
8550
|
return null;
|
|
9028
8551
|
};
|
|
9029
8552
|
|
|
@@ -9098,15 +8621,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9098
8621
|
}
|
|
9099
8622
|
if (object.fileName != null)
|
|
9100
8623
|
message.fileName = String(object.fileName);
|
|
9101
|
-
if (object.name != null)
|
|
9102
|
-
message.name = String(object.name);
|
|
9103
|
-
if (object.dependencies) {
|
|
9104
|
-
if (!Array.isArray(object.dependencies))
|
|
9105
|
-
throw TypeError(".dataform.Operation.dependencies: array expected");
|
|
9106
|
-
message.dependencies = [];
|
|
9107
|
-
for (let i = 0; i < object.dependencies.length; ++i)
|
|
9108
|
-
message.dependencies[i] = String(object.dependencies[i]);
|
|
9109
|
-
}
|
|
9110
8624
|
return message;
|
|
9111
8625
|
};
|
|
9112
8626
|
|
|
@@ -9124,13 +8638,11 @@ const dataform = $root.dataform = (() => {
|
|
|
9124
8638
|
options = {};
|
|
9125
8639
|
let object = {};
|
|
9126
8640
|
if (options.arrays || options.defaults) {
|
|
9127
|
-
object.dependencies = [];
|
|
9128
8641
|
object.queries = [];
|
|
9129
8642
|
object.tags = [];
|
|
9130
8643
|
object.dependencyTargets = [];
|
|
9131
8644
|
}
|
|
9132
8645
|
if (options.defaults) {
|
|
9133
|
-
object.name = "";
|
|
9134
8646
|
object.target = null;
|
|
9135
8647
|
object.fileName = "";
|
|
9136
8648
|
object.hasOutput = false;
|
|
@@ -9139,13 +8651,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9139
8651
|
object.canonicalTarget = null;
|
|
9140
8652
|
object.disabled = false;
|
|
9141
8653
|
}
|
|
9142
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9143
|
-
object.name = message.name;
|
|
9144
|
-
if (message.dependencies && message.dependencies.length) {
|
|
9145
|
-
object.dependencies = [];
|
|
9146
|
-
for (let j = 0; j < message.dependencies.length; ++j)
|
|
9147
|
-
object.dependencies[j] = message.dependencies[j];
|
|
9148
|
-
}
|
|
9149
8654
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
9150
8655
|
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
9151
8656
|
if (message.queries && message.queries.length) {
|
|
@@ -9208,8 +8713,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9208
8713
|
* @property {dataform.IActionDescriptor|null} [actionDescriptor] Assertion actionDescriptor
|
|
9209
8714
|
* @property {dataform.ITarget|null} [parentAction] Assertion parentAction
|
|
9210
8715
|
* @property {string|null} [fileName] Assertion fileName
|
|
9211
|
-
* @property {string|null} [name] Assertion name
|
|
9212
|
-
* @property {Array.<string>|null} [dependencies] Assertion dependencies
|
|
9213
8716
|
*/
|
|
9214
8717
|
|
|
9215
8718
|
/**
|
|
@@ -9223,7 +8726,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9223
8726
|
function Assertion(properties) {
|
|
9224
8727
|
this.dependencyTargets = [];
|
|
9225
8728
|
this.tags = [];
|
|
9226
|
-
this.dependencies = [];
|
|
9227
8729
|
if (properties)
|
|
9228
8730
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9229
8731
|
if (properties[keys[i]] != null)
|
|
@@ -9310,22 +8812,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9310
8812
|
*/
|
|
9311
8813
|
Assertion.prototype.fileName = "";
|
|
9312
8814
|
|
|
9313
|
-
/**
|
|
9314
|
-
* Assertion name.
|
|
9315
|
-
* @member {string} name
|
|
9316
|
-
* @memberof dataform.Assertion
|
|
9317
|
-
* @instance
|
|
9318
|
-
*/
|
|
9319
|
-
Assertion.prototype.name = "";
|
|
9320
|
-
|
|
9321
|
-
/**
|
|
9322
|
-
* Assertion dependencies.
|
|
9323
|
-
* @member {Array.<string>} dependencies
|
|
9324
|
-
* @memberof dataform.Assertion
|
|
9325
|
-
* @instance
|
|
9326
|
-
*/
|
|
9327
|
-
Assertion.prototype.dependencies = $util.emptyArray;
|
|
9328
|
-
|
|
9329
8815
|
/**
|
|
9330
8816
|
* Creates a new Assertion instance using the specified properties.
|
|
9331
8817
|
* @function create
|
|
@@ -9350,11 +8836,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9350
8836
|
Assertion.encode = function encode(message, writer) {
|
|
9351
8837
|
if (!writer)
|
|
9352
8838
|
writer = $Writer.create();
|
|
9353
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9354
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
9355
|
-
if (message.dependencies != null && message.dependencies.length)
|
|
9356
|
-
for (let i = 0; i < message.dependencies.length; ++i)
|
|
9357
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.dependencies[i]);
|
|
9358
8839
|
if (message.query != null && message.hasOwnProperty("query"))
|
|
9359
8840
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.query);
|
|
9360
8841
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
@@ -9445,14 +8926,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9445
8926
|
case 7:
|
|
9446
8927
|
message.fileName = reader.string();
|
|
9447
8928
|
break;
|
|
9448
|
-
case 1:
|
|
9449
|
-
message.name = reader.string();
|
|
9450
|
-
break;
|
|
9451
|
-
case 2:
|
|
9452
|
-
if (!(message.dependencies && message.dependencies.length))
|
|
9453
|
-
message.dependencies = [];
|
|
9454
|
-
message.dependencies.push(reader.string());
|
|
9455
|
-
break;
|
|
9456
8929
|
default:
|
|
9457
8930
|
reader.skipType(tag & 7);
|
|
9458
8931
|
break;
|
|
@@ -9542,16 +9015,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9542
9015
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
9543
9016
|
if (!$util.isString(message.fileName))
|
|
9544
9017
|
return "fileName: string expected";
|
|
9545
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9546
|
-
if (!$util.isString(message.name))
|
|
9547
|
-
return "name: string expected";
|
|
9548
|
-
if (message.dependencies != null && message.hasOwnProperty("dependencies")) {
|
|
9549
|
-
if (!Array.isArray(message.dependencies))
|
|
9550
|
-
return "dependencies: array expected";
|
|
9551
|
-
for (let i = 0; i < message.dependencies.length; ++i)
|
|
9552
|
-
if (!$util.isString(message.dependencies[i]))
|
|
9553
|
-
return "dependencies: string[] expected";
|
|
9554
|
-
}
|
|
9555
9018
|
return null;
|
|
9556
9019
|
};
|
|
9557
9020
|
|
|
@@ -9624,15 +9087,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9624
9087
|
}
|
|
9625
9088
|
if (object.fileName != null)
|
|
9626
9089
|
message.fileName = String(object.fileName);
|
|
9627
|
-
if (object.name != null)
|
|
9628
|
-
message.name = String(object.name);
|
|
9629
|
-
if (object.dependencies) {
|
|
9630
|
-
if (!Array.isArray(object.dependencies))
|
|
9631
|
-
throw TypeError(".dataform.Assertion.dependencies: array expected");
|
|
9632
|
-
message.dependencies = [];
|
|
9633
|
-
for (let i = 0; i < object.dependencies.length; ++i)
|
|
9634
|
-
message.dependencies[i] = String(object.dependencies[i]);
|
|
9635
|
-
}
|
|
9636
9090
|
return message;
|
|
9637
9091
|
};
|
|
9638
9092
|
|
|
@@ -9650,12 +9104,10 @@ const dataform = $root.dataform = (() => {
|
|
|
9650
9104
|
options = {};
|
|
9651
9105
|
let object = {};
|
|
9652
9106
|
if (options.arrays || options.defaults) {
|
|
9653
|
-
object.dependencies = [];
|
|
9654
9107
|
object.tags = [];
|
|
9655
9108
|
object.dependencyTargets = [];
|
|
9656
9109
|
}
|
|
9657
9110
|
if (options.defaults) {
|
|
9658
|
-
object.name = "";
|
|
9659
9111
|
object.query = "";
|
|
9660
9112
|
object.fileName = "";
|
|
9661
9113
|
object.target = null;
|
|
@@ -9665,13 +9117,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9665
9117
|
object.disabled = false;
|
|
9666
9118
|
object.parentAction = null;
|
|
9667
9119
|
}
|
|
9668
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9669
|
-
object.name = message.name;
|
|
9670
|
-
if (message.dependencies && message.dependencies.length) {
|
|
9671
|
-
object.dependencies = [];
|
|
9672
|
-
for (let j = 0; j < message.dependencies.length; ++j)
|
|
9673
|
-
object.dependencies[j] = message.dependencies[j];
|
|
9674
|
-
}
|
|
9675
9120
|
if (message.query != null && message.hasOwnProperty("query"))
|
|
9676
9121
|
object.query = message.query;
|
|
9677
9122
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
@@ -9737,7 +9182,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9737
9182
|
* Properties of a Declaration.
|
|
9738
9183
|
* @memberof dataform
|
|
9739
9184
|
* @interface IDeclaration
|
|
9740
|
-
* @property {string|null} [name] Declaration name
|
|
9741
9185
|
* @property {dataform.ITarget|null} [target] Declaration target
|
|
9742
9186
|
* @property {dataform.ITarget|null} [canonicalTarget] Declaration canonicalTarget
|
|
9743
9187
|
* @property {dataform.IActionDescriptor|null} [actionDescriptor] Declaration actionDescriptor
|
|
@@ -9759,14 +9203,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9759
9203
|
this[keys[i]] = properties[keys[i]];
|
|
9760
9204
|
}
|
|
9761
9205
|
|
|
9762
|
-
/**
|
|
9763
|
-
* Declaration name.
|
|
9764
|
-
* @member {string} name
|
|
9765
|
-
* @memberof dataform.Declaration
|
|
9766
|
-
* @instance
|
|
9767
|
-
*/
|
|
9768
|
-
Declaration.prototype.name = "";
|
|
9769
|
-
|
|
9770
9206
|
/**
|
|
9771
9207
|
* Declaration target.
|
|
9772
9208
|
* @member {dataform.ITarget|null|undefined} target
|
|
@@ -9823,8 +9259,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9823
9259
|
Declaration.encode = function encode(message, writer) {
|
|
9824
9260
|
if (!writer)
|
|
9825
9261
|
writer = $Writer.create();
|
|
9826
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9827
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
9828
9262
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
9829
9263
|
$root.dataform.Target.encode(message.target, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
9830
9264
|
if (message.actionDescriptor != null && message.hasOwnProperty("actionDescriptor"))
|
|
@@ -9867,9 +9301,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9867
9301
|
while (reader.pos < end) {
|
|
9868
9302
|
let tag = reader.uint32();
|
|
9869
9303
|
switch (tag >>> 3) {
|
|
9870
|
-
case 1:
|
|
9871
|
-
message.name = reader.string();
|
|
9872
|
-
break;
|
|
9873
9304
|
case 2:
|
|
9874
9305
|
message.target = $root.dataform.Target.decode(reader, reader.uint32());
|
|
9875
9306
|
break;
|
|
@@ -9917,9 +9348,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9917
9348
|
Declaration.verify = function verify(message) {
|
|
9918
9349
|
if (typeof message !== "object" || message === null)
|
|
9919
9350
|
return "object expected";
|
|
9920
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9921
|
-
if (!$util.isString(message.name))
|
|
9922
|
-
return "name: string expected";
|
|
9923
9351
|
if (message.target != null && message.hasOwnProperty("target")) {
|
|
9924
9352
|
let error = $root.dataform.Target.verify(message.target);
|
|
9925
9353
|
if (error)
|
|
@@ -9953,8 +9381,6 @@ const dataform = $root.dataform = (() => {
|
|
|
9953
9381
|
if (object instanceof $root.dataform.Declaration)
|
|
9954
9382
|
return object;
|
|
9955
9383
|
let message = new $root.dataform.Declaration();
|
|
9956
|
-
if (object.name != null)
|
|
9957
|
-
message.name = String(object.name);
|
|
9958
9384
|
if (object.target != null) {
|
|
9959
9385
|
if (typeof object.target !== "object")
|
|
9960
9386
|
throw TypeError(".dataform.Declaration.target: object expected");
|
|
@@ -9989,14 +9415,11 @@ const dataform = $root.dataform = (() => {
|
|
|
9989
9415
|
options = {};
|
|
9990
9416
|
let object = {};
|
|
9991
9417
|
if (options.defaults) {
|
|
9992
|
-
object.name = "";
|
|
9993
9418
|
object.target = null;
|
|
9994
9419
|
object.actionDescriptor = null;
|
|
9995
9420
|
object.fileName = "";
|
|
9996
9421
|
object.canonicalTarget = null;
|
|
9997
9422
|
}
|
|
9998
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
9999
|
-
object.name = message.name;
|
|
10000
9423
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
10001
9424
|
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
10002
9425
|
if (message.actionDescriptor != null && message.hasOwnProperty("actionDescriptor"))
|
|
@@ -10994,13 +10417,11 @@ const dataform = $root.dataform = (() => {
|
|
|
10994
10417
|
* Properties of an ExecutionAction.
|
|
10995
10418
|
* @memberof dataform
|
|
10996
10419
|
* @interface IExecutionAction
|
|
10997
|
-
* @property {string|null} [name] ExecutionAction name
|
|
10998
10420
|
* @property {dataform.ITarget|null} [target] ExecutionAction target
|
|
10999
10421
|
* @property {string|null} [fileName] ExecutionAction fileName
|
|
11000
10422
|
* @property {string|null} [type] ExecutionAction type
|
|
11001
10423
|
* @property {string|null} [tableType] ExecutionAction tableType
|
|
11002
|
-
* @property {Array.<
|
|
11003
|
-
* @property {Array.<dataform.ITarget>|null} [transitiveInputs] ExecutionAction transitiveInputs
|
|
10424
|
+
* @property {Array.<dataform.ITarget>|null} [dependencyTargets] ExecutionAction dependencyTargets
|
|
11004
10425
|
* @property {dataform.ActionHermeticity|null} [hermeticity] ExecutionAction hermeticity
|
|
11005
10426
|
* @property {Array.<dataform.IExecutionTask>|null} [tasks] ExecutionAction tasks
|
|
11006
10427
|
* @property {dataform.IActionDescriptor|null} [actionDescriptor] ExecutionAction actionDescriptor
|
|
@@ -11015,8 +10436,7 @@ const dataform = $root.dataform = (() => {
|
|
|
11015
10436
|
* @param {dataform.IExecutionAction=} [properties] Properties to set
|
|
11016
10437
|
*/
|
|
11017
10438
|
function ExecutionAction(properties) {
|
|
11018
|
-
this.
|
|
11019
|
-
this.transitiveInputs = [];
|
|
10439
|
+
this.dependencyTargets = [];
|
|
11020
10440
|
this.tasks = [];
|
|
11021
10441
|
if (properties)
|
|
11022
10442
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -11024,14 +10444,6 @@ const dataform = $root.dataform = (() => {
|
|
|
11024
10444
|
this[keys[i]] = properties[keys[i]];
|
|
11025
10445
|
}
|
|
11026
10446
|
|
|
11027
|
-
/**
|
|
11028
|
-
* ExecutionAction name.
|
|
11029
|
-
* @member {string} name
|
|
11030
|
-
* @memberof dataform.ExecutionAction
|
|
11031
|
-
* @instance
|
|
11032
|
-
*/
|
|
11033
|
-
ExecutionAction.prototype.name = "";
|
|
11034
|
-
|
|
11035
10447
|
/**
|
|
11036
10448
|
* ExecutionAction target.
|
|
11037
10449
|
* @member {dataform.ITarget|null|undefined} target
|
|
@@ -11065,20 +10477,12 @@ const dataform = $root.dataform = (() => {
|
|
|
11065
10477
|
ExecutionAction.prototype.tableType = "";
|
|
11066
10478
|
|
|
11067
10479
|
/**
|
|
11068
|
-
* ExecutionAction
|
|
11069
|
-
* @member {Array.<
|
|
11070
|
-
* @memberof dataform.ExecutionAction
|
|
11071
|
-
* @instance
|
|
11072
|
-
*/
|
|
11073
|
-
ExecutionAction.prototype.dependencies = $util.emptyArray;
|
|
11074
|
-
|
|
11075
|
-
/**
|
|
11076
|
-
* ExecutionAction transitiveInputs.
|
|
11077
|
-
* @member {Array.<dataform.ITarget>} transitiveInputs
|
|
10480
|
+
* ExecutionAction dependencyTargets.
|
|
10481
|
+
* @member {Array.<dataform.ITarget>} dependencyTargets
|
|
11078
10482
|
* @memberof dataform.ExecutionAction
|
|
11079
10483
|
* @instance
|
|
11080
10484
|
*/
|
|
11081
|
-
ExecutionAction.prototype.
|
|
10485
|
+
ExecutionAction.prototype.dependencyTargets = $util.emptyArray;
|
|
11082
10486
|
|
|
11083
10487
|
/**
|
|
11084
10488
|
* ExecutionAction hermeticity.
|
|
@@ -11128,29 +10532,24 @@ const dataform = $root.dataform = (() => {
|
|
|
11128
10532
|
ExecutionAction.encode = function encode(message, writer) {
|
|
11129
10533
|
if (!writer)
|
|
11130
10534
|
writer = $Writer.create();
|
|
11131
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
11132
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
11133
10535
|
if (message.tasks != null && message.tasks.length)
|
|
11134
10536
|
for (let i = 0; i < message.tasks.length; ++i)
|
|
11135
10537
|
$root.dataform.ExecutionTask.encode(message.tasks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
11136
|
-
if (message.dependencies != null && message.dependencies.length)
|
|
11137
|
-
for (let i = 0; i < message.dependencies.length; ++i)
|
|
11138
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependencies[i]);
|
|
11139
10538
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
11140
10539
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
|
|
11141
10540
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
11142
10541
|
$root.dataform.Target.encode(message.target, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
11143
10542
|
if (message.tableType != null && message.hasOwnProperty("tableType"))
|
|
11144
10543
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.tableType);
|
|
11145
|
-
if (message.transitiveInputs != null && message.transitiveInputs.length)
|
|
11146
|
-
for (let i = 0; i < message.transitiveInputs.length; ++i)
|
|
11147
|
-
$root.dataform.Target.encode(message.transitiveInputs[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
11148
10544
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
11149
10545
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.fileName);
|
|
11150
10546
|
if (message.actionDescriptor != null && message.hasOwnProperty("actionDescriptor"))
|
|
11151
10547
|
$root.dataform.ActionDescriptor.encode(message.actionDescriptor, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
11152
10548
|
if (message.hermeticity != null && message.hasOwnProperty("hermeticity"))
|
|
11153
10549
|
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.hermeticity);
|
|
10550
|
+
if (message.dependencyTargets != null && message.dependencyTargets.length)
|
|
10551
|
+
for (let i = 0; i < message.dependencyTargets.length; ++i)
|
|
10552
|
+
$root.dataform.Target.encode(message.dependencyTargets[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
11154
10553
|
return writer;
|
|
11155
10554
|
};
|
|
11156
10555
|
|
|
@@ -11185,9 +10584,6 @@ const dataform = $root.dataform = (() => {
|
|
|
11185
10584
|
while (reader.pos < end) {
|
|
11186
10585
|
let tag = reader.uint32();
|
|
11187
10586
|
switch (tag >>> 3) {
|
|
11188
|
-
case 1:
|
|
11189
|
-
message.name = reader.string();
|
|
11190
|
-
break;
|
|
11191
10587
|
case 5:
|
|
11192
10588
|
message.target = $root.dataform.Target.decode(reader, reader.uint32());
|
|
11193
10589
|
break;
|
|
@@ -11200,15 +10596,10 @@ const dataform = $root.dataform = (() => {
|
|
|
11200
10596
|
case 6:
|
|
11201
10597
|
message.tableType = reader.string();
|
|
11202
10598
|
break;
|
|
11203
|
-
case
|
|
11204
|
-
if (!(message.
|
|
11205
|
-
message.
|
|
11206
|
-
message.
|
|
11207
|
-
break;
|
|
11208
|
-
case 7:
|
|
11209
|
-
if (!(message.transitiveInputs && message.transitiveInputs.length))
|
|
11210
|
-
message.transitiveInputs = [];
|
|
11211
|
-
message.transitiveInputs.push($root.dataform.Target.decode(reader, reader.uint32()));
|
|
10599
|
+
case 11:
|
|
10600
|
+
if (!(message.dependencyTargets && message.dependencyTargets.length))
|
|
10601
|
+
message.dependencyTargets = [];
|
|
10602
|
+
message.dependencyTargets.push($root.dataform.Target.decode(reader, reader.uint32()));
|
|
11212
10603
|
break;
|
|
11213
10604
|
case 10:
|
|
11214
10605
|
message.hermeticity = reader.int32();
|
|
@@ -11256,9 +10647,6 @@ const dataform = $root.dataform = (() => {
|
|
|
11256
10647
|
ExecutionAction.verify = function verify(message) {
|
|
11257
10648
|
if (typeof message !== "object" || message === null)
|
|
11258
10649
|
return "object expected";
|
|
11259
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
11260
|
-
if (!$util.isString(message.name))
|
|
11261
|
-
return "name: string expected";
|
|
11262
10650
|
if (message.target != null && message.hasOwnProperty("target")) {
|
|
11263
10651
|
let error = $root.dataform.Target.verify(message.target);
|
|
11264
10652
|
if (error)
|
|
@@ -11273,20 +10661,13 @@ const dataform = $root.dataform = (() => {
|
|
|
11273
10661
|
if (message.tableType != null && message.hasOwnProperty("tableType"))
|
|
11274
10662
|
if (!$util.isString(message.tableType))
|
|
11275
10663
|
return "tableType: string expected";
|
|
11276
|
-
if (message.
|
|
11277
|
-
if (!Array.isArray(message.
|
|
11278
|
-
return "
|
|
11279
|
-
for (let i = 0; i < message.
|
|
11280
|
-
|
|
11281
|
-
return "dependencies: string[] expected";
|
|
11282
|
-
}
|
|
11283
|
-
if (message.transitiveInputs != null && message.hasOwnProperty("transitiveInputs")) {
|
|
11284
|
-
if (!Array.isArray(message.transitiveInputs))
|
|
11285
|
-
return "transitiveInputs: array expected";
|
|
11286
|
-
for (let i = 0; i < message.transitiveInputs.length; ++i) {
|
|
11287
|
-
let error = $root.dataform.Target.verify(message.transitiveInputs[i]);
|
|
10664
|
+
if (message.dependencyTargets != null && message.hasOwnProperty("dependencyTargets")) {
|
|
10665
|
+
if (!Array.isArray(message.dependencyTargets))
|
|
10666
|
+
return "dependencyTargets: array expected";
|
|
10667
|
+
for (let i = 0; i < message.dependencyTargets.length; ++i) {
|
|
10668
|
+
let error = $root.dataform.Target.verify(message.dependencyTargets[i]);
|
|
11288
10669
|
if (error)
|
|
11289
|
-
return "
|
|
10670
|
+
return "dependencyTargets." + error;
|
|
11290
10671
|
}
|
|
11291
10672
|
}
|
|
11292
10673
|
if (message.hermeticity != null && message.hasOwnProperty("hermeticity"))
|
|
@@ -11327,8 +10708,6 @@ const dataform = $root.dataform = (() => {
|
|
|
11327
10708
|
if (object instanceof $root.dataform.ExecutionAction)
|
|
11328
10709
|
return object;
|
|
11329
10710
|
let message = new $root.dataform.ExecutionAction();
|
|
11330
|
-
if (object.name != null)
|
|
11331
|
-
message.name = String(object.name);
|
|
11332
10711
|
if (object.target != null) {
|
|
11333
10712
|
if (typeof object.target !== "object")
|
|
11334
10713
|
throw TypeError(".dataform.ExecutionAction.target: object expected");
|
|
@@ -11340,21 +10719,14 @@ const dataform = $root.dataform = (() => {
|
|
|
11340
10719
|
message.type = String(object.type);
|
|
11341
10720
|
if (object.tableType != null)
|
|
11342
10721
|
message.tableType = String(object.tableType);
|
|
11343
|
-
if (object.
|
|
11344
|
-
if (!Array.isArray(object.
|
|
11345
|
-
throw TypeError(".dataform.ExecutionAction.
|
|
11346
|
-
message.
|
|
11347
|
-
for (let i = 0; i < object.
|
|
11348
|
-
|
|
11349
|
-
|
|
11350
|
-
|
|
11351
|
-
if (!Array.isArray(object.transitiveInputs))
|
|
11352
|
-
throw TypeError(".dataform.ExecutionAction.transitiveInputs: array expected");
|
|
11353
|
-
message.transitiveInputs = [];
|
|
11354
|
-
for (let i = 0; i < object.transitiveInputs.length; ++i) {
|
|
11355
|
-
if (typeof object.transitiveInputs[i] !== "object")
|
|
11356
|
-
throw TypeError(".dataform.ExecutionAction.transitiveInputs: object expected");
|
|
11357
|
-
message.transitiveInputs[i] = $root.dataform.Target.fromObject(object.transitiveInputs[i]);
|
|
10722
|
+
if (object.dependencyTargets) {
|
|
10723
|
+
if (!Array.isArray(object.dependencyTargets))
|
|
10724
|
+
throw TypeError(".dataform.ExecutionAction.dependencyTargets: array expected");
|
|
10725
|
+
message.dependencyTargets = [];
|
|
10726
|
+
for (let i = 0; i < object.dependencyTargets.length; ++i) {
|
|
10727
|
+
if (typeof object.dependencyTargets[i] !== "object")
|
|
10728
|
+
throw TypeError(".dataform.ExecutionAction.dependencyTargets: object expected");
|
|
10729
|
+
message.dependencyTargets[i] = $root.dataform.Target.fromObject(object.dependencyTargets[i]);
|
|
11358
10730
|
}
|
|
11359
10731
|
}
|
|
11360
10732
|
switch (object.hermeticity) {
|
|
@@ -11404,11 +10776,9 @@ const dataform = $root.dataform = (() => {
|
|
|
11404
10776
|
let object = {};
|
|
11405
10777
|
if (options.arrays || options.defaults) {
|
|
11406
10778
|
object.tasks = [];
|
|
11407
|
-
object.
|
|
11408
|
-
object.transitiveInputs = [];
|
|
10779
|
+
object.dependencyTargets = [];
|
|
11409
10780
|
}
|
|
11410
10781
|
if (options.defaults) {
|
|
11411
|
-
object.name = "";
|
|
11412
10782
|
object.type = "";
|
|
11413
10783
|
object.target = null;
|
|
11414
10784
|
object.tableType = "";
|
|
@@ -11416,35 +10786,28 @@ const dataform = $root.dataform = (() => {
|
|
|
11416
10786
|
object.actionDescriptor = null;
|
|
11417
10787
|
object.hermeticity = options.enums === String ? "UNKNOWN" : 0;
|
|
11418
10788
|
}
|
|
11419
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
11420
|
-
object.name = message.name;
|
|
11421
10789
|
if (message.tasks && message.tasks.length) {
|
|
11422
10790
|
object.tasks = [];
|
|
11423
10791
|
for (let j = 0; j < message.tasks.length; ++j)
|
|
11424
10792
|
object.tasks[j] = $root.dataform.ExecutionTask.toObject(message.tasks[j], options);
|
|
11425
10793
|
}
|
|
11426
|
-
if (message.dependencies && message.dependencies.length) {
|
|
11427
|
-
object.dependencies = [];
|
|
11428
|
-
for (let j = 0; j < message.dependencies.length; ++j)
|
|
11429
|
-
object.dependencies[j] = message.dependencies[j];
|
|
11430
|
-
}
|
|
11431
10794
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
11432
10795
|
object.type = message.type;
|
|
11433
10796
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
11434
10797
|
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
11435
10798
|
if (message.tableType != null && message.hasOwnProperty("tableType"))
|
|
11436
10799
|
object.tableType = message.tableType;
|
|
11437
|
-
if (message.transitiveInputs && message.transitiveInputs.length) {
|
|
11438
|
-
object.transitiveInputs = [];
|
|
11439
|
-
for (let j = 0; j < message.transitiveInputs.length; ++j)
|
|
11440
|
-
object.transitiveInputs[j] = $root.dataform.Target.toObject(message.transitiveInputs[j], options);
|
|
11441
|
-
}
|
|
11442
10800
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
11443
10801
|
object.fileName = message.fileName;
|
|
11444
10802
|
if (message.actionDescriptor != null && message.hasOwnProperty("actionDescriptor"))
|
|
11445
10803
|
object.actionDescriptor = $root.dataform.ActionDescriptor.toObject(message.actionDescriptor, options);
|
|
11446
10804
|
if (message.hermeticity != null && message.hasOwnProperty("hermeticity"))
|
|
11447
10805
|
object.hermeticity = options.enums === String ? $root.dataform.ActionHermeticity[message.hermeticity] : message.hermeticity;
|
|
10806
|
+
if (message.dependencyTargets && message.dependencyTargets.length) {
|
|
10807
|
+
object.dependencyTargets = [];
|
|
10808
|
+
for (let j = 0; j < message.dependencyTargets.length; ++j)
|
|
10809
|
+
object.dependencyTargets[j] = $root.dataform.Target.toObject(message.dependencyTargets[j], options);
|
|
10810
|
+
}
|
|
11448
10811
|
return object;
|
|
11449
10812
|
};
|
|
11450
10813
|
|
|
@@ -12563,13 +11926,10 @@ const dataform = $root.dataform = (() => {
|
|
|
12563
11926
|
* Properties of an ActionResult.
|
|
12564
11927
|
* @memberof dataform
|
|
12565
11928
|
* @interface IActionResult
|
|
12566
|
-
* @property {string|null} [name] ActionResult name
|
|
12567
11929
|
* @property {dataform.ITarget|null} [target] ActionResult target
|
|
12568
|
-
* @property {Array.<dataform.ActionResult.IInput>|null} [inputs] ActionResult inputs
|
|
12569
11930
|
* @property {dataform.ActionResult.ExecutionStatus|null} [status] ActionResult status
|
|
12570
11931
|
* @property {Array.<dataform.ITaskResult>|null} [tasks] ActionResult tasks
|
|
12571
11932
|
* @property {dataform.ITiming|null} [timing] ActionResult timing
|
|
12572
|
-
* @property {Long|null} [postExecutionTimestampMillis] ActionResult postExecutionTimestampMillis
|
|
12573
11933
|
*/
|
|
12574
11934
|
|
|
12575
11935
|
/**
|
|
@@ -12581,7 +11941,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12581
11941
|
* @param {dataform.IActionResult=} [properties] Properties to set
|
|
12582
11942
|
*/
|
|
12583
11943
|
function ActionResult(properties) {
|
|
12584
|
-
this.inputs = [];
|
|
12585
11944
|
this.tasks = [];
|
|
12586
11945
|
if (properties)
|
|
12587
11946
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -12589,14 +11948,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12589
11948
|
this[keys[i]] = properties[keys[i]];
|
|
12590
11949
|
}
|
|
12591
11950
|
|
|
12592
|
-
/**
|
|
12593
|
-
* ActionResult name.
|
|
12594
|
-
* @member {string} name
|
|
12595
|
-
* @memberof dataform.ActionResult
|
|
12596
|
-
* @instance
|
|
12597
|
-
*/
|
|
12598
|
-
ActionResult.prototype.name = "";
|
|
12599
|
-
|
|
12600
11951
|
/**
|
|
12601
11952
|
* ActionResult target.
|
|
12602
11953
|
* @member {dataform.ITarget|null|undefined} target
|
|
@@ -12605,14 +11956,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12605
11956
|
*/
|
|
12606
11957
|
ActionResult.prototype.target = null;
|
|
12607
11958
|
|
|
12608
|
-
/**
|
|
12609
|
-
* ActionResult inputs.
|
|
12610
|
-
* @member {Array.<dataform.ActionResult.IInput>} inputs
|
|
12611
|
-
* @memberof dataform.ActionResult
|
|
12612
|
-
* @instance
|
|
12613
|
-
*/
|
|
12614
|
-
ActionResult.prototype.inputs = $util.emptyArray;
|
|
12615
|
-
|
|
12616
11959
|
/**
|
|
12617
11960
|
* ActionResult status.
|
|
12618
11961
|
* @member {dataform.ActionResult.ExecutionStatus} status
|
|
@@ -12637,14 +11980,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12637
11980
|
*/
|
|
12638
11981
|
ActionResult.prototype.timing = null;
|
|
12639
11982
|
|
|
12640
|
-
/**
|
|
12641
|
-
* ActionResult postExecutionTimestampMillis.
|
|
12642
|
-
* @member {Long} postExecutionTimestampMillis
|
|
12643
|
-
* @memberof dataform.ActionResult
|
|
12644
|
-
* @instance
|
|
12645
|
-
*/
|
|
12646
|
-
ActionResult.prototype.postExecutionTimestampMillis = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
12647
|
-
|
|
12648
11983
|
/**
|
|
12649
11984
|
* Creates a new ActionResult instance using the specified properties.
|
|
12650
11985
|
* @function create
|
|
@@ -12669,8 +12004,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12669
12004
|
ActionResult.encode = function encode(message, writer) {
|
|
12670
12005
|
if (!writer)
|
|
12671
12006
|
writer = $Writer.create();
|
|
12672
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
12673
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
12674
12007
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
12675
12008
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status);
|
|
12676
12009
|
if (message.tasks != null && message.tasks.length)
|
|
@@ -12680,11 +12013,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12680
12013
|
$root.dataform.Timing.encode(message.timing, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
12681
12014
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
12682
12015
|
$root.dataform.Target.encode(message.target, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
12683
|
-
if (message.inputs != null && message.inputs.length)
|
|
12684
|
-
for (let i = 0; i < message.inputs.length; ++i)
|
|
12685
|
-
$root.dataform.ActionResult.Input.encode(message.inputs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
12686
|
-
if (message.postExecutionTimestampMillis != null && message.hasOwnProperty("postExecutionTimestampMillis"))
|
|
12687
|
-
writer.uint32(/* id 7, wireType 0 =*/56).int64(message.postExecutionTimestampMillis);
|
|
12688
12016
|
return writer;
|
|
12689
12017
|
};
|
|
12690
12018
|
|
|
@@ -12719,17 +12047,9 @@ const dataform = $root.dataform = (() => {
|
|
|
12719
12047
|
while (reader.pos < end) {
|
|
12720
12048
|
let tag = reader.uint32();
|
|
12721
12049
|
switch (tag >>> 3) {
|
|
12722
|
-
case 1:
|
|
12723
|
-
message.name = reader.string();
|
|
12724
|
-
break;
|
|
12725
12050
|
case 5:
|
|
12726
12051
|
message.target = $root.dataform.Target.decode(reader, reader.uint32());
|
|
12727
12052
|
break;
|
|
12728
|
-
case 6:
|
|
12729
|
-
if (!(message.inputs && message.inputs.length))
|
|
12730
|
-
message.inputs = [];
|
|
12731
|
-
message.inputs.push($root.dataform.ActionResult.Input.decode(reader, reader.uint32()));
|
|
12732
|
-
break;
|
|
12733
12053
|
case 2:
|
|
12734
12054
|
message.status = reader.int32();
|
|
12735
12055
|
break;
|
|
@@ -12741,9 +12061,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12741
12061
|
case 4:
|
|
12742
12062
|
message.timing = $root.dataform.Timing.decode(reader, reader.uint32());
|
|
12743
12063
|
break;
|
|
12744
|
-
case 7:
|
|
12745
|
-
message.postExecutionTimestampMillis = reader.int64();
|
|
12746
|
-
break;
|
|
12747
12064
|
default:
|
|
12748
12065
|
reader.skipType(tag & 7);
|
|
12749
12066
|
break;
|
|
@@ -12779,23 +12096,11 @@ const dataform = $root.dataform = (() => {
|
|
|
12779
12096
|
ActionResult.verify = function verify(message) {
|
|
12780
12097
|
if (typeof message !== "object" || message === null)
|
|
12781
12098
|
return "object expected";
|
|
12782
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
12783
|
-
if (!$util.isString(message.name))
|
|
12784
|
-
return "name: string expected";
|
|
12785
12099
|
if (message.target != null && message.hasOwnProperty("target")) {
|
|
12786
12100
|
let error = $root.dataform.Target.verify(message.target);
|
|
12787
12101
|
if (error)
|
|
12788
12102
|
return "target." + error;
|
|
12789
12103
|
}
|
|
12790
|
-
if (message.inputs != null && message.hasOwnProperty("inputs")) {
|
|
12791
|
-
if (!Array.isArray(message.inputs))
|
|
12792
|
-
return "inputs: array expected";
|
|
12793
|
-
for (let i = 0; i < message.inputs.length; ++i) {
|
|
12794
|
-
let error = $root.dataform.ActionResult.Input.verify(message.inputs[i]);
|
|
12795
|
-
if (error)
|
|
12796
|
-
return "inputs." + error;
|
|
12797
|
-
}
|
|
12798
|
-
}
|
|
12799
12104
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
12800
12105
|
switch (message.status) {
|
|
12801
12106
|
default:
|
|
@@ -12807,7 +12112,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12807
12112
|
case 4:
|
|
12808
12113
|
case 5:
|
|
12809
12114
|
case 6:
|
|
12810
|
-
case 7:
|
|
12811
12115
|
break;
|
|
12812
12116
|
}
|
|
12813
12117
|
if (message.tasks != null && message.hasOwnProperty("tasks")) {
|
|
@@ -12824,9 +12128,6 @@ const dataform = $root.dataform = (() => {
|
|
|
12824
12128
|
if (error)
|
|
12825
12129
|
return "timing." + error;
|
|
12826
12130
|
}
|
|
12827
|
-
if (message.postExecutionTimestampMillis != null && message.hasOwnProperty("postExecutionTimestampMillis"))
|
|
12828
|
-
if (!$util.isInteger(message.postExecutionTimestampMillis) && !(message.postExecutionTimestampMillis && $util.isInteger(message.postExecutionTimestampMillis.low) && $util.isInteger(message.postExecutionTimestampMillis.high)))
|
|
12829
|
-
return "postExecutionTimestampMillis: integer|Long expected";
|
|
12830
12131
|
return null;
|
|
12831
12132
|
};
|
|
12832
12133
|
|
|
@@ -12842,569 +12143,103 @@ const dataform = $root.dataform = (() => {
|
|
|
12842
12143
|
if (object instanceof $root.dataform.ActionResult)
|
|
12843
12144
|
return object;
|
|
12844
12145
|
let message = new $root.dataform.ActionResult();
|
|
12845
|
-
if (object.name != null)
|
|
12846
|
-
message.name = String(object.name);
|
|
12847
12146
|
if (object.target != null) {
|
|
12848
12147
|
if (typeof object.target !== "object")
|
|
12849
12148
|
throw TypeError(".dataform.ActionResult.target: object expected");
|
|
12850
12149
|
message.target = $root.dataform.Target.fromObject(object.target);
|
|
12851
12150
|
}
|
|
12852
|
-
if (object.inputs) {
|
|
12853
|
-
if (!Array.isArray(object.inputs))
|
|
12854
|
-
throw TypeError(".dataform.ActionResult.inputs: array expected");
|
|
12855
|
-
message.inputs = [];
|
|
12856
|
-
for (let i = 0; i < object.inputs.length; ++i) {
|
|
12857
|
-
if (typeof object.inputs[i] !== "object")
|
|
12858
|
-
throw TypeError(".dataform.ActionResult.inputs: object expected");
|
|
12859
|
-
message.inputs[i] = $root.dataform.ActionResult.Input.fromObject(object.inputs[i]);
|
|
12860
|
-
}
|
|
12861
|
-
}
|
|
12862
12151
|
switch (object.status) {
|
|
12863
12152
|
case "UNKNOWN":
|
|
12864
12153
|
case 0:
|
|
12865
12154
|
message.status = 0;
|
|
12866
12155
|
break;
|
|
12867
|
-
case "RUNNING":
|
|
12868
|
-
case 1:
|
|
12869
|
-
message.status = 1;
|
|
12870
|
-
break;
|
|
12871
|
-
case "SUCCESSFUL":
|
|
12872
|
-
case 2:
|
|
12873
|
-
message.status = 2;
|
|
12874
|
-
break;
|
|
12875
|
-
case "FAILED":
|
|
12876
|
-
case 3:
|
|
12877
|
-
message.status = 3;
|
|
12878
|
-
break;
|
|
12879
|
-
case "SKIPPED":
|
|
12880
|
-
case 4:
|
|
12881
|
-
message.status = 4;
|
|
12882
|
-
break;
|
|
12883
|
-
case "DISABLED":
|
|
12884
|
-
case 5:
|
|
12885
|
-
message.status = 5;
|
|
12886
|
-
break;
|
|
12887
|
-
case "CANCELLED":
|
|
12888
|
-
case 6:
|
|
12889
|
-
message.status = 6;
|
|
12890
|
-
break;
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
message.timing = $root.dataform.Timing.fromObject(object.timing);
|
|
12910
|
-
}
|
|
12911
|
-
if (object.postExecutionTimestampMillis != null)
|
|
12912
|
-
if ($util.Long)
|
|
12913
|
-
(message.postExecutionTimestampMillis = $util.Long.fromValue(object.postExecutionTimestampMillis)).unsigned = false;
|
|
12914
|
-
else if (typeof object.postExecutionTimestampMillis === "string")
|
|
12915
|
-
message.postExecutionTimestampMillis = parseInt(object.postExecutionTimestampMillis, 10);
|
|
12916
|
-
else if (typeof object.postExecutionTimestampMillis === "number")
|
|
12917
|
-
message.postExecutionTimestampMillis = object.postExecutionTimestampMillis;
|
|
12918
|
-
else if (typeof object.postExecutionTimestampMillis === "object")
|
|
12919
|
-
message.postExecutionTimestampMillis = new $util.LongBits(object.postExecutionTimestampMillis.low >>> 0, object.postExecutionTimestampMillis.high >>> 0).toNumber();
|
|
12920
|
-
return message;
|
|
12921
|
-
};
|
|
12922
|
-
|
|
12923
|
-
/**
|
|
12924
|
-
* Creates a plain object from an ActionResult message. Also converts values to other types if specified.
|
|
12925
|
-
* @function toObject
|
|
12926
|
-
* @memberof dataform.ActionResult
|
|
12927
|
-
* @static
|
|
12928
|
-
* @param {dataform.ActionResult} message ActionResult
|
|
12929
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12930
|
-
* @returns {Object.<string,*>} Plain object
|
|
12931
|
-
*/
|
|
12932
|
-
ActionResult.toObject = function toObject(message, options) {
|
|
12933
|
-
if (!options)
|
|
12934
|
-
options = {};
|
|
12935
|
-
let object = {};
|
|
12936
|
-
if (options.arrays || options.defaults) {
|
|
12937
|
-
object.tasks = [];
|
|
12938
|
-
object.inputs = [];
|
|
12939
|
-
}
|
|
12940
|
-
if (options.defaults) {
|
|
12941
|
-
object.name = "";
|
|
12942
|
-
object.status = options.enums === String ? "UNKNOWN" : 0;
|
|
12943
|
-
object.timing = null;
|
|
12944
|
-
object.target = null;
|
|
12945
|
-
if ($util.Long) {
|
|
12946
|
-
let long = new $util.Long(0, 0, false);
|
|
12947
|
-
object.postExecutionTimestampMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
12948
|
-
} else
|
|
12949
|
-
object.postExecutionTimestampMillis = options.longs === String ? "0" : 0;
|
|
12950
|
-
}
|
|
12951
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
12952
|
-
object.name = message.name;
|
|
12953
|
-
if (message.status != null && message.hasOwnProperty("status"))
|
|
12954
|
-
object.status = options.enums === String ? $root.dataform.ActionResult.ExecutionStatus[message.status] : message.status;
|
|
12955
|
-
if (message.tasks && message.tasks.length) {
|
|
12956
|
-
object.tasks = [];
|
|
12957
|
-
for (let j = 0; j < message.tasks.length; ++j)
|
|
12958
|
-
object.tasks[j] = $root.dataform.TaskResult.toObject(message.tasks[j], options);
|
|
12959
|
-
}
|
|
12960
|
-
if (message.timing != null && message.hasOwnProperty("timing"))
|
|
12961
|
-
object.timing = $root.dataform.Timing.toObject(message.timing, options);
|
|
12962
|
-
if (message.target != null && message.hasOwnProperty("target"))
|
|
12963
|
-
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
12964
|
-
if (message.inputs && message.inputs.length) {
|
|
12965
|
-
object.inputs = [];
|
|
12966
|
-
for (let j = 0; j < message.inputs.length; ++j)
|
|
12967
|
-
object.inputs[j] = $root.dataform.ActionResult.Input.toObject(message.inputs[j], options);
|
|
12968
|
-
}
|
|
12969
|
-
if (message.postExecutionTimestampMillis != null && message.hasOwnProperty("postExecutionTimestampMillis"))
|
|
12970
|
-
if (typeof message.postExecutionTimestampMillis === "number")
|
|
12971
|
-
object.postExecutionTimestampMillis = options.longs === String ? String(message.postExecutionTimestampMillis) : message.postExecutionTimestampMillis;
|
|
12972
|
-
else
|
|
12973
|
-
object.postExecutionTimestampMillis = options.longs === String ? $util.Long.prototype.toString.call(message.postExecutionTimestampMillis) : options.longs === Number ? new $util.LongBits(message.postExecutionTimestampMillis.low >>> 0, message.postExecutionTimestampMillis.high >>> 0).toNumber() : message.postExecutionTimestampMillis;
|
|
12974
|
-
return object;
|
|
12975
|
-
};
|
|
12976
|
-
|
|
12977
|
-
/**
|
|
12978
|
-
* Converts this ActionResult to JSON.
|
|
12979
|
-
* @function toJSON
|
|
12980
|
-
* @memberof dataform.ActionResult
|
|
12981
|
-
* @instance
|
|
12982
|
-
* @returns {Object.<string,*>} JSON object
|
|
12983
|
-
*/
|
|
12984
|
-
ActionResult.prototype.toJSON = function toJSON() {
|
|
12985
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12986
|
-
};
|
|
12987
|
-
|
|
12988
|
-
ActionResult.Input = (function() {
|
|
12989
|
-
|
|
12990
|
-
/**
|
|
12991
|
-
* Properties of an Input.
|
|
12992
|
-
* @memberof dataform.ActionResult
|
|
12993
|
-
* @interface IInput
|
|
12994
|
-
* @property {dataform.ITarget|null} [target] Input target
|
|
12995
|
-
* @property {dataform.ActionResult.Input.IMetadata|null} [metadata] Input metadata
|
|
12996
|
-
*/
|
|
12997
|
-
|
|
12998
|
-
/**
|
|
12999
|
-
* Constructs a new Input.
|
|
13000
|
-
* @memberof dataform.ActionResult
|
|
13001
|
-
* @classdesc Represents an Input.
|
|
13002
|
-
* @implements IInput
|
|
13003
|
-
* @constructor
|
|
13004
|
-
* @param {dataform.ActionResult.IInput=} [properties] Properties to set
|
|
13005
|
-
*/
|
|
13006
|
-
function Input(properties) {
|
|
13007
|
-
if (properties)
|
|
13008
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13009
|
-
if (properties[keys[i]] != null)
|
|
13010
|
-
this[keys[i]] = properties[keys[i]];
|
|
13011
|
-
}
|
|
13012
|
-
|
|
13013
|
-
/**
|
|
13014
|
-
* Input target.
|
|
13015
|
-
* @member {dataform.ITarget|null|undefined} target
|
|
13016
|
-
* @memberof dataform.ActionResult.Input
|
|
13017
|
-
* @instance
|
|
13018
|
-
*/
|
|
13019
|
-
Input.prototype.target = null;
|
|
13020
|
-
|
|
13021
|
-
/**
|
|
13022
|
-
* Input metadata.
|
|
13023
|
-
* @member {dataform.ActionResult.Input.IMetadata|null|undefined} metadata
|
|
13024
|
-
* @memberof dataform.ActionResult.Input
|
|
13025
|
-
* @instance
|
|
13026
|
-
*/
|
|
13027
|
-
Input.prototype.metadata = null;
|
|
13028
|
-
|
|
13029
|
-
/**
|
|
13030
|
-
* Creates a new Input instance using the specified properties.
|
|
13031
|
-
* @function create
|
|
13032
|
-
* @memberof dataform.ActionResult.Input
|
|
13033
|
-
* @static
|
|
13034
|
-
* @param {dataform.ActionResult.IInput=} [properties] Properties to set
|
|
13035
|
-
* @returns {dataform.ActionResult.Input} Input instance
|
|
13036
|
-
*/
|
|
13037
|
-
Input.create = function create(properties) {
|
|
13038
|
-
return new Input(properties);
|
|
13039
|
-
};
|
|
13040
|
-
|
|
13041
|
-
/**
|
|
13042
|
-
* Encodes the specified Input message. Does not implicitly {@link dataform.ActionResult.Input.verify|verify} messages.
|
|
13043
|
-
* @function encode
|
|
13044
|
-
* @memberof dataform.ActionResult.Input
|
|
13045
|
-
* @static
|
|
13046
|
-
* @param {dataform.ActionResult.IInput} message Input message or plain object to encode
|
|
13047
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13048
|
-
* @returns {$protobuf.Writer} Writer
|
|
13049
|
-
*/
|
|
13050
|
-
Input.encode = function encode(message, writer) {
|
|
13051
|
-
if (!writer)
|
|
13052
|
-
writer = $Writer.create();
|
|
13053
|
-
if (message.target != null && message.hasOwnProperty("target"))
|
|
13054
|
-
$root.dataform.Target.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
13055
|
-
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
13056
|
-
$root.dataform.ActionResult.Input.Metadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
13057
|
-
return writer;
|
|
13058
|
-
};
|
|
13059
|
-
|
|
13060
|
-
/**
|
|
13061
|
-
* Encodes the specified Input message, length delimited. Does not implicitly {@link dataform.ActionResult.Input.verify|verify} messages.
|
|
13062
|
-
* @function encodeDelimited
|
|
13063
|
-
* @memberof dataform.ActionResult.Input
|
|
13064
|
-
* @static
|
|
13065
|
-
* @param {dataform.ActionResult.IInput} message Input message or plain object to encode
|
|
13066
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13067
|
-
* @returns {$protobuf.Writer} Writer
|
|
13068
|
-
*/
|
|
13069
|
-
Input.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13070
|
-
return this.encode(message, writer).ldelim();
|
|
13071
|
-
};
|
|
13072
|
-
|
|
13073
|
-
/**
|
|
13074
|
-
* Decodes an Input message from the specified reader or buffer.
|
|
13075
|
-
* @function decode
|
|
13076
|
-
* @memberof dataform.ActionResult.Input
|
|
13077
|
-
* @static
|
|
13078
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13079
|
-
* @param {number} [length] Message length if known beforehand
|
|
13080
|
-
* @returns {dataform.ActionResult.Input} Input
|
|
13081
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13082
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13083
|
-
*/
|
|
13084
|
-
Input.decode = function decode(reader, length) {
|
|
13085
|
-
if (!(reader instanceof $Reader))
|
|
13086
|
-
reader = $Reader.create(reader);
|
|
13087
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.ActionResult.Input();
|
|
13088
|
-
while (reader.pos < end) {
|
|
13089
|
-
let tag = reader.uint32();
|
|
13090
|
-
switch (tag >>> 3) {
|
|
13091
|
-
case 1:
|
|
13092
|
-
message.target = $root.dataform.Target.decode(reader, reader.uint32());
|
|
13093
|
-
break;
|
|
13094
|
-
case 2:
|
|
13095
|
-
message.metadata = $root.dataform.ActionResult.Input.Metadata.decode(reader, reader.uint32());
|
|
13096
|
-
break;
|
|
13097
|
-
default:
|
|
13098
|
-
reader.skipType(tag & 7);
|
|
13099
|
-
break;
|
|
13100
|
-
}
|
|
13101
|
-
}
|
|
13102
|
-
return message;
|
|
13103
|
-
};
|
|
13104
|
-
|
|
13105
|
-
/**
|
|
13106
|
-
* Decodes an Input message from the specified reader or buffer, length delimited.
|
|
13107
|
-
* @function decodeDelimited
|
|
13108
|
-
* @memberof dataform.ActionResult.Input
|
|
13109
|
-
* @static
|
|
13110
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13111
|
-
* @returns {dataform.ActionResult.Input} Input
|
|
13112
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13113
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13114
|
-
*/
|
|
13115
|
-
Input.decodeDelimited = function decodeDelimited(reader) {
|
|
13116
|
-
if (!(reader instanceof $Reader))
|
|
13117
|
-
reader = new $Reader(reader);
|
|
13118
|
-
return this.decode(reader, reader.uint32());
|
|
13119
|
-
};
|
|
13120
|
-
|
|
13121
|
-
/**
|
|
13122
|
-
* Verifies an Input message.
|
|
13123
|
-
* @function verify
|
|
13124
|
-
* @memberof dataform.ActionResult.Input
|
|
13125
|
-
* @static
|
|
13126
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
13127
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
13128
|
-
*/
|
|
13129
|
-
Input.verify = function verify(message) {
|
|
13130
|
-
if (typeof message !== "object" || message === null)
|
|
13131
|
-
return "object expected";
|
|
13132
|
-
if (message.target != null && message.hasOwnProperty("target")) {
|
|
13133
|
-
let error = $root.dataform.Target.verify(message.target);
|
|
13134
|
-
if (error)
|
|
13135
|
-
return "target." + error;
|
|
13136
|
-
}
|
|
13137
|
-
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
13138
|
-
let error = $root.dataform.ActionResult.Input.Metadata.verify(message.metadata);
|
|
13139
|
-
if (error)
|
|
13140
|
-
return "metadata." + error;
|
|
13141
|
-
}
|
|
13142
|
-
return null;
|
|
13143
|
-
};
|
|
13144
|
-
|
|
13145
|
-
/**
|
|
13146
|
-
* Creates an Input message from a plain object. Also converts values to their respective internal types.
|
|
13147
|
-
* @function fromObject
|
|
13148
|
-
* @memberof dataform.ActionResult.Input
|
|
13149
|
-
* @static
|
|
13150
|
-
* @param {Object.<string,*>} object Plain object
|
|
13151
|
-
* @returns {dataform.ActionResult.Input} Input
|
|
13152
|
-
*/
|
|
13153
|
-
Input.fromObject = function fromObject(object) {
|
|
13154
|
-
if (object instanceof $root.dataform.ActionResult.Input)
|
|
13155
|
-
return object;
|
|
13156
|
-
let message = new $root.dataform.ActionResult.Input();
|
|
13157
|
-
if (object.target != null) {
|
|
13158
|
-
if (typeof object.target !== "object")
|
|
13159
|
-
throw TypeError(".dataform.ActionResult.Input.target: object expected");
|
|
13160
|
-
message.target = $root.dataform.Target.fromObject(object.target);
|
|
13161
|
-
}
|
|
13162
|
-
if (object.metadata != null) {
|
|
13163
|
-
if (typeof object.metadata !== "object")
|
|
13164
|
-
throw TypeError(".dataform.ActionResult.Input.metadata: object expected");
|
|
13165
|
-
message.metadata = $root.dataform.ActionResult.Input.Metadata.fromObject(object.metadata);
|
|
13166
|
-
}
|
|
13167
|
-
return message;
|
|
13168
|
-
};
|
|
13169
|
-
|
|
13170
|
-
/**
|
|
13171
|
-
* Creates a plain object from an Input message. Also converts values to other types if specified.
|
|
13172
|
-
* @function toObject
|
|
13173
|
-
* @memberof dataform.ActionResult.Input
|
|
13174
|
-
* @static
|
|
13175
|
-
* @param {dataform.ActionResult.Input} message Input
|
|
13176
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13177
|
-
* @returns {Object.<string,*>} Plain object
|
|
13178
|
-
*/
|
|
13179
|
-
Input.toObject = function toObject(message, options) {
|
|
13180
|
-
if (!options)
|
|
13181
|
-
options = {};
|
|
13182
|
-
let object = {};
|
|
13183
|
-
if (options.defaults) {
|
|
13184
|
-
object.target = null;
|
|
13185
|
-
object.metadata = null;
|
|
13186
|
-
}
|
|
13187
|
-
if (message.target != null && message.hasOwnProperty("target"))
|
|
13188
|
-
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
13189
|
-
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
13190
|
-
object.metadata = $root.dataform.ActionResult.Input.Metadata.toObject(message.metadata, options);
|
|
13191
|
-
return object;
|
|
13192
|
-
};
|
|
13193
|
-
|
|
13194
|
-
/**
|
|
13195
|
-
* Converts this Input to JSON.
|
|
13196
|
-
* @function toJSON
|
|
13197
|
-
* @memberof dataform.ActionResult.Input
|
|
13198
|
-
* @instance
|
|
13199
|
-
* @returns {Object.<string,*>} JSON object
|
|
13200
|
-
*/
|
|
13201
|
-
Input.prototype.toJSON = function toJSON() {
|
|
13202
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13203
|
-
};
|
|
13204
|
-
|
|
13205
|
-
Input.Metadata = (function() {
|
|
13206
|
-
|
|
13207
|
-
/**
|
|
13208
|
-
* Properties of a Metadata.
|
|
13209
|
-
* @memberof dataform.ActionResult.Input
|
|
13210
|
-
* @interface IMetadata
|
|
13211
|
-
* @property {Long|null} [lastModifiedTimestampMillis] Metadata lastModifiedTimestampMillis
|
|
13212
|
-
*/
|
|
13213
|
-
|
|
13214
|
-
/**
|
|
13215
|
-
* Constructs a new Metadata.
|
|
13216
|
-
* @memberof dataform.ActionResult.Input
|
|
13217
|
-
* @classdesc Represents a Metadata.
|
|
13218
|
-
* @implements IMetadata
|
|
13219
|
-
* @constructor
|
|
13220
|
-
* @param {dataform.ActionResult.Input.IMetadata=} [properties] Properties to set
|
|
13221
|
-
*/
|
|
13222
|
-
function Metadata(properties) {
|
|
13223
|
-
if (properties)
|
|
13224
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13225
|
-
if (properties[keys[i]] != null)
|
|
13226
|
-
this[keys[i]] = properties[keys[i]];
|
|
13227
|
-
}
|
|
13228
|
-
|
|
13229
|
-
/**
|
|
13230
|
-
* Metadata lastModifiedTimestampMillis.
|
|
13231
|
-
* @member {Long} lastModifiedTimestampMillis
|
|
13232
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13233
|
-
* @instance
|
|
13234
|
-
*/
|
|
13235
|
-
Metadata.prototype.lastModifiedTimestampMillis = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
13236
|
-
|
|
13237
|
-
/**
|
|
13238
|
-
* Creates a new Metadata instance using the specified properties.
|
|
13239
|
-
* @function create
|
|
13240
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13241
|
-
* @static
|
|
13242
|
-
* @param {dataform.ActionResult.Input.IMetadata=} [properties] Properties to set
|
|
13243
|
-
* @returns {dataform.ActionResult.Input.Metadata} Metadata instance
|
|
13244
|
-
*/
|
|
13245
|
-
Metadata.create = function create(properties) {
|
|
13246
|
-
return new Metadata(properties);
|
|
13247
|
-
};
|
|
13248
|
-
|
|
13249
|
-
/**
|
|
13250
|
-
* Encodes the specified Metadata message. Does not implicitly {@link dataform.ActionResult.Input.Metadata.verify|verify} messages.
|
|
13251
|
-
* @function encode
|
|
13252
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13253
|
-
* @static
|
|
13254
|
-
* @param {dataform.ActionResult.Input.IMetadata} message Metadata message or plain object to encode
|
|
13255
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13256
|
-
* @returns {$protobuf.Writer} Writer
|
|
13257
|
-
*/
|
|
13258
|
-
Metadata.encode = function encode(message, writer) {
|
|
13259
|
-
if (!writer)
|
|
13260
|
-
writer = $Writer.create();
|
|
13261
|
-
if (message.lastModifiedTimestampMillis != null && message.hasOwnProperty("lastModifiedTimestampMillis"))
|
|
13262
|
-
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.lastModifiedTimestampMillis);
|
|
13263
|
-
return writer;
|
|
13264
|
-
};
|
|
13265
|
-
|
|
13266
|
-
/**
|
|
13267
|
-
* Encodes the specified Metadata message, length delimited. Does not implicitly {@link dataform.ActionResult.Input.Metadata.verify|verify} messages.
|
|
13268
|
-
* @function encodeDelimited
|
|
13269
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13270
|
-
* @static
|
|
13271
|
-
* @param {dataform.ActionResult.Input.IMetadata} message Metadata message or plain object to encode
|
|
13272
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13273
|
-
* @returns {$protobuf.Writer} Writer
|
|
13274
|
-
*/
|
|
13275
|
-
Metadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13276
|
-
return this.encode(message, writer).ldelim();
|
|
13277
|
-
};
|
|
13278
|
-
|
|
13279
|
-
/**
|
|
13280
|
-
* Decodes a Metadata message from the specified reader or buffer.
|
|
13281
|
-
* @function decode
|
|
13282
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13283
|
-
* @static
|
|
13284
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13285
|
-
* @param {number} [length] Message length if known beforehand
|
|
13286
|
-
* @returns {dataform.ActionResult.Input.Metadata} Metadata
|
|
13287
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13288
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13289
|
-
*/
|
|
13290
|
-
Metadata.decode = function decode(reader, length) {
|
|
13291
|
-
if (!(reader instanceof $Reader))
|
|
13292
|
-
reader = $Reader.create(reader);
|
|
13293
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.ActionResult.Input.Metadata();
|
|
13294
|
-
while (reader.pos < end) {
|
|
13295
|
-
let tag = reader.uint32();
|
|
13296
|
-
switch (tag >>> 3) {
|
|
13297
|
-
case 1:
|
|
13298
|
-
message.lastModifiedTimestampMillis = reader.int64();
|
|
13299
|
-
break;
|
|
13300
|
-
default:
|
|
13301
|
-
reader.skipType(tag & 7);
|
|
13302
|
-
break;
|
|
13303
|
-
}
|
|
13304
|
-
}
|
|
13305
|
-
return message;
|
|
13306
|
-
};
|
|
13307
|
-
|
|
13308
|
-
/**
|
|
13309
|
-
* Decodes a Metadata message from the specified reader or buffer, length delimited.
|
|
13310
|
-
* @function decodeDelimited
|
|
13311
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13312
|
-
* @static
|
|
13313
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13314
|
-
* @returns {dataform.ActionResult.Input.Metadata} Metadata
|
|
13315
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13316
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13317
|
-
*/
|
|
13318
|
-
Metadata.decodeDelimited = function decodeDelimited(reader) {
|
|
13319
|
-
if (!(reader instanceof $Reader))
|
|
13320
|
-
reader = new $Reader(reader);
|
|
13321
|
-
return this.decode(reader, reader.uint32());
|
|
13322
|
-
};
|
|
13323
|
-
|
|
13324
|
-
/**
|
|
13325
|
-
* Verifies a Metadata message.
|
|
13326
|
-
* @function verify
|
|
13327
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13328
|
-
* @static
|
|
13329
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
13330
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
13331
|
-
*/
|
|
13332
|
-
Metadata.verify = function verify(message) {
|
|
13333
|
-
if (typeof message !== "object" || message === null)
|
|
13334
|
-
return "object expected";
|
|
13335
|
-
if (message.lastModifiedTimestampMillis != null && message.hasOwnProperty("lastModifiedTimestampMillis"))
|
|
13336
|
-
if (!$util.isInteger(message.lastModifiedTimestampMillis) && !(message.lastModifiedTimestampMillis && $util.isInteger(message.lastModifiedTimestampMillis.low) && $util.isInteger(message.lastModifiedTimestampMillis.high)))
|
|
13337
|
-
return "lastModifiedTimestampMillis: integer|Long expected";
|
|
13338
|
-
return null;
|
|
13339
|
-
};
|
|
13340
|
-
|
|
13341
|
-
/**
|
|
13342
|
-
* Creates a Metadata message from a plain object. Also converts values to their respective internal types.
|
|
13343
|
-
* @function fromObject
|
|
13344
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13345
|
-
* @static
|
|
13346
|
-
* @param {Object.<string,*>} object Plain object
|
|
13347
|
-
* @returns {dataform.ActionResult.Input.Metadata} Metadata
|
|
13348
|
-
*/
|
|
13349
|
-
Metadata.fromObject = function fromObject(object) {
|
|
13350
|
-
if (object instanceof $root.dataform.ActionResult.Input.Metadata)
|
|
13351
|
-
return object;
|
|
13352
|
-
let message = new $root.dataform.ActionResult.Input.Metadata();
|
|
13353
|
-
if (object.lastModifiedTimestampMillis != null)
|
|
13354
|
-
if ($util.Long)
|
|
13355
|
-
(message.lastModifiedTimestampMillis = $util.Long.fromValue(object.lastModifiedTimestampMillis)).unsigned = false;
|
|
13356
|
-
else if (typeof object.lastModifiedTimestampMillis === "string")
|
|
13357
|
-
message.lastModifiedTimestampMillis = parseInt(object.lastModifiedTimestampMillis, 10);
|
|
13358
|
-
else if (typeof object.lastModifiedTimestampMillis === "number")
|
|
13359
|
-
message.lastModifiedTimestampMillis = object.lastModifiedTimestampMillis;
|
|
13360
|
-
else if (typeof object.lastModifiedTimestampMillis === "object")
|
|
13361
|
-
message.lastModifiedTimestampMillis = new $util.LongBits(object.lastModifiedTimestampMillis.low >>> 0, object.lastModifiedTimestampMillis.high >>> 0).toNumber();
|
|
13362
|
-
return message;
|
|
13363
|
-
};
|
|
13364
|
-
|
|
13365
|
-
/**
|
|
13366
|
-
* Creates a plain object from a Metadata message. Also converts values to other types if specified.
|
|
13367
|
-
* @function toObject
|
|
13368
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13369
|
-
* @static
|
|
13370
|
-
* @param {dataform.ActionResult.Input.Metadata} message Metadata
|
|
13371
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13372
|
-
* @returns {Object.<string,*>} Plain object
|
|
13373
|
-
*/
|
|
13374
|
-
Metadata.toObject = function toObject(message, options) {
|
|
13375
|
-
if (!options)
|
|
13376
|
-
options = {};
|
|
13377
|
-
let object = {};
|
|
13378
|
-
if (options.defaults)
|
|
13379
|
-
if ($util.Long) {
|
|
13380
|
-
let long = new $util.Long(0, 0, false);
|
|
13381
|
-
object.lastModifiedTimestampMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13382
|
-
} else
|
|
13383
|
-
object.lastModifiedTimestampMillis = options.longs === String ? "0" : 0;
|
|
13384
|
-
if (message.lastModifiedTimestampMillis != null && message.hasOwnProperty("lastModifiedTimestampMillis"))
|
|
13385
|
-
if (typeof message.lastModifiedTimestampMillis === "number")
|
|
13386
|
-
object.lastModifiedTimestampMillis = options.longs === String ? String(message.lastModifiedTimestampMillis) : message.lastModifiedTimestampMillis;
|
|
13387
|
-
else
|
|
13388
|
-
object.lastModifiedTimestampMillis = options.longs === String ? $util.Long.prototype.toString.call(message.lastModifiedTimestampMillis) : options.longs === Number ? new $util.LongBits(message.lastModifiedTimestampMillis.low >>> 0, message.lastModifiedTimestampMillis.high >>> 0).toNumber() : message.lastModifiedTimestampMillis;
|
|
13389
|
-
return object;
|
|
13390
|
-
};
|
|
13391
|
-
|
|
13392
|
-
/**
|
|
13393
|
-
* Converts this Metadata to JSON.
|
|
13394
|
-
* @function toJSON
|
|
13395
|
-
* @memberof dataform.ActionResult.Input.Metadata
|
|
13396
|
-
* @instance
|
|
13397
|
-
* @returns {Object.<string,*>} JSON object
|
|
13398
|
-
*/
|
|
13399
|
-
Metadata.prototype.toJSON = function toJSON() {
|
|
13400
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13401
|
-
};
|
|
12156
|
+
case "RUNNING":
|
|
12157
|
+
case 1:
|
|
12158
|
+
message.status = 1;
|
|
12159
|
+
break;
|
|
12160
|
+
case "SUCCESSFUL":
|
|
12161
|
+
case 2:
|
|
12162
|
+
message.status = 2;
|
|
12163
|
+
break;
|
|
12164
|
+
case "FAILED":
|
|
12165
|
+
case 3:
|
|
12166
|
+
message.status = 3;
|
|
12167
|
+
break;
|
|
12168
|
+
case "SKIPPED":
|
|
12169
|
+
case 4:
|
|
12170
|
+
message.status = 4;
|
|
12171
|
+
break;
|
|
12172
|
+
case "DISABLED":
|
|
12173
|
+
case 5:
|
|
12174
|
+
message.status = 5;
|
|
12175
|
+
break;
|
|
12176
|
+
case "CANCELLED":
|
|
12177
|
+
case 6:
|
|
12178
|
+
message.status = 6;
|
|
12179
|
+
break;
|
|
12180
|
+
}
|
|
12181
|
+
if (object.tasks) {
|
|
12182
|
+
if (!Array.isArray(object.tasks))
|
|
12183
|
+
throw TypeError(".dataform.ActionResult.tasks: array expected");
|
|
12184
|
+
message.tasks = [];
|
|
12185
|
+
for (let i = 0; i < object.tasks.length; ++i) {
|
|
12186
|
+
if (typeof object.tasks[i] !== "object")
|
|
12187
|
+
throw TypeError(".dataform.ActionResult.tasks: object expected");
|
|
12188
|
+
message.tasks[i] = $root.dataform.TaskResult.fromObject(object.tasks[i]);
|
|
12189
|
+
}
|
|
12190
|
+
}
|
|
12191
|
+
if (object.timing != null) {
|
|
12192
|
+
if (typeof object.timing !== "object")
|
|
12193
|
+
throw TypeError(".dataform.ActionResult.timing: object expected");
|
|
12194
|
+
message.timing = $root.dataform.Timing.fromObject(object.timing);
|
|
12195
|
+
}
|
|
12196
|
+
return message;
|
|
12197
|
+
};
|
|
13402
12198
|
|
|
13403
|
-
|
|
13404
|
-
|
|
12199
|
+
/**
|
|
12200
|
+
* Creates a plain object from an ActionResult message. Also converts values to other types if specified.
|
|
12201
|
+
* @function toObject
|
|
12202
|
+
* @memberof dataform.ActionResult
|
|
12203
|
+
* @static
|
|
12204
|
+
* @param {dataform.ActionResult} message ActionResult
|
|
12205
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12206
|
+
* @returns {Object.<string,*>} Plain object
|
|
12207
|
+
*/
|
|
12208
|
+
ActionResult.toObject = function toObject(message, options) {
|
|
12209
|
+
if (!options)
|
|
12210
|
+
options = {};
|
|
12211
|
+
let object = {};
|
|
12212
|
+
if (options.arrays || options.defaults)
|
|
12213
|
+
object.tasks = [];
|
|
12214
|
+
if (options.defaults) {
|
|
12215
|
+
object.status = options.enums === String ? "UNKNOWN" : 0;
|
|
12216
|
+
object.timing = null;
|
|
12217
|
+
object.target = null;
|
|
12218
|
+
}
|
|
12219
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
12220
|
+
object.status = options.enums === String ? $root.dataform.ActionResult.ExecutionStatus[message.status] : message.status;
|
|
12221
|
+
if (message.tasks && message.tasks.length) {
|
|
12222
|
+
object.tasks = [];
|
|
12223
|
+
for (let j = 0; j < message.tasks.length; ++j)
|
|
12224
|
+
object.tasks[j] = $root.dataform.TaskResult.toObject(message.tasks[j], options);
|
|
12225
|
+
}
|
|
12226
|
+
if (message.timing != null && message.hasOwnProperty("timing"))
|
|
12227
|
+
object.timing = $root.dataform.Timing.toObject(message.timing, options);
|
|
12228
|
+
if (message.target != null && message.hasOwnProperty("target"))
|
|
12229
|
+
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
12230
|
+
return object;
|
|
12231
|
+
};
|
|
13405
12232
|
|
|
13406
|
-
|
|
13407
|
-
|
|
12233
|
+
/**
|
|
12234
|
+
* Converts this ActionResult to JSON.
|
|
12235
|
+
* @function toJSON
|
|
12236
|
+
* @memberof dataform.ActionResult
|
|
12237
|
+
* @instance
|
|
12238
|
+
* @returns {Object.<string,*>} JSON object
|
|
12239
|
+
*/
|
|
12240
|
+
ActionResult.prototype.toJSON = function toJSON() {
|
|
12241
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12242
|
+
};
|
|
13408
12243
|
|
|
13409
12244
|
/**
|
|
13410
12245
|
* ExecutionStatus enum.
|
|
@@ -13417,7 +12252,6 @@ const dataform = $root.dataform = (() => {
|
|
|
13417
12252
|
* @property {number} SKIPPED=4 SKIPPED value
|
|
13418
12253
|
* @property {number} DISABLED=5 DISABLED value
|
|
13419
12254
|
* @property {number} CANCELLED=6 CANCELLED value
|
|
13420
|
-
* @property {number} CACHE_SKIPPED=7 CACHE_SKIPPED value
|
|
13421
12255
|
*/
|
|
13422
12256
|
ActionResult.ExecutionStatus = (function() {
|
|
13423
12257
|
const valuesById = {}, values = Object.create(valuesById);
|
|
@@ -13428,7 +12262,6 @@ const dataform = $root.dataform = (() => {
|
|
|
13428
12262
|
values[valuesById[4] = "SKIPPED"] = 4;
|
|
13429
12263
|
values[valuesById[5] = "DISABLED"] = 5;
|
|
13430
12264
|
values[valuesById[6] = "CANCELLED"] = 6;
|
|
13431
|
-
values[valuesById[7] = "CACHE_SKIPPED"] = 7;
|
|
13432
12265
|
return values;
|
|
13433
12266
|
})();
|
|
13434
12267
|
|
|
@@ -14466,7 +13299,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14466
13299
|
* @property {dataform.Field.Primitive|null} [primitive] Field primitive
|
|
14467
13300
|
* @property {dataform.IFields|null} [struct] Field struct
|
|
14468
13301
|
* @property {string|null} [description] Field description
|
|
14469
|
-
* @property {Array.<string>|null} [flagsDeprecated] Field flagsDeprecated
|
|
14470
13302
|
*/
|
|
14471
13303
|
|
|
14472
13304
|
/**
|
|
@@ -14479,7 +13311,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14479
13311
|
*/
|
|
14480
13312
|
function Field(properties) {
|
|
14481
13313
|
this.flags = [];
|
|
14482
|
-
this.flagsDeprecated = [];
|
|
14483
13314
|
if (properties)
|
|
14484
13315
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14485
13316
|
if (properties[keys[i]] != null)
|
|
@@ -14526,14 +13357,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14526
13357
|
*/
|
|
14527
13358
|
Field.prototype.description = "";
|
|
14528
13359
|
|
|
14529
|
-
/**
|
|
14530
|
-
* Field flagsDeprecated.
|
|
14531
|
-
* @member {Array.<string>} flagsDeprecated
|
|
14532
|
-
* @memberof dataform.Field
|
|
14533
|
-
* @instance
|
|
14534
|
-
*/
|
|
14535
|
-
Field.prototype.flagsDeprecated = $util.emptyArray;
|
|
14536
|
-
|
|
14537
13360
|
// OneOf field names bound to virtual getters and setters
|
|
14538
13361
|
let $oneOfFields;
|
|
14539
13362
|
|
|
@@ -14576,9 +13399,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14576
13399
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
14577
13400
|
if (message.struct != null && message.hasOwnProperty("struct"))
|
|
14578
13401
|
$root.dataform.Fields.encode(message.struct, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
14579
|
-
if (message.flagsDeprecated != null && message.flagsDeprecated.length)
|
|
14580
|
-
for (let i = 0; i < message.flagsDeprecated.length; ++i)
|
|
14581
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.flagsDeprecated[i]);
|
|
14582
13402
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
14583
13403
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.description);
|
|
14584
13404
|
if (message.flags != null && message.flags.length) {
|
|
@@ -14645,11 +13465,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14645
13465
|
case 5:
|
|
14646
13466
|
message.description = reader.string();
|
|
14647
13467
|
break;
|
|
14648
|
-
case 4:
|
|
14649
|
-
if (!(message.flagsDeprecated && message.flagsDeprecated.length))
|
|
14650
|
-
message.flagsDeprecated = [];
|
|
14651
|
-
message.flagsDeprecated.push(reader.string());
|
|
14652
|
-
break;
|
|
14653
13468
|
default:
|
|
14654
13469
|
reader.skipType(tag & 7);
|
|
14655
13470
|
break;
|
|
@@ -14735,13 +13550,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14735
13550
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
14736
13551
|
if (!$util.isString(message.description))
|
|
14737
13552
|
return "description: string expected";
|
|
14738
|
-
if (message.flagsDeprecated != null && message.hasOwnProperty("flagsDeprecated")) {
|
|
14739
|
-
if (!Array.isArray(message.flagsDeprecated))
|
|
14740
|
-
return "flagsDeprecated: array expected";
|
|
14741
|
-
for (let i = 0; i < message.flagsDeprecated.length; ++i)
|
|
14742
|
-
if (!$util.isString(message.flagsDeprecated[i]))
|
|
14743
|
-
return "flagsDeprecated: string[] expected";
|
|
14744
|
-
}
|
|
14745
13553
|
return null;
|
|
14746
13554
|
};
|
|
14747
13555
|
|
|
@@ -14837,13 +13645,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14837
13645
|
}
|
|
14838
13646
|
if (object.description != null)
|
|
14839
13647
|
message.description = String(object.description);
|
|
14840
|
-
if (object.flagsDeprecated) {
|
|
14841
|
-
if (!Array.isArray(object.flagsDeprecated))
|
|
14842
|
-
throw TypeError(".dataform.Field.flagsDeprecated: array expected");
|
|
14843
|
-
message.flagsDeprecated = [];
|
|
14844
|
-
for (let i = 0; i < object.flagsDeprecated.length; ++i)
|
|
14845
|
-
message.flagsDeprecated[i] = String(object.flagsDeprecated[i]);
|
|
14846
|
-
}
|
|
14847
13648
|
return message;
|
|
14848
13649
|
};
|
|
14849
13650
|
|
|
@@ -14860,10 +13661,8 @@ const dataform = $root.dataform = (() => {
|
|
|
14860
13661
|
if (!options)
|
|
14861
13662
|
options = {};
|
|
14862
13663
|
let object = {};
|
|
14863
|
-
if (options.arrays || options.defaults)
|
|
14864
|
-
object.flagsDeprecated = [];
|
|
13664
|
+
if (options.arrays || options.defaults)
|
|
14865
13665
|
object.flags = [];
|
|
14866
|
-
}
|
|
14867
13666
|
if (options.defaults) {
|
|
14868
13667
|
object.name = "";
|
|
14869
13668
|
object.description = "";
|
|
@@ -14875,11 +13674,6 @@ const dataform = $root.dataform = (() => {
|
|
|
14875
13674
|
if (options.oneofs)
|
|
14876
13675
|
object.type = "struct";
|
|
14877
13676
|
}
|
|
14878
|
-
if (message.flagsDeprecated && message.flagsDeprecated.length) {
|
|
14879
|
-
object.flagsDeprecated = [];
|
|
14880
|
-
for (let j = 0; j < message.flagsDeprecated.length; ++j)
|
|
14881
|
-
object.flagsDeprecated[j] = message.flagsDeprecated[j];
|
|
14882
|
-
}
|
|
14883
13677
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
14884
13678
|
object.description = message.description;
|
|
14885
13679
|
if (message.flags && message.flags.length) {
|
|
@@ -15180,7 +13974,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15180
13974
|
* @property {Object.<string,string>|null} [labels] TableMetadata labels
|
|
15181
13975
|
* @property {Long|null} [lastUpdatedMillis] TableMetadata lastUpdatedMillis
|
|
15182
13976
|
* @property {dataform.TableMetadata.IBigQuery|null} [bigquery] TableMetadata bigquery
|
|
15183
|
-
* @property {string|null} [typeDeprecated] TableMetadata typeDeprecated
|
|
15184
13977
|
*/
|
|
15185
13978
|
|
|
15186
13979
|
/**
|
|
@@ -15256,14 +14049,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15256
14049
|
*/
|
|
15257
14050
|
TableMetadata.prototype.bigquery = null;
|
|
15258
14051
|
|
|
15259
|
-
/**
|
|
15260
|
-
* TableMetadata typeDeprecated.
|
|
15261
|
-
* @member {string} typeDeprecated
|
|
15262
|
-
* @memberof dataform.TableMetadata
|
|
15263
|
-
* @instance
|
|
15264
|
-
*/
|
|
15265
|
-
TableMetadata.prototype.typeDeprecated = "";
|
|
15266
|
-
|
|
15267
14052
|
/**
|
|
15268
14053
|
* Creates a new TableMetadata instance using the specified properties.
|
|
15269
14054
|
* @function create
|
|
@@ -15290,8 +14075,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15290
14075
|
writer = $Writer.create();
|
|
15291
14076
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
15292
14077
|
$root.dataform.Target.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
15293
|
-
if (message.typeDeprecated != null && message.hasOwnProperty("typeDeprecated"))
|
|
15294
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.typeDeprecated);
|
|
15295
14078
|
if (message.fields != null && message.fields.length)
|
|
15296
14079
|
for (let i = 0; i < message.fields.length; ++i)
|
|
15297
14080
|
$root.dataform.Field.encode(message.fields[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
@@ -15368,9 +14151,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15368
14151
|
case 8:
|
|
15369
14152
|
message.bigquery = $root.dataform.TableMetadata.BigQuery.decode(reader, reader.uint32());
|
|
15370
14153
|
break;
|
|
15371
|
-
case 2:
|
|
15372
|
-
message.typeDeprecated = reader.string();
|
|
15373
|
-
break;
|
|
15374
14154
|
default:
|
|
15375
14155
|
reader.skipType(tag & 7);
|
|
15376
14156
|
break;
|
|
@@ -15448,9 +14228,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15448
14228
|
if (error)
|
|
15449
14229
|
return "bigquery." + error;
|
|
15450
14230
|
}
|
|
15451
|
-
if (message.typeDeprecated != null && message.hasOwnProperty("typeDeprecated"))
|
|
15452
|
-
if (!$util.isString(message.typeDeprecated))
|
|
15453
|
-
return "typeDeprecated: string expected";
|
|
15454
14231
|
return null;
|
|
15455
14232
|
};
|
|
15456
14233
|
|
|
@@ -15518,8 +14295,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15518
14295
|
throw TypeError(".dataform.TableMetadata.bigquery: object expected");
|
|
15519
14296
|
message.bigquery = $root.dataform.TableMetadata.BigQuery.fromObject(object.bigquery);
|
|
15520
14297
|
}
|
|
15521
|
-
if (object.typeDeprecated != null)
|
|
15522
|
-
message.typeDeprecated = String(object.typeDeprecated);
|
|
15523
14298
|
return message;
|
|
15524
14299
|
};
|
|
15525
14300
|
|
|
@@ -15542,7 +14317,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15542
14317
|
object.labels = {};
|
|
15543
14318
|
if (options.defaults) {
|
|
15544
14319
|
object.target = null;
|
|
15545
|
-
object.typeDeprecated = "";
|
|
15546
14320
|
if ($util.Long) {
|
|
15547
14321
|
let long = new $util.Long(0, 0, false);
|
|
15548
14322
|
object.lastUpdatedMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
@@ -15554,8 +14328,6 @@ const dataform = $root.dataform = (() => {
|
|
|
15554
14328
|
}
|
|
15555
14329
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
15556
14330
|
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
15557
|
-
if (message.typeDeprecated != null && message.hasOwnProperty("typeDeprecated"))
|
|
15558
|
-
object.typeDeprecated = message.typeDeprecated;
|
|
15559
14331
|
if (message.fields && message.fields.length) {
|
|
15560
14332
|
object.fields = [];
|
|
15561
14333
|
for (let j = 0; j < message.fields.length; ++j)
|
|
@@ -15798,28 +14570,24 @@ const dataform = $root.dataform = (() => {
|
|
|
15798
14570
|
return TableMetadata;
|
|
15799
14571
|
})();
|
|
15800
14572
|
|
|
15801
|
-
dataform.
|
|
14573
|
+
dataform.CoreExecutionRequest = (function() {
|
|
15802
14574
|
|
|
15803
14575
|
/**
|
|
15804
|
-
* Properties of a
|
|
14576
|
+
* Properties of a CoreExecutionRequest.
|
|
15805
14577
|
* @memberof dataform
|
|
15806
|
-
* @interface
|
|
15807
|
-
* @property {dataform.
|
|
15808
|
-
* @property {string|null} [definitionHash] PersistedTableMetadata definitionHash
|
|
15809
|
-
* @property {Long|null} [lastUpdatedMillis] PersistedTableMetadata lastUpdatedMillis
|
|
15810
|
-
* @property {Array.<dataform.PersistedTableMetadata.ITransitiveInputMetadata>|null} [transitiveInputTables] PersistedTableMetadata transitiveInputTables
|
|
14578
|
+
* @interface ICoreExecutionRequest
|
|
14579
|
+
* @property {dataform.ICompileExecutionRequest|null} [compile] CoreExecutionRequest compile
|
|
15811
14580
|
*/
|
|
15812
14581
|
|
|
15813
14582
|
/**
|
|
15814
|
-
* Constructs a new
|
|
14583
|
+
* Constructs a new CoreExecutionRequest.
|
|
15815
14584
|
* @memberof dataform
|
|
15816
|
-
* @classdesc Represents a
|
|
15817
|
-
* @implements
|
|
14585
|
+
* @classdesc Represents a CoreExecutionRequest.
|
|
14586
|
+
* @implements ICoreExecutionRequest
|
|
15818
14587
|
* @constructor
|
|
15819
|
-
* @param {dataform.
|
|
14588
|
+
* @param {dataform.ICoreExecutionRequest=} [properties] Properties to set
|
|
15820
14589
|
*/
|
|
15821
|
-
function
|
|
15822
|
-
this.transitiveInputTables = [];
|
|
14590
|
+
function CoreExecutionRequest(properties) {
|
|
15823
14591
|
if (properties)
|
|
15824
14592
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15825
14593
|
if (properties[keys[i]] != null)
|
|
@@ -15827,117 +14595,298 @@ const dataform = $root.dataform = (() => {
|
|
|
15827
14595
|
}
|
|
15828
14596
|
|
|
15829
14597
|
/**
|
|
15830
|
-
*
|
|
15831
|
-
* @member {dataform.
|
|
15832
|
-
* @memberof dataform.
|
|
14598
|
+
* CoreExecutionRequest compile.
|
|
14599
|
+
* @member {dataform.ICompileExecutionRequest|null|undefined} compile
|
|
14600
|
+
* @memberof dataform.CoreExecutionRequest
|
|
15833
14601
|
* @instance
|
|
15834
14602
|
*/
|
|
15835
|
-
|
|
14603
|
+
CoreExecutionRequest.prototype.compile = null;
|
|
14604
|
+
|
|
14605
|
+
// OneOf field names bound to virtual getters and setters
|
|
14606
|
+
let $oneOfFields;
|
|
15836
14607
|
|
|
15837
14608
|
/**
|
|
15838
|
-
*
|
|
15839
|
-
* @member {
|
|
15840
|
-
* @memberof dataform.
|
|
14609
|
+
* CoreExecutionRequest request.
|
|
14610
|
+
* @member {"compile"|undefined} request
|
|
14611
|
+
* @memberof dataform.CoreExecutionRequest
|
|
15841
14612
|
* @instance
|
|
15842
14613
|
*/
|
|
15843
|
-
|
|
14614
|
+
Object.defineProperty(CoreExecutionRequest.prototype, "request", {
|
|
14615
|
+
get: $util.oneOfGetter($oneOfFields = ["compile"]),
|
|
14616
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14617
|
+
});
|
|
14618
|
+
|
|
14619
|
+
/**
|
|
14620
|
+
* Creates a new CoreExecutionRequest instance using the specified properties.
|
|
14621
|
+
* @function create
|
|
14622
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14623
|
+
* @static
|
|
14624
|
+
* @param {dataform.ICoreExecutionRequest=} [properties] Properties to set
|
|
14625
|
+
* @returns {dataform.CoreExecutionRequest} CoreExecutionRequest instance
|
|
14626
|
+
*/
|
|
14627
|
+
CoreExecutionRequest.create = function create(properties) {
|
|
14628
|
+
return new CoreExecutionRequest(properties);
|
|
14629
|
+
};
|
|
15844
14630
|
|
|
15845
14631
|
/**
|
|
15846
|
-
*
|
|
15847
|
-
* @
|
|
15848
|
-
* @memberof dataform.
|
|
14632
|
+
* Encodes the specified CoreExecutionRequest message. Does not implicitly {@link dataform.CoreExecutionRequest.verify|verify} messages.
|
|
14633
|
+
* @function encode
|
|
14634
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14635
|
+
* @static
|
|
14636
|
+
* @param {dataform.ICoreExecutionRequest} message CoreExecutionRequest message or plain object to encode
|
|
14637
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14638
|
+
* @returns {$protobuf.Writer} Writer
|
|
14639
|
+
*/
|
|
14640
|
+
CoreExecutionRequest.encode = function encode(message, writer) {
|
|
14641
|
+
if (!writer)
|
|
14642
|
+
writer = $Writer.create();
|
|
14643
|
+
if (message.compile != null && message.hasOwnProperty("compile"))
|
|
14644
|
+
$root.dataform.CompileExecutionRequest.encode(message.compile, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
14645
|
+
return writer;
|
|
14646
|
+
};
|
|
14647
|
+
|
|
14648
|
+
/**
|
|
14649
|
+
* Encodes the specified CoreExecutionRequest message, length delimited. Does not implicitly {@link dataform.CoreExecutionRequest.verify|verify} messages.
|
|
14650
|
+
* @function encodeDelimited
|
|
14651
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14652
|
+
* @static
|
|
14653
|
+
* @param {dataform.ICoreExecutionRequest} message CoreExecutionRequest message or plain object to encode
|
|
14654
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14655
|
+
* @returns {$protobuf.Writer} Writer
|
|
14656
|
+
*/
|
|
14657
|
+
CoreExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14658
|
+
return this.encode(message, writer).ldelim();
|
|
14659
|
+
};
|
|
14660
|
+
|
|
14661
|
+
/**
|
|
14662
|
+
* Decodes a CoreExecutionRequest message from the specified reader or buffer.
|
|
14663
|
+
* @function decode
|
|
14664
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14665
|
+
* @static
|
|
14666
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14667
|
+
* @param {number} [length] Message length if known beforehand
|
|
14668
|
+
* @returns {dataform.CoreExecutionRequest} CoreExecutionRequest
|
|
14669
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14670
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14671
|
+
*/
|
|
14672
|
+
CoreExecutionRequest.decode = function decode(reader, length) {
|
|
14673
|
+
if (!(reader instanceof $Reader))
|
|
14674
|
+
reader = $Reader.create(reader);
|
|
14675
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.CoreExecutionRequest();
|
|
14676
|
+
while (reader.pos < end) {
|
|
14677
|
+
let tag = reader.uint32();
|
|
14678
|
+
switch (tag >>> 3) {
|
|
14679
|
+
case 1:
|
|
14680
|
+
message.compile = $root.dataform.CompileExecutionRequest.decode(reader, reader.uint32());
|
|
14681
|
+
break;
|
|
14682
|
+
default:
|
|
14683
|
+
reader.skipType(tag & 7);
|
|
14684
|
+
break;
|
|
14685
|
+
}
|
|
14686
|
+
}
|
|
14687
|
+
return message;
|
|
14688
|
+
};
|
|
14689
|
+
|
|
14690
|
+
/**
|
|
14691
|
+
* Decodes a CoreExecutionRequest message from the specified reader or buffer, length delimited.
|
|
14692
|
+
* @function decodeDelimited
|
|
14693
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14694
|
+
* @static
|
|
14695
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14696
|
+
* @returns {dataform.CoreExecutionRequest} CoreExecutionRequest
|
|
14697
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14698
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14699
|
+
*/
|
|
14700
|
+
CoreExecutionRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
14701
|
+
if (!(reader instanceof $Reader))
|
|
14702
|
+
reader = new $Reader(reader);
|
|
14703
|
+
return this.decode(reader, reader.uint32());
|
|
14704
|
+
};
|
|
14705
|
+
|
|
14706
|
+
/**
|
|
14707
|
+
* Verifies a CoreExecutionRequest message.
|
|
14708
|
+
* @function verify
|
|
14709
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14710
|
+
* @static
|
|
14711
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14712
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14713
|
+
*/
|
|
14714
|
+
CoreExecutionRequest.verify = function verify(message) {
|
|
14715
|
+
if (typeof message !== "object" || message === null)
|
|
14716
|
+
return "object expected";
|
|
14717
|
+
if (message.compile != null && message.hasOwnProperty("compile")) {
|
|
14718
|
+
{
|
|
14719
|
+
let error = $root.dataform.CompileExecutionRequest.verify(message.compile);
|
|
14720
|
+
if (error)
|
|
14721
|
+
return "compile." + error;
|
|
14722
|
+
}
|
|
14723
|
+
}
|
|
14724
|
+
return null;
|
|
14725
|
+
};
|
|
14726
|
+
|
|
14727
|
+
/**
|
|
14728
|
+
* Creates a CoreExecutionRequest message from a plain object. Also converts values to their respective internal types.
|
|
14729
|
+
* @function fromObject
|
|
14730
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14731
|
+
* @static
|
|
14732
|
+
* @param {Object.<string,*>} object Plain object
|
|
14733
|
+
* @returns {dataform.CoreExecutionRequest} CoreExecutionRequest
|
|
14734
|
+
*/
|
|
14735
|
+
CoreExecutionRequest.fromObject = function fromObject(object) {
|
|
14736
|
+
if (object instanceof $root.dataform.CoreExecutionRequest)
|
|
14737
|
+
return object;
|
|
14738
|
+
let message = new $root.dataform.CoreExecutionRequest();
|
|
14739
|
+
if (object.compile != null) {
|
|
14740
|
+
if (typeof object.compile !== "object")
|
|
14741
|
+
throw TypeError(".dataform.CoreExecutionRequest.compile: object expected");
|
|
14742
|
+
message.compile = $root.dataform.CompileExecutionRequest.fromObject(object.compile);
|
|
14743
|
+
}
|
|
14744
|
+
return message;
|
|
14745
|
+
};
|
|
14746
|
+
|
|
14747
|
+
/**
|
|
14748
|
+
* Creates a plain object from a CoreExecutionRequest message. Also converts values to other types if specified.
|
|
14749
|
+
* @function toObject
|
|
14750
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14751
|
+
* @static
|
|
14752
|
+
* @param {dataform.CoreExecutionRequest} message CoreExecutionRequest
|
|
14753
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14754
|
+
* @returns {Object.<string,*>} Plain object
|
|
14755
|
+
*/
|
|
14756
|
+
CoreExecutionRequest.toObject = function toObject(message, options) {
|
|
14757
|
+
if (!options)
|
|
14758
|
+
options = {};
|
|
14759
|
+
let object = {};
|
|
14760
|
+
if (message.compile != null && message.hasOwnProperty("compile")) {
|
|
14761
|
+
object.compile = $root.dataform.CompileExecutionRequest.toObject(message.compile, options);
|
|
14762
|
+
if (options.oneofs)
|
|
14763
|
+
object.request = "compile";
|
|
14764
|
+
}
|
|
14765
|
+
return object;
|
|
14766
|
+
};
|
|
14767
|
+
|
|
14768
|
+
/**
|
|
14769
|
+
* Converts this CoreExecutionRequest to JSON.
|
|
14770
|
+
* @function toJSON
|
|
14771
|
+
* @memberof dataform.CoreExecutionRequest
|
|
14772
|
+
* @instance
|
|
14773
|
+
* @returns {Object.<string,*>} JSON object
|
|
14774
|
+
*/
|
|
14775
|
+
CoreExecutionRequest.prototype.toJSON = function toJSON() {
|
|
14776
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14777
|
+
};
|
|
14778
|
+
|
|
14779
|
+
return CoreExecutionRequest;
|
|
14780
|
+
})();
|
|
14781
|
+
|
|
14782
|
+
dataform.CoreExecutionResponse = (function() {
|
|
14783
|
+
|
|
14784
|
+
/**
|
|
14785
|
+
* Properties of a CoreExecutionResponse.
|
|
14786
|
+
* @memberof dataform
|
|
14787
|
+
* @interface ICoreExecutionResponse
|
|
14788
|
+
* @property {dataform.ICompileExecutionResponse|null} [compile] CoreExecutionResponse compile
|
|
14789
|
+
*/
|
|
14790
|
+
|
|
14791
|
+
/**
|
|
14792
|
+
* Constructs a new CoreExecutionResponse.
|
|
14793
|
+
* @memberof dataform
|
|
14794
|
+
* @classdesc Represents a CoreExecutionResponse.
|
|
14795
|
+
* @implements ICoreExecutionResponse
|
|
14796
|
+
* @constructor
|
|
14797
|
+
* @param {dataform.ICoreExecutionResponse=} [properties] Properties to set
|
|
14798
|
+
*/
|
|
14799
|
+
function CoreExecutionResponse(properties) {
|
|
14800
|
+
if (properties)
|
|
14801
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14802
|
+
if (properties[keys[i]] != null)
|
|
14803
|
+
this[keys[i]] = properties[keys[i]];
|
|
14804
|
+
}
|
|
14805
|
+
|
|
14806
|
+
/**
|
|
14807
|
+
* CoreExecutionResponse compile.
|
|
14808
|
+
* @member {dataform.ICompileExecutionResponse|null|undefined} compile
|
|
14809
|
+
* @memberof dataform.CoreExecutionResponse
|
|
15849
14810
|
* @instance
|
|
15850
14811
|
*/
|
|
15851
|
-
|
|
14812
|
+
CoreExecutionResponse.prototype.compile = null;
|
|
14813
|
+
|
|
14814
|
+
// OneOf field names bound to virtual getters and setters
|
|
14815
|
+
let $oneOfFields;
|
|
15852
14816
|
|
|
15853
14817
|
/**
|
|
15854
|
-
*
|
|
15855
|
-
* @member {
|
|
15856
|
-
* @memberof dataform.
|
|
14818
|
+
* CoreExecutionResponse response.
|
|
14819
|
+
* @member {"compile"|undefined} response
|
|
14820
|
+
* @memberof dataform.CoreExecutionResponse
|
|
15857
14821
|
* @instance
|
|
15858
14822
|
*/
|
|
15859
|
-
|
|
14823
|
+
Object.defineProperty(CoreExecutionResponse.prototype, "response", {
|
|
14824
|
+
get: $util.oneOfGetter($oneOfFields = ["compile"]),
|
|
14825
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14826
|
+
});
|
|
15860
14827
|
|
|
15861
14828
|
/**
|
|
15862
|
-
* Creates a new
|
|
14829
|
+
* Creates a new CoreExecutionResponse instance using the specified properties.
|
|
15863
14830
|
* @function create
|
|
15864
|
-
* @memberof dataform.
|
|
14831
|
+
* @memberof dataform.CoreExecutionResponse
|
|
15865
14832
|
* @static
|
|
15866
|
-
* @param {dataform.
|
|
15867
|
-
* @returns {dataform.
|
|
14833
|
+
* @param {dataform.ICoreExecutionResponse=} [properties] Properties to set
|
|
14834
|
+
* @returns {dataform.CoreExecutionResponse} CoreExecutionResponse instance
|
|
15868
14835
|
*/
|
|
15869
|
-
|
|
15870
|
-
return new
|
|
14836
|
+
CoreExecutionResponse.create = function create(properties) {
|
|
14837
|
+
return new CoreExecutionResponse(properties);
|
|
15871
14838
|
};
|
|
15872
14839
|
|
|
15873
14840
|
/**
|
|
15874
|
-
* Encodes the specified
|
|
14841
|
+
* Encodes the specified CoreExecutionResponse message. Does not implicitly {@link dataform.CoreExecutionResponse.verify|verify} messages.
|
|
15875
14842
|
* @function encode
|
|
15876
|
-
* @memberof dataform.
|
|
14843
|
+
* @memberof dataform.CoreExecutionResponse
|
|
15877
14844
|
* @static
|
|
15878
|
-
* @param {dataform.
|
|
14845
|
+
* @param {dataform.ICoreExecutionResponse} message CoreExecutionResponse message or plain object to encode
|
|
15879
14846
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15880
14847
|
* @returns {$protobuf.Writer} Writer
|
|
15881
14848
|
*/
|
|
15882
|
-
|
|
14849
|
+
CoreExecutionResponse.encode = function encode(message, writer) {
|
|
15883
14850
|
if (!writer)
|
|
15884
14851
|
writer = $Writer.create();
|
|
15885
|
-
if (message.
|
|
15886
|
-
$root.dataform.
|
|
15887
|
-
if (message.definitionHash != null && message.hasOwnProperty("definitionHash"))
|
|
15888
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.definitionHash);
|
|
15889
|
-
if (message.lastUpdatedMillis != null && message.hasOwnProperty("lastUpdatedMillis"))
|
|
15890
|
-
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lastUpdatedMillis);
|
|
15891
|
-
if (message.transitiveInputTables != null && message.transitiveInputTables.length)
|
|
15892
|
-
for (let i = 0; i < message.transitiveInputTables.length; ++i)
|
|
15893
|
-
$root.dataform.PersistedTableMetadata.TransitiveInputMetadata.encode(message.transitiveInputTables[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
14852
|
+
if (message.compile != null && message.hasOwnProperty("compile"))
|
|
14853
|
+
$root.dataform.CompileExecutionResponse.encode(message.compile, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
15894
14854
|
return writer;
|
|
15895
14855
|
};
|
|
15896
14856
|
|
|
15897
14857
|
/**
|
|
15898
|
-
* Encodes the specified
|
|
14858
|
+
* Encodes the specified CoreExecutionResponse message, length delimited. Does not implicitly {@link dataform.CoreExecutionResponse.verify|verify} messages.
|
|
15899
14859
|
* @function encodeDelimited
|
|
15900
|
-
* @memberof dataform.
|
|
14860
|
+
* @memberof dataform.CoreExecutionResponse
|
|
15901
14861
|
* @static
|
|
15902
|
-
* @param {dataform.
|
|
14862
|
+
* @param {dataform.ICoreExecutionResponse} message CoreExecutionResponse message or plain object to encode
|
|
15903
14863
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15904
14864
|
* @returns {$protobuf.Writer} Writer
|
|
15905
14865
|
*/
|
|
15906
|
-
|
|
14866
|
+
CoreExecutionResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15907
14867
|
return this.encode(message, writer).ldelim();
|
|
15908
14868
|
};
|
|
15909
14869
|
|
|
15910
14870
|
/**
|
|
15911
|
-
* Decodes a
|
|
14871
|
+
* Decodes a CoreExecutionResponse message from the specified reader or buffer.
|
|
15912
14872
|
* @function decode
|
|
15913
|
-
* @memberof dataform.
|
|
14873
|
+
* @memberof dataform.CoreExecutionResponse
|
|
15914
14874
|
* @static
|
|
15915
14875
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15916
14876
|
* @param {number} [length] Message length if known beforehand
|
|
15917
|
-
* @returns {dataform.
|
|
14877
|
+
* @returns {dataform.CoreExecutionResponse} CoreExecutionResponse
|
|
15918
14878
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15919
14879
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15920
14880
|
*/
|
|
15921
|
-
|
|
14881
|
+
CoreExecutionResponse.decode = function decode(reader, length) {
|
|
15922
14882
|
if (!(reader instanceof $Reader))
|
|
15923
14883
|
reader = $Reader.create(reader);
|
|
15924
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.
|
|
14884
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.CoreExecutionResponse();
|
|
15925
14885
|
while (reader.pos < end) {
|
|
15926
14886
|
let tag = reader.uint32();
|
|
15927
14887
|
switch (tag >>> 3) {
|
|
15928
|
-
case 1:
|
|
15929
|
-
message.
|
|
15930
|
-
break;
|
|
15931
|
-
case 2:
|
|
15932
|
-
message.definitionHash = reader.string();
|
|
15933
|
-
break;
|
|
15934
|
-
case 3:
|
|
15935
|
-
message.lastUpdatedMillis = reader.int64();
|
|
15936
|
-
break;
|
|
15937
|
-
case 7:
|
|
15938
|
-
if (!(message.transitiveInputTables && message.transitiveInputTables.length))
|
|
15939
|
-
message.transitiveInputTables = [];
|
|
15940
|
-
message.transitiveInputTables.push($root.dataform.PersistedTableMetadata.TransitiveInputMetadata.decode(reader, reader.uint32()));
|
|
14888
|
+
case 1:
|
|
14889
|
+
message.compile = $root.dataform.CompileExecutionResponse.decode(reader, reader.uint32());
|
|
15941
14890
|
break;
|
|
15942
14891
|
default:
|
|
15943
14892
|
reader.skipType(tag & 7);
|
|
@@ -15948,398 +14897,115 @@ const dataform = $root.dataform = (() => {
|
|
|
15948
14897
|
};
|
|
15949
14898
|
|
|
15950
14899
|
/**
|
|
15951
|
-
* Decodes a
|
|
14900
|
+
* Decodes a CoreExecutionResponse message from the specified reader or buffer, length delimited.
|
|
15952
14901
|
* @function decodeDelimited
|
|
15953
|
-
* @memberof dataform.
|
|
14902
|
+
* @memberof dataform.CoreExecutionResponse
|
|
15954
14903
|
* @static
|
|
15955
14904
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15956
|
-
* @returns {dataform.
|
|
14905
|
+
* @returns {dataform.CoreExecutionResponse} CoreExecutionResponse
|
|
15957
14906
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15958
14907
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15959
14908
|
*/
|
|
15960
|
-
|
|
14909
|
+
CoreExecutionResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
15961
14910
|
if (!(reader instanceof $Reader))
|
|
15962
14911
|
reader = new $Reader(reader);
|
|
15963
14912
|
return this.decode(reader, reader.uint32());
|
|
15964
14913
|
};
|
|
15965
14914
|
|
|
15966
14915
|
/**
|
|
15967
|
-
* Verifies a
|
|
14916
|
+
* Verifies a CoreExecutionResponse message.
|
|
15968
14917
|
* @function verify
|
|
15969
|
-
* @memberof dataform.
|
|
14918
|
+
* @memberof dataform.CoreExecutionResponse
|
|
15970
14919
|
* @static
|
|
15971
14920
|
* @param {Object.<string,*>} message Plain object to verify
|
|
15972
14921
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15973
14922
|
*/
|
|
15974
|
-
|
|
14923
|
+
CoreExecutionResponse.verify = function verify(message) {
|
|
15975
14924
|
if (typeof message !== "object" || message === null)
|
|
15976
14925
|
return "object expected";
|
|
15977
|
-
if (message.
|
|
15978
|
-
|
|
15979
|
-
|
|
15980
|
-
return "target." + error;
|
|
15981
|
-
}
|
|
15982
|
-
if (message.definitionHash != null && message.hasOwnProperty("definitionHash"))
|
|
15983
|
-
if (!$util.isString(message.definitionHash))
|
|
15984
|
-
return "definitionHash: string expected";
|
|
15985
|
-
if (message.lastUpdatedMillis != null && message.hasOwnProperty("lastUpdatedMillis"))
|
|
15986
|
-
if (!$util.isInteger(message.lastUpdatedMillis) && !(message.lastUpdatedMillis && $util.isInteger(message.lastUpdatedMillis.low) && $util.isInteger(message.lastUpdatedMillis.high)))
|
|
15987
|
-
return "lastUpdatedMillis: integer|Long expected";
|
|
15988
|
-
if (message.transitiveInputTables != null && message.hasOwnProperty("transitiveInputTables")) {
|
|
15989
|
-
if (!Array.isArray(message.transitiveInputTables))
|
|
15990
|
-
return "transitiveInputTables: array expected";
|
|
15991
|
-
for (let i = 0; i < message.transitiveInputTables.length; ++i) {
|
|
15992
|
-
let error = $root.dataform.PersistedTableMetadata.TransitiveInputMetadata.verify(message.transitiveInputTables[i]);
|
|
14926
|
+
if (message.compile != null && message.hasOwnProperty("compile")) {
|
|
14927
|
+
{
|
|
14928
|
+
let error = $root.dataform.CompileExecutionResponse.verify(message.compile);
|
|
15993
14929
|
if (error)
|
|
15994
|
-
return "
|
|
14930
|
+
return "compile." + error;
|
|
15995
14931
|
}
|
|
15996
14932
|
}
|
|
15997
14933
|
return null;
|
|
15998
14934
|
};
|
|
15999
14935
|
|
|
16000
14936
|
/**
|
|
16001
|
-
* Creates a
|
|
14937
|
+
* Creates a CoreExecutionResponse message from a plain object. Also converts values to their respective internal types.
|
|
16002
14938
|
* @function fromObject
|
|
16003
|
-
* @memberof dataform.
|
|
14939
|
+
* @memberof dataform.CoreExecutionResponse
|
|
16004
14940
|
* @static
|
|
16005
14941
|
* @param {Object.<string,*>} object Plain object
|
|
16006
|
-
* @returns {dataform.
|
|
14942
|
+
* @returns {dataform.CoreExecutionResponse} CoreExecutionResponse
|
|
16007
14943
|
*/
|
|
16008
|
-
|
|
16009
|
-
if (object instanceof $root.dataform.
|
|
14944
|
+
CoreExecutionResponse.fromObject = function fromObject(object) {
|
|
14945
|
+
if (object instanceof $root.dataform.CoreExecutionResponse)
|
|
16010
14946
|
return object;
|
|
16011
|
-
let message = new $root.dataform.
|
|
16012
|
-
if (object.
|
|
16013
|
-
if (typeof object.
|
|
16014
|
-
throw TypeError(".dataform.
|
|
16015
|
-
message.
|
|
16016
|
-
}
|
|
16017
|
-
if (object.definitionHash != null)
|
|
16018
|
-
message.definitionHash = String(object.definitionHash);
|
|
16019
|
-
if (object.lastUpdatedMillis != null)
|
|
16020
|
-
if ($util.Long)
|
|
16021
|
-
(message.lastUpdatedMillis = $util.Long.fromValue(object.lastUpdatedMillis)).unsigned = false;
|
|
16022
|
-
else if (typeof object.lastUpdatedMillis === "string")
|
|
16023
|
-
message.lastUpdatedMillis = parseInt(object.lastUpdatedMillis, 10);
|
|
16024
|
-
else if (typeof object.lastUpdatedMillis === "number")
|
|
16025
|
-
message.lastUpdatedMillis = object.lastUpdatedMillis;
|
|
16026
|
-
else if (typeof object.lastUpdatedMillis === "object")
|
|
16027
|
-
message.lastUpdatedMillis = new $util.LongBits(object.lastUpdatedMillis.low >>> 0, object.lastUpdatedMillis.high >>> 0).toNumber();
|
|
16028
|
-
if (object.transitiveInputTables) {
|
|
16029
|
-
if (!Array.isArray(object.transitiveInputTables))
|
|
16030
|
-
throw TypeError(".dataform.PersistedTableMetadata.transitiveInputTables: array expected");
|
|
16031
|
-
message.transitiveInputTables = [];
|
|
16032
|
-
for (let i = 0; i < object.transitiveInputTables.length; ++i) {
|
|
16033
|
-
if (typeof object.transitiveInputTables[i] !== "object")
|
|
16034
|
-
throw TypeError(".dataform.PersistedTableMetadata.transitiveInputTables: object expected");
|
|
16035
|
-
message.transitiveInputTables[i] = $root.dataform.PersistedTableMetadata.TransitiveInputMetadata.fromObject(object.transitiveInputTables[i]);
|
|
16036
|
-
}
|
|
14947
|
+
let message = new $root.dataform.CoreExecutionResponse();
|
|
14948
|
+
if (object.compile != null) {
|
|
14949
|
+
if (typeof object.compile !== "object")
|
|
14950
|
+
throw TypeError(".dataform.CoreExecutionResponse.compile: object expected");
|
|
14951
|
+
message.compile = $root.dataform.CompileExecutionResponse.fromObject(object.compile);
|
|
16037
14952
|
}
|
|
16038
14953
|
return message;
|
|
16039
14954
|
};
|
|
16040
14955
|
|
|
16041
14956
|
/**
|
|
16042
|
-
* Creates a plain object from a
|
|
14957
|
+
* Creates a plain object from a CoreExecutionResponse message. Also converts values to other types if specified.
|
|
16043
14958
|
* @function toObject
|
|
16044
|
-
* @memberof dataform.
|
|
14959
|
+
* @memberof dataform.CoreExecutionResponse
|
|
16045
14960
|
* @static
|
|
16046
|
-
* @param {dataform.
|
|
14961
|
+
* @param {dataform.CoreExecutionResponse} message CoreExecutionResponse
|
|
16047
14962
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16048
14963
|
* @returns {Object.<string,*>} Plain object
|
|
16049
14964
|
*/
|
|
16050
|
-
|
|
14965
|
+
CoreExecutionResponse.toObject = function toObject(message, options) {
|
|
16051
14966
|
if (!options)
|
|
16052
14967
|
options = {};
|
|
16053
14968
|
let object = {};
|
|
16054
|
-
if (
|
|
16055
|
-
object.
|
|
16056
|
-
|
|
16057
|
-
|
|
16058
|
-
object.definitionHash = "";
|
|
16059
|
-
if ($util.Long) {
|
|
16060
|
-
let long = new $util.Long(0, 0, false);
|
|
16061
|
-
object.lastUpdatedMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
16062
|
-
} else
|
|
16063
|
-
object.lastUpdatedMillis = options.longs === String ? "0" : 0;
|
|
16064
|
-
}
|
|
16065
|
-
if (message.target != null && message.hasOwnProperty("target"))
|
|
16066
|
-
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
16067
|
-
if (message.definitionHash != null && message.hasOwnProperty("definitionHash"))
|
|
16068
|
-
object.definitionHash = message.definitionHash;
|
|
16069
|
-
if (message.lastUpdatedMillis != null && message.hasOwnProperty("lastUpdatedMillis"))
|
|
16070
|
-
if (typeof message.lastUpdatedMillis === "number")
|
|
16071
|
-
object.lastUpdatedMillis = options.longs === String ? String(message.lastUpdatedMillis) : message.lastUpdatedMillis;
|
|
16072
|
-
else
|
|
16073
|
-
object.lastUpdatedMillis = options.longs === String ? $util.Long.prototype.toString.call(message.lastUpdatedMillis) : options.longs === Number ? new $util.LongBits(message.lastUpdatedMillis.low >>> 0, message.lastUpdatedMillis.high >>> 0).toNumber() : message.lastUpdatedMillis;
|
|
16074
|
-
if (message.transitiveInputTables && message.transitiveInputTables.length) {
|
|
16075
|
-
object.transitiveInputTables = [];
|
|
16076
|
-
for (let j = 0; j < message.transitiveInputTables.length; ++j)
|
|
16077
|
-
object.transitiveInputTables[j] = $root.dataform.PersistedTableMetadata.TransitiveInputMetadata.toObject(message.transitiveInputTables[j], options);
|
|
14969
|
+
if (message.compile != null && message.hasOwnProperty("compile")) {
|
|
14970
|
+
object.compile = $root.dataform.CompileExecutionResponse.toObject(message.compile, options);
|
|
14971
|
+
if (options.oneofs)
|
|
14972
|
+
object.response = "compile";
|
|
16078
14973
|
}
|
|
16079
14974
|
return object;
|
|
16080
14975
|
};
|
|
16081
14976
|
|
|
16082
14977
|
/**
|
|
16083
|
-
* Converts this
|
|
14978
|
+
* Converts this CoreExecutionResponse to JSON.
|
|
16084
14979
|
* @function toJSON
|
|
16085
|
-
* @memberof dataform.
|
|
14980
|
+
* @memberof dataform.CoreExecutionResponse
|
|
16086
14981
|
* @instance
|
|
16087
14982
|
* @returns {Object.<string,*>} JSON object
|
|
16088
14983
|
*/
|
|
16089
|
-
|
|
14984
|
+
CoreExecutionResponse.prototype.toJSON = function toJSON() {
|
|
16090
14985
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16091
14986
|
};
|
|
16092
14987
|
|
|
16093
|
-
|
|
16094
|
-
|
|
16095
|
-
/**
|
|
16096
|
-
* Properties of a TransitiveInputMetadata.
|
|
16097
|
-
* @memberof dataform.PersistedTableMetadata
|
|
16098
|
-
* @interface ITransitiveInputMetadata
|
|
16099
|
-
* @property {dataform.ITarget|null} [target] TransitiveInputMetadata target
|
|
16100
|
-
* @property {Long|null} [lastUpdatedMillis] TransitiveInputMetadata lastUpdatedMillis
|
|
16101
|
-
*/
|
|
16102
|
-
|
|
16103
|
-
/**
|
|
16104
|
-
* Constructs a new TransitiveInputMetadata.
|
|
16105
|
-
* @memberof dataform.PersistedTableMetadata
|
|
16106
|
-
* @classdesc Represents a TransitiveInputMetadata.
|
|
16107
|
-
* @implements ITransitiveInputMetadata
|
|
16108
|
-
* @constructor
|
|
16109
|
-
* @param {dataform.PersistedTableMetadata.ITransitiveInputMetadata=} [properties] Properties to set
|
|
16110
|
-
*/
|
|
16111
|
-
function TransitiveInputMetadata(properties) {
|
|
16112
|
-
if (properties)
|
|
16113
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16114
|
-
if (properties[keys[i]] != null)
|
|
16115
|
-
this[keys[i]] = properties[keys[i]];
|
|
16116
|
-
}
|
|
16117
|
-
|
|
16118
|
-
/**
|
|
16119
|
-
* TransitiveInputMetadata target.
|
|
16120
|
-
* @member {dataform.ITarget|null|undefined} target
|
|
16121
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16122
|
-
* @instance
|
|
16123
|
-
*/
|
|
16124
|
-
TransitiveInputMetadata.prototype.target = null;
|
|
16125
|
-
|
|
16126
|
-
/**
|
|
16127
|
-
* TransitiveInputMetadata lastUpdatedMillis.
|
|
16128
|
-
* @member {Long} lastUpdatedMillis
|
|
16129
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16130
|
-
* @instance
|
|
16131
|
-
*/
|
|
16132
|
-
TransitiveInputMetadata.prototype.lastUpdatedMillis = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
16133
|
-
|
|
16134
|
-
/**
|
|
16135
|
-
* Creates a new TransitiveInputMetadata instance using the specified properties.
|
|
16136
|
-
* @function create
|
|
16137
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16138
|
-
* @static
|
|
16139
|
-
* @param {dataform.PersistedTableMetadata.ITransitiveInputMetadata=} [properties] Properties to set
|
|
16140
|
-
* @returns {dataform.PersistedTableMetadata.TransitiveInputMetadata} TransitiveInputMetadata instance
|
|
16141
|
-
*/
|
|
16142
|
-
TransitiveInputMetadata.create = function create(properties) {
|
|
16143
|
-
return new TransitiveInputMetadata(properties);
|
|
16144
|
-
};
|
|
16145
|
-
|
|
16146
|
-
/**
|
|
16147
|
-
* Encodes the specified TransitiveInputMetadata message. Does not implicitly {@link dataform.PersistedTableMetadata.TransitiveInputMetadata.verify|verify} messages.
|
|
16148
|
-
* @function encode
|
|
16149
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16150
|
-
* @static
|
|
16151
|
-
* @param {dataform.PersistedTableMetadata.ITransitiveInputMetadata} message TransitiveInputMetadata message or plain object to encode
|
|
16152
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16153
|
-
* @returns {$protobuf.Writer} Writer
|
|
16154
|
-
*/
|
|
16155
|
-
TransitiveInputMetadata.encode = function encode(message, writer) {
|
|
16156
|
-
if (!writer)
|
|
16157
|
-
writer = $Writer.create();
|
|
16158
|
-
if (message.target != null && message.hasOwnProperty("target"))
|
|
16159
|
-
$root.dataform.Target.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
16160
|
-
if (message.lastUpdatedMillis != null && message.hasOwnProperty("lastUpdatedMillis"))
|
|
16161
|
-
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.lastUpdatedMillis);
|
|
16162
|
-
return writer;
|
|
16163
|
-
};
|
|
16164
|
-
|
|
16165
|
-
/**
|
|
16166
|
-
* Encodes the specified TransitiveInputMetadata message, length delimited. Does not implicitly {@link dataform.PersistedTableMetadata.TransitiveInputMetadata.verify|verify} messages.
|
|
16167
|
-
* @function encodeDelimited
|
|
16168
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16169
|
-
* @static
|
|
16170
|
-
* @param {dataform.PersistedTableMetadata.ITransitiveInputMetadata} message TransitiveInputMetadata message or plain object to encode
|
|
16171
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16172
|
-
* @returns {$protobuf.Writer} Writer
|
|
16173
|
-
*/
|
|
16174
|
-
TransitiveInputMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16175
|
-
return this.encode(message, writer).ldelim();
|
|
16176
|
-
};
|
|
16177
|
-
|
|
16178
|
-
/**
|
|
16179
|
-
* Decodes a TransitiveInputMetadata message from the specified reader or buffer.
|
|
16180
|
-
* @function decode
|
|
16181
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16182
|
-
* @static
|
|
16183
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16184
|
-
* @param {number} [length] Message length if known beforehand
|
|
16185
|
-
* @returns {dataform.PersistedTableMetadata.TransitiveInputMetadata} TransitiveInputMetadata
|
|
16186
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16187
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16188
|
-
*/
|
|
16189
|
-
TransitiveInputMetadata.decode = function decode(reader, length) {
|
|
16190
|
-
if (!(reader instanceof $Reader))
|
|
16191
|
-
reader = $Reader.create(reader);
|
|
16192
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.PersistedTableMetadata.TransitiveInputMetadata();
|
|
16193
|
-
while (reader.pos < end) {
|
|
16194
|
-
let tag = reader.uint32();
|
|
16195
|
-
switch (tag >>> 3) {
|
|
16196
|
-
case 1:
|
|
16197
|
-
message.target = $root.dataform.Target.decode(reader, reader.uint32());
|
|
16198
|
-
break;
|
|
16199
|
-
case 2:
|
|
16200
|
-
message.lastUpdatedMillis = reader.int64();
|
|
16201
|
-
break;
|
|
16202
|
-
default:
|
|
16203
|
-
reader.skipType(tag & 7);
|
|
16204
|
-
break;
|
|
16205
|
-
}
|
|
16206
|
-
}
|
|
16207
|
-
return message;
|
|
16208
|
-
};
|
|
16209
|
-
|
|
16210
|
-
/**
|
|
16211
|
-
* Decodes a TransitiveInputMetadata message from the specified reader or buffer, length delimited.
|
|
16212
|
-
* @function decodeDelimited
|
|
16213
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16214
|
-
* @static
|
|
16215
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16216
|
-
* @returns {dataform.PersistedTableMetadata.TransitiveInputMetadata} TransitiveInputMetadata
|
|
16217
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16218
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16219
|
-
*/
|
|
16220
|
-
TransitiveInputMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
16221
|
-
if (!(reader instanceof $Reader))
|
|
16222
|
-
reader = new $Reader(reader);
|
|
16223
|
-
return this.decode(reader, reader.uint32());
|
|
16224
|
-
};
|
|
16225
|
-
|
|
16226
|
-
/**
|
|
16227
|
-
* Verifies a TransitiveInputMetadata message.
|
|
16228
|
-
* @function verify
|
|
16229
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16230
|
-
* @static
|
|
16231
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
16232
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16233
|
-
*/
|
|
16234
|
-
TransitiveInputMetadata.verify = function verify(message) {
|
|
16235
|
-
if (typeof message !== "object" || message === null)
|
|
16236
|
-
return "object expected";
|
|
16237
|
-
if (message.target != null && message.hasOwnProperty("target")) {
|
|
16238
|
-
let error = $root.dataform.Target.verify(message.target);
|
|
16239
|
-
if (error)
|
|
16240
|
-
return "target." + error;
|
|
16241
|
-
}
|
|
16242
|
-
if (message.lastUpdatedMillis != null && message.hasOwnProperty("lastUpdatedMillis"))
|
|
16243
|
-
if (!$util.isInteger(message.lastUpdatedMillis) && !(message.lastUpdatedMillis && $util.isInteger(message.lastUpdatedMillis.low) && $util.isInteger(message.lastUpdatedMillis.high)))
|
|
16244
|
-
return "lastUpdatedMillis: integer|Long expected";
|
|
16245
|
-
return null;
|
|
16246
|
-
};
|
|
16247
|
-
|
|
16248
|
-
/**
|
|
16249
|
-
* Creates a TransitiveInputMetadata message from a plain object. Also converts values to their respective internal types.
|
|
16250
|
-
* @function fromObject
|
|
16251
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16252
|
-
* @static
|
|
16253
|
-
* @param {Object.<string,*>} object Plain object
|
|
16254
|
-
* @returns {dataform.PersistedTableMetadata.TransitiveInputMetadata} TransitiveInputMetadata
|
|
16255
|
-
*/
|
|
16256
|
-
TransitiveInputMetadata.fromObject = function fromObject(object) {
|
|
16257
|
-
if (object instanceof $root.dataform.PersistedTableMetadata.TransitiveInputMetadata)
|
|
16258
|
-
return object;
|
|
16259
|
-
let message = new $root.dataform.PersistedTableMetadata.TransitiveInputMetadata();
|
|
16260
|
-
if (object.target != null) {
|
|
16261
|
-
if (typeof object.target !== "object")
|
|
16262
|
-
throw TypeError(".dataform.PersistedTableMetadata.TransitiveInputMetadata.target: object expected");
|
|
16263
|
-
message.target = $root.dataform.Target.fromObject(object.target);
|
|
16264
|
-
}
|
|
16265
|
-
if (object.lastUpdatedMillis != null)
|
|
16266
|
-
if ($util.Long)
|
|
16267
|
-
(message.lastUpdatedMillis = $util.Long.fromValue(object.lastUpdatedMillis)).unsigned = false;
|
|
16268
|
-
else if (typeof object.lastUpdatedMillis === "string")
|
|
16269
|
-
message.lastUpdatedMillis = parseInt(object.lastUpdatedMillis, 10);
|
|
16270
|
-
else if (typeof object.lastUpdatedMillis === "number")
|
|
16271
|
-
message.lastUpdatedMillis = object.lastUpdatedMillis;
|
|
16272
|
-
else if (typeof object.lastUpdatedMillis === "object")
|
|
16273
|
-
message.lastUpdatedMillis = new $util.LongBits(object.lastUpdatedMillis.low >>> 0, object.lastUpdatedMillis.high >>> 0).toNumber();
|
|
16274
|
-
return message;
|
|
16275
|
-
};
|
|
16276
|
-
|
|
16277
|
-
/**
|
|
16278
|
-
* Creates a plain object from a TransitiveInputMetadata message. Also converts values to other types if specified.
|
|
16279
|
-
* @function toObject
|
|
16280
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16281
|
-
* @static
|
|
16282
|
-
* @param {dataform.PersistedTableMetadata.TransitiveInputMetadata} message TransitiveInputMetadata
|
|
16283
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16284
|
-
* @returns {Object.<string,*>} Plain object
|
|
16285
|
-
*/
|
|
16286
|
-
TransitiveInputMetadata.toObject = function toObject(message, options) {
|
|
16287
|
-
if (!options)
|
|
16288
|
-
options = {};
|
|
16289
|
-
let object = {};
|
|
16290
|
-
if (options.defaults) {
|
|
16291
|
-
object.target = null;
|
|
16292
|
-
if ($util.Long) {
|
|
16293
|
-
let long = new $util.Long(0, 0, false);
|
|
16294
|
-
object.lastUpdatedMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
16295
|
-
} else
|
|
16296
|
-
object.lastUpdatedMillis = options.longs === String ? "0" : 0;
|
|
16297
|
-
}
|
|
16298
|
-
if (message.target != null && message.hasOwnProperty("target"))
|
|
16299
|
-
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
16300
|
-
if (message.lastUpdatedMillis != null && message.hasOwnProperty("lastUpdatedMillis"))
|
|
16301
|
-
if (typeof message.lastUpdatedMillis === "number")
|
|
16302
|
-
object.lastUpdatedMillis = options.longs === String ? String(message.lastUpdatedMillis) : message.lastUpdatedMillis;
|
|
16303
|
-
else
|
|
16304
|
-
object.lastUpdatedMillis = options.longs === String ? $util.Long.prototype.toString.call(message.lastUpdatedMillis) : options.longs === Number ? new $util.LongBits(message.lastUpdatedMillis.low >>> 0, message.lastUpdatedMillis.high >>> 0).toNumber() : message.lastUpdatedMillis;
|
|
16305
|
-
return object;
|
|
16306
|
-
};
|
|
16307
|
-
|
|
16308
|
-
/**
|
|
16309
|
-
* Converts this TransitiveInputMetadata to JSON.
|
|
16310
|
-
* @function toJSON
|
|
16311
|
-
* @memberof dataform.PersistedTableMetadata.TransitiveInputMetadata
|
|
16312
|
-
* @instance
|
|
16313
|
-
* @returns {Object.<string,*>} JSON object
|
|
16314
|
-
*/
|
|
16315
|
-
TransitiveInputMetadata.prototype.toJSON = function toJSON() {
|
|
16316
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16317
|
-
};
|
|
16318
|
-
|
|
16319
|
-
return TransitiveInputMetadata;
|
|
16320
|
-
})();
|
|
16321
|
-
|
|
16322
|
-
return PersistedTableMetadata;
|
|
14988
|
+
return CoreExecutionResponse;
|
|
16323
14989
|
})();
|
|
16324
14990
|
|
|
16325
|
-
dataform.
|
|
14991
|
+
dataform.CompileExecutionRequest = (function() {
|
|
16326
14992
|
|
|
16327
14993
|
/**
|
|
16328
|
-
* Properties of a
|
|
14994
|
+
* Properties of a CompileExecutionRequest.
|
|
16329
14995
|
* @memberof dataform
|
|
16330
|
-
* @interface
|
|
16331
|
-
* @property {dataform.ICompileConfig|null} [compileConfig]
|
|
14996
|
+
* @interface ICompileExecutionRequest
|
|
14997
|
+
* @property {dataform.ICompileConfig|null} [compileConfig] CompileExecutionRequest compileConfig
|
|
16332
14998
|
*/
|
|
16333
14999
|
|
|
16334
15000
|
/**
|
|
16335
|
-
* Constructs a new
|
|
15001
|
+
* Constructs a new CompileExecutionRequest.
|
|
16336
15002
|
* @memberof dataform
|
|
16337
|
-
* @classdesc Represents a
|
|
16338
|
-
* @implements
|
|
15003
|
+
* @classdesc Represents a CompileExecutionRequest.
|
|
15004
|
+
* @implements ICompileExecutionRequest
|
|
16339
15005
|
* @constructor
|
|
16340
|
-
* @param {dataform.
|
|
15006
|
+
* @param {dataform.ICompileExecutionRequest=} [properties] Properties to set
|
|
16341
15007
|
*/
|
|
16342
|
-
function
|
|
15008
|
+
function CompileExecutionRequest(properties) {
|
|
16343
15009
|
if (properties)
|
|
16344
15010
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16345
15011
|
if (properties[keys[i]] != null)
|
|
@@ -16347,35 +15013,35 @@ const dataform = $root.dataform = (() => {
|
|
|
16347
15013
|
}
|
|
16348
15014
|
|
|
16349
15015
|
/**
|
|
16350
|
-
*
|
|
15016
|
+
* CompileExecutionRequest compileConfig.
|
|
16351
15017
|
* @member {dataform.ICompileConfig|null|undefined} compileConfig
|
|
16352
|
-
* @memberof dataform.
|
|
15018
|
+
* @memberof dataform.CompileExecutionRequest
|
|
16353
15019
|
* @instance
|
|
16354
15020
|
*/
|
|
16355
|
-
|
|
15021
|
+
CompileExecutionRequest.prototype.compileConfig = null;
|
|
16356
15022
|
|
|
16357
15023
|
/**
|
|
16358
|
-
* Creates a new
|
|
15024
|
+
* Creates a new CompileExecutionRequest instance using the specified properties.
|
|
16359
15025
|
* @function create
|
|
16360
|
-
* @memberof dataform.
|
|
15026
|
+
* @memberof dataform.CompileExecutionRequest
|
|
16361
15027
|
* @static
|
|
16362
|
-
* @param {dataform.
|
|
16363
|
-
* @returns {dataform.
|
|
15028
|
+
* @param {dataform.ICompileExecutionRequest=} [properties] Properties to set
|
|
15029
|
+
* @returns {dataform.CompileExecutionRequest} CompileExecutionRequest instance
|
|
16364
15030
|
*/
|
|
16365
|
-
|
|
16366
|
-
return new
|
|
15031
|
+
CompileExecutionRequest.create = function create(properties) {
|
|
15032
|
+
return new CompileExecutionRequest(properties);
|
|
16367
15033
|
};
|
|
16368
15034
|
|
|
16369
15035
|
/**
|
|
16370
|
-
* Encodes the specified
|
|
15036
|
+
* Encodes the specified CompileExecutionRequest message. Does not implicitly {@link dataform.CompileExecutionRequest.verify|verify} messages.
|
|
16371
15037
|
* @function encode
|
|
16372
|
-
* @memberof dataform.
|
|
15038
|
+
* @memberof dataform.CompileExecutionRequest
|
|
16373
15039
|
* @static
|
|
16374
|
-
* @param {dataform.
|
|
15040
|
+
* @param {dataform.ICompileExecutionRequest} message CompileExecutionRequest message or plain object to encode
|
|
16375
15041
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16376
15042
|
* @returns {$protobuf.Writer} Writer
|
|
16377
15043
|
*/
|
|
16378
|
-
|
|
15044
|
+
CompileExecutionRequest.encode = function encode(message, writer) {
|
|
16379
15045
|
if (!writer)
|
|
16380
15046
|
writer = $Writer.create();
|
|
16381
15047
|
if (message.compileConfig != null && message.hasOwnProperty("compileConfig"))
|
|
@@ -16384,33 +15050,33 @@ const dataform = $root.dataform = (() => {
|
|
|
16384
15050
|
};
|
|
16385
15051
|
|
|
16386
15052
|
/**
|
|
16387
|
-
* Encodes the specified
|
|
15053
|
+
* Encodes the specified CompileExecutionRequest message, length delimited. Does not implicitly {@link dataform.CompileExecutionRequest.verify|verify} messages.
|
|
16388
15054
|
* @function encodeDelimited
|
|
16389
|
-
* @memberof dataform.
|
|
15055
|
+
* @memberof dataform.CompileExecutionRequest
|
|
16390
15056
|
* @static
|
|
16391
|
-
* @param {dataform.
|
|
15057
|
+
* @param {dataform.ICompileExecutionRequest} message CompileExecutionRequest message or plain object to encode
|
|
16392
15058
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16393
15059
|
* @returns {$protobuf.Writer} Writer
|
|
16394
15060
|
*/
|
|
16395
|
-
|
|
15061
|
+
CompileExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16396
15062
|
return this.encode(message, writer).ldelim();
|
|
16397
15063
|
};
|
|
16398
15064
|
|
|
16399
15065
|
/**
|
|
16400
|
-
* Decodes a
|
|
15066
|
+
* Decodes a CompileExecutionRequest message from the specified reader or buffer.
|
|
16401
15067
|
* @function decode
|
|
16402
|
-
* @memberof dataform.
|
|
15068
|
+
* @memberof dataform.CompileExecutionRequest
|
|
16403
15069
|
* @static
|
|
16404
15070
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16405
15071
|
* @param {number} [length] Message length if known beforehand
|
|
16406
|
-
* @returns {dataform.
|
|
15072
|
+
* @returns {dataform.CompileExecutionRequest} CompileExecutionRequest
|
|
16407
15073
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16408
15074
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16409
15075
|
*/
|
|
16410
|
-
|
|
15076
|
+
CompileExecutionRequest.decode = function decode(reader, length) {
|
|
16411
15077
|
if (!(reader instanceof $Reader))
|
|
16412
15078
|
reader = $Reader.create(reader);
|
|
16413
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.
|
|
15079
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.CompileExecutionRequest();
|
|
16414
15080
|
while (reader.pos < end) {
|
|
16415
15081
|
let tag = reader.uint32();
|
|
16416
15082
|
switch (tag >>> 3) {
|
|
@@ -16426,30 +15092,30 @@ const dataform = $root.dataform = (() => {
|
|
|
16426
15092
|
};
|
|
16427
15093
|
|
|
16428
15094
|
/**
|
|
16429
|
-
* Decodes a
|
|
15095
|
+
* Decodes a CompileExecutionRequest message from the specified reader or buffer, length delimited.
|
|
16430
15096
|
* @function decodeDelimited
|
|
16431
|
-
* @memberof dataform.
|
|
15097
|
+
* @memberof dataform.CompileExecutionRequest
|
|
16432
15098
|
* @static
|
|
16433
15099
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16434
|
-
* @returns {dataform.
|
|
15100
|
+
* @returns {dataform.CompileExecutionRequest} CompileExecutionRequest
|
|
16435
15101
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16436
15102
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16437
15103
|
*/
|
|
16438
|
-
|
|
15104
|
+
CompileExecutionRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
16439
15105
|
if (!(reader instanceof $Reader))
|
|
16440
15106
|
reader = new $Reader(reader);
|
|
16441
15107
|
return this.decode(reader, reader.uint32());
|
|
16442
15108
|
};
|
|
16443
15109
|
|
|
16444
15110
|
/**
|
|
16445
|
-
* Verifies a
|
|
15111
|
+
* Verifies a CompileExecutionRequest message.
|
|
16446
15112
|
* @function verify
|
|
16447
|
-
* @memberof dataform.
|
|
15113
|
+
* @memberof dataform.CompileExecutionRequest
|
|
16448
15114
|
* @static
|
|
16449
15115
|
* @param {Object.<string,*>} message Plain object to verify
|
|
16450
15116
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16451
15117
|
*/
|
|
16452
|
-
|
|
15118
|
+
CompileExecutionRequest.verify = function verify(message) {
|
|
16453
15119
|
if (typeof message !== "object" || message === null)
|
|
16454
15120
|
return "object expected";
|
|
16455
15121
|
if (message.compileConfig != null && message.hasOwnProperty("compileConfig")) {
|
|
@@ -16461,35 +15127,35 @@ const dataform = $root.dataform = (() => {
|
|
|
16461
15127
|
};
|
|
16462
15128
|
|
|
16463
15129
|
/**
|
|
16464
|
-
* Creates a
|
|
15130
|
+
* Creates a CompileExecutionRequest message from a plain object. Also converts values to their respective internal types.
|
|
16465
15131
|
* @function fromObject
|
|
16466
|
-
* @memberof dataform.
|
|
15132
|
+
* @memberof dataform.CompileExecutionRequest
|
|
16467
15133
|
* @static
|
|
16468
15134
|
* @param {Object.<string,*>} object Plain object
|
|
16469
|
-
* @returns {dataform.
|
|
15135
|
+
* @returns {dataform.CompileExecutionRequest} CompileExecutionRequest
|
|
16470
15136
|
*/
|
|
16471
|
-
|
|
16472
|
-
if (object instanceof $root.dataform.
|
|
15137
|
+
CompileExecutionRequest.fromObject = function fromObject(object) {
|
|
15138
|
+
if (object instanceof $root.dataform.CompileExecutionRequest)
|
|
16473
15139
|
return object;
|
|
16474
|
-
let message = new $root.dataform.
|
|
15140
|
+
let message = new $root.dataform.CompileExecutionRequest();
|
|
16475
15141
|
if (object.compileConfig != null) {
|
|
16476
15142
|
if (typeof object.compileConfig !== "object")
|
|
16477
|
-
throw TypeError(".dataform.
|
|
15143
|
+
throw TypeError(".dataform.CompileExecutionRequest.compileConfig: object expected");
|
|
16478
15144
|
message.compileConfig = $root.dataform.CompileConfig.fromObject(object.compileConfig);
|
|
16479
15145
|
}
|
|
16480
15146
|
return message;
|
|
16481
15147
|
};
|
|
16482
15148
|
|
|
16483
15149
|
/**
|
|
16484
|
-
* Creates a plain object from a
|
|
15150
|
+
* Creates a plain object from a CompileExecutionRequest message. Also converts values to other types if specified.
|
|
16485
15151
|
* @function toObject
|
|
16486
|
-
* @memberof dataform.
|
|
15152
|
+
* @memberof dataform.CompileExecutionRequest
|
|
16487
15153
|
* @static
|
|
16488
|
-
* @param {dataform.
|
|
15154
|
+
* @param {dataform.CompileExecutionRequest} message CompileExecutionRequest
|
|
16489
15155
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16490
15156
|
* @returns {Object.<string,*>} Plain object
|
|
16491
15157
|
*/
|
|
16492
|
-
|
|
15158
|
+
CompileExecutionRequest.toObject = function toObject(message, options) {
|
|
16493
15159
|
if (!options)
|
|
16494
15160
|
options = {};
|
|
16495
15161
|
let object = {};
|
|
@@ -16501,37 +15167,37 @@ const dataform = $root.dataform = (() => {
|
|
|
16501
15167
|
};
|
|
16502
15168
|
|
|
16503
15169
|
/**
|
|
16504
|
-
* Converts this
|
|
15170
|
+
* Converts this CompileExecutionRequest to JSON.
|
|
16505
15171
|
* @function toJSON
|
|
16506
|
-
* @memberof dataform.
|
|
15172
|
+
* @memberof dataform.CompileExecutionRequest
|
|
16507
15173
|
* @instance
|
|
16508
15174
|
* @returns {Object.<string,*>} JSON object
|
|
16509
15175
|
*/
|
|
16510
|
-
|
|
15176
|
+
CompileExecutionRequest.prototype.toJSON = function toJSON() {
|
|
16511
15177
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16512
15178
|
};
|
|
16513
15179
|
|
|
16514
|
-
return
|
|
15180
|
+
return CompileExecutionRequest;
|
|
16515
15181
|
})();
|
|
16516
15182
|
|
|
16517
|
-
dataform.
|
|
15183
|
+
dataform.CompileExecutionResponse = (function() {
|
|
16518
15184
|
|
|
16519
15185
|
/**
|
|
16520
|
-
* Properties of a
|
|
15186
|
+
* Properties of a CompileExecutionResponse.
|
|
16521
15187
|
* @memberof dataform
|
|
16522
|
-
* @interface
|
|
16523
|
-
* @property {dataform.ICompiledGraph|null} [compiledGraph]
|
|
15188
|
+
* @interface ICompileExecutionResponse
|
|
15189
|
+
* @property {dataform.ICompiledGraph|null} [compiledGraph] CompileExecutionResponse compiledGraph
|
|
16524
15190
|
*/
|
|
16525
15191
|
|
|
16526
15192
|
/**
|
|
16527
|
-
* Constructs a new
|
|
15193
|
+
* Constructs a new CompileExecutionResponse.
|
|
16528
15194
|
* @memberof dataform
|
|
16529
|
-
* @classdesc Represents a
|
|
16530
|
-
* @implements
|
|
15195
|
+
* @classdesc Represents a CompileExecutionResponse.
|
|
15196
|
+
* @implements ICompileExecutionResponse
|
|
16531
15197
|
* @constructor
|
|
16532
|
-
* @param {dataform.
|
|
15198
|
+
* @param {dataform.ICompileExecutionResponse=} [properties] Properties to set
|
|
16533
15199
|
*/
|
|
16534
|
-
function
|
|
15200
|
+
function CompileExecutionResponse(properties) {
|
|
16535
15201
|
if (properties)
|
|
16536
15202
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16537
15203
|
if (properties[keys[i]] != null)
|
|
@@ -16539,35 +15205,35 @@ const dataform = $root.dataform = (() => {
|
|
|
16539
15205
|
}
|
|
16540
15206
|
|
|
16541
15207
|
/**
|
|
16542
|
-
*
|
|
15208
|
+
* CompileExecutionResponse compiledGraph.
|
|
16543
15209
|
* @member {dataform.ICompiledGraph|null|undefined} compiledGraph
|
|
16544
|
-
* @memberof dataform.
|
|
15210
|
+
* @memberof dataform.CompileExecutionResponse
|
|
16545
15211
|
* @instance
|
|
16546
15212
|
*/
|
|
16547
|
-
|
|
15213
|
+
CompileExecutionResponse.prototype.compiledGraph = null;
|
|
16548
15214
|
|
|
16549
15215
|
/**
|
|
16550
|
-
* Creates a new
|
|
15216
|
+
* Creates a new CompileExecutionResponse instance using the specified properties.
|
|
16551
15217
|
* @function create
|
|
16552
|
-
* @memberof dataform.
|
|
15218
|
+
* @memberof dataform.CompileExecutionResponse
|
|
16553
15219
|
* @static
|
|
16554
|
-
* @param {dataform.
|
|
16555
|
-
* @returns {dataform.
|
|
15220
|
+
* @param {dataform.ICompileExecutionResponse=} [properties] Properties to set
|
|
15221
|
+
* @returns {dataform.CompileExecutionResponse} CompileExecutionResponse instance
|
|
16556
15222
|
*/
|
|
16557
|
-
|
|
16558
|
-
return new
|
|
15223
|
+
CompileExecutionResponse.create = function create(properties) {
|
|
15224
|
+
return new CompileExecutionResponse(properties);
|
|
16559
15225
|
};
|
|
16560
15226
|
|
|
16561
15227
|
/**
|
|
16562
|
-
* Encodes the specified
|
|
15228
|
+
* Encodes the specified CompileExecutionResponse message. Does not implicitly {@link dataform.CompileExecutionResponse.verify|verify} messages.
|
|
16563
15229
|
* @function encode
|
|
16564
|
-
* @memberof dataform.
|
|
15230
|
+
* @memberof dataform.CompileExecutionResponse
|
|
16565
15231
|
* @static
|
|
16566
|
-
* @param {dataform.
|
|
15232
|
+
* @param {dataform.ICompileExecutionResponse} message CompileExecutionResponse message or plain object to encode
|
|
16567
15233
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16568
15234
|
* @returns {$protobuf.Writer} Writer
|
|
16569
15235
|
*/
|
|
16570
|
-
|
|
15236
|
+
CompileExecutionResponse.encode = function encode(message, writer) {
|
|
16571
15237
|
if (!writer)
|
|
16572
15238
|
writer = $Writer.create();
|
|
16573
15239
|
if (message.compiledGraph != null && message.hasOwnProperty("compiledGraph"))
|
|
@@ -16576,33 +15242,33 @@ const dataform = $root.dataform = (() => {
|
|
|
16576
15242
|
};
|
|
16577
15243
|
|
|
16578
15244
|
/**
|
|
16579
|
-
* Encodes the specified
|
|
15245
|
+
* Encodes the specified CompileExecutionResponse message, length delimited. Does not implicitly {@link dataform.CompileExecutionResponse.verify|verify} messages.
|
|
16580
15246
|
* @function encodeDelimited
|
|
16581
|
-
* @memberof dataform.
|
|
15247
|
+
* @memberof dataform.CompileExecutionResponse
|
|
16582
15248
|
* @static
|
|
16583
|
-
* @param {dataform.
|
|
15249
|
+
* @param {dataform.ICompileExecutionResponse} message CompileExecutionResponse message or plain object to encode
|
|
16584
15250
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16585
15251
|
* @returns {$protobuf.Writer} Writer
|
|
16586
15252
|
*/
|
|
16587
|
-
|
|
15253
|
+
CompileExecutionResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16588
15254
|
return this.encode(message, writer).ldelim();
|
|
16589
15255
|
};
|
|
16590
15256
|
|
|
16591
15257
|
/**
|
|
16592
|
-
* Decodes a
|
|
15258
|
+
* Decodes a CompileExecutionResponse message from the specified reader or buffer.
|
|
16593
15259
|
* @function decode
|
|
16594
|
-
* @memberof dataform.
|
|
15260
|
+
* @memberof dataform.CompileExecutionResponse
|
|
16595
15261
|
* @static
|
|
16596
15262
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16597
15263
|
* @param {number} [length] Message length if known beforehand
|
|
16598
|
-
* @returns {dataform.
|
|
15264
|
+
* @returns {dataform.CompileExecutionResponse} CompileExecutionResponse
|
|
16599
15265
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16600
15266
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16601
15267
|
*/
|
|
16602
|
-
|
|
15268
|
+
CompileExecutionResponse.decode = function decode(reader, length) {
|
|
16603
15269
|
if (!(reader instanceof $Reader))
|
|
16604
15270
|
reader = $Reader.create(reader);
|
|
16605
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.
|
|
15271
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.CompileExecutionResponse();
|
|
16606
15272
|
while (reader.pos < end) {
|
|
16607
15273
|
let tag = reader.uint32();
|
|
16608
15274
|
switch (tag >>> 3) {
|
|
@@ -16618,30 +15284,30 @@ const dataform = $root.dataform = (() => {
|
|
|
16618
15284
|
};
|
|
16619
15285
|
|
|
16620
15286
|
/**
|
|
16621
|
-
* Decodes a
|
|
15287
|
+
* Decodes a CompileExecutionResponse message from the specified reader or buffer, length delimited.
|
|
16622
15288
|
* @function decodeDelimited
|
|
16623
|
-
* @memberof dataform.
|
|
15289
|
+
* @memberof dataform.CompileExecutionResponse
|
|
16624
15290
|
* @static
|
|
16625
15291
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16626
|
-
* @returns {dataform.
|
|
15292
|
+
* @returns {dataform.CompileExecutionResponse} CompileExecutionResponse
|
|
16627
15293
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16628
15294
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16629
15295
|
*/
|
|
16630
|
-
|
|
15296
|
+
CompileExecutionResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
16631
15297
|
if (!(reader instanceof $Reader))
|
|
16632
15298
|
reader = new $Reader(reader);
|
|
16633
15299
|
return this.decode(reader, reader.uint32());
|
|
16634
15300
|
};
|
|
16635
15301
|
|
|
16636
15302
|
/**
|
|
16637
|
-
* Verifies a
|
|
15303
|
+
* Verifies a CompileExecutionResponse message.
|
|
16638
15304
|
* @function verify
|
|
16639
|
-
* @memberof dataform.
|
|
15305
|
+
* @memberof dataform.CompileExecutionResponse
|
|
16640
15306
|
* @static
|
|
16641
15307
|
* @param {Object.<string,*>} message Plain object to verify
|
|
16642
15308
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
16643
15309
|
*/
|
|
16644
|
-
|
|
15310
|
+
CompileExecutionResponse.verify = function verify(message) {
|
|
16645
15311
|
if (typeof message !== "object" || message === null)
|
|
16646
15312
|
return "object expected";
|
|
16647
15313
|
if (message.compiledGraph != null && message.hasOwnProperty("compiledGraph")) {
|
|
@@ -16653,35 +15319,35 @@ const dataform = $root.dataform = (() => {
|
|
|
16653
15319
|
};
|
|
16654
15320
|
|
|
16655
15321
|
/**
|
|
16656
|
-
* Creates a
|
|
15322
|
+
* Creates a CompileExecutionResponse message from a plain object. Also converts values to their respective internal types.
|
|
16657
15323
|
* @function fromObject
|
|
16658
|
-
* @memberof dataform.
|
|
15324
|
+
* @memberof dataform.CompileExecutionResponse
|
|
16659
15325
|
* @static
|
|
16660
15326
|
* @param {Object.<string,*>} object Plain object
|
|
16661
|
-
* @returns {dataform.
|
|
15327
|
+
* @returns {dataform.CompileExecutionResponse} CompileExecutionResponse
|
|
16662
15328
|
*/
|
|
16663
|
-
|
|
16664
|
-
if (object instanceof $root.dataform.
|
|
15329
|
+
CompileExecutionResponse.fromObject = function fromObject(object) {
|
|
15330
|
+
if (object instanceof $root.dataform.CompileExecutionResponse)
|
|
16665
15331
|
return object;
|
|
16666
|
-
let message = new $root.dataform.
|
|
15332
|
+
let message = new $root.dataform.CompileExecutionResponse();
|
|
16667
15333
|
if (object.compiledGraph != null) {
|
|
16668
15334
|
if (typeof object.compiledGraph !== "object")
|
|
16669
|
-
throw TypeError(".dataform.
|
|
15335
|
+
throw TypeError(".dataform.CompileExecutionResponse.compiledGraph: object expected");
|
|
16670
15336
|
message.compiledGraph = $root.dataform.CompiledGraph.fromObject(object.compiledGraph);
|
|
16671
15337
|
}
|
|
16672
15338
|
return message;
|
|
16673
15339
|
};
|
|
16674
15340
|
|
|
16675
15341
|
/**
|
|
16676
|
-
* Creates a plain object from a
|
|
15342
|
+
* Creates a plain object from a CompileExecutionResponse message. Also converts values to other types if specified.
|
|
16677
15343
|
* @function toObject
|
|
16678
|
-
* @memberof dataform.
|
|
15344
|
+
* @memberof dataform.CompileExecutionResponse
|
|
16679
15345
|
* @static
|
|
16680
|
-
* @param {dataform.
|
|
15346
|
+
* @param {dataform.CompileExecutionResponse} message CompileExecutionResponse
|
|
16681
15347
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
16682
15348
|
* @returns {Object.<string,*>} Plain object
|
|
16683
15349
|
*/
|
|
16684
|
-
|
|
15350
|
+
CompileExecutionResponse.toObject = function toObject(message, options) {
|
|
16685
15351
|
if (!options)
|
|
16686
15352
|
options = {};
|
|
16687
15353
|
let object = {};
|
|
@@ -16693,17 +15359,17 @@ const dataform = $root.dataform = (() => {
|
|
|
16693
15359
|
};
|
|
16694
15360
|
|
|
16695
15361
|
/**
|
|
16696
|
-
* Converts this
|
|
15362
|
+
* Converts this CompileExecutionResponse to JSON.
|
|
16697
15363
|
* @function toJSON
|
|
16698
|
-
* @memberof dataform.
|
|
15364
|
+
* @memberof dataform.CompileExecutionResponse
|
|
16699
15365
|
* @instance
|
|
16700
15366
|
* @returns {Object.<string,*>} JSON object
|
|
16701
15367
|
*/
|
|
16702
|
-
|
|
15368
|
+
CompileExecutionResponse.prototype.toJSON = function toJSON() {
|
|
16703
15369
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
16704
15370
|
};
|
|
16705
15371
|
|
|
16706
|
-
return
|
|
15372
|
+
return CompileExecutionResponse;
|
|
16707
15373
|
})();
|
|
16708
15374
|
|
|
16709
15375
|
dataform.JDBC = (function() {
|
|
@@ -21371,11 +20037,7 @@ class BigQueryAdapter extends Adapter {
|
|
|
21371
20037
|
}
|
|
21372
20038
|
assertTasks(assertion, projectConfig) {
|
|
21373
20039
|
const tasks = Tasks.create();
|
|
21374
|
-
const target = assertion.target
|
|
21375
|
-
dataform.Target.create({
|
|
21376
|
-
schema: projectConfig.assertionSchema,
|
|
21377
|
-
name: assertion.name
|
|
21378
|
-
});
|
|
20040
|
+
const target = assertion.target;
|
|
21379
20041
|
tasks.add(Task.statement(this.createOrReplaceView(target, assertion.query)));
|
|
21380
20042
|
tasks.add(Task.assertion(`select sum(1) as row_count from ${this.resolveTarget(target)}`));
|
|
21381
20043
|
return tasks;
|
|
@@ -21436,11 +20098,7 @@ class PrestoAdapter extends Adapter {
|
|
|
21436
20098
|
}
|
|
21437
20099
|
assertTasks(assertion, projectConfig) {
|
|
21438
20100
|
const tasks = Tasks.create();
|
|
21439
|
-
const target = assertion.target
|
|
21440
|
-
dataform.Target.create({
|
|
21441
|
-
schema: projectConfig.assertionSchema,
|
|
21442
|
-
name: assertion.name
|
|
21443
|
-
});
|
|
20101
|
+
const target = assertion.target;
|
|
21444
20102
|
tasks.add(Task.statement(this.createOrReplaceView(target, assertion.query)));
|
|
21445
20103
|
tasks.add(Task.assertion(`select sum(1) as row_count from ${this.resolveTarget(target)}`));
|
|
21446
20104
|
return tasks;
|
|
@@ -21496,11 +20154,7 @@ class RedshiftAdapter extends Adapter {
|
|
|
21496
20154
|
return tasks;
|
|
21497
20155
|
}
|
|
21498
20156
|
assertTasks(assertion, projectConfig) {
|
|
21499
|
-
const target = assertion.target
|
|
21500
|
-
dataform.Target.create({
|
|
21501
|
-
schema: projectConfig.assertionSchema,
|
|
21502
|
-
name: assertion.name
|
|
21503
|
-
});
|
|
20157
|
+
const target = assertion.target;
|
|
21504
20158
|
return Tasks.create()
|
|
21505
20159
|
.add(Task.statement(this.dropIfExists(target, dataform.TableMetadata.Type.VIEW)))
|
|
21506
20160
|
.add(Task.statement(this.createOrReplaceView(target, assertion.query, false)))
|
|
@@ -21608,11 +20262,7 @@ class SnowflakeAdapter extends Adapter {
|
|
|
21608
20262
|
}
|
|
21609
20263
|
assertTasks(assertion, projectConfig) {
|
|
21610
20264
|
const tasks = Tasks.create();
|
|
21611
|
-
const target = assertion.target
|
|
21612
|
-
dataform.Target.create({
|
|
21613
|
-
schema: projectConfig.assertionSchema,
|
|
21614
|
-
name: assertion.name
|
|
21615
|
-
});
|
|
20265
|
+
const target = assertion.target;
|
|
21616
20266
|
tasks.add(Task.statement(this.createOrReplaceView(target, assertion.query, false)));
|
|
21617
20267
|
tasks.add(Task.assertion(`select sum(1) as row_count from ${this.resolveTarget(target)}`));
|
|
21618
20268
|
return tasks;
|
|
@@ -21675,11 +20325,7 @@ class SQLDataWarehouseAdapter extends Adapter {
|
|
|
21675
20325
|
return tasks.concatenate();
|
|
21676
20326
|
}
|
|
21677
20327
|
assertTasks(assertion, projectConfig) {
|
|
21678
|
-
const target = assertion.target
|
|
21679
|
-
dataform.Target.create({
|
|
21680
|
-
schema: projectConfig.assertionSchema,
|
|
21681
|
-
name: assertion.name
|
|
21682
|
-
});
|
|
20328
|
+
const target = assertion.target;
|
|
21683
20329
|
return Tasks.create()
|
|
21684
20330
|
.add(Task.statement(this.dropIfExists(target, dataform.TableMetadata.Type.VIEW)))
|
|
21685
20331
|
.add(Task.statement(`
|
|
@@ -21975,14 +20621,6 @@ function target(adapter, config, name, schema, database) {
|
|
|
21975
20621
|
function setNameAndTarget(session, action, name, overrideSchema, overrideDatabase) {
|
|
21976
20622
|
action.target = target(session.adapter(), session.config, name, overrideSchema, overrideDatabase);
|
|
21977
20623
|
action.canonicalTarget = target(session.adapter(), session.canonicalConfig, name, overrideSchema, overrideDatabase);
|
|
21978
|
-
action.name = targetToName(action.target);
|
|
21979
|
-
}
|
|
21980
|
-
function targetToName(actionTarget) {
|
|
21981
|
-
const nameParts = [actionTarget.name, actionTarget.schema];
|
|
21982
|
-
if (!!actionTarget.database) {
|
|
21983
|
-
nameParts.push(actionTarget.database);
|
|
21984
|
-
}
|
|
21985
|
-
return nameParts.reverse().join(".");
|
|
21986
20624
|
}
|
|
21987
20625
|
function strictKeysOf() {
|
|
21988
20626
|
return (array) => array;
|
|
@@ -23440,9 +22078,6 @@ delete originalProjectConfig.gcloudProjectId;
|
|
|
23440
22078
|
|
|
23441
22079
|
let projectConfig = { ...originalProjectConfig };
|
|
23442
22080
|
|
|
23443
|
-
// For backwards compatibility, in case core version is ahead of api.
|
|
23444
|
-
projectConfig.schemaSuffix = "${config.compileConfig.schemaSuffixOverride}" || projectConfig.schemaSuffix;
|
|
23445
|
-
|
|
23446
22081
|
// Merge in general project config overrides.
|
|
23447
22082
|
projectConfig = { ...projectConfig, ...${projectOverridesJsonString}, vars: { ...projectConfig.vars, ...${projectOverridesJsonString}.vars } };
|
|
23448
22083
|
|
|
@@ -23557,6 +22192,90 @@ class StringifiedMap {
|
|
|
23557
22192
|
return this.map.values();
|
|
23558
22193
|
}
|
|
23559
22194
|
}
|
|
22195
|
+
class StringifiedSet {
|
|
22196
|
+
constructor(stringifier, values) {
|
|
22197
|
+
this.stringifier = stringifier;
|
|
22198
|
+
if (values) {
|
|
22199
|
+
this.set = new Set(values.map(value => stringifier.stringify(value)));
|
|
22200
|
+
}
|
|
22201
|
+
else {
|
|
22202
|
+
this.set = new Set();
|
|
22203
|
+
}
|
|
22204
|
+
}
|
|
22205
|
+
get size() {
|
|
22206
|
+
return this.set.size;
|
|
22207
|
+
}
|
|
22208
|
+
get [Symbol.toStringTag]() {
|
|
22209
|
+
return StringifiedSet.name;
|
|
22210
|
+
}
|
|
22211
|
+
add(value) {
|
|
22212
|
+
this.set.add(this.stringifier.stringify(value));
|
|
22213
|
+
return this;
|
|
22214
|
+
}
|
|
22215
|
+
clear() {
|
|
22216
|
+
return this.set.clear();
|
|
22217
|
+
}
|
|
22218
|
+
delete(value) {
|
|
22219
|
+
return this.set.delete(this.stringifier.stringify(value));
|
|
22220
|
+
}
|
|
22221
|
+
forEach(callbackfn, thisArg) {
|
|
22222
|
+
return this.set.forEach((value, value2, _) => callbackfn(this.stringifier.parse(value), this.stringifier.parse(value2), null), thisArg);
|
|
22223
|
+
}
|
|
22224
|
+
has(value) {
|
|
22225
|
+
return this.set.has(this.stringifier.stringify(value));
|
|
22226
|
+
}
|
|
22227
|
+
[Symbol.iterator]() {
|
|
22228
|
+
return this.keys();
|
|
22229
|
+
}
|
|
22230
|
+
entries() {
|
|
22231
|
+
const stringifier = this.stringifier;
|
|
22232
|
+
const innerIterator = this.set[Symbol.iterator]();
|
|
22233
|
+
return new (class Iter {
|
|
22234
|
+
[Symbol.iterator]() {
|
|
22235
|
+
return this;
|
|
22236
|
+
}
|
|
22237
|
+
next() {
|
|
22238
|
+
const next = innerIterator.next();
|
|
22239
|
+
return {
|
|
22240
|
+
value: !next.done ? [stringifier.parse(next.value[0]), next.value[1]] : undefined,
|
|
22241
|
+
done: next.done
|
|
22242
|
+
};
|
|
22243
|
+
}
|
|
22244
|
+
})();
|
|
22245
|
+
}
|
|
22246
|
+
keys() {
|
|
22247
|
+
const stringifier = this.stringifier;
|
|
22248
|
+
const innerIterator = this.set.keys();
|
|
22249
|
+
return new (class Iter {
|
|
22250
|
+
[Symbol.iterator]() {
|
|
22251
|
+
return this;
|
|
22252
|
+
}
|
|
22253
|
+
next() {
|
|
22254
|
+
const next = innerIterator.next();
|
|
22255
|
+
return {
|
|
22256
|
+
value: !next.done ? stringifier.parse(next.value) : undefined,
|
|
22257
|
+
done: next.done
|
|
22258
|
+
};
|
|
22259
|
+
}
|
|
22260
|
+
})();
|
|
22261
|
+
}
|
|
22262
|
+
values() {
|
|
22263
|
+
const stringifier = this.stringifier;
|
|
22264
|
+
const innerIterator = this.set.values();
|
|
22265
|
+
return new (class Iter {
|
|
22266
|
+
[Symbol.iterator]() {
|
|
22267
|
+
return this;
|
|
22268
|
+
}
|
|
22269
|
+
next() {
|
|
22270
|
+
const next = innerIterator.next();
|
|
22271
|
+
return {
|
|
22272
|
+
value: !next.done ? stringifier.parse(next.value) : undefined,
|
|
22273
|
+
done: next.done
|
|
22274
|
+
};
|
|
22275
|
+
}
|
|
22276
|
+
})();
|
|
22277
|
+
}
|
|
22278
|
+
}
|
|
23560
22279
|
|
|
23561
22280
|
const IDeclarationConfigProperties = strictKeysOf()([
|
|
23562
22281
|
"columns",
|
|
@@ -23599,11 +22318,20 @@ class Declaration {
|
|
|
23599
22318
|
}
|
|
23600
22319
|
}
|
|
23601
22320
|
|
|
22321
|
+
const targetStringifier = JSONObjectStringifier.create();
|
|
22322
|
+
function targetAsReadableString(target) {
|
|
22323
|
+
const nameParts = [target.name, target.schema];
|
|
22324
|
+
if (!!target.database) {
|
|
22325
|
+
nameParts.push(target.database);
|
|
22326
|
+
}
|
|
22327
|
+
return nameParts.reverse().join(".");
|
|
22328
|
+
}
|
|
22329
|
+
|
|
23602
22330
|
const ITestConfigProperties = strictKeysOf()(["type", "dataset", "name"]);
|
|
23603
22331
|
class Test {
|
|
23604
22332
|
constructor() {
|
|
23605
22333
|
this.proto = dataform.Test.create();
|
|
23606
|
-
this.contextableInputs = new StringifiedMap(
|
|
22334
|
+
this.contextableInputs = new StringifiedMap(targetStringifier);
|
|
23607
22335
|
}
|
|
23608
22336
|
config(config) {
|
|
23609
22337
|
checkExcessProperties((e) => this.session.compileError(e), config, ITestConfigProperties, "test config");
|
|
@@ -23730,7 +22458,7 @@ class RefReplacingContext {
|
|
|
23730
22458
|
}
|
|
23731
22459
|
}
|
|
23732
22460
|
|
|
23733
|
-
const version = "1.20.
|
|
22461
|
+
const version = "1.20.1";
|
|
23734
22462
|
|
|
23735
22463
|
const SQL_DATA_WAREHOUSE_DIST_HASH_REGEXP = new RegExp("HASH\\s*\\(\\s*\\w*\\s*\\)\\s*");
|
|
23736
22464
|
const DEFAULT_CONFIG = {
|
|
@@ -23919,11 +22647,12 @@ class Session {
|
|
|
23919
22647
|
this.tests[name] = newTest;
|
|
23920
22648
|
return newTest;
|
|
23921
22649
|
}
|
|
23922
|
-
compileError(err, path,
|
|
22650
|
+
compileError(err, path, actionTarget) {
|
|
23923
22651
|
const fileName = path || getCallerFile(this.rootDir) || __filename;
|
|
23924
22652
|
const compileError = dataform.CompilationError.create({
|
|
23925
22653
|
fileName,
|
|
23926
|
-
actionName
|
|
22654
|
+
actionName: !!actionTarget ? targetAsReadableString(actionTarget) : undefined,
|
|
22655
|
+
actionTarget
|
|
23927
22656
|
});
|
|
23928
22657
|
if (typeof err === "string") {
|
|
23929
22658
|
compileError.message = err;
|
|
@@ -23995,7 +22724,7 @@ class Session {
|
|
|
23995
22724
|
compiledChunks.push(compiledChunk);
|
|
23996
22725
|
}
|
|
23997
22726
|
catch (e) {
|
|
23998
|
-
this.compileError(e, action.proto.fileName, action.proto.
|
|
22727
|
+
this.compileError(e, action.proto.fileName, action.proto.target);
|
|
23999
22728
|
}
|
|
24000
22729
|
});
|
|
24001
22730
|
return compiledChunks;
|
|
@@ -24006,7 +22735,7 @@ class Session {
|
|
|
24006
22735
|
for (const dependency of action.dependencyTargets) {
|
|
24007
22736
|
const possibleDeps = this.findActions(dependency);
|
|
24008
22737
|
if (possibleDeps.length === 0) {
|
|
24009
|
-
this.compileError(new Error(`Missing dependency detected: Action "${action.
|
|
22738
|
+
this.compileError(new Error(`Missing dependency detected: Action "${targetAsReadableString(action.target)}" depends on "${stringifyResolvable(dependency)}" which does not exist`), action.fileName, action.target);
|
|
24010
22739
|
}
|
|
24011
22740
|
else if (possibleDeps.length === 1) {
|
|
24012
22741
|
const protoDep = possibleDeps[0].proto;
|
|
@@ -24014,14 +22743,13 @@ class Session {
|
|
|
24014
22743
|
protoDep.dependencyTargets.forEach(inlineDep => action.dependencyTargets.push(inlineDep));
|
|
24015
22744
|
}
|
|
24016
22745
|
else {
|
|
24017
|
-
fullyQualifiedDependencies[protoDep.
|
|
22746
|
+
fullyQualifiedDependencies[targetAsReadableString(protoDep.target)] = protoDep.target;
|
|
24018
22747
|
}
|
|
24019
22748
|
}
|
|
24020
22749
|
else {
|
|
24021
|
-
this.compileError(new Error(ambiguousActionNameMsg(dependency, possibleDeps)), action.fileName, action.
|
|
22750
|
+
this.compileError(new Error(ambiguousActionNameMsg(dependency, possibleDeps)), action.fileName, action.target);
|
|
24022
22751
|
}
|
|
24023
22752
|
}
|
|
24024
|
-
action.dependencies = Object.keys(fullyQualifiedDependencies);
|
|
24025
22753
|
action.dependencyTargets = Object.values(fullyQualifiedDependencies);
|
|
24026
22754
|
});
|
|
24027
22755
|
}
|
|
@@ -24030,13 +22758,12 @@ class Session {
|
|
|
24030
22758
|
if (!tablePrefix && !schemaSuffix && !databaseSuffix) {
|
|
24031
22759
|
return;
|
|
24032
22760
|
}
|
|
24033
|
-
const newTargetByOriginalTarget = new StringifiedMap(
|
|
22761
|
+
const newTargetByOriginalTarget = new StringifiedMap(targetStringifier);
|
|
24034
22762
|
declarationTargets.forEach(declarationTarget => newTargetByOriginalTarget.set(declarationTarget, declarationTarget));
|
|
24035
22763
|
actions.forEach(action => {
|
|
24036
22764
|
newTargetByOriginalTarget.set(action.target, Object.assign(Object.assign({}, action.target), { database: action.target.database &&
|
|
24037
22765
|
this.adapter().normalizeIdentifier(`${action.target.database}${this.getDatabaseSuffixWithUnderscore()}`), schema: this.adapter().normalizeIdentifier(`${action.target.schema}${this.getSchemaSuffixWithUnderscore()}`), name: this.adapter().normalizeIdentifier(`${this.getTablePrefixWithUnderscore()}${action.target.name}`) }));
|
|
24038
22766
|
action.target = newTargetByOriginalTarget.get(action.target);
|
|
24039
|
-
action.name = targetToName(action.target);
|
|
24040
22767
|
});
|
|
24041
22768
|
const getUpdatedTarget = (originalTarget) => {
|
|
24042
22769
|
if (!newTargetByOriginalTarget.has(originalTarget)) {
|
|
@@ -24046,7 +22773,6 @@ class Session {
|
|
|
24046
22773
|
};
|
|
24047
22774
|
actions.forEach(action => {
|
|
24048
22775
|
action.dependencyTargets = (action.dependencyTargets || []).map(getUpdatedTarget);
|
|
24049
|
-
action.dependencies = (action.dependencyTargets || []).map(dependencyTarget => targetToName(dependencyTarget));
|
|
24050
22776
|
if (!!action.parentAction) {
|
|
24051
22777
|
action.parentAction = getUpdatedTarget(action.parentAction);
|
|
24052
22778
|
}
|
|
@@ -24055,50 +22781,51 @@ class Session {
|
|
|
24055
22781
|
checkActionNameUniqueness(actions) {
|
|
24056
22782
|
const allNames = [];
|
|
24057
22783
|
actions.forEach(action => {
|
|
24058
|
-
|
|
24059
|
-
|
|
22784
|
+
const name = targetAsReadableString(action.target);
|
|
22785
|
+
if (allNames.includes(name)) {
|
|
22786
|
+
this.compileError(new Error(`Duplicate action name detected. Names within a schema must be unique across tables, declarations, assertions, and operations`), action.fileName, action.target);
|
|
24060
22787
|
}
|
|
24061
|
-
allNames.push(
|
|
22788
|
+
allNames.push(name);
|
|
24062
22789
|
});
|
|
24063
22790
|
}
|
|
24064
22791
|
checkCanonicalTargetUniqueness(actions) {
|
|
24065
|
-
const allCanonicalTargets = new
|
|
22792
|
+
const allCanonicalTargets = new StringifiedSet(targetStringifier);
|
|
24066
22793
|
actions.forEach(action => {
|
|
24067
22794
|
if (allCanonicalTargets.has(action.canonicalTarget)) {
|
|
24068
|
-
this.compileError(new Error(`Duplicate canonical target detected. Canonical targets must be unique across tables, declarations, assertions, and operations:\n"${JSON.stringify(action.canonicalTarget)}"`), action.fileName, action.
|
|
22795
|
+
this.compileError(new Error(`Duplicate canonical target detected. Canonical targets must be unique across tables, declarations, assertions, and operations:\n"${JSON.stringify(action.canonicalTarget)}"`), action.fileName, action.target);
|
|
24069
22796
|
}
|
|
24070
|
-
allCanonicalTargets.
|
|
22797
|
+
allCanonicalTargets.add(action.canonicalTarget);
|
|
24071
22798
|
});
|
|
24072
22799
|
}
|
|
24073
22800
|
checkTableConfigValidity(tables) {
|
|
24074
22801
|
tables.forEach(table => {
|
|
24075
22802
|
var _a, _b;
|
|
24076
22803
|
if (!!table.type && !TableType.includes(table.type)) {
|
|
24077
|
-
this.compileError(`Wrong type of table detected. Should only use predefined types: ${joinQuoted(TableType)}`, table.fileName, table.
|
|
22804
|
+
this.compileError(`Wrong type of table detected. Should only use predefined types: ${joinQuoted(TableType)}`, table.fileName, table.target);
|
|
24078
22805
|
}
|
|
24079
22806
|
if (!!table.snowflake) {
|
|
24080
22807
|
if (table.snowflake.secure && table.type !== "view") {
|
|
24081
|
-
this.compileError(new Error(`The 'secure' option is only valid for Snowflake views`), table.fileName, table.
|
|
22808
|
+
this.compileError(new Error(`The 'secure' option is only valid for Snowflake views`), table.fileName, table.target);
|
|
24082
22809
|
}
|
|
24083
22810
|
if (table.snowflake.transient && table.type !== "table") {
|
|
24084
|
-
this.compileError(new Error(`The 'transient' option is only valid for Snowflake tables`), table.fileName, table.
|
|
22811
|
+
this.compileError(new Error(`The 'transient' option is only valid for Snowflake tables`), table.fileName, table.target);
|
|
24085
22812
|
}
|
|
24086
22813
|
if (((_a = table.snowflake.clusterBy) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
24087
22814
|
table.type !== "table" &&
|
|
24088
22815
|
table.type !== "incremental") {
|
|
24089
|
-
this.compileError(new Error(`The 'clusterBy' option is only valid for Snowflake tables`), table.fileName, table.
|
|
22816
|
+
this.compileError(new Error(`The 'clusterBy' option is only valid for Snowflake tables`), table.fileName, table.target);
|
|
24090
22817
|
}
|
|
24091
22818
|
}
|
|
24092
22819
|
if (!!table.sqlDataWarehouse) {
|
|
24093
22820
|
if (!!table.uniqueKey && table.uniqueKey.length > 0) {
|
|
24094
|
-
this.compileError(new Error(`Merging using unique keys for SQLDataWarehouse has not yet been implemented`), table.fileName, table.
|
|
22821
|
+
this.compileError(new Error(`Merging using unique keys for SQLDataWarehouse has not yet been implemented`), table.fileName, table.target);
|
|
24095
22822
|
}
|
|
24096
22823
|
if (table.sqlDataWarehouse.distribution) {
|
|
24097
22824
|
const distribution = table.sqlDataWarehouse.distribution.toUpperCase();
|
|
24098
22825
|
if (distribution !== "REPLICATE" &&
|
|
24099
22826
|
distribution !== "ROUND_ROBIN" &&
|
|
24100
22827
|
!SQL_DATA_WAREHOUSE_DIST_HASH_REGEXP.test(distribution)) {
|
|
24101
|
-
this.compileError(new Error(`Invalid value for sqldatawarehouse distribution: ${distribution}`), table.fileName, table.
|
|
22828
|
+
this.compileError(new Error(`Invalid value for sqldatawarehouse distribution: ${distribution}`), table.fileName, table.target);
|
|
24102
22829
|
}
|
|
24103
22830
|
}
|
|
24104
22831
|
}
|
|
@@ -24106,18 +22833,18 @@ class Session {
|
|
|
24106
22833
|
const validatePropertyDefined = (opts, prop) => {
|
|
24107
22834
|
const value = opts[prop];
|
|
24108
22835
|
if (!opts.hasOwnProperty(prop)) {
|
|
24109
|
-
this.compileError(`Property "${prop}" is not defined`, table.fileName, table.
|
|
22836
|
+
this.compileError(`Property "${prop}" is not defined`, table.fileName, table.target);
|
|
24110
22837
|
}
|
|
24111
22838
|
else if (value instanceof Array) {
|
|
24112
22839
|
if (value.length === 0) {
|
|
24113
|
-
this.compileError(`Property "${prop}" is not defined`, table.fileName, table.
|
|
22840
|
+
this.compileError(`Property "${prop}" is not defined`, table.fileName, table.target);
|
|
24114
22841
|
}
|
|
24115
22842
|
}
|
|
24116
22843
|
};
|
|
24117
22844
|
const validatePropertiesDefined = (opts, props) => props.forEach(prop => validatePropertyDefined(opts, prop));
|
|
24118
22845
|
const validatePropertyValueInValues = (opts, prop, values) => {
|
|
24119
22846
|
if (!!opts[prop] && !values.includes(opts[prop])) {
|
|
24120
|
-
this.compileError(`Wrong value of "${prop}" property. Should only use predefined values: ${joinQuoted(values)}`, table.fileName, table.
|
|
22847
|
+
this.compileError(`Wrong value of "${prop}" property. Should only use predefined values: ${joinQuoted(values)}`, table.fileName, table.target);
|
|
24121
22848
|
}
|
|
24122
22849
|
};
|
|
24123
22850
|
if (table.redshift.distStyle || table.redshift.distKey) {
|
|
@@ -24133,13 +22860,13 @@ class Session {
|
|
|
24133
22860
|
if (!!table.bigquery) {
|
|
24134
22861
|
if ((table.bigquery.partitionBy || ((_b = table.bigquery.clusterBy) === null || _b === void 0 ? void 0 : _b.length)) &&
|
|
24135
22862
|
table.type === "view") {
|
|
24136
|
-
this.compileError(`partitionBy/clusterBy are not valid for BigQuery views; they are only valid for tables`, table.fileName, table.
|
|
22863
|
+
this.compileError(`partitionBy/clusterBy are not valid for BigQuery views; they are only valid for tables`, table.fileName, table.target);
|
|
24137
22864
|
}
|
|
24138
22865
|
}
|
|
24139
22866
|
if (!!Table.IGNORED_PROPS[table.type]) {
|
|
24140
22867
|
Table.IGNORED_PROPS[table.type].forEach(ignoredProp => {
|
|
24141
22868
|
if (objectExistsOrIsNonEmpty(table[ignoredProp])) {
|
|
24142
|
-
this.compileError(`Unused property was detected: "${ignoredProp}". This property is not used for tables with type "${table.type}" and will be ignored`, table.fileName, table.
|
|
22869
|
+
this.compileError(`Unused property was detected: "${ignoredProp}". This property is not used for tables with type "${table.type}" and will be ignored`, table.fileName, table.target);
|
|
24143
22870
|
}
|
|
24144
22871
|
});
|
|
24145
22872
|
}
|
|
@@ -24149,48 +22876,43 @@ class Session {
|
|
|
24149
22876
|
const allNames = [];
|
|
24150
22877
|
tests.forEach(testProto => {
|
|
24151
22878
|
if (allNames.includes(testProto.name)) {
|
|
24152
|
-
this.compileError(new Error(`Duplicate test name detected: "${testProto.name}"`), testProto.fileName
|
|
22879
|
+
this.compileError(new Error(`Duplicate test name detected: "${testProto.name}"`), testProto.fileName);
|
|
24153
22880
|
}
|
|
24154
22881
|
allNames.push(testProto.name);
|
|
24155
22882
|
});
|
|
24156
22883
|
}
|
|
24157
22884
|
checkCircularity(actions) {
|
|
24158
|
-
const
|
|
22885
|
+
const allActionsByStringifiedTarget = new Map(actions.map(action => [targetStringifier.stringify(action.target), action]));
|
|
24159
22886
|
const tarjanGraph = new TarjanGraphConstructor();
|
|
24160
22887
|
actions.forEach(action => {
|
|
24161
|
-
const cleanedDependencies = (action.
|
|
24162
|
-
tarjanGraph.add(action.
|
|
22888
|
+
const cleanedDependencies = (action.dependencyTargets || []).filter(dependency => !!allActionsByStringifiedTarget.get(targetStringifier.stringify(dependency)));
|
|
22889
|
+
tarjanGraph.add(targetStringifier.stringify(action.target), cleanedDependencies.map(target => targetStringifier.stringify(target)));
|
|
24163
22890
|
});
|
|
24164
22891
|
const cycles = tarjanGraph.getCycles();
|
|
24165
22892
|
cycles.forEach(cycle => {
|
|
24166
|
-
const firstActionInCycle =
|
|
22893
|
+
const firstActionInCycle = allActionsByStringifiedTarget.get(cycle[0].name);
|
|
24167
22894
|
const message = `Circular dependency detected in chain: [${cycle
|
|
24168
22895
|
.map(vertex => vertex.name)
|
|
24169
|
-
.join(" > ")} > ${firstActionInCycle.
|
|
24170
|
-
this.compileError(new Error(message), firstActionInCycle.fileName);
|
|
22896
|
+
.join(" > ")} > ${targetAsReadableString(firstActionInCycle.target)}]`;
|
|
22897
|
+
this.compileError(new Error(message), firstActionInCycle.fileName, firstActionInCycle.target);
|
|
24171
22898
|
});
|
|
24172
22899
|
}
|
|
24173
22900
|
checkRunCachingCorrectness(actionsWithOutput) {
|
|
24174
22901
|
actionsWithOutput.forEach(action => {
|
|
24175
22902
|
var _a;
|
|
24176
|
-
if (((_a = action.
|
|
22903
|
+
if (((_a = action.dependencyTargets) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
24177
22904
|
return;
|
|
24178
22905
|
}
|
|
24179
22906
|
if ([dataform.ActionHermeticity.HERMETIC, dataform.ActionHermeticity.NON_HERMETIC].includes(action.hermeticity)) {
|
|
24180
22907
|
return;
|
|
24181
22908
|
}
|
|
24182
|
-
this.compileError(new Error("Zero-dependency actions which create datasets are required to explicitly declare 'hermetic: (true|false)' when run caching is turned on."), action.fileName, action.
|
|
22909
|
+
this.compileError(new Error("Zero-dependency actions which create datasets are required to explicitly declare 'hermetic: (true|false)' when run caching is turned on."), action.fileName, action.target);
|
|
24183
22910
|
});
|
|
24184
22911
|
}
|
|
24185
22912
|
}
|
|
24186
22913
|
function definesDataset(type) {
|
|
24187
22914
|
return type === "view" || type === "table" || type === "inline" || type === "incremental";
|
|
24188
22915
|
}
|
|
24189
|
-
function keyByName(actions) {
|
|
24190
|
-
const actionsByName = {};
|
|
24191
|
-
actions.forEach(action => (actionsByName[action.name] = action));
|
|
24192
|
-
return actionsByName;
|
|
24193
|
-
}
|
|
24194
22916
|
function getCanonicalProjectConfig(originalProjectConfig) {
|
|
24195
22917
|
return {
|
|
24196
22918
|
warehouse: originalProjectConfig.warehouse,
|
|
@@ -24211,24 +22933,23 @@ function objectExistsOrIsNonEmpty(prop) {
|
|
|
24211
22933
|
typeof prop !== "object");
|
|
24212
22934
|
}
|
|
24213
22935
|
|
|
24214
|
-
function main(
|
|
22936
|
+
function main(encodedCoreExecutionRequest) {
|
|
24215
22937
|
var _a;
|
|
24216
22938
|
const globalAny = global;
|
|
24217
|
-
const
|
|
22939
|
+
const request = decode64(dataform.CoreExecutionRequest, encodedCoreExecutionRequest);
|
|
22940
|
+
const compileRequest = request.compile;
|
|
24218
22941
|
const originalProjectConfig = require("dataform.json");
|
|
24219
|
-
const projectConfigOverride = (_a =
|
|
22942
|
+
const projectConfigOverride = (_a = compileRequest.compileConfig.projectConfigOverride) !== null && _a !== void 0 ? _a : {};
|
|
24220
22943
|
if (!originalProjectConfig.defaultDatabase) {
|
|
24221
22944
|
originalProjectConfig.defaultDatabase = originalProjectConfig.gcloudProjectId;
|
|
24222
22945
|
}
|
|
24223
22946
|
delete originalProjectConfig.gcloudProjectId;
|
|
24224
22947
|
let projectConfig = Object.assign({}, originalProjectConfig);
|
|
24225
|
-
projectConfig.schemaSuffix =
|
|
24226
|
-
config.compileConfig.schemaSuffixOverride || projectConfig.schemaSuffix;
|
|
24227
22948
|
projectConfig = Object.assign(Object.assign(Object.assign({}, projectConfig), projectConfigOverride), { vars: Object.assign(Object.assign({}, projectConfig.vars), projectConfigOverride.vars) });
|
|
24228
22949
|
const session = require("@dataform/core").session;
|
|
24229
|
-
session.init(
|
|
22950
|
+
session.init(compileRequest.compileConfig.projectDir, projectConfig, originalProjectConfig);
|
|
24230
22951
|
globalAny.dataform = session;
|
|
24231
|
-
|
|
22952
|
+
compileRequest.compileConfig.filePaths
|
|
24232
22953
|
.filter(path => path.startsWith("includes/"))
|
|
24233
22954
|
.filter(path => path.endsWith(".js"))
|
|
24234
22955
|
.forEach(includePath => {
|
|
@@ -24244,7 +22965,7 @@ function main(encodedCoreExecutionConfig) {
|
|
|
24244
22965
|
globalAny.assert = session.assert.bind(session);
|
|
24245
22966
|
globalAny.declare = session.declare.bind(session);
|
|
24246
22967
|
globalAny.test = session.test.bind(session);
|
|
24247
|
-
|
|
22968
|
+
compileRequest.compileConfig.filePaths
|
|
24248
22969
|
.filter(path => path.startsWith("definitions/"))
|
|
24249
22970
|
.filter(path => path.endsWith(".js") || path.endsWith(".sqlx"))
|
|
24250
22971
|
.forEach(definitionPath => {
|
|
@@ -24255,7 +22976,7 @@ function main(encodedCoreExecutionConfig) {
|
|
|
24255
22976
|
session.compileError(e, definitionPath);
|
|
24256
22977
|
}
|
|
24257
22978
|
});
|
|
24258
|
-
return encode64(dataform.
|
|
22979
|
+
return encode64(dataform.CoreExecutionResponse, dataform.CoreExecutionResponse.create({ compile: { compiledGraph: session.compile() } }));
|
|
24259
22980
|
}
|
|
24260
22981
|
|
|
24261
22982
|
const indexFileGenerator = genIndex;
|