@replit/protocol 0.4.25 → 0.4.27
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/README.md +1 -1
- package/dist/api/lore/service.d.ts +7 -0
- package/dist/api/lore/service.js +9 -1
- package/dist/api/repl/repl.d.ts +7 -0
- package/dist/api/repl/repl.js +9 -1
- package/dist/api/token/token.d.ts +20 -2
- package/dist/api/token/token.js +17 -1
- package/dist/api/types.d.ts +5 -1
- package/dist/api/types.js +4 -0
- package/dist/google/protobuf/duration.d.ts +112 -0
- package/dist/google/protobuf/duration.js +104 -0
- package/iotester/index.d.ts +129 -1
- package/iotester/index.js +361 -0
- package/main/index.d.ts +129 -1
- package/main/index.js +361 -0
- package/package.json +1 -1
package/iotester/index.js
CHANGED
|
@@ -48202,6 +48202,7 @@
|
|
|
48202
48202
|
case 5:
|
|
48203
48203
|
case 6:
|
|
48204
48204
|
case 7:
|
|
48205
|
+
case 8:
|
|
48205
48206
|
break;
|
|
48206
48207
|
}
|
|
48207
48208
|
if (message.publicDir != null && message.hasOwnProperty("publicDir"))
|
|
@@ -48296,6 +48297,10 @@
|
|
|
48296
48297
|
case 7:
|
|
48297
48298
|
message.target = 7;
|
|
48298
48299
|
break;
|
|
48300
|
+
case "RAYFIN_APP":
|
|
48301
|
+
case 8:
|
|
48302
|
+
message.target = 8;
|
|
48303
|
+
break;
|
|
48299
48304
|
}
|
|
48300
48305
|
if (object.publicDir != null)
|
|
48301
48306
|
message.publicDir = String(object.publicDir);
|
|
@@ -48410,6 +48415,7 @@
|
|
|
48410
48415
|
* @property {number} SCHEDULED=5 SCHEDULED value
|
|
48411
48416
|
* @property {number} EXTENSION=6 EXTENSION value
|
|
48412
48417
|
* @property {number} DATABRICKS_APP=7 DATABRICKS_APP value
|
|
48418
|
+
* @property {number} RAYFIN_APP=8 RAYFIN_APP value
|
|
48413
48419
|
*/
|
|
48414
48420
|
DeploymentConfig.Target = (function() {
|
|
48415
48421
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -48421,6 +48427,7 @@
|
|
|
48421
48427
|
values[valuesById[5] = "SCHEDULED"] = 5;
|
|
48422
48428
|
values[valuesById[6] = "EXTENSION"] = 6;
|
|
48423
48429
|
values[valuesById[7] = "DATABRICKS_APP"] = 7;
|
|
48430
|
+
values[valuesById[8] = "RAYFIN_APP"] = 8;
|
|
48424
48431
|
return values;
|
|
48425
48432
|
})();
|
|
48426
48433
|
|
|
@@ -70517,6 +70524,7 @@
|
|
|
70517
70524
|
* @property {boolean|null} [useReplShield] Repl useReplShield
|
|
70518
70525
|
* @property {string|null} [connectorsHost] Repl connectorsHost
|
|
70519
70526
|
* @property {Object.<string,string>|null} [backerJobMetadata] Repl backerJobMetadata
|
|
70527
|
+
* @property {string|null} [customSkillsBucket] Repl customSkillsBucket
|
|
70520
70528
|
*/
|
|
70521
70529
|
|
|
70522
70530
|
/**
|
|
@@ -70663,6 +70671,14 @@
|
|
|
70663
70671
|
*/
|
|
70664
70672
|
Repl.prototype.backerJobMetadata = $util.emptyObject;
|
|
70665
70673
|
|
|
70674
|
+
/**
|
|
70675
|
+
* Repl customSkillsBucket.
|
|
70676
|
+
* @member {string} customSkillsBucket
|
|
70677
|
+
* @memberof replit.goval.api.repl.Repl
|
|
70678
|
+
* @instance
|
|
70679
|
+
*/
|
|
70680
|
+
Repl.prototype.customSkillsBucket = "";
|
|
70681
|
+
|
|
70666
70682
|
/**
|
|
70667
70683
|
* Creates a new Repl instance using the specified properties.
|
|
70668
70684
|
* @function create
|
|
@@ -70721,6 +70737,8 @@
|
|
|
70721
70737
|
if (message.backerJobMetadata != null && Object.hasOwnProperty.call(message, "backerJobMetadata"))
|
|
70722
70738
|
for (var keys = Object.keys(message.backerJobMetadata), i = 0; i < keys.length; ++i)
|
|
70723
70739
|
writer.uint32(/* id 17, wireType 2 =*/138).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.backerJobMetadata[keys[i]]).ldelim();
|
|
70740
|
+
if (message.customSkillsBucket != null && Object.hasOwnProperty.call(message, "customSkillsBucket"))
|
|
70741
|
+
writer.uint32(/* id 18, wireType 2 =*/146).string(message.customSkillsBucket);
|
|
70724
70742
|
return writer;
|
|
70725
70743
|
};
|
|
70726
70744
|
|
|
@@ -70842,6 +70860,10 @@
|
|
|
70842
70860
|
message.backerJobMetadata[key] = value;
|
|
70843
70861
|
break;
|
|
70844
70862
|
}
|
|
70863
|
+
case 18: {
|
|
70864
|
+
message.customSkillsBucket = reader.string();
|
|
70865
|
+
break;
|
|
70866
|
+
}
|
|
70845
70867
|
default:
|
|
70846
70868
|
reader.skipType(tag & 7);
|
|
70847
70869
|
break;
|
|
@@ -70940,6 +70962,9 @@
|
|
|
70940
70962
|
if (!$util.isString(message.backerJobMetadata[key[i]]))
|
|
70941
70963
|
return "backerJobMetadata: string{k:string} expected";
|
|
70942
70964
|
}
|
|
70965
|
+
if (message.customSkillsBucket != null && message.hasOwnProperty("customSkillsBucket"))
|
|
70966
|
+
if (!$util.isString(message.customSkillsBucket))
|
|
70967
|
+
return "customSkillsBucket: string expected";
|
|
70943
70968
|
return null;
|
|
70944
70969
|
};
|
|
70945
70970
|
|
|
@@ -71006,6 +71031,8 @@
|
|
|
71006
71031
|
for (var keys = Object.keys(object.backerJobMetadata), i = 0; i < keys.length; ++i)
|
|
71007
71032
|
message.backerJobMetadata[keys[i]] = String(object.backerJobMetadata[keys[i]]);
|
|
71008
71033
|
}
|
|
71034
|
+
if (object.customSkillsBucket != null)
|
|
71035
|
+
message.customSkillsBucket = String(object.customSkillsBucket);
|
|
71009
71036
|
return message;
|
|
71010
71037
|
};
|
|
71011
71038
|
|
|
@@ -71041,6 +71068,7 @@
|
|
|
71041
71068
|
object.org = null;
|
|
71042
71069
|
object.useReplShield = false;
|
|
71043
71070
|
object.connectorsHost = "";
|
|
71071
|
+
object.customSkillsBucket = "";
|
|
71044
71072
|
}
|
|
71045
71073
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
71046
71074
|
object.id = message.id;
|
|
@@ -71081,6 +71109,8 @@
|
|
|
71081
71109
|
for (var j = 0; j < keys2.length; ++j)
|
|
71082
71110
|
object.backerJobMetadata[keys2[j]] = message.backerJobMetadata[keys2[j]];
|
|
71083
71111
|
}
|
|
71112
|
+
if (message.customSkillsBucket != null && message.hasOwnProperty("customSkillsBucket"))
|
|
71113
|
+
object.customSkillsBucket = message.customSkillsBucket;
|
|
71084
71114
|
return object;
|
|
71085
71115
|
};
|
|
71086
71116
|
|
|
@@ -78445,6 +78475,8 @@
|
|
|
78445
78475
|
* @property {boolean|null} [replexec] ReplToken replexec
|
|
78446
78476
|
* @property {Array.<replit.goval.api.token.ReplToken.ExternalSecret|replit.goval.api.token.ReplToken.IExternalSecret>|null} [externalSecrets] ReplToken externalSecrets
|
|
78447
78477
|
* @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [before] ReplToken before
|
|
78478
|
+
* @property {string|null} [resourceTier] ReplToken resourceTier
|
|
78479
|
+
* @property {google.protobuf.Duration|google.protobuf.IDuration|null} [idleTimeout] ReplToken idleTimeout
|
|
78448
78480
|
*/
|
|
78449
78481
|
|
|
78450
78482
|
/**
|
|
@@ -78624,6 +78656,22 @@
|
|
|
78624
78656
|
*/
|
|
78625
78657
|
ReplToken.prototype.before = null;
|
|
78626
78658
|
|
|
78659
|
+
/**
|
|
78660
|
+
* ReplToken resourceTier.
|
|
78661
|
+
* @member {string} resourceTier
|
|
78662
|
+
* @memberof replit.goval.api.token.ReplToken
|
|
78663
|
+
* @instance
|
|
78664
|
+
*/
|
|
78665
|
+
ReplToken.prototype.resourceTier = "";
|
|
78666
|
+
|
|
78667
|
+
/**
|
|
78668
|
+
* ReplToken idleTimeout.
|
|
78669
|
+
* @member {google.protobuf.Duration|null|undefined} idleTimeout
|
|
78670
|
+
* @memberof replit.goval.api.token.ReplToken
|
|
78671
|
+
* @instance
|
|
78672
|
+
*/
|
|
78673
|
+
ReplToken.prototype.idleTimeout = null;
|
|
78674
|
+
|
|
78627
78675
|
// OneOf field names bound to virtual getters and setters
|
|
78628
78676
|
var $oneOfFields;
|
|
78629
78677
|
|
|
@@ -78638,6 +78686,12 @@
|
|
|
78638
78686
|
set: $util.oneOfSetter($oneOfFields)
|
|
78639
78687
|
});
|
|
78640
78688
|
|
|
78689
|
+
// Virtual OneOf for proto3 optional field
|
|
78690
|
+
Object.defineProperty(ReplToken.prototype, "_idleTimeout", {
|
|
78691
|
+
get: $util.oneOfGetter($oneOfFields = ["idleTimeout"]),
|
|
78692
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
78693
|
+
});
|
|
78694
|
+
|
|
78641
78695
|
/**
|
|
78642
78696
|
* Creates a new ReplToken instance using the specified properties.
|
|
78643
78697
|
* @function create
|
|
@@ -78705,6 +78759,10 @@
|
|
|
78705
78759
|
$root.replit.goval.api.token.ReplToken.ExternalSecret.encode(message.externalSecrets[i], writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
78706
78760
|
if (message.before != null && Object.hasOwnProperty.call(message, "before"))
|
|
78707
78761
|
$root.google.protobuf.Timestamp.encode(message.before, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
|
|
78762
|
+
if (message.resourceTier != null && Object.hasOwnProperty.call(message, "resourceTier"))
|
|
78763
|
+
writer.uint32(/* id 25, wireType 2 =*/202).string(message.resourceTier);
|
|
78764
|
+
if (message.idleTimeout != null && Object.hasOwnProperty.call(message, "idleTimeout"))
|
|
78765
|
+
$root.google.protobuf.Duration.encode(message.idleTimeout, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
|
|
78708
78766
|
return writer;
|
|
78709
78767
|
};
|
|
78710
78768
|
|
|
@@ -78827,6 +78885,14 @@
|
|
|
78827
78885
|
message.before = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
78828
78886
|
break;
|
|
78829
78887
|
}
|
|
78888
|
+
case 25: {
|
|
78889
|
+
message.resourceTier = reader.string();
|
|
78890
|
+
break;
|
|
78891
|
+
}
|
|
78892
|
+
case 26: {
|
|
78893
|
+
message.idleTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
78894
|
+
break;
|
|
78895
|
+
}
|
|
78830
78896
|
default:
|
|
78831
78897
|
reader.skipType(tag & 7);
|
|
78832
78898
|
break;
|
|
@@ -78988,6 +79054,17 @@
|
|
|
78988
79054
|
if (error)
|
|
78989
79055
|
return "before." + error;
|
|
78990
79056
|
}
|
|
79057
|
+
if (message.resourceTier != null && message.hasOwnProperty("resourceTier"))
|
|
79058
|
+
if (!$util.isString(message.resourceTier))
|
|
79059
|
+
return "resourceTier: string expected";
|
|
79060
|
+
if (message.idleTimeout != null && message.hasOwnProperty("idleTimeout")) {
|
|
79061
|
+
properties._idleTimeout = 1;
|
|
79062
|
+
{
|
|
79063
|
+
var error = $root.google.protobuf.Duration.verify(message.idleTimeout);
|
|
79064
|
+
if (error)
|
|
79065
|
+
return "idleTimeout." + error;
|
|
79066
|
+
}
|
|
79067
|
+
}
|
|
78991
79068
|
return null;
|
|
78992
79069
|
};
|
|
78993
79070
|
|
|
@@ -79141,6 +79218,13 @@
|
|
|
79141
79218
|
throw TypeError(".replit.goval.api.token.ReplToken.before: object expected");
|
|
79142
79219
|
message.before = $root.google.protobuf.Timestamp.fromObject(object.before);
|
|
79143
79220
|
}
|
|
79221
|
+
if (object.resourceTier != null)
|
|
79222
|
+
message.resourceTier = String(object.resourceTier);
|
|
79223
|
+
if (object.idleTimeout != null) {
|
|
79224
|
+
if (typeof object.idleTimeout !== "object")
|
|
79225
|
+
throw TypeError(".replit.goval.api.token.ReplToken.idleTimeout: object expected");
|
|
79226
|
+
message.idleTimeout = $root.google.protobuf.Duration.fromObject(object.idleTimeout);
|
|
79227
|
+
}
|
|
79144
79228
|
return message;
|
|
79145
79229
|
};
|
|
79146
79230
|
|
|
@@ -79177,6 +79261,7 @@
|
|
|
79177
79261
|
object.paid = false;
|
|
79178
79262
|
object.replexec = false;
|
|
79179
79263
|
object.before = null;
|
|
79264
|
+
object.resourceTier = "";
|
|
79180
79265
|
}
|
|
79181
79266
|
if (message.iat != null && message.hasOwnProperty("iat"))
|
|
79182
79267
|
object.iat = $root.google.protobuf.Timestamp.toObject(message.iat, options);
|
|
@@ -79236,6 +79321,13 @@
|
|
|
79236
79321
|
}
|
|
79237
79322
|
if (message.before != null && message.hasOwnProperty("before"))
|
|
79238
79323
|
object.before = $root.google.protobuf.Timestamp.toObject(message.before, options);
|
|
79324
|
+
if (message.resourceTier != null && message.hasOwnProperty("resourceTier"))
|
|
79325
|
+
object.resourceTier = message.resourceTier;
|
|
79326
|
+
if (message.idleTimeout != null && message.hasOwnProperty("idleTimeout")) {
|
|
79327
|
+
object.idleTimeout = $root.google.protobuf.Duration.toObject(message.idleTimeout, options);
|
|
79328
|
+
if (options.oneofs)
|
|
79329
|
+
object._idleTimeout = "idleTimeout";
|
|
79330
|
+
}
|
|
79239
79331
|
return object;
|
|
79240
79332
|
};
|
|
79241
79333
|
|
|
@@ -84763,6 +84855,7 @@
|
|
|
84763
84855
|
* @property {string|null} [conmanUrl] Cluster conmanUrl
|
|
84764
84856
|
* @property {string|null} [gurl] Cluster gurl
|
|
84765
84857
|
* @property {string|null} [noxHost] Cluster noxHost
|
|
84858
|
+
* @property {string|null} [chateauUrl] Cluster chateauUrl
|
|
84766
84859
|
*/
|
|
84767
84860
|
|
|
84768
84861
|
/**
|
|
@@ -84811,6 +84904,14 @@
|
|
|
84811
84904
|
*/
|
|
84812
84905
|
Cluster.prototype.noxHost = "";
|
|
84813
84906
|
|
|
84907
|
+
/**
|
|
84908
|
+
* Cluster chateauUrl.
|
|
84909
|
+
* @member {string} chateauUrl
|
|
84910
|
+
* @memberof replit.goval.api.lore.Cluster
|
|
84911
|
+
* @instance
|
|
84912
|
+
*/
|
|
84913
|
+
Cluster.prototype.chateauUrl = "";
|
|
84914
|
+
|
|
84814
84915
|
/**
|
|
84815
84916
|
* Creates a new Cluster instance using the specified properties.
|
|
84816
84917
|
* @function create
|
|
@@ -84843,6 +84944,8 @@
|
|
|
84843
84944
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.gurl);
|
|
84844
84945
|
if (message.noxHost != null && Object.hasOwnProperty.call(message, "noxHost"))
|
|
84845
84946
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.noxHost);
|
|
84947
|
+
if (message.chateauUrl != null && Object.hasOwnProperty.call(message, "chateauUrl"))
|
|
84948
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.chateauUrl);
|
|
84846
84949
|
return writer;
|
|
84847
84950
|
};
|
|
84848
84951
|
|
|
@@ -84895,6 +84998,10 @@
|
|
|
84895
84998
|
message.noxHost = reader.string();
|
|
84896
84999
|
break;
|
|
84897
85000
|
}
|
|
85001
|
+
case 6: {
|
|
85002
|
+
message.chateauUrl = reader.string();
|
|
85003
|
+
break;
|
|
85004
|
+
}
|
|
84898
85005
|
default:
|
|
84899
85006
|
reader.skipType(tag & 7);
|
|
84900
85007
|
break;
|
|
@@ -84942,6 +85049,9 @@
|
|
|
84942
85049
|
if (message.noxHost != null && message.hasOwnProperty("noxHost"))
|
|
84943
85050
|
if (!$util.isString(message.noxHost))
|
|
84944
85051
|
return "noxHost: string expected";
|
|
85052
|
+
if (message.chateauUrl != null && message.hasOwnProperty("chateauUrl"))
|
|
85053
|
+
if (!$util.isString(message.chateauUrl))
|
|
85054
|
+
return "chateauUrl: string expected";
|
|
84945
85055
|
return null;
|
|
84946
85056
|
};
|
|
84947
85057
|
|
|
@@ -84965,6 +85075,8 @@
|
|
|
84965
85075
|
message.gurl = String(object.gurl);
|
|
84966
85076
|
if (object.noxHost != null)
|
|
84967
85077
|
message.noxHost = String(object.noxHost);
|
|
85078
|
+
if (object.chateauUrl != null)
|
|
85079
|
+
message.chateauUrl = String(object.chateauUrl);
|
|
84968
85080
|
return message;
|
|
84969
85081
|
};
|
|
84970
85082
|
|
|
@@ -84986,6 +85098,7 @@
|
|
|
84986
85098
|
object.conmanUrl = "";
|
|
84987
85099
|
object.gurl = "";
|
|
84988
85100
|
object.noxHost = "";
|
|
85101
|
+
object.chateauUrl = "";
|
|
84989
85102
|
}
|
|
84990
85103
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
84991
85104
|
object.name = message.name;
|
|
@@ -84995,6 +85108,8 @@
|
|
|
84995
85108
|
object.gurl = message.gurl;
|
|
84996
85109
|
if (message.noxHost != null && message.hasOwnProperty("noxHost"))
|
|
84997
85110
|
object.noxHost = message.noxHost;
|
|
85111
|
+
if (message.chateauUrl != null && message.hasOwnProperty("chateauUrl"))
|
|
85112
|
+
object.chateauUrl = message.chateauUrl;
|
|
84998
85113
|
return object;
|
|
84999
85114
|
};
|
|
85000
85115
|
|
|
@@ -97319,6 +97434,252 @@
|
|
|
97319
97434
|
return Empty;
|
|
97320
97435
|
})();
|
|
97321
97436
|
|
|
97437
|
+
protobuf.Duration = (function() {
|
|
97438
|
+
|
|
97439
|
+
/**
|
|
97440
|
+
* Properties of a Duration.
|
|
97441
|
+
* @memberof google.protobuf
|
|
97442
|
+
* @interface IDuration
|
|
97443
|
+
* @property {number|null} [seconds] Duration seconds
|
|
97444
|
+
* @property {number|null} [nanos] Duration nanos
|
|
97445
|
+
*/
|
|
97446
|
+
|
|
97447
|
+
/**
|
|
97448
|
+
* Constructs a new Duration.
|
|
97449
|
+
* @memberof google.protobuf
|
|
97450
|
+
* @classdesc Represents a Duration.
|
|
97451
|
+
* @constructor
|
|
97452
|
+
* @param {google.protobuf.IDuration=} [properties] Properties to set
|
|
97453
|
+
*/
|
|
97454
|
+
function Duration(properties) {
|
|
97455
|
+
if (properties)
|
|
97456
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
97457
|
+
if (properties[keys[i]] != null)
|
|
97458
|
+
this[keys[i]] = properties[keys[i]];
|
|
97459
|
+
}
|
|
97460
|
+
|
|
97461
|
+
/**
|
|
97462
|
+
* Duration seconds.
|
|
97463
|
+
* @member {number} seconds
|
|
97464
|
+
* @memberof google.protobuf.Duration
|
|
97465
|
+
* @instance
|
|
97466
|
+
*/
|
|
97467
|
+
Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
97468
|
+
|
|
97469
|
+
/**
|
|
97470
|
+
* Duration nanos.
|
|
97471
|
+
* @member {number} nanos
|
|
97472
|
+
* @memberof google.protobuf.Duration
|
|
97473
|
+
* @instance
|
|
97474
|
+
*/
|
|
97475
|
+
Duration.prototype.nanos = 0;
|
|
97476
|
+
|
|
97477
|
+
/**
|
|
97478
|
+
* Creates a new Duration instance using the specified properties.
|
|
97479
|
+
* @function create
|
|
97480
|
+
* @memberof google.protobuf.Duration
|
|
97481
|
+
* @static
|
|
97482
|
+
* @param {google.protobuf.IDuration=} [properties] Properties to set
|
|
97483
|
+
* @returns {google.protobuf.Duration} Duration instance
|
|
97484
|
+
*/
|
|
97485
|
+
Duration.create = function create(properties) {
|
|
97486
|
+
return Duration.fromObject(properties);
|
|
97487
|
+
};
|
|
97488
|
+
|
|
97489
|
+
/**
|
|
97490
|
+
* Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
|
97491
|
+
* @function encode
|
|
97492
|
+
* @memberof google.protobuf.Duration
|
|
97493
|
+
* @static
|
|
97494
|
+
* @param {google.protobuf.Duration} message Duration message or plain object to encode
|
|
97495
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
97496
|
+
* @returns {$protobuf.Writer} Writer
|
|
97497
|
+
*/
|
|
97498
|
+
Duration.encode = function encode(message, writer) {
|
|
97499
|
+
if (!writer)
|
|
97500
|
+
writer = $Writer.create();
|
|
97501
|
+
if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds"))
|
|
97502
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds);
|
|
97503
|
+
if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos"))
|
|
97504
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos);
|
|
97505
|
+
return writer;
|
|
97506
|
+
};
|
|
97507
|
+
|
|
97508
|
+
/**
|
|
97509
|
+
* Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
|
97510
|
+
* @function encodeDelimited
|
|
97511
|
+
* @memberof google.protobuf.Duration
|
|
97512
|
+
* @static
|
|
97513
|
+
* @param {google.protobuf.Duration} message Duration message or plain object to encode
|
|
97514
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
97515
|
+
* @returns {$protobuf.Writer} Writer
|
|
97516
|
+
*/
|
|
97517
|
+
Duration.encodeDelimited = function encodeDelimited(message, writer) {
|
|
97518
|
+
return this.encode(message, writer).ldelim();
|
|
97519
|
+
};
|
|
97520
|
+
|
|
97521
|
+
/**
|
|
97522
|
+
* Decodes a Duration message from the specified reader or buffer.
|
|
97523
|
+
* @function decode
|
|
97524
|
+
* @memberof google.protobuf.Duration
|
|
97525
|
+
* @static
|
|
97526
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
97527
|
+
* @param {number} [length] Message length if known beforehand
|
|
97528
|
+
* @returns {google.protobuf.Duration} Duration
|
|
97529
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
97530
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
97531
|
+
*/
|
|
97532
|
+
Duration.decode = function decode(reader, length, error) {
|
|
97533
|
+
if (!(reader instanceof $Reader))
|
|
97534
|
+
reader = $Reader.create(reader);
|
|
97535
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration();
|
|
97536
|
+
while (reader.pos < end) {
|
|
97537
|
+
var tag = reader.uint32();
|
|
97538
|
+
if (tag === error)
|
|
97539
|
+
break;
|
|
97540
|
+
switch (tag >>> 3) {
|
|
97541
|
+
case 1: {
|
|
97542
|
+
message.seconds = reader.int64();
|
|
97543
|
+
break;
|
|
97544
|
+
}
|
|
97545
|
+
case 2: {
|
|
97546
|
+
message.nanos = reader.int32();
|
|
97547
|
+
break;
|
|
97548
|
+
}
|
|
97549
|
+
default:
|
|
97550
|
+
reader.skipType(tag & 7);
|
|
97551
|
+
break;
|
|
97552
|
+
}
|
|
97553
|
+
}
|
|
97554
|
+
return message;
|
|
97555
|
+
};
|
|
97556
|
+
|
|
97557
|
+
/**
|
|
97558
|
+
* Decodes a Duration message from the specified reader or buffer, length delimited.
|
|
97559
|
+
* @function decodeDelimited
|
|
97560
|
+
* @memberof google.protobuf.Duration
|
|
97561
|
+
* @static
|
|
97562
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
97563
|
+
* @returns {google.protobuf.Duration} Duration
|
|
97564
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
97565
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
97566
|
+
*/
|
|
97567
|
+
Duration.decodeDelimited = function decodeDelimited(reader) {
|
|
97568
|
+
if (!(reader instanceof $Reader))
|
|
97569
|
+
reader = new $Reader(reader);
|
|
97570
|
+
return this.decode(reader, reader.uint32());
|
|
97571
|
+
};
|
|
97572
|
+
|
|
97573
|
+
/**
|
|
97574
|
+
* Verifies a Duration message.
|
|
97575
|
+
* @function verify
|
|
97576
|
+
* @memberof google.protobuf.Duration
|
|
97577
|
+
* @static
|
|
97578
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
97579
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
97580
|
+
*/
|
|
97581
|
+
Duration.verify = function verify(message) {
|
|
97582
|
+
if (typeof message !== "object" || message === null)
|
|
97583
|
+
return "object expected";
|
|
97584
|
+
if (message.seconds != null && message.hasOwnProperty("seconds"))
|
|
97585
|
+
if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high)))
|
|
97586
|
+
return "seconds: integer|Long expected";
|
|
97587
|
+
if (message.nanos != null && message.hasOwnProperty("nanos"))
|
|
97588
|
+
if (!$util.isInteger(message.nanos))
|
|
97589
|
+
return "nanos: integer expected";
|
|
97590
|
+
return null;
|
|
97591
|
+
};
|
|
97592
|
+
|
|
97593
|
+
/**
|
|
97594
|
+
* Creates a Duration message from a plain object. Also converts values to their respective internal types.
|
|
97595
|
+
* @function fromObject
|
|
97596
|
+
* @memberof google.protobuf.Duration
|
|
97597
|
+
* @static
|
|
97598
|
+
* @param {Object.<string,*>} object Plain object
|
|
97599
|
+
* @returns {google.protobuf.Duration} Duration
|
|
97600
|
+
*/
|
|
97601
|
+
Duration.fromObject = function fromObject(object) {
|
|
97602
|
+
if (object instanceof $root.google.protobuf.Duration)
|
|
97603
|
+
return object;
|
|
97604
|
+
var message = new $root.google.protobuf.Duration();
|
|
97605
|
+
if (object.seconds != null)
|
|
97606
|
+
if ($util.Long)
|
|
97607
|
+
(message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false;
|
|
97608
|
+
else if (typeof object.seconds === "string")
|
|
97609
|
+
message.seconds = parseInt(object.seconds, 10);
|
|
97610
|
+
else if (typeof object.seconds === "number")
|
|
97611
|
+
message.seconds = object.seconds;
|
|
97612
|
+
else if (typeof object.seconds === "object")
|
|
97613
|
+
message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber();
|
|
97614
|
+
if (object.nanos != null)
|
|
97615
|
+
message.nanos = object.nanos | 0;
|
|
97616
|
+
return message;
|
|
97617
|
+
};
|
|
97618
|
+
|
|
97619
|
+
/**
|
|
97620
|
+
* Creates a plain object from a Duration message. Also converts values to other types if specified.
|
|
97621
|
+
* @function toObject
|
|
97622
|
+
* @memberof google.protobuf.Duration
|
|
97623
|
+
* @static
|
|
97624
|
+
* @param {google.protobuf.Duration} message Duration
|
|
97625
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
97626
|
+
* @returns {Object.<string,*>} Plain object
|
|
97627
|
+
*/
|
|
97628
|
+
Duration.toObject = function toObject(message, options) {
|
|
97629
|
+
if (options && options.json) {
|
|
97630
|
+
return `${message.seconds || 0}.${message.nanos || 0}s`.replace(/(0+(?=s$))/, '');
|
|
97631
|
+
}
|
|
97632
|
+
|
|
97633
|
+
if (!options)
|
|
97634
|
+
options = {};
|
|
97635
|
+
var object = {};
|
|
97636
|
+
if (options.defaults) {
|
|
97637
|
+
if ($util.Long) {
|
|
97638
|
+
var long = new $util.Long(0, 0, false);
|
|
97639
|
+
object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
97640
|
+
} else
|
|
97641
|
+
object.seconds = options.longs === String ? "0" : 0;
|
|
97642
|
+
object.nanos = 0;
|
|
97643
|
+
}
|
|
97644
|
+
if (message.seconds != null && message.hasOwnProperty("seconds"))
|
|
97645
|
+
if (typeof message.seconds === "number")
|
|
97646
|
+
object.seconds = options.longs === String ? String(message.seconds) : message.seconds;
|
|
97647
|
+
else
|
|
97648
|
+
object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds;
|
|
97649
|
+
if (message.nanos != null && message.hasOwnProperty("nanos"))
|
|
97650
|
+
object.nanos = message.nanos;
|
|
97651
|
+
return object;
|
|
97652
|
+
};
|
|
97653
|
+
|
|
97654
|
+
/**
|
|
97655
|
+
* Converts this Duration to JSON.
|
|
97656
|
+
* @function toJSON
|
|
97657
|
+
* @memberof google.protobuf.Duration
|
|
97658
|
+
* @instance
|
|
97659
|
+
* @returns {Object.<string,*>} JSON object
|
|
97660
|
+
*/
|
|
97661
|
+
Duration.prototype.toJSON = function toJSON() {
|
|
97662
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
97663
|
+
};
|
|
97664
|
+
|
|
97665
|
+
/**
|
|
97666
|
+
* Gets the default type url for Duration
|
|
97667
|
+
* @function getTypeUrl
|
|
97668
|
+
* @memberof google.protobuf.Duration
|
|
97669
|
+
* @static
|
|
97670
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
97671
|
+
* @returns {string} The default type url
|
|
97672
|
+
*/
|
|
97673
|
+
Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
97674
|
+
if (typeUrlPrefix === undefined) {
|
|
97675
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
97676
|
+
}
|
|
97677
|
+
return typeUrlPrefix + "/google.protobuf.Duration";
|
|
97678
|
+
};
|
|
97679
|
+
|
|
97680
|
+
return Duration;
|
|
97681
|
+
})();
|
|
97682
|
+
|
|
97322
97683
|
protobuf.FieldMask = (function() {
|
|
97323
97684
|
|
|
97324
97685
|
/**
|