@dataform/core 1.20.1 → 1.20.2
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 +620 -199
- package/bundle.js +2068 -789
- package/package.json +2 -16
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 {string|null} [gcloudProjectId] ProjectConfig gcloudProjectId
|
|
61
60
|
* @property {boolean|null} [useRunCache] ProjectConfig useRunCache
|
|
61
|
+
* @property {string|null} [gcloudProjectId] ProjectConfig gcloudProjectId
|
|
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 useRunCache.
|
|
162
|
+
* @member {boolean} useRunCache
|
|
163
163
|
* @memberof dataform.ProjectConfig
|
|
164
164
|
* @instance
|
|
165
165
|
*/
|
|
166
|
-
ProjectConfig.prototype.
|
|
166
|
+
ProjectConfig.prototype.useRunCache = false;
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* ProjectConfig
|
|
170
|
-
* @member {
|
|
169
|
+
* ProjectConfig gcloudProjectId.
|
|
170
|
+
* @member {string} gcloudProjectId
|
|
171
171
|
* @memberof dataform.ProjectConfig
|
|
172
172
|
* @instance
|
|
173
173
|
*/
|
|
174
|
-
ProjectConfig.prototype.
|
|
174
|
+
ProjectConfig.prototype.gcloudProjectId = "";
|
|
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 6:
|
|
295
|
-
message.gcloudProjectId = reader.string();
|
|
296
|
-
break;
|
|
297
294
|
case 10:
|
|
298
295
|
message.useRunCache = reader.bool();
|
|
299
296
|
break;
|
|
297
|
+
case 6:
|
|
298
|
+
message.gcloudProjectId = reader.string();
|
|
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.gcloudProjectId != null && message.hasOwnProperty("gcloudProjectId"))
|
|
371
|
-
if (!$util.isString(message.gcloudProjectId))
|
|
372
|
-
return "gcloudProjectId: string expected";
|
|
373
370
|
if (message.useRunCache != null && message.hasOwnProperty("useRunCache"))
|
|
374
371
|
if (typeof message.useRunCache !== "boolean")
|
|
375
372
|
return "useRunCache: boolean expected";
|
|
373
|
+
if (message.gcloudProjectId != null && message.hasOwnProperty("gcloudProjectId"))
|
|
374
|
+
if (!$util.isString(message.gcloudProjectId))
|
|
375
|
+
return "gcloudProjectId: string 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.gcloudProjectId != null)
|
|
417
|
-
message.gcloudProjectId = String(object.gcloudProjectId);
|
|
418
416
|
if (object.useRunCache != null)
|
|
419
417
|
message.useRunCache = Boolean(object.useRunCache);
|
|
418
|
+
if (object.gcloudProjectId != null)
|
|
419
|
+
message.gcloudProjectId = String(object.gcloudProjectId);
|
|
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} [disableSetMetadata] RunConfig disableSetMetadata
|
|
2830
2829
|
* @property {boolean|null} [useRunCache] RunConfig useRunCache
|
|
2830
|
+
* @property {boolean|null} [disableSetMetadata] RunConfig disableSetMetadata
|
|
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 useRunCache.
|
|
2900
|
+
* @member {boolean} useRunCache
|
|
2901
2901
|
* @memberof dataform.RunConfig
|
|
2902
2902
|
* @instance
|
|
2903
2903
|
*/
|
|
2904
|
-
RunConfig.prototype.
|
|
2904
|
+
RunConfig.prototype.useRunCache = false;
|
|
2905
2905
|
|
|
2906
2906
|
/**
|
|
2907
|
-
* RunConfig
|
|
2908
|
-
* @member {boolean}
|
|
2907
|
+
* RunConfig disableSetMetadata.
|
|
2908
|
+
* @member {boolean} disableSetMetadata
|
|
2909
2909
|
* @memberof dataform.RunConfig
|
|
2910
2910
|
* @instance
|
|
2911
2911
|
*/
|
|
2912
|
-
RunConfig.prototype.
|
|
2912
|
+
RunConfig.prototype.disableSetMetadata = 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 9:
|
|
3013
|
-
message.disableSetMetadata = reader.bool();
|
|
3014
|
-
break;
|
|
3015
3012
|
case 8:
|
|
3016
3013
|
message.useRunCache = reader.bool();
|
|
3017
3014
|
break;
|
|
3015
|
+
case 9:
|
|
3016
|
+
message.disableSetMetadata = 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.disableSetMetadata != null && message.hasOwnProperty("disableSetMetadata"))
|
|
3080
|
-
if (typeof message.disableSetMetadata !== "boolean")
|
|
3081
|
-
return "disableSetMetadata: boolean expected";
|
|
3082
3079
|
if (message.useRunCache != null && message.hasOwnProperty("useRunCache"))
|
|
3083
3080
|
if (typeof message.useRunCache !== "boolean")
|
|
3084
3081
|
return "useRunCache: boolean expected";
|
|
3082
|
+
if (message.disableSetMetadata != null && message.hasOwnProperty("disableSetMetadata"))
|
|
3083
|
+
if (typeof message.disableSetMetadata !== "boolean")
|
|
3084
|
+
return "disableSetMetadata: 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.disableSetMetadata != null)
|
|
3123
|
-
message.disableSetMetadata = Boolean(object.disableSetMetadata);
|
|
3124
3122
|
if (object.useRunCache != null)
|
|
3125
3123
|
message.useRunCache = Boolean(object.useRunCache);
|
|
3124
|
+
if (object.disableSetMetadata != null)
|
|
3125
|
+
message.disableSetMetadata = Boolean(object.disableSetMetadata);
|
|
3126
3126
|
return message;
|
|
3127
3127
|
};
|
|
3128
3128
|
|
|
@@ -3199,6 +3199,7 @@ 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
|
|
3202
3203
|
*/
|
|
3203
3204
|
|
|
3204
3205
|
/**
|
|
@@ -3242,6 +3243,14 @@ const dataform = $root.dataform = (() => {
|
|
|
3242
3243
|
*/
|
|
3243
3244
|
GenerateIndexConfig.prototype.definitionPaths = $util.emptyArray;
|
|
3244
3245
|
|
|
3246
|
+
/**
|
|
3247
|
+
* GenerateIndexConfig returnOverride.
|
|
3248
|
+
* @member {string} returnOverride
|
|
3249
|
+
* @memberof dataform.GenerateIndexConfig
|
|
3250
|
+
* @instance
|
|
3251
|
+
*/
|
|
3252
|
+
GenerateIndexConfig.prototype.returnOverride = "";
|
|
3253
|
+
|
|
3245
3254
|
/**
|
|
3246
3255
|
* Creates a new GenerateIndexConfig instance using the specified properties.
|
|
3247
3256
|
* @function create
|
|
@@ -3274,6 +3283,8 @@ const dataform = $root.dataform = (() => {
|
|
|
3274
3283
|
if (message.definitionPaths != null && message.definitionPaths.length)
|
|
3275
3284
|
for (let i = 0; i < message.definitionPaths.length; ++i)
|
|
3276
3285
|
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);
|
|
3277
3288
|
return writer;
|
|
3278
3289
|
};
|
|
3279
3290
|
|
|
@@ -3321,6 +3332,9 @@ const dataform = $root.dataform = (() => {
|
|
|
3321
3332
|
message.definitionPaths = [];
|
|
3322
3333
|
message.definitionPaths.push(reader.string());
|
|
3323
3334
|
break;
|
|
3335
|
+
case 4:
|
|
3336
|
+
message.returnOverride = reader.string();
|
|
3337
|
+
break;
|
|
3324
3338
|
default:
|
|
3325
3339
|
reader.skipType(tag & 7);
|
|
3326
3340
|
break;
|
|
@@ -3375,6 +3389,9 @@ const dataform = $root.dataform = (() => {
|
|
|
3375
3389
|
if (!$util.isString(message.definitionPaths[i]))
|
|
3376
3390
|
return "definitionPaths: string[] expected";
|
|
3377
3391
|
}
|
|
3392
|
+
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3393
|
+
if (!$util.isString(message.returnOverride))
|
|
3394
|
+
return "returnOverride: string expected";
|
|
3378
3395
|
return null;
|
|
3379
3396
|
};
|
|
3380
3397
|
|
|
@@ -3409,6 +3426,8 @@ const dataform = $root.dataform = (() => {
|
|
|
3409
3426
|
for (let i = 0; i < object.definitionPaths.length; ++i)
|
|
3410
3427
|
message.definitionPaths[i] = String(object.definitionPaths[i]);
|
|
3411
3428
|
}
|
|
3429
|
+
if (object.returnOverride != null)
|
|
3430
|
+
message.returnOverride = String(object.returnOverride);
|
|
3412
3431
|
return message;
|
|
3413
3432
|
};
|
|
3414
3433
|
|
|
@@ -3429,8 +3448,10 @@ const dataform = $root.dataform = (() => {
|
|
|
3429
3448
|
object.includePaths = [];
|
|
3430
3449
|
object.definitionPaths = [];
|
|
3431
3450
|
}
|
|
3432
|
-
if (options.defaults)
|
|
3451
|
+
if (options.defaults) {
|
|
3433
3452
|
object.compileConfig = null;
|
|
3453
|
+
object.returnOverride = "";
|
|
3454
|
+
}
|
|
3434
3455
|
if (message.compileConfig != null && message.hasOwnProperty("compileConfig"))
|
|
3435
3456
|
object.compileConfig = $root.dataform.CompileConfig.toObject(message.compileConfig, options);
|
|
3436
3457
|
if (message.includePaths && message.includePaths.length) {
|
|
@@ -3443,6 +3464,8 @@ const dataform = $root.dataform = (() => {
|
|
|
3443
3464
|
for (let j = 0; j < message.definitionPaths.length; ++j)
|
|
3444
3465
|
object.definitionPaths[j] = message.definitionPaths[j];
|
|
3445
3466
|
}
|
|
3467
|
+
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3468
|
+
object.returnOverride = message.returnOverride;
|
|
3446
3469
|
return object;
|
|
3447
3470
|
};
|
|
3448
3471
|
|
|
@@ -3471,6 +3494,8 @@ const dataform = $root.dataform = (() => {
|
|
|
3471
3494
|
* @property {dataform.IProjectConfig|null} [projectConfigOverride] CompileConfig projectConfigOverride
|
|
3472
3495
|
* @property {number|null} [timeoutMillis] CompileConfig timeoutMillis
|
|
3473
3496
|
* @property {boolean|null} [useMain] CompileConfig useMain
|
|
3497
|
+
* @property {string|null} [schemaSuffixOverride] CompileConfig schemaSuffixOverride
|
|
3498
|
+
* @property {string|null} [returnOverride] CompileConfig returnOverride
|
|
3474
3499
|
*/
|
|
3475
3500
|
|
|
3476
3501
|
/**
|
|
@@ -3529,6 +3554,22 @@ const dataform = $root.dataform = (() => {
|
|
|
3529
3554
|
*/
|
|
3530
3555
|
CompileConfig.prototype.useMain = false;
|
|
3531
3556
|
|
|
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
|
+
|
|
3532
3573
|
/**
|
|
3533
3574
|
* Creates a new CompileConfig instance using the specified properties.
|
|
3534
3575
|
* @function create
|
|
@@ -3555,8 +3596,12 @@ const dataform = $root.dataform = (() => {
|
|
|
3555
3596
|
writer = $Writer.create();
|
|
3556
3597
|
if (message.projectDir != null && message.hasOwnProperty("projectDir"))
|
|
3557
3598
|
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);
|
|
3558
3601
|
if (message.projectConfigOverride != null && message.hasOwnProperty("projectConfigOverride"))
|
|
3559
3602
|
$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);
|
|
3560
3605
|
if (message.timeoutMillis != null && message.hasOwnProperty("timeoutMillis"))
|
|
3561
3606
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.timeoutMillis);
|
|
3562
3607
|
if (message.filePaths != null && message.filePaths.length)
|
|
@@ -3615,6 +3660,12 @@ const dataform = $root.dataform = (() => {
|
|
|
3615
3660
|
case 9:
|
|
3616
3661
|
message.useMain = reader.bool();
|
|
3617
3662
|
break;
|
|
3663
|
+
case 2:
|
|
3664
|
+
message.schemaSuffixOverride = reader.string();
|
|
3665
|
+
break;
|
|
3666
|
+
case 5:
|
|
3667
|
+
message.returnOverride = reader.string();
|
|
3668
|
+
break;
|
|
3618
3669
|
default:
|
|
3619
3670
|
reader.skipType(tag & 7);
|
|
3620
3671
|
break;
|
|
@@ -3671,6 +3722,12 @@ const dataform = $root.dataform = (() => {
|
|
|
3671
3722
|
if (message.useMain != null && message.hasOwnProperty("useMain"))
|
|
3672
3723
|
if (typeof message.useMain !== "boolean")
|
|
3673
3724
|
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";
|
|
3674
3731
|
return null;
|
|
3675
3732
|
};
|
|
3676
3733
|
|
|
@@ -3704,6 +3761,10 @@ const dataform = $root.dataform = (() => {
|
|
|
3704
3761
|
message.timeoutMillis = object.timeoutMillis | 0;
|
|
3705
3762
|
if (object.useMain != null)
|
|
3706
3763
|
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);
|
|
3707
3768
|
return message;
|
|
3708
3769
|
};
|
|
3709
3770
|
|
|
@@ -3724,14 +3785,20 @@ const dataform = $root.dataform = (() => {
|
|
|
3724
3785
|
object.filePaths = [];
|
|
3725
3786
|
if (options.defaults) {
|
|
3726
3787
|
object.projectDir = "";
|
|
3788
|
+
object.schemaSuffixOverride = "";
|
|
3727
3789
|
object.projectConfigOverride = null;
|
|
3790
|
+
object.returnOverride = "";
|
|
3728
3791
|
object.timeoutMillis = 0;
|
|
3729
3792
|
object.useMain = false;
|
|
3730
3793
|
}
|
|
3731
3794
|
if (message.projectDir != null && message.hasOwnProperty("projectDir"))
|
|
3732
3795
|
object.projectDir = message.projectDir;
|
|
3796
|
+
if (message.schemaSuffixOverride != null && message.hasOwnProperty("schemaSuffixOverride"))
|
|
3797
|
+
object.schemaSuffixOverride = message.schemaSuffixOverride;
|
|
3733
3798
|
if (message.projectConfigOverride != null && message.hasOwnProperty("projectConfigOverride"))
|
|
3734
3799
|
object.projectConfigOverride = $root.dataform.ProjectConfig.toObject(message.projectConfigOverride, options);
|
|
3800
|
+
if (message.returnOverride != null && message.hasOwnProperty("returnOverride"))
|
|
3801
|
+
object.returnOverride = message.returnOverride;
|
|
3735
3802
|
if (message.timeoutMillis != null && message.hasOwnProperty("timeoutMillis"))
|
|
3736
3803
|
object.timeoutMillis = message.timeoutMillis;
|
|
3737
3804
|
if (message.filePaths && message.filePaths.length) {
|
|
@@ -5222,6 +5289,7 @@ const dataform = $root.dataform = (() => {
|
|
|
5222
5289
|
* @memberof dataform
|
|
5223
5290
|
* @interface IGraphErrors
|
|
5224
5291
|
* @property {Array.<dataform.ICompilationError>|null} [compilationErrors] GraphErrors compilationErrors
|
|
5292
|
+
* @property {Array.<dataform.IValidationError>|null} [validationErrors] GraphErrors validationErrors
|
|
5225
5293
|
*/
|
|
5226
5294
|
|
|
5227
5295
|
/**
|
|
@@ -5234,6 +5302,7 @@ const dataform = $root.dataform = (() => {
|
|
|
5234
5302
|
*/
|
|
5235
5303
|
function GraphErrors(properties) {
|
|
5236
5304
|
this.compilationErrors = [];
|
|
5305
|
+
this.validationErrors = [];
|
|
5237
5306
|
if (properties)
|
|
5238
5307
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5239
5308
|
if (properties[keys[i]] != null)
|
|
@@ -5248,6 +5317,14 @@ const dataform = $root.dataform = (() => {
|
|
|
5248
5317
|
*/
|
|
5249
5318
|
GraphErrors.prototype.compilationErrors = $util.emptyArray;
|
|
5250
5319
|
|
|
5320
|
+
/**
|
|
5321
|
+
* GraphErrors validationErrors.
|
|
5322
|
+
* @member {Array.<dataform.IValidationError>} validationErrors
|
|
5323
|
+
* @memberof dataform.GraphErrors
|
|
5324
|
+
* @instance
|
|
5325
|
+
*/
|
|
5326
|
+
GraphErrors.prototype.validationErrors = $util.emptyArray;
|
|
5327
|
+
|
|
5251
5328
|
/**
|
|
5252
5329
|
* Creates a new GraphErrors instance using the specified properties.
|
|
5253
5330
|
* @function create
|
|
@@ -5275,6 +5352,9 @@ const dataform = $root.dataform = (() => {
|
|
|
5275
5352
|
if (message.compilationErrors != null && message.compilationErrors.length)
|
|
5276
5353
|
for (let i = 0; i < message.compilationErrors.length; ++i)
|
|
5277
5354
|
$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();
|
|
5278
5358
|
return writer;
|
|
5279
5359
|
};
|
|
5280
5360
|
|
|
@@ -5314,6 +5394,11 @@ const dataform = $root.dataform = (() => {
|
|
|
5314
5394
|
message.compilationErrors = [];
|
|
5315
5395
|
message.compilationErrors.push($root.dataform.CompilationError.decode(reader, reader.uint32()));
|
|
5316
5396
|
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;
|
|
5317
5402
|
default:
|
|
5318
5403
|
reader.skipType(tag & 7);
|
|
5319
5404
|
break;
|
|
@@ -5358,6 +5443,15 @@ const dataform = $root.dataform = (() => {
|
|
|
5358
5443
|
return "compilationErrors." + error;
|
|
5359
5444
|
}
|
|
5360
5445
|
}
|
|
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
|
+
}
|
|
5361
5455
|
return null;
|
|
5362
5456
|
};
|
|
5363
5457
|
|
|
@@ -5383,6 +5477,16 @@ const dataform = $root.dataform = (() => {
|
|
|
5383
5477
|
message.compilationErrors[i] = $root.dataform.CompilationError.fromObject(object.compilationErrors[i]);
|
|
5384
5478
|
}
|
|
5385
5479
|
}
|
|
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
|
+
}
|
|
5386
5490
|
return message;
|
|
5387
5491
|
};
|
|
5388
5492
|
|
|
@@ -5399,13 +5503,20 @@ const dataform = $root.dataform = (() => {
|
|
|
5399
5503
|
if (!options)
|
|
5400
5504
|
options = {};
|
|
5401
5505
|
let object = {};
|
|
5402
|
-
if (options.arrays || options.defaults)
|
|
5506
|
+
if (options.arrays || options.defaults) {
|
|
5403
5507
|
object.compilationErrors = [];
|
|
5508
|
+
object.validationErrors = [];
|
|
5509
|
+
}
|
|
5404
5510
|
if (message.compilationErrors && message.compilationErrors.length) {
|
|
5405
5511
|
object.compilationErrors = [];
|
|
5406
5512
|
for (let j = 0; j < message.compilationErrors.length; ++j)
|
|
5407
5513
|
object.compilationErrors[j] = $root.dataform.CompilationError.toObject(message.compilationErrors[j], options);
|
|
5408
5514
|
}
|
|
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
|
+
}
|
|
5409
5520
|
return object;
|
|
5410
5521
|
};
|
|
5411
5522
|
|
|
@@ -5423,28 +5534,25 @@ const dataform = $root.dataform = (() => {
|
|
|
5423
5534
|
return GraphErrors;
|
|
5424
5535
|
})();
|
|
5425
5536
|
|
|
5426
|
-
dataform.
|
|
5537
|
+
dataform.ValidationError = (function() {
|
|
5427
5538
|
|
|
5428
5539
|
/**
|
|
5429
|
-
* Properties of a
|
|
5540
|
+
* Properties of a ValidationError.
|
|
5430
5541
|
* @memberof dataform
|
|
5431
|
-
* @interface
|
|
5432
|
-
* @property {string|null} [
|
|
5433
|
-
* @property {string|null} [
|
|
5434
|
-
* @property {dataform.ITarget|null} [actionTarget] CompilationError actionTarget
|
|
5435
|
-
* @property {string|null} [message] CompilationError message
|
|
5436
|
-
* @property {string|null} [stack] CompilationError stack
|
|
5542
|
+
* @interface IValidationError
|
|
5543
|
+
* @property {string|null} [actionName] ValidationError actionName
|
|
5544
|
+
* @property {string|null} [message] ValidationError message
|
|
5437
5545
|
*/
|
|
5438
5546
|
|
|
5439
5547
|
/**
|
|
5440
|
-
* Constructs a new
|
|
5548
|
+
* Constructs a new ValidationError.
|
|
5441
5549
|
* @memberof dataform
|
|
5442
|
-
* @classdesc Represents a
|
|
5443
|
-
* @implements
|
|
5550
|
+
* @classdesc Represents a ValidationError.
|
|
5551
|
+
* @implements IValidationError
|
|
5444
5552
|
* @constructor
|
|
5445
|
-
* @param {dataform.
|
|
5553
|
+
* @param {dataform.IValidationError=} [properties] Properties to set
|
|
5446
5554
|
*/
|
|
5447
|
-
function
|
|
5555
|
+
function ValidationError(properties) {
|
|
5448
5556
|
if (properties)
|
|
5449
5557
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5450
5558
|
if (properties[keys[i]] != null)
|
|
@@ -5452,128 +5560,89 @@ const dataform = $root.dataform = (() => {
|
|
|
5452
5560
|
}
|
|
5453
5561
|
|
|
5454
5562
|
/**
|
|
5455
|
-
*
|
|
5456
|
-
* @member {string} fileName
|
|
5457
|
-
* @memberof dataform.CompilationError
|
|
5458
|
-
* @instance
|
|
5459
|
-
*/
|
|
5460
|
-
CompilationError.prototype.fileName = "";
|
|
5461
|
-
|
|
5462
|
-
/**
|
|
5463
|
-
* CompilationError actionName.
|
|
5563
|
+
* ValidationError actionName.
|
|
5464
5564
|
* @member {string} actionName
|
|
5465
|
-
* @memberof dataform.
|
|
5466
|
-
* @instance
|
|
5467
|
-
*/
|
|
5468
|
-
CompilationError.prototype.actionName = "";
|
|
5469
|
-
|
|
5470
|
-
/**
|
|
5471
|
-
* CompilationError actionTarget.
|
|
5472
|
-
* @member {dataform.ITarget|null|undefined} actionTarget
|
|
5473
|
-
* @memberof dataform.CompilationError
|
|
5565
|
+
* @memberof dataform.ValidationError
|
|
5474
5566
|
* @instance
|
|
5475
5567
|
*/
|
|
5476
|
-
|
|
5568
|
+
ValidationError.prototype.actionName = "";
|
|
5477
5569
|
|
|
5478
5570
|
/**
|
|
5479
|
-
*
|
|
5571
|
+
* ValidationError message.
|
|
5480
5572
|
* @member {string} message
|
|
5481
|
-
* @memberof dataform.
|
|
5482
|
-
* @instance
|
|
5483
|
-
*/
|
|
5484
|
-
CompilationError.prototype.message = "";
|
|
5485
|
-
|
|
5486
|
-
/**
|
|
5487
|
-
* CompilationError stack.
|
|
5488
|
-
* @member {string} stack
|
|
5489
|
-
* @memberof dataform.CompilationError
|
|
5573
|
+
* @memberof dataform.ValidationError
|
|
5490
5574
|
* @instance
|
|
5491
5575
|
*/
|
|
5492
|
-
|
|
5576
|
+
ValidationError.prototype.message = "";
|
|
5493
5577
|
|
|
5494
5578
|
/**
|
|
5495
|
-
* Creates a new
|
|
5579
|
+
* Creates a new ValidationError instance using the specified properties.
|
|
5496
5580
|
* @function create
|
|
5497
|
-
* @memberof dataform.
|
|
5581
|
+
* @memberof dataform.ValidationError
|
|
5498
5582
|
* @static
|
|
5499
|
-
* @param {dataform.
|
|
5500
|
-
* @returns {dataform.
|
|
5583
|
+
* @param {dataform.IValidationError=} [properties] Properties to set
|
|
5584
|
+
* @returns {dataform.ValidationError} ValidationError instance
|
|
5501
5585
|
*/
|
|
5502
|
-
|
|
5503
|
-
return new
|
|
5586
|
+
ValidationError.create = function create(properties) {
|
|
5587
|
+
return new ValidationError(properties);
|
|
5504
5588
|
};
|
|
5505
5589
|
|
|
5506
5590
|
/**
|
|
5507
|
-
* Encodes the specified
|
|
5591
|
+
* Encodes the specified ValidationError message. Does not implicitly {@link dataform.ValidationError.verify|verify} messages.
|
|
5508
5592
|
* @function encode
|
|
5509
|
-
* @memberof dataform.
|
|
5593
|
+
* @memberof dataform.ValidationError
|
|
5510
5594
|
* @static
|
|
5511
|
-
* @param {dataform.
|
|
5595
|
+
* @param {dataform.IValidationError} message ValidationError message or plain object to encode
|
|
5512
5596
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5513
5597
|
* @returns {$protobuf.Writer} Writer
|
|
5514
5598
|
*/
|
|
5515
|
-
|
|
5599
|
+
ValidationError.encode = function encode(message, writer) {
|
|
5516
5600
|
if (!writer)
|
|
5517
5601
|
writer = $Writer.create();
|
|
5518
|
-
if (message.
|
|
5519
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
5602
|
+
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5603
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.actionName);
|
|
5520
5604
|
if (message.message != null && message.hasOwnProperty("message"))
|
|
5521
5605
|
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();
|
|
5528
5606
|
return writer;
|
|
5529
5607
|
};
|
|
5530
5608
|
|
|
5531
5609
|
/**
|
|
5532
|
-
* Encodes the specified
|
|
5610
|
+
* Encodes the specified ValidationError message, length delimited. Does not implicitly {@link dataform.ValidationError.verify|verify} messages.
|
|
5533
5611
|
* @function encodeDelimited
|
|
5534
|
-
* @memberof dataform.
|
|
5612
|
+
* @memberof dataform.ValidationError
|
|
5535
5613
|
* @static
|
|
5536
|
-
* @param {dataform.
|
|
5614
|
+
* @param {dataform.IValidationError} message ValidationError message or plain object to encode
|
|
5537
5615
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5538
5616
|
* @returns {$protobuf.Writer} Writer
|
|
5539
5617
|
*/
|
|
5540
|
-
|
|
5618
|
+
ValidationError.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5541
5619
|
return this.encode(message, writer).ldelim();
|
|
5542
5620
|
};
|
|
5543
5621
|
|
|
5544
5622
|
/**
|
|
5545
|
-
* Decodes a
|
|
5623
|
+
* Decodes a ValidationError message from the specified reader or buffer.
|
|
5546
5624
|
* @function decode
|
|
5547
|
-
* @memberof dataform.
|
|
5625
|
+
* @memberof dataform.ValidationError
|
|
5548
5626
|
* @static
|
|
5549
5627
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5550
5628
|
* @param {number} [length] Message length if known beforehand
|
|
5551
|
-
* @returns {dataform.
|
|
5629
|
+
* @returns {dataform.ValidationError} ValidationError
|
|
5552
5630
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5553
5631
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5554
5632
|
*/
|
|
5555
|
-
|
|
5633
|
+
ValidationError.decode = function decode(reader, length) {
|
|
5556
5634
|
if (!(reader instanceof $Reader))
|
|
5557
5635
|
reader = $Reader.create(reader);
|
|
5558
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.
|
|
5636
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.ValidationError();
|
|
5559
5637
|
while (reader.pos < end) {
|
|
5560
5638
|
let tag = reader.uint32();
|
|
5561
5639
|
switch (tag >>> 3) {
|
|
5562
5640
|
case 1:
|
|
5563
|
-
message.fileName = reader.string();
|
|
5564
|
-
break;
|
|
5565
|
-
case 4:
|
|
5566
5641
|
message.actionName = reader.string();
|
|
5567
5642
|
break;
|
|
5568
|
-
case 5:
|
|
5569
|
-
message.actionTarget = $root.dataform.Target.decode(reader, reader.uint32());
|
|
5570
|
-
break;
|
|
5571
5643
|
case 2:
|
|
5572
5644
|
message.message = reader.string();
|
|
5573
5645
|
break;
|
|
5574
|
-
case 3:
|
|
5575
|
-
message.stack = reader.string();
|
|
5576
|
-
break;
|
|
5577
5646
|
default:
|
|
5578
5647
|
reader.skipType(tag & 7);
|
|
5579
5648
|
break;
|
|
@@ -5583,146 +5652,119 @@ const dataform = $root.dataform = (() => {
|
|
|
5583
5652
|
};
|
|
5584
5653
|
|
|
5585
5654
|
/**
|
|
5586
|
-
* Decodes a
|
|
5655
|
+
* Decodes a ValidationError message from the specified reader or buffer, length delimited.
|
|
5587
5656
|
* @function decodeDelimited
|
|
5588
|
-
* @memberof dataform.
|
|
5657
|
+
* @memberof dataform.ValidationError
|
|
5589
5658
|
* @static
|
|
5590
5659
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5591
|
-
* @returns {dataform.
|
|
5660
|
+
* @returns {dataform.ValidationError} ValidationError
|
|
5592
5661
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5593
5662
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5594
5663
|
*/
|
|
5595
|
-
|
|
5664
|
+
ValidationError.decodeDelimited = function decodeDelimited(reader) {
|
|
5596
5665
|
if (!(reader instanceof $Reader))
|
|
5597
5666
|
reader = new $Reader(reader);
|
|
5598
5667
|
return this.decode(reader, reader.uint32());
|
|
5599
5668
|
};
|
|
5600
5669
|
|
|
5601
5670
|
/**
|
|
5602
|
-
* Verifies a
|
|
5671
|
+
* Verifies a ValidationError message.
|
|
5603
5672
|
* @function verify
|
|
5604
|
-
* @memberof dataform.
|
|
5673
|
+
* @memberof dataform.ValidationError
|
|
5605
5674
|
* @static
|
|
5606
5675
|
* @param {Object.<string,*>} message Plain object to verify
|
|
5607
5676
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5608
5677
|
*/
|
|
5609
|
-
|
|
5678
|
+
ValidationError.verify = function verify(message) {
|
|
5610
5679
|
if (typeof message !== "object" || message === null)
|
|
5611
5680
|
return "object expected";
|
|
5612
|
-
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
5613
|
-
if (!$util.isString(message.fileName))
|
|
5614
|
-
return "fileName: string expected";
|
|
5615
5681
|
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5616
5682
|
if (!$util.isString(message.actionName))
|
|
5617
5683
|
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
|
-
}
|
|
5623
5684
|
if (message.message != null && message.hasOwnProperty("message"))
|
|
5624
5685
|
if (!$util.isString(message.message))
|
|
5625
5686
|
return "message: string expected";
|
|
5626
|
-
if (message.stack != null && message.hasOwnProperty("stack"))
|
|
5627
|
-
if (!$util.isString(message.stack))
|
|
5628
|
-
return "stack: string expected";
|
|
5629
5687
|
return null;
|
|
5630
5688
|
};
|
|
5631
5689
|
|
|
5632
5690
|
/**
|
|
5633
|
-
* Creates a
|
|
5691
|
+
* Creates a ValidationError message from a plain object. Also converts values to their respective internal types.
|
|
5634
5692
|
* @function fromObject
|
|
5635
|
-
* @memberof dataform.
|
|
5693
|
+
* @memberof dataform.ValidationError
|
|
5636
5694
|
* @static
|
|
5637
5695
|
* @param {Object.<string,*>} object Plain object
|
|
5638
|
-
* @returns {dataform.
|
|
5696
|
+
* @returns {dataform.ValidationError} ValidationError
|
|
5639
5697
|
*/
|
|
5640
|
-
|
|
5641
|
-
if (object instanceof $root.dataform.
|
|
5698
|
+
ValidationError.fromObject = function fromObject(object) {
|
|
5699
|
+
if (object instanceof $root.dataform.ValidationError)
|
|
5642
5700
|
return object;
|
|
5643
|
-
let message = new $root.dataform.
|
|
5644
|
-
if (object.fileName != null)
|
|
5645
|
-
message.fileName = String(object.fileName);
|
|
5701
|
+
let message = new $root.dataform.ValidationError();
|
|
5646
5702
|
if (object.actionName != null)
|
|
5647
5703
|
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
|
-
}
|
|
5653
5704
|
if (object.message != null)
|
|
5654
5705
|
message.message = String(object.message);
|
|
5655
|
-
if (object.stack != null)
|
|
5656
|
-
message.stack = String(object.stack);
|
|
5657
5706
|
return message;
|
|
5658
5707
|
};
|
|
5659
5708
|
|
|
5660
5709
|
/**
|
|
5661
|
-
* Creates a plain object from a
|
|
5710
|
+
* Creates a plain object from a ValidationError message. Also converts values to other types if specified.
|
|
5662
5711
|
* @function toObject
|
|
5663
|
-
* @memberof dataform.
|
|
5712
|
+
* @memberof dataform.ValidationError
|
|
5664
5713
|
* @static
|
|
5665
|
-
* @param {dataform.
|
|
5714
|
+
* @param {dataform.ValidationError} message ValidationError
|
|
5666
5715
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5667
5716
|
* @returns {Object.<string,*>} Plain object
|
|
5668
5717
|
*/
|
|
5669
|
-
|
|
5718
|
+
ValidationError.toObject = function toObject(message, options) {
|
|
5670
5719
|
if (!options)
|
|
5671
5720
|
options = {};
|
|
5672
5721
|
let object = {};
|
|
5673
5722
|
if (options.defaults) {
|
|
5674
|
-
object.fileName = "";
|
|
5675
|
-
object.message = "";
|
|
5676
|
-
object.stack = "";
|
|
5677
5723
|
object.actionName = "";
|
|
5678
|
-
object.
|
|
5724
|
+
object.message = "";
|
|
5679
5725
|
}
|
|
5680
|
-
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
5681
|
-
object.fileName = message.fileName;
|
|
5682
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
5683
|
-
object.message = message.message;
|
|
5684
|
-
if (message.stack != null && message.hasOwnProperty("stack"))
|
|
5685
|
-
object.stack = message.stack;
|
|
5686
5726
|
if (message.actionName != null && message.hasOwnProperty("actionName"))
|
|
5687
5727
|
object.actionName = message.actionName;
|
|
5688
|
-
if (message.
|
|
5689
|
-
object.
|
|
5728
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
5729
|
+
object.message = message.message;
|
|
5690
5730
|
return object;
|
|
5691
5731
|
};
|
|
5692
5732
|
|
|
5693
5733
|
/**
|
|
5694
|
-
* Converts this
|
|
5734
|
+
* Converts this ValidationError to JSON.
|
|
5695
5735
|
* @function toJSON
|
|
5696
|
-
* @memberof dataform.
|
|
5736
|
+
* @memberof dataform.ValidationError
|
|
5697
5737
|
* @instance
|
|
5698
5738
|
* @returns {Object.<string,*>} JSON object
|
|
5699
5739
|
*/
|
|
5700
|
-
|
|
5740
|
+
ValidationError.prototype.toJSON = function toJSON() {
|
|
5701
5741
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5702
5742
|
};
|
|
5703
5743
|
|
|
5704
|
-
return
|
|
5744
|
+
return ValidationError;
|
|
5705
5745
|
})();
|
|
5706
5746
|
|
|
5707
|
-
dataform.
|
|
5747
|
+
dataform.CompilationError = (function() {
|
|
5708
5748
|
|
|
5709
5749
|
/**
|
|
5710
|
-
* Properties of a
|
|
5750
|
+
* Properties of a CompilationError.
|
|
5711
5751
|
* @memberof dataform
|
|
5712
|
-
* @interface
|
|
5713
|
-
* @property {string|null} [
|
|
5714
|
-
* @property {
|
|
5752
|
+
* @interface ICompilationError
|
|
5753
|
+
* @property {string|null} [fileName] CompilationError fileName
|
|
5754
|
+
* @property {string|null} [actionName] CompilationError actionName
|
|
5755
|
+
* @property {string|null} [message] CompilationError message
|
|
5756
|
+
* @property {string|null} [stack] CompilationError stack
|
|
5715
5757
|
*/
|
|
5716
5758
|
|
|
5717
5759
|
/**
|
|
5718
|
-
* Constructs a new
|
|
5760
|
+
* Constructs a new CompilationError.
|
|
5719
5761
|
* @memberof dataform
|
|
5720
|
-
* @classdesc Represents a
|
|
5721
|
-
* @implements
|
|
5762
|
+
* @classdesc Represents a CompilationError.
|
|
5763
|
+
* @implements ICompilationError
|
|
5722
5764
|
* @constructor
|
|
5723
|
-
* @param {dataform.
|
|
5765
|
+
* @param {dataform.ICompilationError=} [properties] Properties to set
|
|
5724
5766
|
*/
|
|
5725
|
-
function
|
|
5767
|
+
function CompilationError(properties) {
|
|
5726
5768
|
if (properties)
|
|
5727
5769
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5728
5770
|
if (properties[keys[i]] != null)
|
|
@@ -5730,20 +5772,272 @@ const dataform = $root.dataform = (() => {
|
|
|
5730
5772
|
}
|
|
5731
5773
|
|
|
5732
5774
|
/**
|
|
5733
|
-
*
|
|
5734
|
-
* @member {string}
|
|
5735
|
-
* @memberof dataform.
|
|
5775
|
+
* CompilationError fileName.
|
|
5776
|
+
* @member {string} fileName
|
|
5777
|
+
* @memberof dataform.CompilationError
|
|
5736
5778
|
* @instance
|
|
5737
5779
|
*/
|
|
5738
|
-
|
|
5780
|
+
CompilationError.prototype.fileName = "";
|
|
5739
5781
|
|
|
5740
5782
|
/**
|
|
5741
|
-
*
|
|
5742
|
-
* @member {
|
|
5743
|
-
* @memberof dataform.
|
|
5783
|
+
* CompilationError actionName.
|
|
5784
|
+
* @member {string} actionName
|
|
5785
|
+
* @memberof dataform.CompilationError
|
|
5744
5786
|
* @instance
|
|
5745
5787
|
*/
|
|
5746
|
-
|
|
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
|
|
6038
|
+
* @instance
|
|
6039
|
+
*/
|
|
6040
|
+
QueryEvaluationError.prototype.errorLocation = null;
|
|
5747
6041
|
|
|
5748
6042
|
/**
|
|
5749
6043
|
* Creates a new QueryEvaluationError instance using the specified properties.
|
|
@@ -7403,6 +7697,10 @@ const dataform = $root.dataform = (() => {
|
|
|
7403
7697
|
* @property {dataform.ISQLDataWarehouseOptions|null} [sqlDataWarehouse] Table sqlDataWarehouse
|
|
7404
7698
|
* @property {dataform.IPrestoOptions|null} [presto] Table presto
|
|
7405
7699
|
* @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
|
|
7406
7704
|
*/
|
|
7407
7705
|
|
|
7408
7706
|
/**
|
|
@@ -7421,6 +7719,9 @@ const dataform = $root.dataform = (() => {
|
|
|
7421
7719
|
this.postOps = [];
|
|
7422
7720
|
this.incrementalPreOps = [];
|
|
7423
7721
|
this.incrementalPostOps = [];
|
|
7722
|
+
this.deprecatedParsedColumns = [];
|
|
7723
|
+
this.deprecatedValidationErrors = [];
|
|
7724
|
+
this.dependencies = [];
|
|
7424
7725
|
if (properties)
|
|
7425
7726
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7426
7727
|
if (properties[keys[i]] != null)
|
|
@@ -7612,10 +7913,42 @@ const dataform = $root.dataform = (() => {
|
|
|
7612
7913
|
Table.prototype.fileName = "";
|
|
7613
7914
|
|
|
7614
7915
|
/**
|
|
7615
|
-
*
|
|
7616
|
-
* @
|
|
7916
|
+
* Table deprecatedParsedColumns.
|
|
7917
|
+
* @member {Array.<string>} deprecatedParsedColumns
|
|
7617
7918
|
* @memberof dataform.Table
|
|
7618
|
-
* @
|
|
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
|
|
7950
|
+
* @memberof dataform.Table
|
|
7951
|
+
* @static
|
|
7619
7952
|
* @param {dataform.ITable=} [properties] Properties to set
|
|
7620
7953
|
* @returns {dataform.Table} Table instance
|
|
7621
7954
|
*/
|
|
@@ -7635,6 +7968,11 @@ const dataform = $root.dataform = (() => {
|
|
|
7635
7968
|
Table.encode = function encode(message, writer) {
|
|
7636
7969
|
if (!writer)
|
|
7637
7970
|
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]);
|
|
7638
7976
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
7639
7977
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
|
|
7640
7978
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
@@ -7643,10 +7981,16 @@ const dataform = $root.dataform = (() => {
|
|
|
7643
7981
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.query);
|
|
7644
7982
|
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
7645
7983
|
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();
|
|
7646
7987
|
if (message.where != null && message.hasOwnProperty("where"))
|
|
7647
7988
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.where);
|
|
7648
7989
|
if (message["protected"] != null && message.hasOwnProperty("protected"))
|
|
7649
7990
|
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]);
|
|
7650
7994
|
if (message.preOps != null && message.preOps.length)
|
|
7651
7995
|
for (let i = 0; i < message.preOps.length; ++i)
|
|
7652
7996
|
writer.uint32(/* id 13, wireType 2 =*/106).string(message.preOps[i]);
|
|
@@ -7805,6 +8149,24 @@ const dataform = $root.dataform = (() => {
|
|
|
7805
8149
|
case 18:
|
|
7806
8150
|
message.fileName = reader.string();
|
|
7807
8151
|
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;
|
|
7808
8170
|
default:
|
|
7809
8171
|
reader.skipType(tag & 7);
|
|
7810
8172
|
break;
|
|
@@ -7961,6 +8323,32 @@ const dataform = $root.dataform = (() => {
|
|
|
7961
8323
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
7962
8324
|
if (!$util.isString(message.fileName))
|
|
7963
8325
|
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
|
+
}
|
|
7964
8352
|
return null;
|
|
7965
8353
|
};
|
|
7966
8354
|
|
|
@@ -8096,6 +8484,32 @@ const dataform = $root.dataform = (() => {
|
|
|
8096
8484
|
}
|
|
8097
8485
|
if (object.fileName != null)
|
|
8098
8486
|
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
|
+
}
|
|
8099
8513
|
return message;
|
|
8100
8514
|
};
|
|
8101
8515
|
|
|
@@ -8113,6 +8527,9 @@ const dataform = $root.dataform = (() => {
|
|
|
8113
8527
|
options = {};
|
|
8114
8528
|
let object = {};
|
|
8115
8529
|
if (options.arrays || options.defaults) {
|
|
8530
|
+
object.dependencies = [];
|
|
8531
|
+
object.deprecatedValidationErrors = [];
|
|
8532
|
+
object.deprecatedParsedColumns = [];
|
|
8116
8533
|
object.preOps = [];
|
|
8117
8534
|
object.postOps = [];
|
|
8118
8535
|
object.tags = [];
|
|
@@ -8122,6 +8539,7 @@ const dataform = $root.dataform = (() => {
|
|
|
8122
8539
|
object.uniqueKey = [];
|
|
8123
8540
|
}
|
|
8124
8541
|
if (options.defaults) {
|
|
8542
|
+
object.name = "";
|
|
8125
8543
|
object.type = "";
|
|
8126
8544
|
object.target = null;
|
|
8127
8545
|
object.query = "";
|
|
@@ -8139,6 +8557,13 @@ const dataform = $root.dataform = (() => {
|
|
|
8139
8557
|
object.snowflake = null;
|
|
8140
8558
|
object.presto = null;
|
|
8141
8559
|
}
|
|
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
|
+
}
|
|
8142
8567
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
8143
8568
|
object.type = message.type;
|
|
8144
8569
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
@@ -8147,10 +8572,20 @@ const dataform = $root.dataform = (() => {
|
|
|
8147
8572
|
object.query = message.query;
|
|
8148
8573
|
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
8149
8574
|
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
|
+
}
|
|
8150
8580
|
if (message.where != null && message.hasOwnProperty("where"))
|
|
8151
8581
|
object.where = message.where;
|
|
8152
8582
|
if (message["protected"] != null && message.hasOwnProperty("protected"))
|
|
8153
8583
|
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
|
+
}
|
|
8154
8589
|
if (message.preOps && message.preOps.length) {
|
|
8155
8590
|
object.preOps = [];
|
|
8156
8591
|
for (let j = 0; j < message.preOps.length; ++j)
|
|
@@ -8239,6 +8674,8 @@ const dataform = $root.dataform = (() => {
|
|
|
8239
8674
|
* @property {Array.<string>|null} [tags] Operation tags
|
|
8240
8675
|
* @property {dataform.IActionDescriptor|null} [actionDescriptor] Operation actionDescriptor
|
|
8241
8676
|
* @property {string|null} [fileName] Operation fileName
|
|
8677
|
+
* @property {string|null} [name] Operation name
|
|
8678
|
+
* @property {Array.<string>|null} [dependencies] Operation dependencies
|
|
8242
8679
|
*/
|
|
8243
8680
|
|
|
8244
8681
|
/**
|
|
@@ -8253,6 +8690,7 @@ const dataform = $root.dataform = (() => {
|
|
|
8253
8690
|
this.dependencyTargets = [];
|
|
8254
8691
|
this.queries = [];
|
|
8255
8692
|
this.tags = [];
|
|
8693
|
+
this.dependencies = [];
|
|
8256
8694
|
if (properties)
|
|
8257
8695
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8258
8696
|
if (properties[keys[i]] != null)
|
|
@@ -8339,6 +8777,22 @@ const dataform = $root.dataform = (() => {
|
|
|
8339
8777
|
*/
|
|
8340
8778
|
Operation.prototype.fileName = "";
|
|
8341
8779
|
|
|
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
|
+
|
|
8342
8796
|
/**
|
|
8343
8797
|
* Creates a new Operation instance using the specified properties.
|
|
8344
8798
|
* @function create
|
|
@@ -8363,6 +8817,11 @@ const dataform = $root.dataform = (() => {
|
|
|
8363
8817
|
Operation.encode = function encode(message, writer) {
|
|
8364
8818
|
if (!writer)
|
|
8365
8819
|
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]);
|
|
8366
8825
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
8367
8826
|
$root.dataform.Target.encode(message.target, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
8368
8827
|
if (message.queries != null && message.queries.length)
|
|
@@ -8456,6 +8915,14 @@ const dataform = $root.dataform = (() => {
|
|
|
8456
8915
|
case 7:
|
|
8457
8916
|
message.fileName = reader.string();
|
|
8458
8917
|
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;
|
|
8459
8926
|
default:
|
|
8460
8927
|
reader.skipType(tag & 7);
|
|
8461
8928
|
break;
|
|
@@ -8547,6 +9014,16 @@ const dataform = $root.dataform = (() => {
|
|
|
8547
9014
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
8548
9015
|
if (!$util.isString(message.fileName))
|
|
8549
9016
|
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
|
+
}
|
|
8550
9027
|
return null;
|
|
8551
9028
|
};
|
|
8552
9029
|
|
|
@@ -8621,6 +9098,15 @@ const dataform = $root.dataform = (() => {
|
|
|
8621
9098
|
}
|
|
8622
9099
|
if (object.fileName != null)
|
|
8623
9100
|
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
|
+
}
|
|
8624
9110
|
return message;
|
|
8625
9111
|
};
|
|
8626
9112
|
|
|
@@ -8638,11 +9124,13 @@ const dataform = $root.dataform = (() => {
|
|
|
8638
9124
|
options = {};
|
|
8639
9125
|
let object = {};
|
|
8640
9126
|
if (options.arrays || options.defaults) {
|
|
9127
|
+
object.dependencies = [];
|
|
8641
9128
|
object.queries = [];
|
|
8642
9129
|
object.tags = [];
|
|
8643
9130
|
object.dependencyTargets = [];
|
|
8644
9131
|
}
|
|
8645
9132
|
if (options.defaults) {
|
|
9133
|
+
object.name = "";
|
|
8646
9134
|
object.target = null;
|
|
8647
9135
|
object.fileName = "";
|
|
8648
9136
|
object.hasOutput = false;
|
|
@@ -8651,6 +9139,13 @@ const dataform = $root.dataform = (() => {
|
|
|
8651
9139
|
object.canonicalTarget = null;
|
|
8652
9140
|
object.disabled = false;
|
|
8653
9141
|
}
|
|
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
|
+
}
|
|
8654
9149
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
8655
9150
|
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
8656
9151
|
if (message.queries && message.queries.length) {
|
|
@@ -8713,6 +9208,8 @@ const dataform = $root.dataform = (() => {
|
|
|
8713
9208
|
* @property {dataform.IActionDescriptor|null} [actionDescriptor] Assertion actionDescriptor
|
|
8714
9209
|
* @property {dataform.ITarget|null} [parentAction] Assertion parentAction
|
|
8715
9210
|
* @property {string|null} [fileName] Assertion fileName
|
|
9211
|
+
* @property {string|null} [name] Assertion name
|
|
9212
|
+
* @property {Array.<string>|null} [dependencies] Assertion dependencies
|
|
8716
9213
|
*/
|
|
8717
9214
|
|
|
8718
9215
|
/**
|
|
@@ -8726,6 +9223,7 @@ const dataform = $root.dataform = (() => {
|
|
|
8726
9223
|
function Assertion(properties) {
|
|
8727
9224
|
this.dependencyTargets = [];
|
|
8728
9225
|
this.tags = [];
|
|
9226
|
+
this.dependencies = [];
|
|
8729
9227
|
if (properties)
|
|
8730
9228
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8731
9229
|
if (properties[keys[i]] != null)
|
|
@@ -8812,6 +9310,22 @@ const dataform = $root.dataform = (() => {
|
|
|
8812
9310
|
*/
|
|
8813
9311
|
Assertion.prototype.fileName = "";
|
|
8814
9312
|
|
|
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
|
+
|
|
8815
9329
|
/**
|
|
8816
9330
|
* Creates a new Assertion instance using the specified properties.
|
|
8817
9331
|
* @function create
|
|
@@ -8836,6 +9350,11 @@ const dataform = $root.dataform = (() => {
|
|
|
8836
9350
|
Assertion.encode = function encode(message, writer) {
|
|
8837
9351
|
if (!writer)
|
|
8838
9352
|
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]);
|
|
8839
9358
|
if (message.query != null && message.hasOwnProperty("query"))
|
|
8840
9359
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.query);
|
|
8841
9360
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
@@ -8926,6 +9445,14 @@ const dataform = $root.dataform = (() => {
|
|
|
8926
9445
|
case 7:
|
|
8927
9446
|
message.fileName = reader.string();
|
|
8928
9447
|
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;
|
|
8929
9456
|
default:
|
|
8930
9457
|
reader.skipType(tag & 7);
|
|
8931
9458
|
break;
|
|
@@ -9015,6 +9542,16 @@ const dataform = $root.dataform = (() => {
|
|
|
9015
9542
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
9016
9543
|
if (!$util.isString(message.fileName))
|
|
9017
9544
|
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
|
+
}
|
|
9018
9555
|
return null;
|
|
9019
9556
|
};
|
|
9020
9557
|
|
|
@@ -9087,6 +9624,15 @@ const dataform = $root.dataform = (() => {
|
|
|
9087
9624
|
}
|
|
9088
9625
|
if (object.fileName != null)
|
|
9089
9626
|
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
|
+
}
|
|
9090
9636
|
return message;
|
|
9091
9637
|
};
|
|
9092
9638
|
|
|
@@ -9104,10 +9650,12 @@ const dataform = $root.dataform = (() => {
|
|
|
9104
9650
|
options = {};
|
|
9105
9651
|
let object = {};
|
|
9106
9652
|
if (options.arrays || options.defaults) {
|
|
9653
|
+
object.dependencies = [];
|
|
9107
9654
|
object.tags = [];
|
|
9108
9655
|
object.dependencyTargets = [];
|
|
9109
9656
|
}
|
|
9110
9657
|
if (options.defaults) {
|
|
9658
|
+
object.name = "";
|
|
9111
9659
|
object.query = "";
|
|
9112
9660
|
object.fileName = "";
|
|
9113
9661
|
object.target = null;
|
|
@@ -9117,6 +9665,13 @@ const dataform = $root.dataform = (() => {
|
|
|
9117
9665
|
object.disabled = false;
|
|
9118
9666
|
object.parentAction = null;
|
|
9119
9667
|
}
|
|
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
|
+
}
|
|
9120
9675
|
if (message.query != null && message.hasOwnProperty("query"))
|
|
9121
9676
|
object.query = message.query;
|
|
9122
9677
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
@@ -9182,6 +9737,7 @@ const dataform = $root.dataform = (() => {
|
|
|
9182
9737
|
* Properties of a Declaration.
|
|
9183
9738
|
* @memberof dataform
|
|
9184
9739
|
* @interface IDeclaration
|
|
9740
|
+
* @property {string|null} [name] Declaration name
|
|
9185
9741
|
* @property {dataform.ITarget|null} [target] Declaration target
|
|
9186
9742
|
* @property {dataform.ITarget|null} [canonicalTarget] Declaration canonicalTarget
|
|
9187
9743
|
* @property {dataform.IActionDescriptor|null} [actionDescriptor] Declaration actionDescriptor
|
|
@@ -9203,6 +9759,14 @@ const dataform = $root.dataform = (() => {
|
|
|
9203
9759
|
this[keys[i]] = properties[keys[i]];
|
|
9204
9760
|
}
|
|
9205
9761
|
|
|
9762
|
+
/**
|
|
9763
|
+
* Declaration name.
|
|
9764
|
+
* @member {string} name
|
|
9765
|
+
* @memberof dataform.Declaration
|
|
9766
|
+
* @instance
|
|
9767
|
+
*/
|
|
9768
|
+
Declaration.prototype.name = "";
|
|
9769
|
+
|
|
9206
9770
|
/**
|
|
9207
9771
|
* Declaration target.
|
|
9208
9772
|
* @member {dataform.ITarget|null|undefined} target
|
|
@@ -9259,6 +9823,8 @@ const dataform = $root.dataform = (() => {
|
|
|
9259
9823
|
Declaration.encode = function encode(message, writer) {
|
|
9260
9824
|
if (!writer)
|
|
9261
9825
|
writer = $Writer.create();
|
|
9826
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
9827
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
9262
9828
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
9263
9829
|
$root.dataform.Target.encode(message.target, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
9264
9830
|
if (message.actionDescriptor != null && message.hasOwnProperty("actionDescriptor"))
|
|
@@ -9301,6 +9867,9 @@ const dataform = $root.dataform = (() => {
|
|
|
9301
9867
|
while (reader.pos < end) {
|
|
9302
9868
|
let tag = reader.uint32();
|
|
9303
9869
|
switch (tag >>> 3) {
|
|
9870
|
+
case 1:
|
|
9871
|
+
message.name = reader.string();
|
|
9872
|
+
break;
|
|
9304
9873
|
case 2:
|
|
9305
9874
|
message.target = $root.dataform.Target.decode(reader, reader.uint32());
|
|
9306
9875
|
break;
|
|
@@ -9348,6 +9917,9 @@ const dataform = $root.dataform = (() => {
|
|
|
9348
9917
|
Declaration.verify = function verify(message) {
|
|
9349
9918
|
if (typeof message !== "object" || message === null)
|
|
9350
9919
|
return "object expected";
|
|
9920
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
9921
|
+
if (!$util.isString(message.name))
|
|
9922
|
+
return "name: string expected";
|
|
9351
9923
|
if (message.target != null && message.hasOwnProperty("target")) {
|
|
9352
9924
|
let error = $root.dataform.Target.verify(message.target);
|
|
9353
9925
|
if (error)
|
|
@@ -9381,6 +9953,8 @@ const dataform = $root.dataform = (() => {
|
|
|
9381
9953
|
if (object instanceof $root.dataform.Declaration)
|
|
9382
9954
|
return object;
|
|
9383
9955
|
let message = new $root.dataform.Declaration();
|
|
9956
|
+
if (object.name != null)
|
|
9957
|
+
message.name = String(object.name);
|
|
9384
9958
|
if (object.target != null) {
|
|
9385
9959
|
if (typeof object.target !== "object")
|
|
9386
9960
|
throw TypeError(".dataform.Declaration.target: object expected");
|
|
@@ -9415,11 +9989,14 @@ const dataform = $root.dataform = (() => {
|
|
|
9415
9989
|
options = {};
|
|
9416
9990
|
let object = {};
|
|
9417
9991
|
if (options.defaults) {
|
|
9992
|
+
object.name = "";
|
|
9418
9993
|
object.target = null;
|
|
9419
9994
|
object.actionDescriptor = null;
|
|
9420
9995
|
object.fileName = "";
|
|
9421
9996
|
object.canonicalTarget = null;
|
|
9422
9997
|
}
|
|
9998
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
9999
|
+
object.name = message.name;
|
|
9423
10000
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
9424
10001
|
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
9425
10002
|
if (message.actionDescriptor != null && message.hasOwnProperty("actionDescriptor"))
|
|
@@ -10417,11 +10994,13 @@ const dataform = $root.dataform = (() => {
|
|
|
10417
10994
|
* Properties of an ExecutionAction.
|
|
10418
10995
|
* @memberof dataform
|
|
10419
10996
|
* @interface IExecutionAction
|
|
10997
|
+
* @property {string|null} [name] ExecutionAction name
|
|
10420
10998
|
* @property {dataform.ITarget|null} [target] ExecutionAction target
|
|
10421
10999
|
* @property {string|null} [fileName] ExecutionAction fileName
|
|
10422
11000
|
* @property {string|null} [type] ExecutionAction type
|
|
10423
11001
|
* @property {string|null} [tableType] ExecutionAction tableType
|
|
10424
|
-
* @property {Array.<
|
|
11002
|
+
* @property {Array.<string>|null} [dependencies] ExecutionAction dependencies
|
|
11003
|
+
* @property {Array.<dataform.ITarget>|null} [transitiveInputs] ExecutionAction transitiveInputs
|
|
10425
11004
|
* @property {dataform.ActionHermeticity|null} [hermeticity] ExecutionAction hermeticity
|
|
10426
11005
|
* @property {Array.<dataform.IExecutionTask>|null} [tasks] ExecutionAction tasks
|
|
10427
11006
|
* @property {dataform.IActionDescriptor|null} [actionDescriptor] ExecutionAction actionDescriptor
|
|
@@ -10436,7 +11015,8 @@ const dataform = $root.dataform = (() => {
|
|
|
10436
11015
|
* @param {dataform.IExecutionAction=} [properties] Properties to set
|
|
10437
11016
|
*/
|
|
10438
11017
|
function ExecutionAction(properties) {
|
|
10439
|
-
this.
|
|
11018
|
+
this.dependencies = [];
|
|
11019
|
+
this.transitiveInputs = [];
|
|
10440
11020
|
this.tasks = [];
|
|
10441
11021
|
if (properties)
|
|
10442
11022
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -10444,6 +11024,14 @@ const dataform = $root.dataform = (() => {
|
|
|
10444
11024
|
this[keys[i]] = properties[keys[i]];
|
|
10445
11025
|
}
|
|
10446
11026
|
|
|
11027
|
+
/**
|
|
11028
|
+
* ExecutionAction name.
|
|
11029
|
+
* @member {string} name
|
|
11030
|
+
* @memberof dataform.ExecutionAction
|
|
11031
|
+
* @instance
|
|
11032
|
+
*/
|
|
11033
|
+
ExecutionAction.prototype.name = "";
|
|
11034
|
+
|
|
10447
11035
|
/**
|
|
10448
11036
|
* ExecutionAction target.
|
|
10449
11037
|
* @member {dataform.ITarget|null|undefined} target
|
|
@@ -10477,12 +11065,20 @@ const dataform = $root.dataform = (() => {
|
|
|
10477
11065
|
ExecutionAction.prototype.tableType = "";
|
|
10478
11066
|
|
|
10479
11067
|
/**
|
|
10480
|
-
* ExecutionAction
|
|
10481
|
-
* @member {Array.<
|
|
11068
|
+
* ExecutionAction dependencies.
|
|
11069
|
+
* @member {Array.<string>} dependencies
|
|
10482
11070
|
* @memberof dataform.ExecutionAction
|
|
10483
11071
|
* @instance
|
|
10484
11072
|
*/
|
|
10485
|
-
ExecutionAction.prototype.
|
|
11073
|
+
ExecutionAction.prototype.dependencies = $util.emptyArray;
|
|
11074
|
+
|
|
11075
|
+
/**
|
|
11076
|
+
* ExecutionAction transitiveInputs.
|
|
11077
|
+
* @member {Array.<dataform.ITarget>} transitiveInputs
|
|
11078
|
+
* @memberof dataform.ExecutionAction
|
|
11079
|
+
* @instance
|
|
11080
|
+
*/
|
|
11081
|
+
ExecutionAction.prototype.transitiveInputs = $util.emptyArray;
|
|
10486
11082
|
|
|
10487
11083
|
/**
|
|
10488
11084
|
* ExecutionAction hermeticity.
|
|
@@ -10532,24 +11128,29 @@ const dataform = $root.dataform = (() => {
|
|
|
10532
11128
|
ExecutionAction.encode = function encode(message, writer) {
|
|
10533
11129
|
if (!writer)
|
|
10534
11130
|
writer = $Writer.create();
|
|
11131
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
11132
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
10535
11133
|
if (message.tasks != null && message.tasks.length)
|
|
10536
11134
|
for (let i = 0; i < message.tasks.length; ++i)
|
|
10537
11135
|
$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]);
|
|
10538
11139
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
10539
11140
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
|
|
10540
11141
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
10541
11142
|
$root.dataform.Target.encode(message.target, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
10542
11143
|
if (message.tableType != null && message.hasOwnProperty("tableType"))
|
|
10543
11144
|
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();
|
|
10544
11148
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
10545
11149
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.fileName);
|
|
10546
11150
|
if (message.actionDescriptor != null && message.hasOwnProperty("actionDescriptor"))
|
|
10547
11151
|
$root.dataform.ActionDescriptor.encode(message.actionDescriptor, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
10548
11152
|
if (message.hermeticity != null && message.hasOwnProperty("hermeticity"))
|
|
10549
11153
|
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();
|
|
10553
11154
|
return writer;
|
|
10554
11155
|
};
|
|
10555
11156
|
|
|
@@ -10584,6 +11185,9 @@ const dataform = $root.dataform = (() => {
|
|
|
10584
11185
|
while (reader.pos < end) {
|
|
10585
11186
|
let tag = reader.uint32();
|
|
10586
11187
|
switch (tag >>> 3) {
|
|
11188
|
+
case 1:
|
|
11189
|
+
message.name = reader.string();
|
|
11190
|
+
break;
|
|
10587
11191
|
case 5:
|
|
10588
11192
|
message.target = $root.dataform.Target.decode(reader, reader.uint32());
|
|
10589
11193
|
break;
|
|
@@ -10596,10 +11200,15 @@ const dataform = $root.dataform = (() => {
|
|
|
10596
11200
|
case 6:
|
|
10597
11201
|
message.tableType = reader.string();
|
|
10598
11202
|
break;
|
|
10599
|
-
case
|
|
10600
|
-
if (!(message.
|
|
10601
|
-
message.
|
|
10602
|
-
message.
|
|
11203
|
+
case 3:
|
|
11204
|
+
if (!(message.dependencies && message.dependencies.length))
|
|
11205
|
+
message.dependencies = [];
|
|
11206
|
+
message.dependencies.push(reader.string());
|
|
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()));
|
|
10603
11212
|
break;
|
|
10604
11213
|
case 10:
|
|
10605
11214
|
message.hermeticity = reader.int32();
|
|
@@ -10647,6 +11256,9 @@ const dataform = $root.dataform = (() => {
|
|
|
10647
11256
|
ExecutionAction.verify = function verify(message) {
|
|
10648
11257
|
if (typeof message !== "object" || message === null)
|
|
10649
11258
|
return "object expected";
|
|
11259
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
11260
|
+
if (!$util.isString(message.name))
|
|
11261
|
+
return "name: string expected";
|
|
10650
11262
|
if (message.target != null && message.hasOwnProperty("target")) {
|
|
10651
11263
|
let error = $root.dataform.Target.verify(message.target);
|
|
10652
11264
|
if (error)
|
|
@@ -10661,13 +11273,20 @@ const dataform = $root.dataform = (() => {
|
|
|
10661
11273
|
if (message.tableType != null && message.hasOwnProperty("tableType"))
|
|
10662
11274
|
if (!$util.isString(message.tableType))
|
|
10663
11275
|
return "tableType: string expected";
|
|
10664
|
-
if (message.
|
|
10665
|
-
if (!Array.isArray(message.
|
|
10666
|
-
return "
|
|
10667
|
-
for (let i = 0; i < message.
|
|
10668
|
-
|
|
11276
|
+
if (message.dependencies != null && message.hasOwnProperty("dependencies")) {
|
|
11277
|
+
if (!Array.isArray(message.dependencies))
|
|
11278
|
+
return "dependencies: array expected";
|
|
11279
|
+
for (let i = 0; i < message.dependencies.length; ++i)
|
|
11280
|
+
if (!$util.isString(message.dependencies[i]))
|
|
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]);
|
|
10669
11288
|
if (error)
|
|
10670
|
-
return "
|
|
11289
|
+
return "transitiveInputs." + error;
|
|
10671
11290
|
}
|
|
10672
11291
|
}
|
|
10673
11292
|
if (message.hermeticity != null && message.hasOwnProperty("hermeticity"))
|
|
@@ -10708,6 +11327,8 @@ const dataform = $root.dataform = (() => {
|
|
|
10708
11327
|
if (object instanceof $root.dataform.ExecutionAction)
|
|
10709
11328
|
return object;
|
|
10710
11329
|
let message = new $root.dataform.ExecutionAction();
|
|
11330
|
+
if (object.name != null)
|
|
11331
|
+
message.name = String(object.name);
|
|
10711
11332
|
if (object.target != null) {
|
|
10712
11333
|
if (typeof object.target !== "object")
|
|
10713
11334
|
throw TypeError(".dataform.ExecutionAction.target: object expected");
|
|
@@ -10719,14 +11340,21 @@ const dataform = $root.dataform = (() => {
|
|
|
10719
11340
|
message.type = String(object.type);
|
|
10720
11341
|
if (object.tableType != null)
|
|
10721
11342
|
message.tableType = String(object.tableType);
|
|
10722
|
-
if (object.
|
|
10723
|
-
if (!Array.isArray(object.
|
|
10724
|
-
throw TypeError(".dataform.ExecutionAction.
|
|
10725
|
-
message.
|
|
10726
|
-
for (let i = 0; i < object.
|
|
10727
|
-
|
|
10728
|
-
|
|
10729
|
-
|
|
11343
|
+
if (object.dependencies) {
|
|
11344
|
+
if (!Array.isArray(object.dependencies))
|
|
11345
|
+
throw TypeError(".dataform.ExecutionAction.dependencies: array expected");
|
|
11346
|
+
message.dependencies = [];
|
|
11347
|
+
for (let i = 0; i < object.dependencies.length; ++i)
|
|
11348
|
+
message.dependencies[i] = String(object.dependencies[i]);
|
|
11349
|
+
}
|
|
11350
|
+
if (object.transitiveInputs) {
|
|
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]);
|
|
10730
11358
|
}
|
|
10731
11359
|
}
|
|
10732
11360
|
switch (object.hermeticity) {
|
|
@@ -10776,9 +11404,11 @@ const dataform = $root.dataform = (() => {
|
|
|
10776
11404
|
let object = {};
|
|
10777
11405
|
if (options.arrays || options.defaults) {
|
|
10778
11406
|
object.tasks = [];
|
|
10779
|
-
object.
|
|
11407
|
+
object.dependencies = [];
|
|
11408
|
+
object.transitiveInputs = [];
|
|
10780
11409
|
}
|
|
10781
11410
|
if (options.defaults) {
|
|
11411
|
+
object.name = "";
|
|
10782
11412
|
object.type = "";
|
|
10783
11413
|
object.target = null;
|
|
10784
11414
|
object.tableType = "";
|
|
@@ -10786,28 +11416,35 @@ const dataform = $root.dataform = (() => {
|
|
|
10786
11416
|
object.actionDescriptor = null;
|
|
10787
11417
|
object.hermeticity = options.enums === String ? "UNKNOWN" : 0;
|
|
10788
11418
|
}
|
|
11419
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
11420
|
+
object.name = message.name;
|
|
10789
11421
|
if (message.tasks && message.tasks.length) {
|
|
10790
11422
|
object.tasks = [];
|
|
10791
11423
|
for (let j = 0; j < message.tasks.length; ++j)
|
|
10792
11424
|
object.tasks[j] = $root.dataform.ExecutionTask.toObject(message.tasks[j], options);
|
|
10793
11425
|
}
|
|
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
|
+
}
|
|
10794
11431
|
if (message.type != null && message.hasOwnProperty("type"))
|
|
10795
11432
|
object.type = message.type;
|
|
10796
11433
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
10797
11434
|
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
10798
11435
|
if (message.tableType != null && message.hasOwnProperty("tableType"))
|
|
10799
11436
|
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
|
+
}
|
|
10800
11442
|
if (message.fileName != null && message.hasOwnProperty("fileName"))
|
|
10801
11443
|
object.fileName = message.fileName;
|
|
10802
11444
|
if (message.actionDescriptor != null && message.hasOwnProperty("actionDescriptor"))
|
|
10803
11445
|
object.actionDescriptor = $root.dataform.ActionDescriptor.toObject(message.actionDescriptor, options);
|
|
10804
11446
|
if (message.hermeticity != null && message.hasOwnProperty("hermeticity"))
|
|
10805
11447
|
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
|
-
}
|
|
10811
11448
|
return object;
|
|
10812
11449
|
};
|
|
10813
11450
|
|
|
@@ -11926,10 +12563,13 @@ const dataform = $root.dataform = (() => {
|
|
|
11926
12563
|
* Properties of an ActionResult.
|
|
11927
12564
|
* @memberof dataform
|
|
11928
12565
|
* @interface IActionResult
|
|
12566
|
+
* @property {string|null} [name] ActionResult name
|
|
11929
12567
|
* @property {dataform.ITarget|null} [target] ActionResult target
|
|
12568
|
+
* @property {Array.<dataform.ActionResult.IInput>|null} [inputs] ActionResult inputs
|
|
11930
12569
|
* @property {dataform.ActionResult.ExecutionStatus|null} [status] ActionResult status
|
|
11931
12570
|
* @property {Array.<dataform.ITaskResult>|null} [tasks] ActionResult tasks
|
|
11932
12571
|
* @property {dataform.ITiming|null} [timing] ActionResult timing
|
|
12572
|
+
* @property {Long|null} [postExecutionTimestampMillis] ActionResult postExecutionTimestampMillis
|
|
11933
12573
|
*/
|
|
11934
12574
|
|
|
11935
12575
|
/**
|
|
@@ -11941,6 +12581,7 @@ const dataform = $root.dataform = (() => {
|
|
|
11941
12581
|
* @param {dataform.IActionResult=} [properties] Properties to set
|
|
11942
12582
|
*/
|
|
11943
12583
|
function ActionResult(properties) {
|
|
12584
|
+
this.inputs = [];
|
|
11944
12585
|
this.tasks = [];
|
|
11945
12586
|
if (properties)
|
|
11946
12587
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -11948,6 +12589,14 @@ const dataform = $root.dataform = (() => {
|
|
|
11948
12589
|
this[keys[i]] = properties[keys[i]];
|
|
11949
12590
|
}
|
|
11950
12591
|
|
|
12592
|
+
/**
|
|
12593
|
+
* ActionResult name.
|
|
12594
|
+
* @member {string} name
|
|
12595
|
+
* @memberof dataform.ActionResult
|
|
12596
|
+
* @instance
|
|
12597
|
+
*/
|
|
12598
|
+
ActionResult.prototype.name = "";
|
|
12599
|
+
|
|
11951
12600
|
/**
|
|
11952
12601
|
* ActionResult target.
|
|
11953
12602
|
* @member {dataform.ITarget|null|undefined} target
|
|
@@ -11956,6 +12605,14 @@ const dataform = $root.dataform = (() => {
|
|
|
11956
12605
|
*/
|
|
11957
12606
|
ActionResult.prototype.target = null;
|
|
11958
12607
|
|
|
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
|
+
|
|
11959
12616
|
/**
|
|
11960
12617
|
* ActionResult status.
|
|
11961
12618
|
* @member {dataform.ActionResult.ExecutionStatus} status
|
|
@@ -11980,6 +12637,14 @@ const dataform = $root.dataform = (() => {
|
|
|
11980
12637
|
*/
|
|
11981
12638
|
ActionResult.prototype.timing = null;
|
|
11982
12639
|
|
|
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
|
+
|
|
11983
12648
|
/**
|
|
11984
12649
|
* Creates a new ActionResult instance using the specified properties.
|
|
11985
12650
|
* @function create
|
|
@@ -12004,6 +12669,8 @@ const dataform = $root.dataform = (() => {
|
|
|
12004
12669
|
ActionResult.encode = function encode(message, writer) {
|
|
12005
12670
|
if (!writer)
|
|
12006
12671
|
writer = $Writer.create();
|
|
12672
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
12673
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
12007
12674
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
12008
12675
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status);
|
|
12009
12676
|
if (message.tasks != null && message.tasks.length)
|
|
@@ -12013,6 +12680,11 @@ const dataform = $root.dataform = (() => {
|
|
|
12013
12680
|
$root.dataform.Timing.encode(message.timing, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
12014
12681
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
12015
12682
|
$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);
|
|
12016
12688
|
return writer;
|
|
12017
12689
|
};
|
|
12018
12690
|
|
|
@@ -12047,9 +12719,17 @@ const dataform = $root.dataform = (() => {
|
|
|
12047
12719
|
while (reader.pos < end) {
|
|
12048
12720
|
let tag = reader.uint32();
|
|
12049
12721
|
switch (tag >>> 3) {
|
|
12722
|
+
case 1:
|
|
12723
|
+
message.name = reader.string();
|
|
12724
|
+
break;
|
|
12050
12725
|
case 5:
|
|
12051
12726
|
message.target = $root.dataform.Target.decode(reader, reader.uint32());
|
|
12052
12727
|
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;
|
|
12053
12733
|
case 2:
|
|
12054
12734
|
message.status = reader.int32();
|
|
12055
12735
|
break;
|
|
@@ -12061,6 +12741,9 @@ const dataform = $root.dataform = (() => {
|
|
|
12061
12741
|
case 4:
|
|
12062
12742
|
message.timing = $root.dataform.Timing.decode(reader, reader.uint32());
|
|
12063
12743
|
break;
|
|
12744
|
+
case 7:
|
|
12745
|
+
message.postExecutionTimestampMillis = reader.int64();
|
|
12746
|
+
break;
|
|
12064
12747
|
default:
|
|
12065
12748
|
reader.skipType(tag & 7);
|
|
12066
12749
|
break;
|
|
@@ -12096,11 +12779,23 @@ const dataform = $root.dataform = (() => {
|
|
|
12096
12779
|
ActionResult.verify = function verify(message) {
|
|
12097
12780
|
if (typeof message !== "object" || message === null)
|
|
12098
12781
|
return "object expected";
|
|
12782
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
12783
|
+
if (!$util.isString(message.name))
|
|
12784
|
+
return "name: string expected";
|
|
12099
12785
|
if (message.target != null && message.hasOwnProperty("target")) {
|
|
12100
12786
|
let error = $root.dataform.Target.verify(message.target);
|
|
12101
12787
|
if (error)
|
|
12102
12788
|
return "target." + error;
|
|
12103
12789
|
}
|
|
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
|
+
}
|
|
12104
12799
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
12105
12800
|
switch (message.status) {
|
|
12106
12801
|
default:
|
|
@@ -12112,6 +12807,7 @@ const dataform = $root.dataform = (() => {
|
|
|
12112
12807
|
case 4:
|
|
12113
12808
|
case 5:
|
|
12114
12809
|
case 6:
|
|
12810
|
+
case 7:
|
|
12115
12811
|
break;
|
|
12116
12812
|
}
|
|
12117
12813
|
if (message.tasks != null && message.hasOwnProperty("tasks")) {
|
|
@@ -12128,6 +12824,9 @@ const dataform = $root.dataform = (() => {
|
|
|
12128
12824
|
if (error)
|
|
12129
12825
|
return "timing." + error;
|
|
12130
12826
|
}
|
|
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";
|
|
12131
12830
|
return null;
|
|
12132
12831
|
};
|
|
12133
12832
|
|
|
@@ -12143,11 +12842,23 @@ const dataform = $root.dataform = (() => {
|
|
|
12143
12842
|
if (object instanceof $root.dataform.ActionResult)
|
|
12144
12843
|
return object;
|
|
12145
12844
|
let message = new $root.dataform.ActionResult();
|
|
12845
|
+
if (object.name != null)
|
|
12846
|
+
message.name = String(object.name);
|
|
12146
12847
|
if (object.target != null) {
|
|
12147
12848
|
if (typeof object.target !== "object")
|
|
12148
12849
|
throw TypeError(".dataform.ActionResult.target: object expected");
|
|
12149
12850
|
message.target = $root.dataform.Target.fromObject(object.target);
|
|
12150
12851
|
}
|
|
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
|
+
}
|
|
12151
12862
|
switch (object.status) {
|
|
12152
12863
|
case "UNKNOWN":
|
|
12153
12864
|
case 0:
|
|
@@ -12177,6 +12888,10 @@ const dataform = $root.dataform = (() => {
|
|
|
12177
12888
|
case 6:
|
|
12178
12889
|
message.status = 6;
|
|
12179
12890
|
break;
|
|
12891
|
+
case "CACHE_SKIPPED":
|
|
12892
|
+
case 7:
|
|
12893
|
+
message.status = 7;
|
|
12894
|
+
break;
|
|
12180
12895
|
}
|
|
12181
12896
|
if (object.tasks) {
|
|
12182
12897
|
if (!Array.isArray(object.tasks))
|
|
@@ -12193,53 +12908,503 @@ const dataform = $root.dataform = (() => {
|
|
|
12193
12908
|
throw TypeError(".dataform.ActionResult.timing: object expected");
|
|
12194
12909
|
message.timing = $root.dataform.Timing.fromObject(object.timing);
|
|
12195
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();
|
|
12196
12920
|
return message;
|
|
12197
12921
|
};
|
|
12198
12922
|
|
|
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
|
-
|
|
12215
|
-
|
|
12216
|
-
|
|
12217
|
-
object.
|
|
12218
|
-
|
|
12219
|
-
|
|
12220
|
-
object.
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12226
|
-
|
|
12227
|
-
|
|
12228
|
-
|
|
12229
|
-
|
|
12230
|
-
|
|
12231
|
-
|
|
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
|
+
};
|
|
12232
13340
|
|
|
12233
|
-
|
|
12234
|
-
|
|
12235
|
-
|
|
12236
|
-
|
|
12237
|
-
|
|
12238
|
-
|
|
12239
|
-
|
|
12240
|
-
|
|
12241
|
-
|
|
12242
|
-
|
|
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
|
+
};
|
|
13402
|
+
|
|
13403
|
+
return Metadata;
|
|
13404
|
+
})();
|
|
13405
|
+
|
|
13406
|
+
return Input;
|
|
13407
|
+
})();
|
|
12243
13408
|
|
|
12244
13409
|
/**
|
|
12245
13410
|
* ExecutionStatus enum.
|
|
@@ -12252,6 +13417,7 @@ const dataform = $root.dataform = (() => {
|
|
|
12252
13417
|
* @property {number} SKIPPED=4 SKIPPED value
|
|
12253
13418
|
* @property {number} DISABLED=5 DISABLED value
|
|
12254
13419
|
* @property {number} CANCELLED=6 CANCELLED value
|
|
13420
|
+
* @property {number} CACHE_SKIPPED=7 CACHE_SKIPPED value
|
|
12255
13421
|
*/
|
|
12256
13422
|
ActionResult.ExecutionStatus = (function() {
|
|
12257
13423
|
const valuesById = {}, values = Object.create(valuesById);
|
|
@@ -12262,6 +13428,7 @@ const dataform = $root.dataform = (() => {
|
|
|
12262
13428
|
values[valuesById[4] = "SKIPPED"] = 4;
|
|
12263
13429
|
values[valuesById[5] = "DISABLED"] = 5;
|
|
12264
13430
|
values[valuesById[6] = "CANCELLED"] = 6;
|
|
13431
|
+
values[valuesById[7] = "CACHE_SKIPPED"] = 7;
|
|
12265
13432
|
return values;
|
|
12266
13433
|
})();
|
|
12267
13434
|
|
|
@@ -13299,6 +14466,7 @@ const dataform = $root.dataform = (() => {
|
|
|
13299
14466
|
* @property {dataform.Field.Primitive|null} [primitive] Field primitive
|
|
13300
14467
|
* @property {dataform.IFields|null} [struct] Field struct
|
|
13301
14468
|
* @property {string|null} [description] Field description
|
|
14469
|
+
* @property {Array.<string>|null} [flagsDeprecated] Field flagsDeprecated
|
|
13302
14470
|
*/
|
|
13303
14471
|
|
|
13304
14472
|
/**
|
|
@@ -13311,6 +14479,7 @@ const dataform = $root.dataform = (() => {
|
|
|
13311
14479
|
*/
|
|
13312
14480
|
function Field(properties) {
|
|
13313
14481
|
this.flags = [];
|
|
14482
|
+
this.flagsDeprecated = [];
|
|
13314
14483
|
if (properties)
|
|
13315
14484
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13316
14485
|
if (properties[keys[i]] != null)
|
|
@@ -13357,6 +14526,14 @@ const dataform = $root.dataform = (() => {
|
|
|
13357
14526
|
*/
|
|
13358
14527
|
Field.prototype.description = "";
|
|
13359
14528
|
|
|
14529
|
+
/**
|
|
14530
|
+
* Field flagsDeprecated.
|
|
14531
|
+
* @member {Array.<string>} flagsDeprecated
|
|
14532
|
+
* @memberof dataform.Field
|
|
14533
|
+
* @instance
|
|
14534
|
+
*/
|
|
14535
|
+
Field.prototype.flagsDeprecated = $util.emptyArray;
|
|
14536
|
+
|
|
13360
14537
|
// OneOf field names bound to virtual getters and setters
|
|
13361
14538
|
let $oneOfFields;
|
|
13362
14539
|
|
|
@@ -13399,6 +14576,9 @@ const dataform = $root.dataform = (() => {
|
|
|
13399
14576
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
13400
14577
|
if (message.struct != null && message.hasOwnProperty("struct"))
|
|
13401
14578
|
$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]);
|
|
13402
14582
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
13403
14583
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.description);
|
|
13404
14584
|
if (message.flags != null && message.flags.length) {
|
|
@@ -13465,6 +14645,11 @@ const dataform = $root.dataform = (() => {
|
|
|
13465
14645
|
case 5:
|
|
13466
14646
|
message.description = reader.string();
|
|
13467
14647
|
break;
|
|
14648
|
+
case 4:
|
|
14649
|
+
if (!(message.flagsDeprecated && message.flagsDeprecated.length))
|
|
14650
|
+
message.flagsDeprecated = [];
|
|
14651
|
+
message.flagsDeprecated.push(reader.string());
|
|
14652
|
+
break;
|
|
13468
14653
|
default:
|
|
13469
14654
|
reader.skipType(tag & 7);
|
|
13470
14655
|
break;
|
|
@@ -13550,6 +14735,13 @@ const dataform = $root.dataform = (() => {
|
|
|
13550
14735
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
13551
14736
|
if (!$util.isString(message.description))
|
|
13552
14737
|
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
|
+
}
|
|
13553
14745
|
return null;
|
|
13554
14746
|
};
|
|
13555
14747
|
|
|
@@ -13645,6 +14837,13 @@ const dataform = $root.dataform = (() => {
|
|
|
13645
14837
|
}
|
|
13646
14838
|
if (object.description != null)
|
|
13647
14839
|
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
|
+
}
|
|
13648
14847
|
return message;
|
|
13649
14848
|
};
|
|
13650
14849
|
|
|
@@ -13661,8 +14860,10 @@ const dataform = $root.dataform = (() => {
|
|
|
13661
14860
|
if (!options)
|
|
13662
14861
|
options = {};
|
|
13663
14862
|
let object = {};
|
|
13664
|
-
if (options.arrays || options.defaults)
|
|
14863
|
+
if (options.arrays || options.defaults) {
|
|
14864
|
+
object.flagsDeprecated = [];
|
|
13665
14865
|
object.flags = [];
|
|
14866
|
+
}
|
|
13666
14867
|
if (options.defaults) {
|
|
13667
14868
|
object.name = "";
|
|
13668
14869
|
object.description = "";
|
|
@@ -13674,6 +14875,11 @@ const dataform = $root.dataform = (() => {
|
|
|
13674
14875
|
if (options.oneofs)
|
|
13675
14876
|
object.type = "struct";
|
|
13676
14877
|
}
|
|
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
|
+
}
|
|
13677
14883
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
13678
14884
|
object.description = message.description;
|
|
13679
14885
|
if (message.flags && message.flags.length) {
|
|
@@ -13974,6 +15180,7 @@ const dataform = $root.dataform = (() => {
|
|
|
13974
15180
|
* @property {Object.<string,string>|null} [labels] TableMetadata labels
|
|
13975
15181
|
* @property {Long|null} [lastUpdatedMillis] TableMetadata lastUpdatedMillis
|
|
13976
15182
|
* @property {dataform.TableMetadata.IBigQuery|null} [bigquery] TableMetadata bigquery
|
|
15183
|
+
* @property {string|null} [typeDeprecated] TableMetadata typeDeprecated
|
|
13977
15184
|
*/
|
|
13978
15185
|
|
|
13979
15186
|
/**
|
|
@@ -14049,6 +15256,14 @@ const dataform = $root.dataform = (() => {
|
|
|
14049
15256
|
*/
|
|
14050
15257
|
TableMetadata.prototype.bigquery = null;
|
|
14051
15258
|
|
|
15259
|
+
/**
|
|
15260
|
+
* TableMetadata typeDeprecated.
|
|
15261
|
+
* @member {string} typeDeprecated
|
|
15262
|
+
* @memberof dataform.TableMetadata
|
|
15263
|
+
* @instance
|
|
15264
|
+
*/
|
|
15265
|
+
TableMetadata.prototype.typeDeprecated = "";
|
|
15266
|
+
|
|
14052
15267
|
/**
|
|
14053
15268
|
* Creates a new TableMetadata instance using the specified properties.
|
|
14054
15269
|
* @function create
|
|
@@ -14075,6 +15290,8 @@ const dataform = $root.dataform = (() => {
|
|
|
14075
15290
|
writer = $Writer.create();
|
|
14076
15291
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
14077
15292
|
$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);
|
|
14078
15295
|
if (message.fields != null && message.fields.length)
|
|
14079
15296
|
for (let i = 0; i < message.fields.length; ++i)
|
|
14080
15297
|
$root.dataform.Field.encode(message.fields[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
@@ -14151,6 +15368,9 @@ const dataform = $root.dataform = (() => {
|
|
|
14151
15368
|
case 8:
|
|
14152
15369
|
message.bigquery = $root.dataform.TableMetadata.BigQuery.decode(reader, reader.uint32());
|
|
14153
15370
|
break;
|
|
15371
|
+
case 2:
|
|
15372
|
+
message.typeDeprecated = reader.string();
|
|
15373
|
+
break;
|
|
14154
15374
|
default:
|
|
14155
15375
|
reader.skipType(tag & 7);
|
|
14156
15376
|
break;
|
|
@@ -14228,6 +15448,9 @@ const dataform = $root.dataform = (() => {
|
|
|
14228
15448
|
if (error)
|
|
14229
15449
|
return "bigquery." + error;
|
|
14230
15450
|
}
|
|
15451
|
+
if (message.typeDeprecated != null && message.hasOwnProperty("typeDeprecated"))
|
|
15452
|
+
if (!$util.isString(message.typeDeprecated))
|
|
15453
|
+
return "typeDeprecated: string expected";
|
|
14231
15454
|
return null;
|
|
14232
15455
|
};
|
|
14233
15456
|
|
|
@@ -14295,6 +15518,8 @@ const dataform = $root.dataform = (() => {
|
|
|
14295
15518
|
throw TypeError(".dataform.TableMetadata.bigquery: object expected");
|
|
14296
15519
|
message.bigquery = $root.dataform.TableMetadata.BigQuery.fromObject(object.bigquery);
|
|
14297
15520
|
}
|
|
15521
|
+
if (object.typeDeprecated != null)
|
|
15522
|
+
message.typeDeprecated = String(object.typeDeprecated);
|
|
14298
15523
|
return message;
|
|
14299
15524
|
};
|
|
14300
15525
|
|
|
@@ -14317,6 +15542,7 @@ const dataform = $root.dataform = (() => {
|
|
|
14317
15542
|
object.labels = {};
|
|
14318
15543
|
if (options.defaults) {
|
|
14319
15544
|
object.target = null;
|
|
15545
|
+
object.typeDeprecated = "";
|
|
14320
15546
|
if ($util.Long) {
|
|
14321
15547
|
let long = new $util.Long(0, 0, false);
|
|
14322
15548
|
object.lastUpdatedMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
@@ -14328,6 +15554,8 @@ const dataform = $root.dataform = (() => {
|
|
|
14328
15554
|
}
|
|
14329
15555
|
if (message.target != null && message.hasOwnProperty("target"))
|
|
14330
15556
|
object.target = $root.dataform.Target.toObject(message.target, options);
|
|
15557
|
+
if (message.typeDeprecated != null && message.hasOwnProperty("typeDeprecated"))
|
|
15558
|
+
object.typeDeprecated = message.typeDeprecated;
|
|
14331
15559
|
if (message.fields && message.fields.length) {
|
|
14332
15560
|
object.fields = [];
|
|
14333
15561
|
for (let j = 0; j < message.fields.length; ++j)
|
|
@@ -14570,24 +15798,28 @@ const dataform = $root.dataform = (() => {
|
|
|
14570
15798
|
return TableMetadata;
|
|
14571
15799
|
})();
|
|
14572
15800
|
|
|
14573
|
-
dataform.
|
|
15801
|
+
dataform.PersistedTableMetadata = (function() {
|
|
14574
15802
|
|
|
14575
15803
|
/**
|
|
14576
|
-
* Properties of a
|
|
15804
|
+
* Properties of a PersistedTableMetadata.
|
|
14577
15805
|
* @memberof dataform
|
|
14578
|
-
* @interface
|
|
14579
|
-
* @property {dataform.
|
|
15806
|
+
* @interface IPersistedTableMetadata
|
|
15807
|
+
* @property {dataform.ITarget|null} [target] PersistedTableMetadata target
|
|
15808
|
+
* @property {string|null} [definitionHash] PersistedTableMetadata definitionHash
|
|
15809
|
+
* @property {Long|null} [lastUpdatedMillis] PersistedTableMetadata lastUpdatedMillis
|
|
15810
|
+
* @property {Array.<dataform.PersistedTableMetadata.ITransitiveInputMetadata>|null} [transitiveInputTables] PersistedTableMetadata transitiveInputTables
|
|
14580
15811
|
*/
|
|
14581
15812
|
|
|
14582
15813
|
/**
|
|
14583
|
-
* Constructs a new
|
|
15814
|
+
* Constructs a new PersistedTableMetadata.
|
|
14584
15815
|
* @memberof dataform
|
|
14585
|
-
* @classdesc Represents a
|
|
14586
|
-
* @implements
|
|
15816
|
+
* @classdesc Represents a PersistedTableMetadata.
|
|
15817
|
+
* @implements IPersistedTableMetadata
|
|
14587
15818
|
* @constructor
|
|
14588
|
-
* @param {dataform.
|
|
15819
|
+
* @param {dataform.IPersistedTableMetadata=} [properties] Properties to set
|
|
14589
15820
|
*/
|
|
14590
|
-
function
|
|
15821
|
+
function PersistedTableMetadata(properties) {
|
|
15822
|
+
this.transitiveInputTables = [];
|
|
14591
15823
|
if (properties)
|
|
14592
15824
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14593
15825
|
if (properties[keys[i]] != null)
|
|
@@ -14595,298 +15827,117 @@ const dataform = $root.dataform = (() => {
|
|
|
14595
15827
|
}
|
|
14596
15828
|
|
|
14597
15829
|
/**
|
|
14598
|
-
*
|
|
14599
|
-
* @member {dataform.
|
|
14600
|
-
* @memberof dataform.
|
|
14601
|
-
* @instance
|
|
14602
|
-
*/
|
|
14603
|
-
CoreExecutionRequest.prototype.compile = null;
|
|
14604
|
-
|
|
14605
|
-
// OneOf field names bound to virtual getters and setters
|
|
14606
|
-
let $oneOfFields;
|
|
14607
|
-
|
|
14608
|
-
/**
|
|
14609
|
-
* CoreExecutionRequest request.
|
|
14610
|
-
* @member {"compile"|undefined} request
|
|
14611
|
-
* @memberof dataform.CoreExecutionRequest
|
|
15830
|
+
* PersistedTableMetadata target.
|
|
15831
|
+
* @member {dataform.ITarget|null|undefined} target
|
|
15832
|
+
* @memberof dataform.PersistedTableMetadata
|
|
14612
15833
|
* @instance
|
|
14613
15834
|
*/
|
|
14614
|
-
|
|
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
|
-
};
|
|
14630
|
-
|
|
14631
|
-
/**
|
|
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
|
-
};
|
|
15835
|
+
PersistedTableMetadata.prototype.target = null;
|
|
14767
15836
|
|
|
14768
15837
|
/**
|
|
14769
|
-
*
|
|
14770
|
-
* @
|
|
14771
|
-
* @memberof dataform.
|
|
15838
|
+
* PersistedTableMetadata definitionHash.
|
|
15839
|
+
* @member {string} definitionHash
|
|
15840
|
+
* @memberof dataform.PersistedTableMetadata
|
|
14772
15841
|
* @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
15842
|
*/
|
|
14799
|
-
|
|
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
|
-
}
|
|
15843
|
+
PersistedTableMetadata.prototype.definitionHash = "";
|
|
14805
15844
|
|
|
14806
15845
|
/**
|
|
14807
|
-
*
|
|
14808
|
-
* @member {
|
|
14809
|
-
* @memberof dataform.
|
|
15846
|
+
* PersistedTableMetadata lastUpdatedMillis.
|
|
15847
|
+
* @member {Long} lastUpdatedMillis
|
|
15848
|
+
* @memberof dataform.PersistedTableMetadata
|
|
14810
15849
|
* @instance
|
|
14811
15850
|
*/
|
|
14812
|
-
|
|
14813
|
-
|
|
14814
|
-
// OneOf field names bound to virtual getters and setters
|
|
14815
|
-
let $oneOfFields;
|
|
15851
|
+
PersistedTableMetadata.prototype.lastUpdatedMillis = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
14816
15852
|
|
|
14817
15853
|
/**
|
|
14818
|
-
*
|
|
14819
|
-
* @member {
|
|
14820
|
-
* @memberof dataform.
|
|
15854
|
+
* PersistedTableMetadata transitiveInputTables.
|
|
15855
|
+
* @member {Array.<dataform.PersistedTableMetadata.ITransitiveInputMetadata>} transitiveInputTables
|
|
15856
|
+
* @memberof dataform.PersistedTableMetadata
|
|
14821
15857
|
* @instance
|
|
14822
15858
|
*/
|
|
14823
|
-
|
|
14824
|
-
get: $util.oneOfGetter($oneOfFields = ["compile"]),
|
|
14825
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
14826
|
-
});
|
|
15859
|
+
PersistedTableMetadata.prototype.transitiveInputTables = $util.emptyArray;
|
|
14827
15860
|
|
|
14828
15861
|
/**
|
|
14829
|
-
* Creates a new
|
|
15862
|
+
* Creates a new PersistedTableMetadata instance using the specified properties.
|
|
14830
15863
|
* @function create
|
|
14831
|
-
* @memberof dataform.
|
|
15864
|
+
* @memberof dataform.PersistedTableMetadata
|
|
14832
15865
|
* @static
|
|
14833
|
-
* @param {dataform.
|
|
14834
|
-
* @returns {dataform.
|
|
15866
|
+
* @param {dataform.IPersistedTableMetadata=} [properties] Properties to set
|
|
15867
|
+
* @returns {dataform.PersistedTableMetadata} PersistedTableMetadata instance
|
|
14835
15868
|
*/
|
|
14836
|
-
|
|
14837
|
-
return new
|
|
15869
|
+
PersistedTableMetadata.create = function create(properties) {
|
|
15870
|
+
return new PersistedTableMetadata(properties);
|
|
14838
15871
|
};
|
|
14839
15872
|
|
|
14840
15873
|
/**
|
|
14841
|
-
* Encodes the specified
|
|
15874
|
+
* Encodes the specified PersistedTableMetadata message. Does not implicitly {@link dataform.PersistedTableMetadata.verify|verify} messages.
|
|
14842
15875
|
* @function encode
|
|
14843
|
-
* @memberof dataform.
|
|
15876
|
+
* @memberof dataform.PersistedTableMetadata
|
|
14844
15877
|
* @static
|
|
14845
|
-
* @param {dataform.
|
|
15878
|
+
* @param {dataform.IPersistedTableMetadata} message PersistedTableMetadata message or plain object to encode
|
|
14846
15879
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14847
15880
|
* @returns {$protobuf.Writer} Writer
|
|
14848
15881
|
*/
|
|
14849
|
-
|
|
15882
|
+
PersistedTableMetadata.encode = function encode(message, writer) {
|
|
14850
15883
|
if (!writer)
|
|
14851
15884
|
writer = $Writer.create();
|
|
14852
|
-
if (message.
|
|
14853
|
-
$root.dataform.
|
|
15885
|
+
if (message.target != null && message.hasOwnProperty("target"))
|
|
15886
|
+
$root.dataform.Target.encode(message.target, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
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();
|
|
14854
15894
|
return writer;
|
|
14855
15895
|
};
|
|
14856
15896
|
|
|
14857
15897
|
/**
|
|
14858
|
-
* Encodes the specified
|
|
15898
|
+
* Encodes the specified PersistedTableMetadata message, length delimited. Does not implicitly {@link dataform.PersistedTableMetadata.verify|verify} messages.
|
|
14859
15899
|
* @function encodeDelimited
|
|
14860
|
-
* @memberof dataform.
|
|
15900
|
+
* @memberof dataform.PersistedTableMetadata
|
|
14861
15901
|
* @static
|
|
14862
|
-
* @param {dataform.
|
|
15902
|
+
* @param {dataform.IPersistedTableMetadata} message PersistedTableMetadata message or plain object to encode
|
|
14863
15903
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14864
15904
|
* @returns {$protobuf.Writer} Writer
|
|
14865
15905
|
*/
|
|
14866
|
-
|
|
15906
|
+
PersistedTableMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14867
15907
|
return this.encode(message, writer).ldelim();
|
|
14868
15908
|
};
|
|
14869
15909
|
|
|
14870
15910
|
/**
|
|
14871
|
-
* Decodes a
|
|
15911
|
+
* Decodes a PersistedTableMetadata message from the specified reader or buffer.
|
|
14872
15912
|
* @function decode
|
|
14873
|
-
* @memberof dataform.
|
|
15913
|
+
* @memberof dataform.PersistedTableMetadata
|
|
14874
15914
|
* @static
|
|
14875
15915
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14876
15916
|
* @param {number} [length] Message length if known beforehand
|
|
14877
|
-
* @returns {dataform.
|
|
15917
|
+
* @returns {dataform.PersistedTableMetadata} PersistedTableMetadata
|
|
14878
15918
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14879
15919
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14880
15920
|
*/
|
|
14881
|
-
|
|
15921
|
+
PersistedTableMetadata.decode = function decode(reader, length) {
|
|
14882
15922
|
if (!(reader instanceof $Reader))
|
|
14883
15923
|
reader = $Reader.create(reader);
|
|
14884
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.
|
|
15924
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.PersistedTableMetadata();
|
|
14885
15925
|
while (reader.pos < end) {
|
|
14886
15926
|
let tag = reader.uint32();
|
|
14887
15927
|
switch (tag >>> 3) {
|
|
14888
15928
|
case 1:
|
|
14889
|
-
message.
|
|
15929
|
+
message.target = $root.dataform.Target.decode(reader, reader.uint32());
|
|
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()));
|
|
14890
15941
|
break;
|
|
14891
15942
|
default:
|
|
14892
15943
|
reader.skipType(tag & 7);
|
|
@@ -14897,115 +15948,398 @@ const dataform = $root.dataform = (() => {
|
|
|
14897
15948
|
};
|
|
14898
15949
|
|
|
14899
15950
|
/**
|
|
14900
|
-
* Decodes a
|
|
15951
|
+
* Decodes a PersistedTableMetadata message from the specified reader or buffer, length delimited.
|
|
14901
15952
|
* @function decodeDelimited
|
|
14902
|
-
* @memberof dataform.
|
|
15953
|
+
* @memberof dataform.PersistedTableMetadata
|
|
14903
15954
|
* @static
|
|
14904
15955
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14905
|
-
* @returns {dataform.
|
|
15956
|
+
* @returns {dataform.PersistedTableMetadata} PersistedTableMetadata
|
|
14906
15957
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14907
15958
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14908
15959
|
*/
|
|
14909
|
-
|
|
15960
|
+
PersistedTableMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
14910
15961
|
if (!(reader instanceof $Reader))
|
|
14911
15962
|
reader = new $Reader(reader);
|
|
14912
15963
|
return this.decode(reader, reader.uint32());
|
|
14913
15964
|
};
|
|
14914
15965
|
|
|
14915
15966
|
/**
|
|
14916
|
-
* Verifies a
|
|
15967
|
+
* Verifies a PersistedTableMetadata message.
|
|
14917
15968
|
* @function verify
|
|
14918
|
-
* @memberof dataform.
|
|
15969
|
+
* @memberof dataform.PersistedTableMetadata
|
|
14919
15970
|
* @static
|
|
14920
15971
|
* @param {Object.<string,*>} message Plain object to verify
|
|
14921
15972
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14922
15973
|
*/
|
|
14923
|
-
|
|
15974
|
+
PersistedTableMetadata.verify = function verify(message) {
|
|
14924
15975
|
if (typeof message !== "object" || message === null)
|
|
14925
15976
|
return "object expected";
|
|
14926
|
-
if (message.
|
|
14927
|
-
|
|
14928
|
-
|
|
15977
|
+
if (message.target != null && message.hasOwnProperty("target")) {
|
|
15978
|
+
let error = $root.dataform.Target.verify(message.target);
|
|
15979
|
+
if (error)
|
|
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]);
|
|
14929
15993
|
if (error)
|
|
14930
|
-
return "
|
|
15994
|
+
return "transitiveInputTables." + error;
|
|
14931
15995
|
}
|
|
14932
15996
|
}
|
|
14933
15997
|
return null;
|
|
14934
15998
|
};
|
|
14935
15999
|
|
|
14936
16000
|
/**
|
|
14937
|
-
* Creates a
|
|
16001
|
+
* Creates a PersistedTableMetadata message from a plain object. Also converts values to their respective internal types.
|
|
14938
16002
|
* @function fromObject
|
|
14939
|
-
* @memberof dataform.
|
|
16003
|
+
* @memberof dataform.PersistedTableMetadata
|
|
14940
16004
|
* @static
|
|
14941
16005
|
* @param {Object.<string,*>} object Plain object
|
|
14942
|
-
* @returns {dataform.
|
|
16006
|
+
* @returns {dataform.PersistedTableMetadata} PersistedTableMetadata
|
|
14943
16007
|
*/
|
|
14944
|
-
|
|
14945
|
-
if (object instanceof $root.dataform.
|
|
16008
|
+
PersistedTableMetadata.fromObject = function fromObject(object) {
|
|
16009
|
+
if (object instanceof $root.dataform.PersistedTableMetadata)
|
|
14946
16010
|
return object;
|
|
14947
|
-
let message = new $root.dataform.
|
|
14948
|
-
if (object.
|
|
14949
|
-
if (typeof object.
|
|
14950
|
-
throw TypeError(".dataform.
|
|
14951
|
-
message.
|
|
16011
|
+
let message = new $root.dataform.PersistedTableMetadata();
|
|
16012
|
+
if (object.target != null) {
|
|
16013
|
+
if (typeof object.target !== "object")
|
|
16014
|
+
throw TypeError(".dataform.PersistedTableMetadata.target: object expected");
|
|
16015
|
+
message.target = $root.dataform.Target.fromObject(object.target);
|
|
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
|
+
}
|
|
14952
16037
|
}
|
|
14953
16038
|
return message;
|
|
14954
16039
|
};
|
|
14955
16040
|
|
|
14956
16041
|
/**
|
|
14957
|
-
* Creates a plain object from a
|
|
16042
|
+
* Creates a plain object from a PersistedTableMetadata message. Also converts values to other types if specified.
|
|
14958
16043
|
* @function toObject
|
|
14959
|
-
* @memberof dataform.
|
|
16044
|
+
* @memberof dataform.PersistedTableMetadata
|
|
14960
16045
|
* @static
|
|
14961
|
-
* @param {dataform.
|
|
16046
|
+
* @param {dataform.PersistedTableMetadata} message PersistedTableMetadata
|
|
14962
16047
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14963
16048
|
* @returns {Object.<string,*>} Plain object
|
|
14964
16049
|
*/
|
|
14965
|
-
|
|
16050
|
+
PersistedTableMetadata.toObject = function toObject(message, options) {
|
|
14966
16051
|
if (!options)
|
|
14967
16052
|
options = {};
|
|
14968
16053
|
let object = {};
|
|
14969
|
-
if (
|
|
14970
|
-
object.
|
|
14971
|
-
|
|
14972
|
-
|
|
16054
|
+
if (options.arrays || options.defaults)
|
|
16055
|
+
object.transitiveInputTables = [];
|
|
16056
|
+
if (options.defaults) {
|
|
16057
|
+
object.target = null;
|
|
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);
|
|
14973
16078
|
}
|
|
14974
16079
|
return object;
|
|
14975
16080
|
};
|
|
14976
16081
|
|
|
14977
16082
|
/**
|
|
14978
|
-
* Converts this
|
|
16083
|
+
* Converts this PersistedTableMetadata to JSON.
|
|
14979
16084
|
* @function toJSON
|
|
14980
|
-
* @memberof dataform.
|
|
16085
|
+
* @memberof dataform.PersistedTableMetadata
|
|
14981
16086
|
* @instance
|
|
14982
16087
|
* @returns {Object.<string,*>} JSON object
|
|
14983
16088
|
*/
|
|
14984
|
-
|
|
16089
|
+
PersistedTableMetadata.prototype.toJSON = function toJSON() {
|
|
14985
16090
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14986
16091
|
};
|
|
14987
16092
|
|
|
14988
|
-
|
|
16093
|
+
PersistedTableMetadata.TransitiveInputMetadata = (function() {
|
|
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;
|
|
14989
16323
|
})();
|
|
14990
16324
|
|
|
14991
|
-
dataform.
|
|
16325
|
+
dataform.CoreExecutionConfig = (function() {
|
|
14992
16326
|
|
|
14993
16327
|
/**
|
|
14994
|
-
* Properties of a
|
|
16328
|
+
* Properties of a CoreExecutionConfig.
|
|
14995
16329
|
* @memberof dataform
|
|
14996
|
-
* @interface
|
|
14997
|
-
* @property {dataform.ICompileConfig|null} [compileConfig]
|
|
16330
|
+
* @interface ICoreExecutionConfig
|
|
16331
|
+
* @property {dataform.ICompileConfig|null} [compileConfig] CoreExecutionConfig compileConfig
|
|
14998
16332
|
*/
|
|
14999
16333
|
|
|
15000
16334
|
/**
|
|
15001
|
-
* Constructs a new
|
|
16335
|
+
* Constructs a new CoreExecutionConfig.
|
|
15002
16336
|
* @memberof dataform
|
|
15003
|
-
* @classdesc Represents a
|
|
15004
|
-
* @implements
|
|
16337
|
+
* @classdesc Represents a CoreExecutionConfig.
|
|
16338
|
+
* @implements ICoreExecutionConfig
|
|
15005
16339
|
* @constructor
|
|
15006
|
-
* @param {dataform.
|
|
16340
|
+
* @param {dataform.ICoreExecutionConfig=} [properties] Properties to set
|
|
15007
16341
|
*/
|
|
15008
|
-
function
|
|
16342
|
+
function CoreExecutionConfig(properties) {
|
|
15009
16343
|
if (properties)
|
|
15010
16344
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15011
16345
|
if (properties[keys[i]] != null)
|
|
@@ -15013,35 +16347,35 @@ const dataform = $root.dataform = (() => {
|
|
|
15013
16347
|
}
|
|
15014
16348
|
|
|
15015
16349
|
/**
|
|
15016
|
-
*
|
|
16350
|
+
* CoreExecutionConfig compileConfig.
|
|
15017
16351
|
* @member {dataform.ICompileConfig|null|undefined} compileConfig
|
|
15018
|
-
* @memberof dataform.
|
|
16352
|
+
* @memberof dataform.CoreExecutionConfig
|
|
15019
16353
|
* @instance
|
|
15020
16354
|
*/
|
|
15021
|
-
|
|
16355
|
+
CoreExecutionConfig.prototype.compileConfig = null;
|
|
15022
16356
|
|
|
15023
16357
|
/**
|
|
15024
|
-
* Creates a new
|
|
16358
|
+
* Creates a new CoreExecutionConfig instance using the specified properties.
|
|
15025
16359
|
* @function create
|
|
15026
|
-
* @memberof dataform.
|
|
16360
|
+
* @memberof dataform.CoreExecutionConfig
|
|
15027
16361
|
* @static
|
|
15028
|
-
* @param {dataform.
|
|
15029
|
-
* @returns {dataform.
|
|
16362
|
+
* @param {dataform.ICoreExecutionConfig=} [properties] Properties to set
|
|
16363
|
+
* @returns {dataform.CoreExecutionConfig} CoreExecutionConfig instance
|
|
15030
16364
|
*/
|
|
15031
|
-
|
|
15032
|
-
return new
|
|
16365
|
+
CoreExecutionConfig.create = function create(properties) {
|
|
16366
|
+
return new CoreExecutionConfig(properties);
|
|
15033
16367
|
};
|
|
15034
16368
|
|
|
15035
16369
|
/**
|
|
15036
|
-
* Encodes the specified
|
|
16370
|
+
* Encodes the specified CoreExecutionConfig message. Does not implicitly {@link dataform.CoreExecutionConfig.verify|verify} messages.
|
|
15037
16371
|
* @function encode
|
|
15038
|
-
* @memberof dataform.
|
|
16372
|
+
* @memberof dataform.CoreExecutionConfig
|
|
15039
16373
|
* @static
|
|
15040
|
-
* @param {dataform.
|
|
16374
|
+
* @param {dataform.ICoreExecutionConfig} message CoreExecutionConfig message or plain object to encode
|
|
15041
16375
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15042
16376
|
* @returns {$protobuf.Writer} Writer
|
|
15043
16377
|
*/
|
|
15044
|
-
|
|
16378
|
+
CoreExecutionConfig.encode = function encode(message, writer) {
|
|
15045
16379
|
if (!writer)
|
|
15046
16380
|
writer = $Writer.create();
|
|
15047
16381
|
if (message.compileConfig != null && message.hasOwnProperty("compileConfig"))
|
|
@@ -15050,33 +16384,33 @@ const dataform = $root.dataform = (() => {
|
|
|
15050
16384
|
};
|
|
15051
16385
|
|
|
15052
16386
|
/**
|
|
15053
|
-
* Encodes the specified
|
|
16387
|
+
* Encodes the specified CoreExecutionConfig message, length delimited. Does not implicitly {@link dataform.CoreExecutionConfig.verify|verify} messages.
|
|
15054
16388
|
* @function encodeDelimited
|
|
15055
|
-
* @memberof dataform.
|
|
16389
|
+
* @memberof dataform.CoreExecutionConfig
|
|
15056
16390
|
* @static
|
|
15057
|
-
* @param {dataform.
|
|
16391
|
+
* @param {dataform.ICoreExecutionConfig} message CoreExecutionConfig message or plain object to encode
|
|
15058
16392
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15059
16393
|
* @returns {$protobuf.Writer} Writer
|
|
15060
16394
|
*/
|
|
15061
|
-
|
|
16395
|
+
CoreExecutionConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15062
16396
|
return this.encode(message, writer).ldelim();
|
|
15063
16397
|
};
|
|
15064
16398
|
|
|
15065
16399
|
/**
|
|
15066
|
-
* Decodes a
|
|
16400
|
+
* Decodes a CoreExecutionConfig message from the specified reader or buffer.
|
|
15067
16401
|
* @function decode
|
|
15068
|
-
* @memberof dataform.
|
|
16402
|
+
* @memberof dataform.CoreExecutionConfig
|
|
15069
16403
|
* @static
|
|
15070
16404
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15071
16405
|
* @param {number} [length] Message length if known beforehand
|
|
15072
|
-
* @returns {dataform.
|
|
16406
|
+
* @returns {dataform.CoreExecutionConfig} CoreExecutionConfig
|
|
15073
16407
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15074
16408
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15075
16409
|
*/
|
|
15076
|
-
|
|
16410
|
+
CoreExecutionConfig.decode = function decode(reader, length) {
|
|
15077
16411
|
if (!(reader instanceof $Reader))
|
|
15078
16412
|
reader = $Reader.create(reader);
|
|
15079
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.
|
|
16413
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.CoreExecutionConfig();
|
|
15080
16414
|
while (reader.pos < end) {
|
|
15081
16415
|
let tag = reader.uint32();
|
|
15082
16416
|
switch (tag >>> 3) {
|
|
@@ -15092,30 +16426,30 @@ const dataform = $root.dataform = (() => {
|
|
|
15092
16426
|
};
|
|
15093
16427
|
|
|
15094
16428
|
/**
|
|
15095
|
-
* Decodes a
|
|
16429
|
+
* Decodes a CoreExecutionConfig message from the specified reader or buffer, length delimited.
|
|
15096
16430
|
* @function decodeDelimited
|
|
15097
|
-
* @memberof dataform.
|
|
16431
|
+
* @memberof dataform.CoreExecutionConfig
|
|
15098
16432
|
* @static
|
|
15099
16433
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15100
|
-
* @returns {dataform.
|
|
16434
|
+
* @returns {dataform.CoreExecutionConfig} CoreExecutionConfig
|
|
15101
16435
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15102
16436
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15103
16437
|
*/
|
|
15104
|
-
|
|
16438
|
+
CoreExecutionConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
15105
16439
|
if (!(reader instanceof $Reader))
|
|
15106
16440
|
reader = new $Reader(reader);
|
|
15107
16441
|
return this.decode(reader, reader.uint32());
|
|
15108
16442
|
};
|
|
15109
16443
|
|
|
15110
16444
|
/**
|
|
15111
|
-
* Verifies a
|
|
16445
|
+
* Verifies a CoreExecutionConfig message.
|
|
15112
16446
|
* @function verify
|
|
15113
|
-
* @memberof dataform.
|
|
16447
|
+
* @memberof dataform.CoreExecutionConfig
|
|
15114
16448
|
* @static
|
|
15115
16449
|
* @param {Object.<string,*>} message Plain object to verify
|
|
15116
16450
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15117
16451
|
*/
|
|
15118
|
-
|
|
16452
|
+
CoreExecutionConfig.verify = function verify(message) {
|
|
15119
16453
|
if (typeof message !== "object" || message === null)
|
|
15120
16454
|
return "object expected";
|
|
15121
16455
|
if (message.compileConfig != null && message.hasOwnProperty("compileConfig")) {
|
|
@@ -15127,35 +16461,35 @@ const dataform = $root.dataform = (() => {
|
|
|
15127
16461
|
};
|
|
15128
16462
|
|
|
15129
16463
|
/**
|
|
15130
|
-
* Creates a
|
|
16464
|
+
* Creates a CoreExecutionConfig message from a plain object. Also converts values to their respective internal types.
|
|
15131
16465
|
* @function fromObject
|
|
15132
|
-
* @memberof dataform.
|
|
16466
|
+
* @memberof dataform.CoreExecutionConfig
|
|
15133
16467
|
* @static
|
|
15134
16468
|
* @param {Object.<string,*>} object Plain object
|
|
15135
|
-
* @returns {dataform.
|
|
16469
|
+
* @returns {dataform.CoreExecutionConfig} CoreExecutionConfig
|
|
15136
16470
|
*/
|
|
15137
|
-
|
|
15138
|
-
if (object instanceof $root.dataform.
|
|
16471
|
+
CoreExecutionConfig.fromObject = function fromObject(object) {
|
|
16472
|
+
if (object instanceof $root.dataform.CoreExecutionConfig)
|
|
15139
16473
|
return object;
|
|
15140
|
-
let message = new $root.dataform.
|
|
16474
|
+
let message = new $root.dataform.CoreExecutionConfig();
|
|
15141
16475
|
if (object.compileConfig != null) {
|
|
15142
16476
|
if (typeof object.compileConfig !== "object")
|
|
15143
|
-
throw TypeError(".dataform.
|
|
16477
|
+
throw TypeError(".dataform.CoreExecutionConfig.compileConfig: object expected");
|
|
15144
16478
|
message.compileConfig = $root.dataform.CompileConfig.fromObject(object.compileConfig);
|
|
15145
16479
|
}
|
|
15146
16480
|
return message;
|
|
15147
16481
|
};
|
|
15148
16482
|
|
|
15149
16483
|
/**
|
|
15150
|
-
* Creates a plain object from a
|
|
16484
|
+
* Creates a plain object from a CoreExecutionConfig message. Also converts values to other types if specified.
|
|
15151
16485
|
* @function toObject
|
|
15152
|
-
* @memberof dataform.
|
|
16486
|
+
* @memberof dataform.CoreExecutionConfig
|
|
15153
16487
|
* @static
|
|
15154
|
-
* @param {dataform.
|
|
16488
|
+
* @param {dataform.CoreExecutionConfig} message CoreExecutionConfig
|
|
15155
16489
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15156
16490
|
* @returns {Object.<string,*>} Plain object
|
|
15157
16491
|
*/
|
|
15158
|
-
|
|
16492
|
+
CoreExecutionConfig.toObject = function toObject(message, options) {
|
|
15159
16493
|
if (!options)
|
|
15160
16494
|
options = {};
|
|
15161
16495
|
let object = {};
|
|
@@ -15167,37 +16501,37 @@ const dataform = $root.dataform = (() => {
|
|
|
15167
16501
|
};
|
|
15168
16502
|
|
|
15169
16503
|
/**
|
|
15170
|
-
* Converts this
|
|
16504
|
+
* Converts this CoreExecutionConfig to JSON.
|
|
15171
16505
|
* @function toJSON
|
|
15172
|
-
* @memberof dataform.
|
|
16506
|
+
* @memberof dataform.CoreExecutionConfig
|
|
15173
16507
|
* @instance
|
|
15174
16508
|
* @returns {Object.<string,*>} JSON object
|
|
15175
16509
|
*/
|
|
15176
|
-
|
|
16510
|
+
CoreExecutionConfig.prototype.toJSON = function toJSON() {
|
|
15177
16511
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15178
16512
|
};
|
|
15179
16513
|
|
|
15180
|
-
return
|
|
16514
|
+
return CoreExecutionConfig;
|
|
15181
16515
|
})();
|
|
15182
16516
|
|
|
15183
|
-
dataform.
|
|
16517
|
+
dataform.CoreExecutionResult = (function() {
|
|
15184
16518
|
|
|
15185
16519
|
/**
|
|
15186
|
-
* Properties of a
|
|
16520
|
+
* Properties of a CoreExecutionResult.
|
|
15187
16521
|
* @memberof dataform
|
|
15188
|
-
* @interface
|
|
15189
|
-
* @property {dataform.ICompiledGraph|null} [compiledGraph]
|
|
16522
|
+
* @interface ICoreExecutionResult
|
|
16523
|
+
* @property {dataform.ICompiledGraph|null} [compiledGraph] CoreExecutionResult compiledGraph
|
|
15190
16524
|
*/
|
|
15191
16525
|
|
|
15192
16526
|
/**
|
|
15193
|
-
* Constructs a new
|
|
16527
|
+
* Constructs a new CoreExecutionResult.
|
|
15194
16528
|
* @memberof dataform
|
|
15195
|
-
* @classdesc Represents a
|
|
15196
|
-
* @implements
|
|
16529
|
+
* @classdesc Represents a CoreExecutionResult.
|
|
16530
|
+
* @implements ICoreExecutionResult
|
|
15197
16531
|
* @constructor
|
|
15198
|
-
* @param {dataform.
|
|
16532
|
+
* @param {dataform.ICoreExecutionResult=} [properties] Properties to set
|
|
15199
16533
|
*/
|
|
15200
|
-
function
|
|
16534
|
+
function CoreExecutionResult(properties) {
|
|
15201
16535
|
if (properties)
|
|
15202
16536
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15203
16537
|
if (properties[keys[i]] != null)
|
|
@@ -15205,35 +16539,35 @@ const dataform = $root.dataform = (() => {
|
|
|
15205
16539
|
}
|
|
15206
16540
|
|
|
15207
16541
|
/**
|
|
15208
|
-
*
|
|
16542
|
+
* CoreExecutionResult compiledGraph.
|
|
15209
16543
|
* @member {dataform.ICompiledGraph|null|undefined} compiledGraph
|
|
15210
|
-
* @memberof dataform.
|
|
16544
|
+
* @memberof dataform.CoreExecutionResult
|
|
15211
16545
|
* @instance
|
|
15212
16546
|
*/
|
|
15213
|
-
|
|
16547
|
+
CoreExecutionResult.prototype.compiledGraph = null;
|
|
15214
16548
|
|
|
15215
16549
|
/**
|
|
15216
|
-
* Creates a new
|
|
16550
|
+
* Creates a new CoreExecutionResult instance using the specified properties.
|
|
15217
16551
|
* @function create
|
|
15218
|
-
* @memberof dataform.
|
|
16552
|
+
* @memberof dataform.CoreExecutionResult
|
|
15219
16553
|
* @static
|
|
15220
|
-
* @param {dataform.
|
|
15221
|
-
* @returns {dataform.
|
|
16554
|
+
* @param {dataform.ICoreExecutionResult=} [properties] Properties to set
|
|
16555
|
+
* @returns {dataform.CoreExecutionResult} CoreExecutionResult instance
|
|
15222
16556
|
*/
|
|
15223
|
-
|
|
15224
|
-
return new
|
|
16557
|
+
CoreExecutionResult.create = function create(properties) {
|
|
16558
|
+
return new CoreExecutionResult(properties);
|
|
15225
16559
|
};
|
|
15226
16560
|
|
|
15227
16561
|
/**
|
|
15228
|
-
* Encodes the specified
|
|
16562
|
+
* Encodes the specified CoreExecutionResult message. Does not implicitly {@link dataform.CoreExecutionResult.verify|verify} messages.
|
|
15229
16563
|
* @function encode
|
|
15230
|
-
* @memberof dataform.
|
|
16564
|
+
* @memberof dataform.CoreExecutionResult
|
|
15231
16565
|
* @static
|
|
15232
|
-
* @param {dataform.
|
|
16566
|
+
* @param {dataform.ICoreExecutionResult} message CoreExecutionResult message or plain object to encode
|
|
15233
16567
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15234
16568
|
* @returns {$protobuf.Writer} Writer
|
|
15235
16569
|
*/
|
|
15236
|
-
|
|
16570
|
+
CoreExecutionResult.encode = function encode(message, writer) {
|
|
15237
16571
|
if (!writer)
|
|
15238
16572
|
writer = $Writer.create();
|
|
15239
16573
|
if (message.compiledGraph != null && message.hasOwnProperty("compiledGraph"))
|
|
@@ -15242,33 +16576,33 @@ const dataform = $root.dataform = (() => {
|
|
|
15242
16576
|
};
|
|
15243
16577
|
|
|
15244
16578
|
/**
|
|
15245
|
-
* Encodes the specified
|
|
16579
|
+
* Encodes the specified CoreExecutionResult message, length delimited. Does not implicitly {@link dataform.CoreExecutionResult.verify|verify} messages.
|
|
15246
16580
|
* @function encodeDelimited
|
|
15247
|
-
* @memberof dataform.
|
|
16581
|
+
* @memberof dataform.CoreExecutionResult
|
|
15248
16582
|
* @static
|
|
15249
|
-
* @param {dataform.
|
|
16583
|
+
* @param {dataform.ICoreExecutionResult} message CoreExecutionResult message or plain object to encode
|
|
15250
16584
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15251
16585
|
* @returns {$protobuf.Writer} Writer
|
|
15252
16586
|
*/
|
|
15253
|
-
|
|
16587
|
+
CoreExecutionResult.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15254
16588
|
return this.encode(message, writer).ldelim();
|
|
15255
16589
|
};
|
|
15256
16590
|
|
|
15257
16591
|
/**
|
|
15258
|
-
* Decodes a
|
|
16592
|
+
* Decodes a CoreExecutionResult message from the specified reader or buffer.
|
|
15259
16593
|
* @function decode
|
|
15260
|
-
* @memberof dataform.
|
|
16594
|
+
* @memberof dataform.CoreExecutionResult
|
|
15261
16595
|
* @static
|
|
15262
16596
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15263
16597
|
* @param {number} [length] Message length if known beforehand
|
|
15264
|
-
* @returns {dataform.
|
|
16598
|
+
* @returns {dataform.CoreExecutionResult} CoreExecutionResult
|
|
15265
16599
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15266
16600
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15267
16601
|
*/
|
|
15268
|
-
|
|
16602
|
+
CoreExecutionResult.decode = function decode(reader, length) {
|
|
15269
16603
|
if (!(reader instanceof $Reader))
|
|
15270
16604
|
reader = $Reader.create(reader);
|
|
15271
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.
|
|
16605
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.dataform.CoreExecutionResult();
|
|
15272
16606
|
while (reader.pos < end) {
|
|
15273
16607
|
let tag = reader.uint32();
|
|
15274
16608
|
switch (tag >>> 3) {
|
|
@@ -15284,30 +16618,30 @@ const dataform = $root.dataform = (() => {
|
|
|
15284
16618
|
};
|
|
15285
16619
|
|
|
15286
16620
|
/**
|
|
15287
|
-
* Decodes a
|
|
16621
|
+
* Decodes a CoreExecutionResult message from the specified reader or buffer, length delimited.
|
|
15288
16622
|
* @function decodeDelimited
|
|
15289
|
-
* @memberof dataform.
|
|
16623
|
+
* @memberof dataform.CoreExecutionResult
|
|
15290
16624
|
* @static
|
|
15291
16625
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15292
|
-
* @returns {dataform.
|
|
16626
|
+
* @returns {dataform.CoreExecutionResult} CoreExecutionResult
|
|
15293
16627
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15294
16628
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15295
16629
|
*/
|
|
15296
|
-
|
|
16630
|
+
CoreExecutionResult.decodeDelimited = function decodeDelimited(reader) {
|
|
15297
16631
|
if (!(reader instanceof $Reader))
|
|
15298
16632
|
reader = new $Reader(reader);
|
|
15299
16633
|
return this.decode(reader, reader.uint32());
|
|
15300
16634
|
};
|
|
15301
16635
|
|
|
15302
16636
|
/**
|
|
15303
|
-
* Verifies a
|
|
16637
|
+
* Verifies a CoreExecutionResult message.
|
|
15304
16638
|
* @function verify
|
|
15305
|
-
* @memberof dataform.
|
|
16639
|
+
* @memberof dataform.CoreExecutionResult
|
|
15306
16640
|
* @static
|
|
15307
16641
|
* @param {Object.<string,*>} message Plain object to verify
|
|
15308
16642
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15309
16643
|
*/
|
|
15310
|
-
|
|
16644
|
+
CoreExecutionResult.verify = function verify(message) {
|
|
15311
16645
|
if (typeof message !== "object" || message === null)
|
|
15312
16646
|
return "object expected";
|
|
15313
16647
|
if (message.compiledGraph != null && message.hasOwnProperty("compiledGraph")) {
|
|
@@ -15319,35 +16653,35 @@ const dataform = $root.dataform = (() => {
|
|
|
15319
16653
|
};
|
|
15320
16654
|
|
|
15321
16655
|
/**
|
|
15322
|
-
* Creates a
|
|
16656
|
+
* Creates a CoreExecutionResult message from a plain object. Also converts values to their respective internal types.
|
|
15323
16657
|
* @function fromObject
|
|
15324
|
-
* @memberof dataform.
|
|
16658
|
+
* @memberof dataform.CoreExecutionResult
|
|
15325
16659
|
* @static
|
|
15326
16660
|
* @param {Object.<string,*>} object Plain object
|
|
15327
|
-
* @returns {dataform.
|
|
16661
|
+
* @returns {dataform.CoreExecutionResult} CoreExecutionResult
|
|
15328
16662
|
*/
|
|
15329
|
-
|
|
15330
|
-
if (object instanceof $root.dataform.
|
|
16663
|
+
CoreExecutionResult.fromObject = function fromObject(object) {
|
|
16664
|
+
if (object instanceof $root.dataform.CoreExecutionResult)
|
|
15331
16665
|
return object;
|
|
15332
|
-
let message = new $root.dataform.
|
|
16666
|
+
let message = new $root.dataform.CoreExecutionResult();
|
|
15333
16667
|
if (object.compiledGraph != null) {
|
|
15334
16668
|
if (typeof object.compiledGraph !== "object")
|
|
15335
|
-
throw TypeError(".dataform.
|
|
16669
|
+
throw TypeError(".dataform.CoreExecutionResult.compiledGraph: object expected");
|
|
15336
16670
|
message.compiledGraph = $root.dataform.CompiledGraph.fromObject(object.compiledGraph);
|
|
15337
16671
|
}
|
|
15338
16672
|
return message;
|
|
15339
16673
|
};
|
|
15340
16674
|
|
|
15341
16675
|
/**
|
|
15342
|
-
* Creates a plain object from a
|
|
16676
|
+
* Creates a plain object from a CoreExecutionResult message. Also converts values to other types if specified.
|
|
15343
16677
|
* @function toObject
|
|
15344
|
-
* @memberof dataform.
|
|
16678
|
+
* @memberof dataform.CoreExecutionResult
|
|
15345
16679
|
* @static
|
|
15346
|
-
* @param {dataform.
|
|
16680
|
+
* @param {dataform.CoreExecutionResult} message CoreExecutionResult
|
|
15347
16681
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15348
16682
|
* @returns {Object.<string,*>} Plain object
|
|
15349
16683
|
*/
|
|
15350
|
-
|
|
16684
|
+
CoreExecutionResult.toObject = function toObject(message, options) {
|
|
15351
16685
|
if (!options)
|
|
15352
16686
|
options = {};
|
|
15353
16687
|
let object = {};
|
|
@@ -15359,17 +16693,17 @@ const dataform = $root.dataform = (() => {
|
|
|
15359
16693
|
};
|
|
15360
16694
|
|
|
15361
16695
|
/**
|
|
15362
|
-
* Converts this
|
|
16696
|
+
* Converts this CoreExecutionResult to JSON.
|
|
15363
16697
|
* @function toJSON
|
|
15364
|
-
* @memberof dataform.
|
|
16698
|
+
* @memberof dataform.CoreExecutionResult
|
|
15365
16699
|
* @instance
|
|
15366
16700
|
* @returns {Object.<string,*>} JSON object
|
|
15367
16701
|
*/
|
|
15368
|
-
|
|
16702
|
+
CoreExecutionResult.prototype.toJSON = function toJSON() {
|
|
15369
16703
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15370
16704
|
};
|
|
15371
16705
|
|
|
15372
|
-
return
|
|
16706
|
+
return CoreExecutionResult;
|
|
15373
16707
|
})();
|
|
15374
16708
|
|
|
15375
16709
|
dataform.JDBC = (function() {
|
|
@@ -20037,7 +21371,11 @@ class BigQueryAdapter extends Adapter {
|
|
|
20037
21371
|
}
|
|
20038
21372
|
assertTasks(assertion, projectConfig) {
|
|
20039
21373
|
const tasks = Tasks.create();
|
|
20040
|
-
const target = assertion.target
|
|
21374
|
+
const target = assertion.target ||
|
|
21375
|
+
dataform.Target.create({
|
|
21376
|
+
schema: projectConfig.assertionSchema,
|
|
21377
|
+
name: assertion.name
|
|
21378
|
+
});
|
|
20041
21379
|
tasks.add(Task.statement(this.createOrReplaceView(target, assertion.query)));
|
|
20042
21380
|
tasks.add(Task.assertion(`select sum(1) as row_count from ${this.resolveTarget(target)}`));
|
|
20043
21381
|
return tasks;
|
|
@@ -20098,7 +21436,11 @@ class PrestoAdapter extends Adapter {
|
|
|
20098
21436
|
}
|
|
20099
21437
|
assertTasks(assertion, projectConfig) {
|
|
20100
21438
|
const tasks = Tasks.create();
|
|
20101
|
-
const target = assertion.target
|
|
21439
|
+
const target = assertion.target ||
|
|
21440
|
+
dataform.Target.create({
|
|
21441
|
+
schema: projectConfig.assertionSchema,
|
|
21442
|
+
name: assertion.name
|
|
21443
|
+
});
|
|
20102
21444
|
tasks.add(Task.statement(this.createOrReplaceView(target, assertion.query)));
|
|
20103
21445
|
tasks.add(Task.assertion(`select sum(1) as row_count from ${this.resolveTarget(target)}`));
|
|
20104
21446
|
return tasks;
|
|
@@ -20154,7 +21496,11 @@ class RedshiftAdapter extends Adapter {
|
|
|
20154
21496
|
return tasks;
|
|
20155
21497
|
}
|
|
20156
21498
|
assertTasks(assertion, projectConfig) {
|
|
20157
|
-
const target = assertion.target
|
|
21499
|
+
const target = assertion.target ||
|
|
21500
|
+
dataform.Target.create({
|
|
21501
|
+
schema: projectConfig.assertionSchema,
|
|
21502
|
+
name: assertion.name
|
|
21503
|
+
});
|
|
20158
21504
|
return Tasks.create()
|
|
20159
21505
|
.add(Task.statement(this.dropIfExists(target, dataform.TableMetadata.Type.VIEW)))
|
|
20160
21506
|
.add(Task.statement(this.createOrReplaceView(target, assertion.query, false)))
|
|
@@ -20262,7 +21608,11 @@ class SnowflakeAdapter extends Adapter {
|
|
|
20262
21608
|
}
|
|
20263
21609
|
assertTasks(assertion, projectConfig) {
|
|
20264
21610
|
const tasks = Tasks.create();
|
|
20265
|
-
const target = assertion.target
|
|
21611
|
+
const target = assertion.target ||
|
|
21612
|
+
dataform.Target.create({
|
|
21613
|
+
schema: projectConfig.assertionSchema,
|
|
21614
|
+
name: assertion.name
|
|
21615
|
+
});
|
|
20266
21616
|
tasks.add(Task.statement(this.createOrReplaceView(target, assertion.query, false)));
|
|
20267
21617
|
tasks.add(Task.assertion(`select sum(1) as row_count from ${this.resolveTarget(target)}`));
|
|
20268
21618
|
return tasks;
|
|
@@ -20325,7 +21675,11 @@ class SQLDataWarehouseAdapter extends Adapter {
|
|
|
20325
21675
|
return tasks.concatenate();
|
|
20326
21676
|
}
|
|
20327
21677
|
assertTasks(assertion, projectConfig) {
|
|
20328
|
-
const target = assertion.target
|
|
21678
|
+
const target = assertion.target ||
|
|
21679
|
+
dataform.Target.create({
|
|
21680
|
+
schema: projectConfig.assertionSchema,
|
|
21681
|
+
name: assertion.name
|
|
21682
|
+
});
|
|
20329
21683
|
return Tasks.create()
|
|
20330
21684
|
.add(Task.statement(this.dropIfExists(target, dataform.TableMetadata.Type.VIEW)))
|
|
20331
21685
|
.add(Task.statement(`
|
|
@@ -20621,6 +21975,14 @@ function target(adapter, config, name, schema, database) {
|
|
|
20621
21975
|
function setNameAndTarget(session, action, name, overrideSchema, overrideDatabase) {
|
|
20622
21976
|
action.target = target(session.adapter(), session.config, name, overrideSchema, overrideDatabase);
|
|
20623
21977
|
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(".");
|
|
20624
21986
|
}
|
|
20625
21987
|
function strictKeysOf() {
|
|
20626
21988
|
return (array) => array;
|
|
@@ -22078,6 +23440,9 @@ delete originalProjectConfig.gcloudProjectId;
|
|
|
22078
23440
|
|
|
22079
23441
|
let projectConfig = { ...originalProjectConfig };
|
|
22080
23442
|
|
|
23443
|
+
// For backwards compatibility, in case core version is ahead of api.
|
|
23444
|
+
projectConfig.schemaSuffix = "${config.compileConfig.schemaSuffixOverride}" || projectConfig.schemaSuffix;
|
|
23445
|
+
|
|
22081
23446
|
// Merge in general project config overrides.
|
|
22082
23447
|
projectConfig = { ...projectConfig, ...${projectOverridesJsonString}, vars: { ...projectConfig.vars, ...${projectOverridesJsonString}.vars } };
|
|
22083
23448
|
|
|
@@ -22192,90 +23557,6 @@ class StringifiedMap {
|
|
|
22192
23557
|
return this.map.values();
|
|
22193
23558
|
}
|
|
22194
23559
|
}
|
|
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
|
-
}
|
|
22279
23560
|
|
|
22280
23561
|
const IDeclarationConfigProperties = strictKeysOf()([
|
|
22281
23562
|
"columns",
|
|
@@ -22318,20 +23599,11 @@ class Declaration {
|
|
|
22318
23599
|
}
|
|
22319
23600
|
}
|
|
22320
23601
|
|
|
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
|
-
|
|
22330
23602
|
const ITestConfigProperties = strictKeysOf()(["type", "dataset", "name"]);
|
|
22331
23603
|
class Test {
|
|
22332
23604
|
constructor() {
|
|
22333
23605
|
this.proto = dataform.Test.create();
|
|
22334
|
-
this.contextableInputs = new StringifiedMap(
|
|
23606
|
+
this.contextableInputs = new StringifiedMap(JSONObjectStringifier.create());
|
|
22335
23607
|
}
|
|
22336
23608
|
config(config) {
|
|
22337
23609
|
checkExcessProperties((e) => this.session.compileError(e), config, ITestConfigProperties, "test config");
|
|
@@ -22458,7 +23730,7 @@ class RefReplacingContext {
|
|
|
22458
23730
|
}
|
|
22459
23731
|
}
|
|
22460
23732
|
|
|
22461
|
-
const version = "1.20.
|
|
23733
|
+
const version = "1.20.2";
|
|
22462
23734
|
|
|
22463
23735
|
const SQL_DATA_WAREHOUSE_DIST_HASH_REGEXP = new RegExp("HASH\\s*\\(\\s*\\w*\\s*\\)\\s*");
|
|
22464
23736
|
const DEFAULT_CONFIG = {
|
|
@@ -22647,12 +23919,11 @@ class Session {
|
|
|
22647
23919
|
this.tests[name] = newTest;
|
|
22648
23920
|
return newTest;
|
|
22649
23921
|
}
|
|
22650
|
-
compileError(err, path,
|
|
23922
|
+
compileError(err, path, actionName) {
|
|
22651
23923
|
const fileName = path || getCallerFile(this.rootDir) || __filename;
|
|
22652
23924
|
const compileError = dataform.CompilationError.create({
|
|
22653
23925
|
fileName,
|
|
22654
|
-
actionName
|
|
22655
|
-
actionTarget
|
|
23926
|
+
actionName
|
|
22656
23927
|
});
|
|
22657
23928
|
if (typeof err === "string") {
|
|
22658
23929
|
compileError.message = err;
|
|
@@ -22724,7 +23995,7 @@ class Session {
|
|
|
22724
23995
|
compiledChunks.push(compiledChunk);
|
|
22725
23996
|
}
|
|
22726
23997
|
catch (e) {
|
|
22727
|
-
this.compileError(e, action.proto.fileName, action.proto.
|
|
23998
|
+
this.compileError(e, action.proto.fileName, action.proto.name);
|
|
22728
23999
|
}
|
|
22729
24000
|
});
|
|
22730
24001
|
return compiledChunks;
|
|
@@ -22735,7 +24006,7 @@ class Session {
|
|
|
22735
24006
|
for (const dependency of action.dependencyTargets) {
|
|
22736
24007
|
const possibleDeps = this.findActions(dependency);
|
|
22737
24008
|
if (possibleDeps.length === 0) {
|
|
22738
|
-
this.compileError(new Error(`Missing dependency detected: Action "${
|
|
24009
|
+
this.compileError(new Error(`Missing dependency detected: Action "${action.name}" depends on "${stringifyResolvable(dependency)}" which does not exist`), action.fileName, action.name);
|
|
22739
24010
|
}
|
|
22740
24011
|
else if (possibleDeps.length === 1) {
|
|
22741
24012
|
const protoDep = possibleDeps[0].proto;
|
|
@@ -22743,13 +24014,14 @@ class Session {
|
|
|
22743
24014
|
protoDep.dependencyTargets.forEach(inlineDep => action.dependencyTargets.push(inlineDep));
|
|
22744
24015
|
}
|
|
22745
24016
|
else {
|
|
22746
|
-
fullyQualifiedDependencies[
|
|
24017
|
+
fullyQualifiedDependencies[protoDep.name] = protoDep.target;
|
|
22747
24018
|
}
|
|
22748
24019
|
}
|
|
22749
24020
|
else {
|
|
22750
|
-
this.compileError(new Error(ambiguousActionNameMsg(dependency, possibleDeps)), action.fileName, action.
|
|
24021
|
+
this.compileError(new Error(ambiguousActionNameMsg(dependency, possibleDeps)), action.fileName, action.name);
|
|
22751
24022
|
}
|
|
22752
24023
|
}
|
|
24024
|
+
action.dependencies = Object.keys(fullyQualifiedDependencies);
|
|
22753
24025
|
action.dependencyTargets = Object.values(fullyQualifiedDependencies);
|
|
22754
24026
|
});
|
|
22755
24027
|
}
|
|
@@ -22758,12 +24030,13 @@ class Session {
|
|
|
22758
24030
|
if (!tablePrefix && !schemaSuffix && !databaseSuffix) {
|
|
22759
24031
|
return;
|
|
22760
24032
|
}
|
|
22761
|
-
const newTargetByOriginalTarget = new StringifiedMap(
|
|
24033
|
+
const newTargetByOriginalTarget = new StringifiedMap(JSONObjectStringifier.create());
|
|
22762
24034
|
declarationTargets.forEach(declarationTarget => newTargetByOriginalTarget.set(declarationTarget, declarationTarget));
|
|
22763
24035
|
actions.forEach(action => {
|
|
22764
24036
|
newTargetByOriginalTarget.set(action.target, Object.assign(Object.assign({}, action.target), { database: action.target.database &&
|
|
22765
24037
|
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}`) }));
|
|
22766
24038
|
action.target = newTargetByOriginalTarget.get(action.target);
|
|
24039
|
+
action.name = targetToName(action.target);
|
|
22767
24040
|
});
|
|
22768
24041
|
const getUpdatedTarget = (originalTarget) => {
|
|
22769
24042
|
if (!newTargetByOriginalTarget.has(originalTarget)) {
|
|
@@ -22773,6 +24046,7 @@ class Session {
|
|
|
22773
24046
|
};
|
|
22774
24047
|
actions.forEach(action => {
|
|
22775
24048
|
action.dependencyTargets = (action.dependencyTargets || []).map(getUpdatedTarget);
|
|
24049
|
+
action.dependencies = (action.dependencyTargets || []).map(dependencyTarget => targetToName(dependencyTarget));
|
|
22776
24050
|
if (!!action.parentAction) {
|
|
22777
24051
|
action.parentAction = getUpdatedTarget(action.parentAction);
|
|
22778
24052
|
}
|
|
@@ -22781,51 +24055,50 @@ class Session {
|
|
|
22781
24055
|
checkActionNameUniqueness(actions) {
|
|
22782
24056
|
const allNames = [];
|
|
22783
24057
|
actions.forEach(action => {
|
|
22784
|
-
|
|
22785
|
-
|
|
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);
|
|
24058
|
+
if (allNames.includes(action.name)) {
|
|
24059
|
+
this.compileError(new Error(`Duplicate action name detected. Names within a schema must be unique across tables, declarations, assertions, and operations`), action.fileName, action.name);
|
|
22787
24060
|
}
|
|
22788
|
-
allNames.push(name);
|
|
24061
|
+
allNames.push(action.name);
|
|
22789
24062
|
});
|
|
22790
24063
|
}
|
|
22791
24064
|
checkCanonicalTargetUniqueness(actions) {
|
|
22792
|
-
const allCanonicalTargets = new
|
|
24065
|
+
const allCanonicalTargets = new StringifiedMap(JSONObjectStringifier.create());
|
|
22793
24066
|
actions.forEach(action => {
|
|
22794
24067
|
if (allCanonicalTargets.has(action.canonicalTarget)) {
|
|
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.
|
|
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.name);
|
|
22796
24069
|
}
|
|
22797
|
-
allCanonicalTargets.
|
|
24070
|
+
allCanonicalTargets.set(action.canonicalTarget, true);
|
|
22798
24071
|
});
|
|
22799
24072
|
}
|
|
22800
24073
|
checkTableConfigValidity(tables) {
|
|
22801
24074
|
tables.forEach(table => {
|
|
22802
24075
|
var _a, _b;
|
|
22803
24076
|
if (!!table.type && !TableType.includes(table.type)) {
|
|
22804
|
-
this.compileError(`Wrong type of table detected. Should only use predefined types: ${joinQuoted(TableType)}`, table.fileName, table.
|
|
24077
|
+
this.compileError(`Wrong type of table detected. Should only use predefined types: ${joinQuoted(TableType)}`, table.fileName, table.name);
|
|
22805
24078
|
}
|
|
22806
24079
|
if (!!table.snowflake) {
|
|
22807
24080
|
if (table.snowflake.secure && table.type !== "view") {
|
|
22808
|
-
this.compileError(new Error(`The 'secure' option is only valid for Snowflake views`), table.fileName, table.
|
|
24081
|
+
this.compileError(new Error(`The 'secure' option is only valid for Snowflake views`), table.fileName, table.name);
|
|
22809
24082
|
}
|
|
22810
24083
|
if (table.snowflake.transient && table.type !== "table") {
|
|
22811
|
-
this.compileError(new Error(`The 'transient' option is only valid for Snowflake tables`), table.fileName, table.
|
|
24084
|
+
this.compileError(new Error(`The 'transient' option is only valid for Snowflake tables`), table.fileName, table.name);
|
|
22812
24085
|
}
|
|
22813
24086
|
if (((_a = table.snowflake.clusterBy) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
22814
24087
|
table.type !== "table" &&
|
|
22815
24088
|
table.type !== "incremental") {
|
|
22816
|
-
this.compileError(new Error(`The 'clusterBy' option is only valid for Snowflake tables`), table.fileName, table.
|
|
24089
|
+
this.compileError(new Error(`The 'clusterBy' option is only valid for Snowflake tables`), table.fileName, table.name);
|
|
22817
24090
|
}
|
|
22818
24091
|
}
|
|
22819
24092
|
if (!!table.sqlDataWarehouse) {
|
|
22820
24093
|
if (!!table.uniqueKey && table.uniqueKey.length > 0) {
|
|
22821
|
-
this.compileError(new Error(`Merging using unique keys for SQLDataWarehouse has not yet been implemented`), table.fileName, table.
|
|
24094
|
+
this.compileError(new Error(`Merging using unique keys for SQLDataWarehouse has not yet been implemented`), table.fileName, table.name);
|
|
22822
24095
|
}
|
|
22823
24096
|
if (table.sqlDataWarehouse.distribution) {
|
|
22824
24097
|
const distribution = table.sqlDataWarehouse.distribution.toUpperCase();
|
|
22825
24098
|
if (distribution !== "REPLICATE" &&
|
|
22826
24099
|
distribution !== "ROUND_ROBIN" &&
|
|
22827
24100
|
!SQL_DATA_WAREHOUSE_DIST_HASH_REGEXP.test(distribution)) {
|
|
22828
|
-
this.compileError(new Error(`Invalid value for sqldatawarehouse distribution: ${distribution}`), table.fileName, table.
|
|
24101
|
+
this.compileError(new Error(`Invalid value for sqldatawarehouse distribution: ${distribution}`), table.fileName, table.name);
|
|
22829
24102
|
}
|
|
22830
24103
|
}
|
|
22831
24104
|
}
|
|
@@ -22833,18 +24106,18 @@ class Session {
|
|
|
22833
24106
|
const validatePropertyDefined = (opts, prop) => {
|
|
22834
24107
|
const value = opts[prop];
|
|
22835
24108
|
if (!opts.hasOwnProperty(prop)) {
|
|
22836
|
-
this.compileError(`Property "${prop}" is not defined`, table.fileName, table.
|
|
24109
|
+
this.compileError(`Property "${prop}" is not defined`, table.fileName, table.name);
|
|
22837
24110
|
}
|
|
22838
24111
|
else if (value instanceof Array) {
|
|
22839
24112
|
if (value.length === 0) {
|
|
22840
|
-
this.compileError(`Property "${prop}" is not defined`, table.fileName, table.
|
|
24113
|
+
this.compileError(`Property "${prop}" is not defined`, table.fileName, table.name);
|
|
22841
24114
|
}
|
|
22842
24115
|
}
|
|
22843
24116
|
};
|
|
22844
24117
|
const validatePropertiesDefined = (opts, props) => props.forEach(prop => validatePropertyDefined(opts, prop));
|
|
22845
24118
|
const validatePropertyValueInValues = (opts, prop, values) => {
|
|
22846
24119
|
if (!!opts[prop] && !values.includes(opts[prop])) {
|
|
22847
|
-
this.compileError(`Wrong value of "${prop}" property. Should only use predefined values: ${joinQuoted(values)}`, table.fileName, table.
|
|
24120
|
+
this.compileError(`Wrong value of "${prop}" property. Should only use predefined values: ${joinQuoted(values)}`, table.fileName, table.name);
|
|
22848
24121
|
}
|
|
22849
24122
|
};
|
|
22850
24123
|
if (table.redshift.distStyle || table.redshift.distKey) {
|
|
@@ -22860,13 +24133,13 @@ class Session {
|
|
|
22860
24133
|
if (!!table.bigquery) {
|
|
22861
24134
|
if ((table.bigquery.partitionBy || ((_b = table.bigquery.clusterBy) === null || _b === void 0 ? void 0 : _b.length)) &&
|
|
22862
24135
|
table.type === "view") {
|
|
22863
|
-
this.compileError(`partitionBy/clusterBy are not valid for BigQuery views; they are only valid for tables`, table.fileName, table.
|
|
24136
|
+
this.compileError(`partitionBy/clusterBy are not valid for BigQuery views; they are only valid for tables`, table.fileName, table.name);
|
|
22864
24137
|
}
|
|
22865
24138
|
}
|
|
22866
24139
|
if (!!Table.IGNORED_PROPS[table.type]) {
|
|
22867
24140
|
Table.IGNORED_PROPS[table.type].forEach(ignoredProp => {
|
|
22868
24141
|
if (objectExistsOrIsNonEmpty(table[ignoredProp])) {
|
|
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.
|
|
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.name);
|
|
22870
24143
|
}
|
|
22871
24144
|
});
|
|
22872
24145
|
}
|
|
@@ -22876,43 +24149,48 @@ class Session {
|
|
|
22876
24149
|
const allNames = [];
|
|
22877
24150
|
tests.forEach(testProto => {
|
|
22878
24151
|
if (allNames.includes(testProto.name)) {
|
|
22879
|
-
this.compileError(new Error(`Duplicate test name detected: "${testProto.name}"`), testProto.fileName);
|
|
24152
|
+
this.compileError(new Error(`Duplicate test name detected: "${testProto.name}"`), testProto.fileName, testProto.name);
|
|
22880
24153
|
}
|
|
22881
24154
|
allNames.push(testProto.name);
|
|
22882
24155
|
});
|
|
22883
24156
|
}
|
|
22884
24157
|
checkCircularity(actions) {
|
|
22885
|
-
const
|
|
24158
|
+
const allActionsByName = keyByName(actions);
|
|
22886
24159
|
const tarjanGraph = new TarjanGraphConstructor();
|
|
22887
24160
|
actions.forEach(action => {
|
|
22888
|
-
const cleanedDependencies = (action.
|
|
22889
|
-
tarjanGraph.add(
|
|
24161
|
+
const cleanedDependencies = (action.dependencies || []).filter(dependency => !!allActionsByName[dependency]);
|
|
24162
|
+
tarjanGraph.add(action.name, cleanedDependencies);
|
|
22890
24163
|
});
|
|
22891
24164
|
const cycles = tarjanGraph.getCycles();
|
|
22892
24165
|
cycles.forEach(cycle => {
|
|
22893
|
-
const firstActionInCycle =
|
|
24166
|
+
const firstActionInCycle = allActionsByName[cycle[0].name];
|
|
22894
24167
|
const message = `Circular dependency detected in chain: [${cycle
|
|
22895
24168
|
.map(vertex => vertex.name)
|
|
22896
|
-
.join(" > ")} > ${
|
|
22897
|
-
this.compileError(new Error(message), firstActionInCycle.fileName
|
|
24169
|
+
.join(" > ")} > ${firstActionInCycle.name}]`;
|
|
24170
|
+
this.compileError(new Error(message), firstActionInCycle.fileName);
|
|
22898
24171
|
});
|
|
22899
24172
|
}
|
|
22900
24173
|
checkRunCachingCorrectness(actionsWithOutput) {
|
|
22901
24174
|
actionsWithOutput.forEach(action => {
|
|
22902
24175
|
var _a;
|
|
22903
|
-
if (((_a = action.
|
|
24176
|
+
if (((_a = action.dependencies) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
22904
24177
|
return;
|
|
22905
24178
|
}
|
|
22906
24179
|
if ([dataform.ActionHermeticity.HERMETIC, dataform.ActionHermeticity.NON_HERMETIC].includes(action.hermeticity)) {
|
|
22907
24180
|
return;
|
|
22908
24181
|
}
|
|
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.
|
|
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.name);
|
|
22910
24183
|
});
|
|
22911
24184
|
}
|
|
22912
24185
|
}
|
|
22913
24186
|
function definesDataset(type) {
|
|
22914
24187
|
return type === "view" || type === "table" || type === "inline" || type === "incremental";
|
|
22915
24188
|
}
|
|
24189
|
+
function keyByName(actions) {
|
|
24190
|
+
const actionsByName = {};
|
|
24191
|
+
actions.forEach(action => (actionsByName[action.name] = action));
|
|
24192
|
+
return actionsByName;
|
|
24193
|
+
}
|
|
22916
24194
|
function getCanonicalProjectConfig(originalProjectConfig) {
|
|
22917
24195
|
return {
|
|
22918
24196
|
warehouse: originalProjectConfig.warehouse,
|
|
@@ -22933,23 +24211,24 @@ function objectExistsOrIsNonEmpty(prop) {
|
|
|
22933
24211
|
typeof prop !== "object");
|
|
22934
24212
|
}
|
|
22935
24213
|
|
|
22936
|
-
function main(
|
|
24214
|
+
function main(encodedCoreExecutionConfig) {
|
|
22937
24215
|
var _a;
|
|
22938
24216
|
const globalAny = global;
|
|
22939
|
-
const
|
|
22940
|
-
const compileRequest = request.compile;
|
|
24217
|
+
const config = decode64(dataform.CoreExecutionConfig, encodedCoreExecutionConfig);
|
|
22941
24218
|
const originalProjectConfig = require("dataform.json");
|
|
22942
|
-
const projectConfigOverride = (_a =
|
|
24219
|
+
const projectConfigOverride = (_a = config.compileConfig.projectConfigOverride) !== null && _a !== void 0 ? _a : {};
|
|
22943
24220
|
if (!originalProjectConfig.defaultDatabase) {
|
|
22944
24221
|
originalProjectConfig.defaultDatabase = originalProjectConfig.gcloudProjectId;
|
|
22945
24222
|
}
|
|
22946
24223
|
delete originalProjectConfig.gcloudProjectId;
|
|
22947
24224
|
let projectConfig = Object.assign({}, originalProjectConfig);
|
|
24225
|
+
projectConfig.schemaSuffix =
|
|
24226
|
+
config.compileConfig.schemaSuffixOverride || projectConfig.schemaSuffix;
|
|
22948
24227
|
projectConfig = Object.assign(Object.assign(Object.assign({}, projectConfig), projectConfigOverride), { vars: Object.assign(Object.assign({}, projectConfig.vars), projectConfigOverride.vars) });
|
|
22949
24228
|
const session = require("@dataform/core").session;
|
|
22950
|
-
session.init(
|
|
24229
|
+
session.init(config.compileConfig.projectDir, projectConfig, originalProjectConfig);
|
|
22951
24230
|
globalAny.dataform = session;
|
|
22952
|
-
|
|
24231
|
+
config.compileConfig.filePaths
|
|
22953
24232
|
.filter(path => path.startsWith("includes/"))
|
|
22954
24233
|
.filter(path => path.endsWith(".js"))
|
|
22955
24234
|
.forEach(includePath => {
|
|
@@ -22965,7 +24244,7 @@ function main(encodedCoreExecutionRequest) {
|
|
|
22965
24244
|
globalAny.assert = session.assert.bind(session);
|
|
22966
24245
|
globalAny.declare = session.declare.bind(session);
|
|
22967
24246
|
globalAny.test = session.test.bind(session);
|
|
22968
|
-
|
|
24247
|
+
config.compileConfig.filePaths
|
|
22969
24248
|
.filter(path => path.startsWith("definitions/"))
|
|
22970
24249
|
.filter(path => path.endsWith(".js") || path.endsWith(".sqlx"))
|
|
22971
24250
|
.forEach(definitionPath => {
|
|
@@ -22976,7 +24255,7 @@ function main(encodedCoreExecutionRequest) {
|
|
|
22976
24255
|
session.compileError(e, definitionPath);
|
|
22977
24256
|
}
|
|
22978
24257
|
});
|
|
22979
|
-
return encode64(dataform.
|
|
24258
|
+
return encode64(dataform.CoreExecutionResult, dataform.CoreExecutionResult.create({ compiledGraph: session.compile() }));
|
|
22980
24259
|
}
|
|
22981
24260
|
|
|
22982
24261
|
const indexFileGenerator = genIndex;
|