@dashevo/dapi-grpc 4.2.0-dev.8 → 4.2.0-dev.9
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/build.rs +1 -0
- package/clients/drive/v0/nodejs/drive_pbjs.js +1477 -268
- package/clients/platform/v0/nodejs/platform_pbjs.js +1477 -268
- package/clients/platform/v0/nodejs/platform_protoc.js +1285 -5
- package/clients/platform/v0/web/platform_pb.d.ts +167 -0
- package/clients/platform/v0/web/platform_pb.js +1285 -5
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +103 -0
|
@@ -22859,6 +22859,7 @@ $root.org = (function() {
|
|
|
22859
22859
|
* @property {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.IHavingClause>|null} [having] GetDocumentsRequestV1 having
|
|
22860
22860
|
* @property {number|null} [offset] GetDocumentsRequestV1 offset
|
|
22861
22861
|
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.IChainedJoin|null} [chained] GetDocumentsRequestV1 chained
|
|
22862
|
+
* @property {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISubQuery>|null} [subQueries] GetDocumentsRequestV1 subQueries
|
|
22862
22863
|
*/
|
|
22863
22864
|
|
|
22864
22865
|
/**
|
|
@@ -22875,6 +22876,7 @@ $root.org = (function() {
|
|
|
22875
22876
|
this.selects = [];
|
|
22876
22877
|
this.groupBy = [];
|
|
22877
22878
|
this.having = [];
|
|
22879
|
+
this.subQueries = [];
|
|
22878
22880
|
if (properties)
|
|
22879
22881
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22880
22882
|
if (properties[keys[i]] != null)
|
|
@@ -22985,6 +22987,14 @@ $root.org = (function() {
|
|
|
22985
22987
|
*/
|
|
22986
22988
|
GetDocumentsRequestV1.prototype.chained = null;
|
|
22987
22989
|
|
|
22990
|
+
/**
|
|
22991
|
+
* GetDocumentsRequestV1 subQueries.
|
|
22992
|
+
* @member {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISubQuery>} subQueries
|
|
22993
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1
|
|
22994
|
+
* @instance
|
|
22995
|
+
*/
|
|
22996
|
+
GetDocumentsRequestV1.prototype.subQueries = $util.emptyArray;
|
|
22997
|
+
|
|
22988
22998
|
// OneOf field names bound to virtual getters and setters
|
|
22989
22999
|
var $oneOfFields;
|
|
22990
23000
|
|
|
@@ -23054,6 +23064,9 @@ $root.org = (function() {
|
|
|
23054
23064
|
writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.offset);
|
|
23055
23065
|
if (message.chained != null && Object.hasOwnProperty.call(message, "chained"))
|
|
23056
23066
|
$root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.encode(message.chained, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
23067
|
+
if (message.subQueries != null && message.subQueries.length)
|
|
23068
|
+
for (var i = 0; i < message.subQueries.length; ++i)
|
|
23069
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.encode(message.subQueries[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
23057
23070
|
return writer;
|
|
23058
23071
|
};
|
|
23059
23072
|
|
|
@@ -23137,6 +23150,11 @@ $root.org = (function() {
|
|
|
23137
23150
|
case 13:
|
|
23138
23151
|
message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.decode(reader, reader.uint32());
|
|
23139
23152
|
break;
|
|
23153
|
+
case 14:
|
|
23154
|
+
if (!(message.subQueries && message.subQueries.length))
|
|
23155
|
+
message.subQueries = [];
|
|
23156
|
+
message.subQueries.push($root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.decode(reader, reader.uint32()));
|
|
23157
|
+
break;
|
|
23140
23158
|
default:
|
|
23141
23159
|
reader.skipType(tag & 7);
|
|
23142
23160
|
break;
|
|
@@ -23248,6 +23266,15 @@ $root.org = (function() {
|
|
|
23248
23266
|
if (error)
|
|
23249
23267
|
return "chained." + error;
|
|
23250
23268
|
}
|
|
23269
|
+
if (message.subQueries != null && message.hasOwnProperty("subQueries")) {
|
|
23270
|
+
if (!Array.isArray(message.subQueries))
|
|
23271
|
+
return "subQueries: array expected";
|
|
23272
|
+
for (var i = 0; i < message.subQueries.length; ++i) {
|
|
23273
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.verify(message.subQueries[i]);
|
|
23274
|
+
if (error)
|
|
23275
|
+
return "subQueries." + error;
|
|
23276
|
+
}
|
|
23277
|
+
}
|
|
23251
23278
|
return null;
|
|
23252
23279
|
};
|
|
23253
23280
|
|
|
@@ -23338,6 +23365,16 @@ $root.org = (function() {
|
|
|
23338
23365
|
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.chained: object expected");
|
|
23339
23366
|
message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.fromObject(object.chained);
|
|
23340
23367
|
}
|
|
23368
|
+
if (object.subQueries) {
|
|
23369
|
+
if (!Array.isArray(object.subQueries))
|
|
23370
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.subQueries: array expected");
|
|
23371
|
+
message.subQueries = [];
|
|
23372
|
+
for (var i = 0; i < object.subQueries.length; ++i) {
|
|
23373
|
+
if (typeof object.subQueries[i] !== "object")
|
|
23374
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.subQueries: object expected");
|
|
23375
|
+
message.subQueries[i] = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.fromObject(object.subQueries[i]);
|
|
23376
|
+
}
|
|
23377
|
+
}
|
|
23341
23378
|
return message;
|
|
23342
23379
|
};
|
|
23343
23380
|
|
|
@@ -23360,6 +23397,7 @@ $root.org = (function() {
|
|
|
23360
23397
|
object.selects = [];
|
|
23361
23398
|
object.groupBy = [];
|
|
23362
23399
|
object.having = [];
|
|
23400
|
+
object.subQueries = [];
|
|
23363
23401
|
}
|
|
23364
23402
|
if (options.defaults) {
|
|
23365
23403
|
if (options.bytes === String)
|
|
@@ -23422,6 +23460,11 @@ $root.org = (function() {
|
|
|
23422
23460
|
object.offset = message.offset;
|
|
23423
23461
|
if (message.chained != null && message.hasOwnProperty("chained"))
|
|
23424
23462
|
object.chained = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ChainedJoin.toObject(message.chained, options);
|
|
23463
|
+
if (message.subQueries && message.subQueries.length) {
|
|
23464
|
+
object.subQueries = [];
|
|
23465
|
+
for (var j = 0; j < message.subQueries.length; ++j)
|
|
23466
|
+
object.subQueries[j] = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.toObject(message.subQueries[j], options);
|
|
23467
|
+
}
|
|
23425
23468
|
return object;
|
|
23426
23469
|
};
|
|
23427
23470
|
|
|
@@ -23911,174 +23954,811 @@ $root.org = (function() {
|
|
|
23911
23954
|
return ChainedJoin;
|
|
23912
23955
|
})();
|
|
23913
23956
|
|
|
23914
|
-
|
|
23915
|
-
})();
|
|
23957
|
+
GetDocumentsRequestV1.SubQuery = (function() {
|
|
23916
23958
|
|
|
23917
|
-
|
|
23918
|
-
|
|
23959
|
+
/**
|
|
23960
|
+
* Properties of a SubQuery.
|
|
23961
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1
|
|
23962
|
+
* @interface ISubQuery
|
|
23963
|
+
* @property {Uint8Array|null} [dataContractId] SubQuery dataContractId
|
|
23964
|
+
* @property {string|null} [documentType] SubQuery documentType
|
|
23965
|
+
* @property {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.IWhereClause>|null} [whereClauses] SubQuery whereClauses
|
|
23966
|
+
* @property {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.IOrderClause>|null} [orderBy] SubQuery orderBy
|
|
23967
|
+
* @property {number|null} [limit] SubQuery limit
|
|
23968
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Kind|null} [kind] SubQuery kind
|
|
23969
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.IBinding|null} [bind] SubQuery bind
|
|
23970
|
+
*/
|
|
23919
23971
|
|
|
23920
|
-
|
|
23972
|
+
/**
|
|
23973
|
+
* Constructs a new SubQuery.
|
|
23974
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1
|
|
23975
|
+
* @classdesc Represents a SubQuery.
|
|
23976
|
+
* @implements ISubQuery
|
|
23977
|
+
* @constructor
|
|
23978
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISubQuery=} [properties] Properties to set
|
|
23979
|
+
*/
|
|
23980
|
+
function SubQuery(properties) {
|
|
23981
|
+
this.whereClauses = [];
|
|
23982
|
+
this.orderBy = [];
|
|
23983
|
+
if (properties)
|
|
23984
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23985
|
+
if (properties[keys[i]] != null)
|
|
23986
|
+
this[keys[i]] = properties[keys[i]];
|
|
23987
|
+
}
|
|
23921
23988
|
|
|
23922
|
-
|
|
23923
|
-
|
|
23924
|
-
|
|
23925
|
-
|
|
23926
|
-
|
|
23927
|
-
|
|
23928
|
-
|
|
23989
|
+
/**
|
|
23990
|
+
* SubQuery dataContractId.
|
|
23991
|
+
* @member {Uint8Array} dataContractId
|
|
23992
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
23993
|
+
* @instance
|
|
23994
|
+
*/
|
|
23995
|
+
SubQuery.prototype.dataContractId = $util.newBuffer([]);
|
|
23929
23996
|
|
|
23930
|
-
|
|
23931
|
-
|
|
23932
|
-
|
|
23933
|
-
|
|
23934
|
-
|
|
23935
|
-
|
|
23936
|
-
|
|
23937
|
-
*/
|
|
23938
|
-
function GetDocumentsResponse(properties) {
|
|
23939
|
-
if (properties)
|
|
23940
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23941
|
-
if (properties[keys[i]] != null)
|
|
23942
|
-
this[keys[i]] = properties[keys[i]];
|
|
23943
|
-
}
|
|
23997
|
+
/**
|
|
23998
|
+
* SubQuery documentType.
|
|
23999
|
+
* @member {string} documentType
|
|
24000
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24001
|
+
* @instance
|
|
24002
|
+
*/
|
|
24003
|
+
SubQuery.prototype.documentType = "";
|
|
23944
24004
|
|
|
23945
|
-
|
|
23946
|
-
|
|
23947
|
-
|
|
23948
|
-
|
|
23949
|
-
|
|
23950
|
-
|
|
23951
|
-
|
|
24005
|
+
/**
|
|
24006
|
+
* SubQuery whereClauses.
|
|
24007
|
+
* @member {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.IWhereClause>} whereClauses
|
|
24008
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24009
|
+
* @instance
|
|
24010
|
+
*/
|
|
24011
|
+
SubQuery.prototype.whereClauses = $util.emptyArray;
|
|
23952
24012
|
|
|
23953
|
-
|
|
23954
|
-
|
|
23955
|
-
|
|
23956
|
-
|
|
23957
|
-
|
|
23958
|
-
|
|
23959
|
-
|
|
24013
|
+
/**
|
|
24014
|
+
* SubQuery orderBy.
|
|
24015
|
+
* @member {Array.<org.dash.platform.dapi.v0.GetDocumentsRequest.IOrderClause>} orderBy
|
|
24016
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24017
|
+
* @instance
|
|
24018
|
+
*/
|
|
24019
|
+
SubQuery.prototype.orderBy = $util.emptyArray;
|
|
23960
24020
|
|
|
23961
|
-
|
|
23962
|
-
|
|
24021
|
+
/**
|
|
24022
|
+
* SubQuery limit.
|
|
24023
|
+
* @member {number} limit
|
|
24024
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24025
|
+
* @instance
|
|
24026
|
+
*/
|
|
24027
|
+
SubQuery.prototype.limit = 0;
|
|
23963
24028
|
|
|
23964
|
-
|
|
23965
|
-
|
|
23966
|
-
|
|
23967
|
-
|
|
23968
|
-
|
|
23969
|
-
|
|
23970
|
-
|
|
23971
|
-
get: $util.oneOfGetter($oneOfFields = ["v0", "v1"]),
|
|
23972
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
23973
|
-
});
|
|
24029
|
+
/**
|
|
24030
|
+
* SubQuery kind.
|
|
24031
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Kind} kind
|
|
24032
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24033
|
+
* @instance
|
|
24034
|
+
*/
|
|
24035
|
+
SubQuery.prototype.kind = 0;
|
|
23974
24036
|
|
|
23975
|
-
|
|
23976
|
-
|
|
23977
|
-
|
|
23978
|
-
|
|
23979
|
-
|
|
23980
|
-
|
|
23981
|
-
|
|
23982
|
-
*/
|
|
23983
|
-
GetDocumentsResponse.create = function create(properties) {
|
|
23984
|
-
return new GetDocumentsResponse(properties);
|
|
23985
|
-
};
|
|
24037
|
+
/**
|
|
24038
|
+
* SubQuery bind.
|
|
24039
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.IBinding|null|undefined} bind
|
|
24040
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24041
|
+
* @instance
|
|
24042
|
+
*/
|
|
24043
|
+
SubQuery.prototype.bind = null;
|
|
23986
24044
|
|
|
23987
|
-
|
|
23988
|
-
|
|
23989
|
-
|
|
23990
|
-
|
|
23991
|
-
|
|
23992
|
-
|
|
23993
|
-
|
|
23994
|
-
|
|
23995
|
-
|
|
23996
|
-
|
|
23997
|
-
|
|
23998
|
-
writer = $Writer.create();
|
|
23999
|
-
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
24000
|
-
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
24001
|
-
if (message.v1 != null && Object.hasOwnProperty.call(message, "v1"))
|
|
24002
|
-
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.encode(message.v1, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
24003
|
-
return writer;
|
|
24004
|
-
};
|
|
24045
|
+
/**
|
|
24046
|
+
* Creates a new SubQuery instance using the specified properties.
|
|
24047
|
+
* @function create
|
|
24048
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24049
|
+
* @static
|
|
24050
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISubQuery=} [properties] Properties to set
|
|
24051
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery} SubQuery instance
|
|
24052
|
+
*/
|
|
24053
|
+
SubQuery.create = function create(properties) {
|
|
24054
|
+
return new SubQuery(properties);
|
|
24055
|
+
};
|
|
24005
24056
|
|
|
24006
|
-
|
|
24007
|
-
|
|
24008
|
-
|
|
24009
|
-
|
|
24010
|
-
|
|
24011
|
-
|
|
24012
|
-
|
|
24013
|
-
|
|
24014
|
-
|
|
24015
|
-
|
|
24016
|
-
|
|
24017
|
-
|
|
24057
|
+
/**
|
|
24058
|
+
* Encodes the specified SubQuery message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.verify|verify} messages.
|
|
24059
|
+
* @function encode
|
|
24060
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24061
|
+
* @static
|
|
24062
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISubQuery} message SubQuery message or plain object to encode
|
|
24063
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24064
|
+
* @returns {$protobuf.Writer} Writer
|
|
24065
|
+
*/
|
|
24066
|
+
SubQuery.encode = function encode(message, writer) {
|
|
24067
|
+
if (!writer)
|
|
24068
|
+
writer = $Writer.create();
|
|
24069
|
+
if (message.dataContractId != null && Object.hasOwnProperty.call(message, "dataContractId"))
|
|
24070
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.dataContractId);
|
|
24071
|
+
if (message.documentType != null && Object.hasOwnProperty.call(message, "documentType"))
|
|
24072
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.documentType);
|
|
24073
|
+
if (message.whereClauses != null && message.whereClauses.length)
|
|
24074
|
+
for (var i = 0; i < message.whereClauses.length; ++i)
|
|
24075
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.encode(message.whereClauses[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
24076
|
+
if (message.orderBy != null && message.orderBy.length)
|
|
24077
|
+
for (var i = 0; i < message.orderBy.length; ++i)
|
|
24078
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause.encode(message.orderBy[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
24079
|
+
if (message.limit != null && Object.hasOwnProperty.call(message, "limit"))
|
|
24080
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.limit);
|
|
24081
|
+
if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
|
|
24082
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.kind);
|
|
24083
|
+
if (message.bind != null && Object.hasOwnProperty.call(message, "bind"))
|
|
24084
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding.encode(message.bind, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
24085
|
+
return writer;
|
|
24086
|
+
};
|
|
24018
24087
|
|
|
24019
|
-
|
|
24020
|
-
|
|
24021
|
-
|
|
24022
|
-
|
|
24023
|
-
|
|
24024
|
-
|
|
24025
|
-
|
|
24026
|
-
|
|
24027
|
-
|
|
24028
|
-
|
|
24029
|
-
|
|
24030
|
-
|
|
24031
|
-
if (!(reader instanceof $Reader))
|
|
24032
|
-
reader = $Reader.create(reader);
|
|
24033
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse();
|
|
24034
|
-
while (reader.pos < end) {
|
|
24035
|
-
var tag = reader.uint32();
|
|
24036
|
-
switch (tag >>> 3) {
|
|
24037
|
-
case 1:
|
|
24038
|
-
message.v0 = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV0.decode(reader, reader.uint32());
|
|
24039
|
-
break;
|
|
24040
|
-
case 2:
|
|
24041
|
-
message.v1 = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.decode(reader, reader.uint32());
|
|
24042
|
-
break;
|
|
24043
|
-
default:
|
|
24044
|
-
reader.skipType(tag & 7);
|
|
24045
|
-
break;
|
|
24046
|
-
}
|
|
24047
|
-
}
|
|
24048
|
-
return message;
|
|
24049
|
-
};
|
|
24088
|
+
/**
|
|
24089
|
+
* Encodes the specified SubQuery message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.verify|verify} messages.
|
|
24090
|
+
* @function encodeDelimited
|
|
24091
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24092
|
+
* @static
|
|
24093
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.ISubQuery} message SubQuery message or plain object to encode
|
|
24094
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24095
|
+
* @returns {$protobuf.Writer} Writer
|
|
24096
|
+
*/
|
|
24097
|
+
SubQuery.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24098
|
+
return this.encode(message, writer).ldelim();
|
|
24099
|
+
};
|
|
24050
24100
|
|
|
24051
|
-
|
|
24052
|
-
|
|
24053
|
-
|
|
24054
|
-
|
|
24055
|
-
|
|
24056
|
-
|
|
24057
|
-
|
|
24058
|
-
|
|
24059
|
-
|
|
24060
|
-
|
|
24061
|
-
|
|
24062
|
-
|
|
24063
|
-
|
|
24064
|
-
|
|
24065
|
-
|
|
24101
|
+
/**
|
|
24102
|
+
* Decodes a SubQuery message from the specified reader or buffer.
|
|
24103
|
+
* @function decode
|
|
24104
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24105
|
+
* @static
|
|
24106
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24107
|
+
* @param {number} [length] Message length if known beforehand
|
|
24108
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery} SubQuery
|
|
24109
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24110
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24111
|
+
*/
|
|
24112
|
+
SubQuery.decode = function decode(reader, length) {
|
|
24113
|
+
if (!(reader instanceof $Reader))
|
|
24114
|
+
reader = $Reader.create(reader);
|
|
24115
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery();
|
|
24116
|
+
while (reader.pos < end) {
|
|
24117
|
+
var tag = reader.uint32();
|
|
24118
|
+
switch (tag >>> 3) {
|
|
24119
|
+
case 1:
|
|
24120
|
+
message.dataContractId = reader.bytes();
|
|
24121
|
+
break;
|
|
24122
|
+
case 2:
|
|
24123
|
+
message.documentType = reader.string();
|
|
24124
|
+
break;
|
|
24125
|
+
case 3:
|
|
24126
|
+
if (!(message.whereClauses && message.whereClauses.length))
|
|
24127
|
+
message.whereClauses = [];
|
|
24128
|
+
message.whereClauses.push($root.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.decode(reader, reader.uint32()));
|
|
24129
|
+
break;
|
|
24130
|
+
case 4:
|
|
24131
|
+
if (!(message.orderBy && message.orderBy.length))
|
|
24132
|
+
message.orderBy = [];
|
|
24133
|
+
message.orderBy.push($root.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause.decode(reader, reader.uint32()));
|
|
24134
|
+
break;
|
|
24135
|
+
case 5:
|
|
24136
|
+
message.limit = reader.uint32();
|
|
24137
|
+
break;
|
|
24138
|
+
case 6:
|
|
24139
|
+
message.kind = reader.int32();
|
|
24140
|
+
break;
|
|
24141
|
+
case 7:
|
|
24142
|
+
message.bind = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding.decode(reader, reader.uint32());
|
|
24143
|
+
break;
|
|
24144
|
+
default:
|
|
24145
|
+
reader.skipType(tag & 7);
|
|
24146
|
+
break;
|
|
24147
|
+
}
|
|
24148
|
+
}
|
|
24149
|
+
return message;
|
|
24150
|
+
};
|
|
24066
24151
|
|
|
24067
|
-
|
|
24068
|
-
|
|
24069
|
-
|
|
24070
|
-
|
|
24071
|
-
|
|
24072
|
-
|
|
24073
|
-
|
|
24074
|
-
|
|
24075
|
-
|
|
24076
|
-
|
|
24077
|
-
|
|
24078
|
-
|
|
24079
|
-
|
|
24080
|
-
|
|
24081
|
-
|
|
24152
|
+
/**
|
|
24153
|
+
* Decodes a SubQuery message from the specified reader or buffer, length delimited.
|
|
24154
|
+
* @function decodeDelimited
|
|
24155
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24156
|
+
* @static
|
|
24157
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24158
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery} SubQuery
|
|
24159
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24160
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24161
|
+
*/
|
|
24162
|
+
SubQuery.decodeDelimited = function decodeDelimited(reader) {
|
|
24163
|
+
if (!(reader instanceof $Reader))
|
|
24164
|
+
reader = new $Reader(reader);
|
|
24165
|
+
return this.decode(reader, reader.uint32());
|
|
24166
|
+
};
|
|
24167
|
+
|
|
24168
|
+
/**
|
|
24169
|
+
* Verifies a SubQuery message.
|
|
24170
|
+
* @function verify
|
|
24171
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24172
|
+
* @static
|
|
24173
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
24174
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24175
|
+
*/
|
|
24176
|
+
SubQuery.verify = function verify(message) {
|
|
24177
|
+
if (typeof message !== "object" || message === null)
|
|
24178
|
+
return "object expected";
|
|
24179
|
+
if (message.dataContractId != null && message.hasOwnProperty("dataContractId"))
|
|
24180
|
+
if (!(message.dataContractId && typeof message.dataContractId.length === "number" || $util.isString(message.dataContractId)))
|
|
24181
|
+
return "dataContractId: buffer expected";
|
|
24182
|
+
if (message.documentType != null && message.hasOwnProperty("documentType"))
|
|
24183
|
+
if (!$util.isString(message.documentType))
|
|
24184
|
+
return "documentType: string expected";
|
|
24185
|
+
if (message.whereClauses != null && message.hasOwnProperty("whereClauses")) {
|
|
24186
|
+
if (!Array.isArray(message.whereClauses))
|
|
24187
|
+
return "whereClauses: array expected";
|
|
24188
|
+
for (var i = 0; i < message.whereClauses.length; ++i) {
|
|
24189
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.verify(message.whereClauses[i]);
|
|
24190
|
+
if (error)
|
|
24191
|
+
return "whereClauses." + error;
|
|
24192
|
+
}
|
|
24193
|
+
}
|
|
24194
|
+
if (message.orderBy != null && message.hasOwnProperty("orderBy")) {
|
|
24195
|
+
if (!Array.isArray(message.orderBy))
|
|
24196
|
+
return "orderBy: array expected";
|
|
24197
|
+
for (var i = 0; i < message.orderBy.length; ++i) {
|
|
24198
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause.verify(message.orderBy[i]);
|
|
24199
|
+
if (error)
|
|
24200
|
+
return "orderBy." + error;
|
|
24201
|
+
}
|
|
24202
|
+
}
|
|
24203
|
+
if (message.limit != null && message.hasOwnProperty("limit"))
|
|
24204
|
+
if (!$util.isInteger(message.limit))
|
|
24205
|
+
return "limit: integer expected";
|
|
24206
|
+
if (message.kind != null && message.hasOwnProperty("kind"))
|
|
24207
|
+
switch (message.kind) {
|
|
24208
|
+
default:
|
|
24209
|
+
return "kind: enum value expected";
|
|
24210
|
+
case 0:
|
|
24211
|
+
case 1:
|
|
24212
|
+
break;
|
|
24213
|
+
}
|
|
24214
|
+
if (message.bind != null && message.hasOwnProperty("bind")) {
|
|
24215
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding.verify(message.bind);
|
|
24216
|
+
if (error)
|
|
24217
|
+
return "bind." + error;
|
|
24218
|
+
}
|
|
24219
|
+
return null;
|
|
24220
|
+
};
|
|
24221
|
+
|
|
24222
|
+
/**
|
|
24223
|
+
* Creates a SubQuery message from a plain object. Also converts values to their respective internal types.
|
|
24224
|
+
* @function fromObject
|
|
24225
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24226
|
+
* @static
|
|
24227
|
+
* @param {Object.<string,*>} object Plain object
|
|
24228
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery} SubQuery
|
|
24229
|
+
*/
|
|
24230
|
+
SubQuery.fromObject = function fromObject(object) {
|
|
24231
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery)
|
|
24232
|
+
return object;
|
|
24233
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery();
|
|
24234
|
+
if (object.dataContractId != null)
|
|
24235
|
+
if (typeof object.dataContractId === "string")
|
|
24236
|
+
$util.base64.decode(object.dataContractId, message.dataContractId = $util.newBuffer($util.base64.length(object.dataContractId)), 0);
|
|
24237
|
+
else if (object.dataContractId.length >= 0)
|
|
24238
|
+
message.dataContractId = object.dataContractId;
|
|
24239
|
+
if (object.documentType != null)
|
|
24240
|
+
message.documentType = String(object.documentType);
|
|
24241
|
+
if (object.whereClauses) {
|
|
24242
|
+
if (!Array.isArray(object.whereClauses))
|
|
24243
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.whereClauses: array expected");
|
|
24244
|
+
message.whereClauses = [];
|
|
24245
|
+
for (var i = 0; i < object.whereClauses.length; ++i) {
|
|
24246
|
+
if (typeof object.whereClauses[i] !== "object")
|
|
24247
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.whereClauses: object expected");
|
|
24248
|
+
message.whereClauses[i] = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.fromObject(object.whereClauses[i]);
|
|
24249
|
+
}
|
|
24250
|
+
}
|
|
24251
|
+
if (object.orderBy) {
|
|
24252
|
+
if (!Array.isArray(object.orderBy))
|
|
24253
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.orderBy: array expected");
|
|
24254
|
+
message.orderBy = [];
|
|
24255
|
+
for (var i = 0; i < object.orderBy.length; ++i) {
|
|
24256
|
+
if (typeof object.orderBy[i] !== "object")
|
|
24257
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.orderBy: object expected");
|
|
24258
|
+
message.orderBy[i] = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause.fromObject(object.orderBy[i]);
|
|
24259
|
+
}
|
|
24260
|
+
}
|
|
24261
|
+
if (object.limit != null)
|
|
24262
|
+
message.limit = object.limit >>> 0;
|
|
24263
|
+
switch (object.kind) {
|
|
24264
|
+
case "DOCUMENTS":
|
|
24265
|
+
case 0:
|
|
24266
|
+
message.kind = 0;
|
|
24267
|
+
break;
|
|
24268
|
+
case "COUNT":
|
|
24269
|
+
case 1:
|
|
24270
|
+
message.kind = 1;
|
|
24271
|
+
break;
|
|
24272
|
+
}
|
|
24273
|
+
if (object.bind != null) {
|
|
24274
|
+
if (typeof object.bind !== "object")
|
|
24275
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.bind: object expected");
|
|
24276
|
+
message.bind = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding.fromObject(object.bind);
|
|
24277
|
+
}
|
|
24278
|
+
return message;
|
|
24279
|
+
};
|
|
24280
|
+
|
|
24281
|
+
/**
|
|
24282
|
+
* Creates a plain object from a SubQuery message. Also converts values to other types if specified.
|
|
24283
|
+
* @function toObject
|
|
24284
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24285
|
+
* @static
|
|
24286
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery} message SubQuery
|
|
24287
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24288
|
+
* @returns {Object.<string,*>} Plain object
|
|
24289
|
+
*/
|
|
24290
|
+
SubQuery.toObject = function toObject(message, options) {
|
|
24291
|
+
if (!options)
|
|
24292
|
+
options = {};
|
|
24293
|
+
var object = {};
|
|
24294
|
+
if (options.arrays || options.defaults) {
|
|
24295
|
+
object.whereClauses = [];
|
|
24296
|
+
object.orderBy = [];
|
|
24297
|
+
}
|
|
24298
|
+
if (options.defaults) {
|
|
24299
|
+
if (options.bytes === String)
|
|
24300
|
+
object.dataContractId = "";
|
|
24301
|
+
else {
|
|
24302
|
+
object.dataContractId = [];
|
|
24303
|
+
if (options.bytes !== Array)
|
|
24304
|
+
object.dataContractId = $util.newBuffer(object.dataContractId);
|
|
24305
|
+
}
|
|
24306
|
+
object.documentType = "";
|
|
24307
|
+
object.limit = 0;
|
|
24308
|
+
object.kind = options.enums === String ? "DOCUMENTS" : 0;
|
|
24309
|
+
object.bind = null;
|
|
24310
|
+
}
|
|
24311
|
+
if (message.dataContractId != null && message.hasOwnProperty("dataContractId"))
|
|
24312
|
+
object.dataContractId = options.bytes === String ? $util.base64.encode(message.dataContractId, 0, message.dataContractId.length) : options.bytes === Array ? Array.prototype.slice.call(message.dataContractId) : message.dataContractId;
|
|
24313
|
+
if (message.documentType != null && message.hasOwnProperty("documentType"))
|
|
24314
|
+
object.documentType = message.documentType;
|
|
24315
|
+
if (message.whereClauses && message.whereClauses.length) {
|
|
24316
|
+
object.whereClauses = [];
|
|
24317
|
+
for (var j = 0; j < message.whereClauses.length; ++j)
|
|
24318
|
+
object.whereClauses[j] = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause.toObject(message.whereClauses[j], options);
|
|
24319
|
+
}
|
|
24320
|
+
if (message.orderBy && message.orderBy.length) {
|
|
24321
|
+
object.orderBy = [];
|
|
24322
|
+
for (var j = 0; j < message.orderBy.length; ++j)
|
|
24323
|
+
object.orderBy[j] = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause.toObject(message.orderBy[j], options);
|
|
24324
|
+
}
|
|
24325
|
+
if (message.limit != null && message.hasOwnProperty("limit"))
|
|
24326
|
+
object.limit = message.limit;
|
|
24327
|
+
if (message.kind != null && message.hasOwnProperty("kind"))
|
|
24328
|
+
object.kind = options.enums === String ? $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Kind[message.kind] : message.kind;
|
|
24329
|
+
if (message.bind != null && message.hasOwnProperty("bind"))
|
|
24330
|
+
object.bind = $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding.toObject(message.bind, options);
|
|
24331
|
+
return object;
|
|
24332
|
+
};
|
|
24333
|
+
|
|
24334
|
+
/**
|
|
24335
|
+
* Converts this SubQuery to JSON.
|
|
24336
|
+
* @function toJSON
|
|
24337
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24338
|
+
* @instance
|
|
24339
|
+
* @returns {Object.<string,*>} JSON object
|
|
24340
|
+
*/
|
|
24341
|
+
SubQuery.prototype.toJSON = function toJSON() {
|
|
24342
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24343
|
+
};
|
|
24344
|
+
|
|
24345
|
+
/**
|
|
24346
|
+
* Kind enum.
|
|
24347
|
+
* @name org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Kind
|
|
24348
|
+
* @enum {number}
|
|
24349
|
+
* @property {number} DOCUMENTS=0 DOCUMENTS value
|
|
24350
|
+
* @property {number} COUNT=1 COUNT value
|
|
24351
|
+
*/
|
|
24352
|
+
SubQuery.Kind = (function() {
|
|
24353
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
24354
|
+
values[valuesById[0] = "DOCUMENTS"] = 0;
|
|
24355
|
+
values[valuesById[1] = "COUNT"] = 1;
|
|
24356
|
+
return values;
|
|
24357
|
+
})();
|
|
24358
|
+
|
|
24359
|
+
SubQuery.Binding = (function() {
|
|
24360
|
+
|
|
24361
|
+
/**
|
|
24362
|
+
* Properties of a Binding.
|
|
24363
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24364
|
+
* @interface IBinding
|
|
24365
|
+
* @property {number|null} [source] Binding source
|
|
24366
|
+
* @property {string|null} [sourceProperty] Binding sourceProperty
|
|
24367
|
+
* @property {string|null} [field] Binding field
|
|
24368
|
+
*/
|
|
24369
|
+
|
|
24370
|
+
/**
|
|
24371
|
+
* Constructs a new Binding.
|
|
24372
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery
|
|
24373
|
+
* @classdesc Represents a Binding.
|
|
24374
|
+
* @implements IBinding
|
|
24375
|
+
* @constructor
|
|
24376
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.IBinding=} [properties] Properties to set
|
|
24377
|
+
*/
|
|
24378
|
+
function Binding(properties) {
|
|
24379
|
+
if (properties)
|
|
24380
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24381
|
+
if (properties[keys[i]] != null)
|
|
24382
|
+
this[keys[i]] = properties[keys[i]];
|
|
24383
|
+
}
|
|
24384
|
+
|
|
24385
|
+
/**
|
|
24386
|
+
* Binding source.
|
|
24387
|
+
* @member {number} source
|
|
24388
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
|
|
24389
|
+
* @instance
|
|
24390
|
+
*/
|
|
24391
|
+
Binding.prototype.source = 0;
|
|
24392
|
+
|
|
24393
|
+
/**
|
|
24394
|
+
* Binding sourceProperty.
|
|
24395
|
+
* @member {string} sourceProperty
|
|
24396
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
|
|
24397
|
+
* @instance
|
|
24398
|
+
*/
|
|
24399
|
+
Binding.prototype.sourceProperty = "";
|
|
24400
|
+
|
|
24401
|
+
/**
|
|
24402
|
+
* Binding field.
|
|
24403
|
+
* @member {string} field
|
|
24404
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
|
|
24405
|
+
* @instance
|
|
24406
|
+
*/
|
|
24407
|
+
Binding.prototype.field = "";
|
|
24408
|
+
|
|
24409
|
+
/**
|
|
24410
|
+
* Creates a new Binding instance using the specified properties.
|
|
24411
|
+
* @function create
|
|
24412
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
|
|
24413
|
+
* @static
|
|
24414
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.IBinding=} [properties] Properties to set
|
|
24415
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding} Binding instance
|
|
24416
|
+
*/
|
|
24417
|
+
Binding.create = function create(properties) {
|
|
24418
|
+
return new Binding(properties);
|
|
24419
|
+
};
|
|
24420
|
+
|
|
24421
|
+
/**
|
|
24422
|
+
* Encodes the specified Binding message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding.verify|verify} messages.
|
|
24423
|
+
* @function encode
|
|
24424
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
|
|
24425
|
+
* @static
|
|
24426
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.IBinding} message Binding message or plain object to encode
|
|
24427
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24428
|
+
* @returns {$protobuf.Writer} Writer
|
|
24429
|
+
*/
|
|
24430
|
+
Binding.encode = function encode(message, writer) {
|
|
24431
|
+
if (!writer)
|
|
24432
|
+
writer = $Writer.create();
|
|
24433
|
+
if (message.source != null && Object.hasOwnProperty.call(message, "source"))
|
|
24434
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.source);
|
|
24435
|
+
if (message.sourceProperty != null && Object.hasOwnProperty.call(message, "sourceProperty"))
|
|
24436
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceProperty);
|
|
24437
|
+
if (message.field != null && Object.hasOwnProperty.call(message, "field"))
|
|
24438
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.field);
|
|
24439
|
+
return writer;
|
|
24440
|
+
};
|
|
24441
|
+
|
|
24442
|
+
/**
|
|
24443
|
+
* Encodes the specified Binding message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding.verify|verify} messages.
|
|
24444
|
+
* @function encodeDelimited
|
|
24445
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
|
|
24446
|
+
* @static
|
|
24447
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.IBinding} message Binding message or plain object to encode
|
|
24448
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24449
|
+
* @returns {$protobuf.Writer} Writer
|
|
24450
|
+
*/
|
|
24451
|
+
Binding.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24452
|
+
return this.encode(message, writer).ldelim();
|
|
24453
|
+
};
|
|
24454
|
+
|
|
24455
|
+
/**
|
|
24456
|
+
* Decodes a Binding message from the specified reader or buffer.
|
|
24457
|
+
* @function decode
|
|
24458
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
|
|
24459
|
+
* @static
|
|
24460
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24461
|
+
* @param {number} [length] Message length if known beforehand
|
|
24462
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding} Binding
|
|
24463
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24464
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24465
|
+
*/
|
|
24466
|
+
Binding.decode = function decode(reader, length) {
|
|
24467
|
+
if (!(reader instanceof $Reader))
|
|
24468
|
+
reader = $Reader.create(reader);
|
|
24469
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding();
|
|
24470
|
+
while (reader.pos < end) {
|
|
24471
|
+
var tag = reader.uint32();
|
|
24472
|
+
switch (tag >>> 3) {
|
|
24473
|
+
case 1:
|
|
24474
|
+
message.source = reader.uint32();
|
|
24475
|
+
break;
|
|
24476
|
+
case 2:
|
|
24477
|
+
message.sourceProperty = reader.string();
|
|
24478
|
+
break;
|
|
24479
|
+
case 3:
|
|
24480
|
+
message.field = reader.string();
|
|
24481
|
+
break;
|
|
24482
|
+
default:
|
|
24483
|
+
reader.skipType(tag & 7);
|
|
24484
|
+
break;
|
|
24485
|
+
}
|
|
24486
|
+
}
|
|
24487
|
+
return message;
|
|
24488
|
+
};
|
|
24489
|
+
|
|
24490
|
+
/**
|
|
24491
|
+
* Decodes a Binding message from the specified reader or buffer, length delimited.
|
|
24492
|
+
* @function decodeDelimited
|
|
24493
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
|
|
24494
|
+
* @static
|
|
24495
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24496
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding} Binding
|
|
24497
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24498
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24499
|
+
*/
|
|
24500
|
+
Binding.decodeDelimited = function decodeDelimited(reader) {
|
|
24501
|
+
if (!(reader instanceof $Reader))
|
|
24502
|
+
reader = new $Reader(reader);
|
|
24503
|
+
return this.decode(reader, reader.uint32());
|
|
24504
|
+
};
|
|
24505
|
+
|
|
24506
|
+
/**
|
|
24507
|
+
* Verifies a Binding message.
|
|
24508
|
+
* @function verify
|
|
24509
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
|
|
24510
|
+
* @static
|
|
24511
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
24512
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24513
|
+
*/
|
|
24514
|
+
Binding.verify = function verify(message) {
|
|
24515
|
+
if (typeof message !== "object" || message === null)
|
|
24516
|
+
return "object expected";
|
|
24517
|
+
if (message.source != null && message.hasOwnProperty("source"))
|
|
24518
|
+
if (!$util.isInteger(message.source))
|
|
24519
|
+
return "source: integer expected";
|
|
24520
|
+
if (message.sourceProperty != null && message.hasOwnProperty("sourceProperty"))
|
|
24521
|
+
if (!$util.isString(message.sourceProperty))
|
|
24522
|
+
return "sourceProperty: string expected";
|
|
24523
|
+
if (message.field != null && message.hasOwnProperty("field"))
|
|
24524
|
+
if (!$util.isString(message.field))
|
|
24525
|
+
return "field: string expected";
|
|
24526
|
+
return null;
|
|
24527
|
+
};
|
|
24528
|
+
|
|
24529
|
+
/**
|
|
24530
|
+
* Creates a Binding message from a plain object. Also converts values to their respective internal types.
|
|
24531
|
+
* @function fromObject
|
|
24532
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
|
|
24533
|
+
* @static
|
|
24534
|
+
* @param {Object.<string,*>} object Plain object
|
|
24535
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding} Binding
|
|
24536
|
+
*/
|
|
24537
|
+
Binding.fromObject = function fromObject(object) {
|
|
24538
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding)
|
|
24539
|
+
return object;
|
|
24540
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding();
|
|
24541
|
+
if (object.source != null)
|
|
24542
|
+
message.source = object.source >>> 0;
|
|
24543
|
+
if (object.sourceProperty != null)
|
|
24544
|
+
message.sourceProperty = String(object.sourceProperty);
|
|
24545
|
+
if (object.field != null)
|
|
24546
|
+
message.field = String(object.field);
|
|
24547
|
+
return message;
|
|
24548
|
+
};
|
|
24549
|
+
|
|
24550
|
+
/**
|
|
24551
|
+
* Creates a plain object from a Binding message. Also converts values to other types if specified.
|
|
24552
|
+
* @function toObject
|
|
24553
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
|
|
24554
|
+
* @static
|
|
24555
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding} message Binding
|
|
24556
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24557
|
+
* @returns {Object.<string,*>} Plain object
|
|
24558
|
+
*/
|
|
24559
|
+
Binding.toObject = function toObject(message, options) {
|
|
24560
|
+
if (!options)
|
|
24561
|
+
options = {};
|
|
24562
|
+
var object = {};
|
|
24563
|
+
if (options.defaults) {
|
|
24564
|
+
object.source = 0;
|
|
24565
|
+
object.sourceProperty = "";
|
|
24566
|
+
object.field = "";
|
|
24567
|
+
}
|
|
24568
|
+
if (message.source != null && message.hasOwnProperty("source"))
|
|
24569
|
+
object.source = message.source;
|
|
24570
|
+
if (message.sourceProperty != null && message.hasOwnProperty("sourceProperty"))
|
|
24571
|
+
object.sourceProperty = message.sourceProperty;
|
|
24572
|
+
if (message.field != null && message.hasOwnProperty("field"))
|
|
24573
|
+
object.field = message.field;
|
|
24574
|
+
return object;
|
|
24575
|
+
};
|
|
24576
|
+
|
|
24577
|
+
/**
|
|
24578
|
+
* Converts this Binding to JSON.
|
|
24579
|
+
* @function toJSON
|
|
24580
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.SubQuery.Binding
|
|
24581
|
+
* @instance
|
|
24582
|
+
* @returns {Object.<string,*>} JSON object
|
|
24583
|
+
*/
|
|
24584
|
+
Binding.prototype.toJSON = function toJSON() {
|
|
24585
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24586
|
+
};
|
|
24587
|
+
|
|
24588
|
+
return Binding;
|
|
24589
|
+
})();
|
|
24590
|
+
|
|
24591
|
+
return SubQuery;
|
|
24592
|
+
})();
|
|
24593
|
+
|
|
24594
|
+
return GetDocumentsRequestV1;
|
|
24595
|
+
})();
|
|
24596
|
+
|
|
24597
|
+
return GetDocumentsRequest;
|
|
24598
|
+
})();
|
|
24599
|
+
|
|
24600
|
+
v0.GetDocumentsResponse = (function() {
|
|
24601
|
+
|
|
24602
|
+
/**
|
|
24603
|
+
* Properties of a GetDocumentsResponse.
|
|
24604
|
+
* @memberof org.dash.platform.dapi.v0
|
|
24605
|
+
* @interface IGetDocumentsResponse
|
|
24606
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.IGetDocumentsResponseV0|null} [v0] GetDocumentsResponse v0
|
|
24607
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.IGetDocumentsResponseV1|null} [v1] GetDocumentsResponse v1
|
|
24608
|
+
*/
|
|
24609
|
+
|
|
24610
|
+
/**
|
|
24611
|
+
* Constructs a new GetDocumentsResponse.
|
|
24612
|
+
* @memberof org.dash.platform.dapi.v0
|
|
24613
|
+
* @classdesc Represents a GetDocumentsResponse.
|
|
24614
|
+
* @implements IGetDocumentsResponse
|
|
24615
|
+
* @constructor
|
|
24616
|
+
* @param {org.dash.platform.dapi.v0.IGetDocumentsResponse=} [properties] Properties to set
|
|
24617
|
+
*/
|
|
24618
|
+
function GetDocumentsResponse(properties) {
|
|
24619
|
+
if (properties)
|
|
24620
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24621
|
+
if (properties[keys[i]] != null)
|
|
24622
|
+
this[keys[i]] = properties[keys[i]];
|
|
24623
|
+
}
|
|
24624
|
+
|
|
24625
|
+
/**
|
|
24626
|
+
* GetDocumentsResponse v0.
|
|
24627
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.IGetDocumentsResponseV0|null|undefined} v0
|
|
24628
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
|
|
24629
|
+
* @instance
|
|
24630
|
+
*/
|
|
24631
|
+
GetDocumentsResponse.prototype.v0 = null;
|
|
24632
|
+
|
|
24633
|
+
/**
|
|
24634
|
+
* GetDocumentsResponse v1.
|
|
24635
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.IGetDocumentsResponseV1|null|undefined} v1
|
|
24636
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
|
|
24637
|
+
* @instance
|
|
24638
|
+
*/
|
|
24639
|
+
GetDocumentsResponse.prototype.v1 = null;
|
|
24640
|
+
|
|
24641
|
+
// OneOf field names bound to virtual getters and setters
|
|
24642
|
+
var $oneOfFields;
|
|
24643
|
+
|
|
24644
|
+
/**
|
|
24645
|
+
* GetDocumentsResponse version.
|
|
24646
|
+
* @member {"v0"|"v1"|undefined} version
|
|
24647
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
|
|
24648
|
+
* @instance
|
|
24649
|
+
*/
|
|
24650
|
+
Object.defineProperty(GetDocumentsResponse.prototype, "version", {
|
|
24651
|
+
get: $util.oneOfGetter($oneOfFields = ["v0", "v1"]),
|
|
24652
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
24653
|
+
});
|
|
24654
|
+
|
|
24655
|
+
/**
|
|
24656
|
+
* Creates a new GetDocumentsResponse instance using the specified properties.
|
|
24657
|
+
* @function create
|
|
24658
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
|
|
24659
|
+
* @static
|
|
24660
|
+
* @param {org.dash.platform.dapi.v0.IGetDocumentsResponse=} [properties] Properties to set
|
|
24661
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse} GetDocumentsResponse instance
|
|
24662
|
+
*/
|
|
24663
|
+
GetDocumentsResponse.create = function create(properties) {
|
|
24664
|
+
return new GetDocumentsResponse(properties);
|
|
24665
|
+
};
|
|
24666
|
+
|
|
24667
|
+
/**
|
|
24668
|
+
* Encodes the specified GetDocumentsResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.verify|verify} messages.
|
|
24669
|
+
* @function encode
|
|
24670
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
|
|
24671
|
+
* @static
|
|
24672
|
+
* @param {org.dash.platform.dapi.v0.IGetDocumentsResponse} message GetDocumentsResponse message or plain object to encode
|
|
24673
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24674
|
+
* @returns {$protobuf.Writer} Writer
|
|
24675
|
+
*/
|
|
24676
|
+
GetDocumentsResponse.encode = function encode(message, writer) {
|
|
24677
|
+
if (!writer)
|
|
24678
|
+
writer = $Writer.create();
|
|
24679
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
24680
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
24681
|
+
if (message.v1 != null && Object.hasOwnProperty.call(message, "v1"))
|
|
24682
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.encode(message.v1, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
24683
|
+
return writer;
|
|
24684
|
+
};
|
|
24685
|
+
|
|
24686
|
+
/**
|
|
24687
|
+
* Encodes the specified GetDocumentsResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.verify|verify} messages.
|
|
24688
|
+
* @function encodeDelimited
|
|
24689
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
|
|
24690
|
+
* @static
|
|
24691
|
+
* @param {org.dash.platform.dapi.v0.IGetDocumentsResponse} message GetDocumentsResponse message or plain object to encode
|
|
24692
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24693
|
+
* @returns {$protobuf.Writer} Writer
|
|
24694
|
+
*/
|
|
24695
|
+
GetDocumentsResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24696
|
+
return this.encode(message, writer).ldelim();
|
|
24697
|
+
};
|
|
24698
|
+
|
|
24699
|
+
/**
|
|
24700
|
+
* Decodes a GetDocumentsResponse message from the specified reader or buffer.
|
|
24701
|
+
* @function decode
|
|
24702
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
|
|
24703
|
+
* @static
|
|
24704
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24705
|
+
* @param {number} [length] Message length if known beforehand
|
|
24706
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse} GetDocumentsResponse
|
|
24707
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24708
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24709
|
+
*/
|
|
24710
|
+
GetDocumentsResponse.decode = function decode(reader, length) {
|
|
24711
|
+
if (!(reader instanceof $Reader))
|
|
24712
|
+
reader = $Reader.create(reader);
|
|
24713
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse();
|
|
24714
|
+
while (reader.pos < end) {
|
|
24715
|
+
var tag = reader.uint32();
|
|
24716
|
+
switch (tag >>> 3) {
|
|
24717
|
+
case 1:
|
|
24718
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV0.decode(reader, reader.uint32());
|
|
24719
|
+
break;
|
|
24720
|
+
case 2:
|
|
24721
|
+
message.v1 = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.decode(reader, reader.uint32());
|
|
24722
|
+
break;
|
|
24723
|
+
default:
|
|
24724
|
+
reader.skipType(tag & 7);
|
|
24725
|
+
break;
|
|
24726
|
+
}
|
|
24727
|
+
}
|
|
24728
|
+
return message;
|
|
24729
|
+
};
|
|
24730
|
+
|
|
24731
|
+
/**
|
|
24732
|
+
* Decodes a GetDocumentsResponse message from the specified reader or buffer, length delimited.
|
|
24733
|
+
* @function decodeDelimited
|
|
24734
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
|
|
24735
|
+
* @static
|
|
24736
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24737
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse} GetDocumentsResponse
|
|
24738
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24739
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24740
|
+
*/
|
|
24741
|
+
GetDocumentsResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
24742
|
+
if (!(reader instanceof $Reader))
|
|
24743
|
+
reader = new $Reader(reader);
|
|
24744
|
+
return this.decode(reader, reader.uint32());
|
|
24745
|
+
};
|
|
24746
|
+
|
|
24747
|
+
/**
|
|
24748
|
+
* Verifies a GetDocumentsResponse message.
|
|
24749
|
+
* @function verify
|
|
24750
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse
|
|
24751
|
+
* @static
|
|
24752
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
24753
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24754
|
+
*/
|
|
24755
|
+
GetDocumentsResponse.verify = function verify(message) {
|
|
24756
|
+
if (typeof message !== "object" || message === null)
|
|
24757
|
+
return "object expected";
|
|
24758
|
+
var properties = {};
|
|
24759
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
24760
|
+
properties.version = 1;
|
|
24761
|
+
{
|
|
24082
24762
|
var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV0.verify(message.v0);
|
|
24083
24763
|
if (error)
|
|
24084
24764
|
return "v0." + error;
|
|
@@ -28149,6 +28829,7 @@ $root.org = (function() {
|
|
|
28149
28829
|
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IAverageResults|null} [averages] ResultData averages
|
|
28150
28830
|
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IRankedEntries|null} [ranked] ResultData ranked
|
|
28151
28831
|
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments|null} [chained] ResultData chained
|
|
28832
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICompositeDocuments|null} [composite] ResultData composite
|
|
28152
28833
|
*/
|
|
28153
28834
|
|
|
28154
28835
|
/**
|
|
@@ -28214,17 +28895,25 @@ $root.org = (function() {
|
|
|
28214
28895
|
*/
|
|
28215
28896
|
ResultData.prototype.chained = null;
|
|
28216
28897
|
|
|
28898
|
+
/**
|
|
28899
|
+
* ResultData composite.
|
|
28900
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICompositeDocuments|null|undefined} composite
|
|
28901
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
28902
|
+
* @instance
|
|
28903
|
+
*/
|
|
28904
|
+
ResultData.prototype.composite = null;
|
|
28905
|
+
|
|
28217
28906
|
// OneOf field names bound to virtual getters and setters
|
|
28218
28907
|
var $oneOfFields;
|
|
28219
28908
|
|
|
28220
28909
|
/**
|
|
28221
28910
|
* ResultData variant.
|
|
28222
|
-
* @member {"documents"|"counts"|"sums"|"averages"|"ranked"|"chained"|undefined} variant
|
|
28911
|
+
* @member {"documents"|"counts"|"sums"|"averages"|"ranked"|"chained"|"composite"|undefined} variant
|
|
28223
28912
|
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData
|
|
28224
28913
|
* @instance
|
|
28225
28914
|
*/
|
|
28226
28915
|
Object.defineProperty(ResultData.prototype, "variant", {
|
|
28227
|
-
get: $util.oneOfGetter($oneOfFields = ["documents", "counts", "sums", "averages", "ranked", "chained"]),
|
|
28916
|
+
get: $util.oneOfGetter($oneOfFields = ["documents", "counts", "sums", "averages", "ranked", "chained", "composite"]),
|
|
28228
28917
|
set: $util.oneOfSetter($oneOfFields)
|
|
28229
28918
|
});
|
|
28230
28919
|
|
|
@@ -28264,6 +28953,8 @@ $root.org = (function() {
|
|
|
28264
28953
|
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.RankedEntries.encode(message.ranked, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
28265
28954
|
if (message.chained != null && Object.hasOwnProperty.call(message, "chained"))
|
|
28266
28955
|
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.encode(message.chained, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
28956
|
+
if (message.composite != null && Object.hasOwnProperty.call(message, "composite"))
|
|
28957
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.encode(message.composite, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
28267
28958
|
return writer;
|
|
28268
28959
|
};
|
|
28269
28960
|
|
|
@@ -28316,6 +29007,9 @@ $root.org = (function() {
|
|
|
28316
29007
|
case 6:
|
|
28317
29008
|
message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.decode(reader, reader.uint32());
|
|
28318
29009
|
break;
|
|
29010
|
+
case 7:
|
|
29011
|
+
message.composite = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.decode(reader, reader.uint32());
|
|
29012
|
+
break;
|
|
28319
29013
|
default:
|
|
28320
29014
|
reader.skipType(tag & 7);
|
|
28321
29015
|
break;
|
|
@@ -28410,6 +29104,16 @@ $root.org = (function() {
|
|
|
28410
29104
|
return "chained." + error;
|
|
28411
29105
|
}
|
|
28412
29106
|
}
|
|
29107
|
+
if (message.composite != null && message.hasOwnProperty("composite")) {
|
|
29108
|
+
if (properties.variant === 1)
|
|
29109
|
+
return "variant: multiple values";
|
|
29110
|
+
properties.variant = 1;
|
|
29111
|
+
{
|
|
29112
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.verify(message.composite);
|
|
29113
|
+
if (error)
|
|
29114
|
+
return "composite." + error;
|
|
29115
|
+
}
|
|
29116
|
+
}
|
|
28413
29117
|
return null;
|
|
28414
29118
|
};
|
|
28415
29119
|
|
|
@@ -28455,6 +29159,11 @@ $root.org = (function() {
|
|
|
28455
29159
|
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.chained: object expected");
|
|
28456
29160
|
message.chained = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.fromObject(object.chained);
|
|
28457
29161
|
}
|
|
29162
|
+
if (object.composite != null) {
|
|
29163
|
+
if (typeof object.composite !== "object")
|
|
29164
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultData.composite: object expected");
|
|
29165
|
+
message.composite = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.fromObject(object.composite);
|
|
29166
|
+
}
|
|
28458
29167
|
return message;
|
|
28459
29168
|
};
|
|
28460
29169
|
|
|
@@ -28501,6 +29210,11 @@ $root.org = (function() {
|
|
|
28501
29210
|
if (options.oneofs)
|
|
28502
29211
|
object.variant = "chained";
|
|
28503
29212
|
}
|
|
29213
|
+
if (message.composite != null && message.hasOwnProperty("composite")) {
|
|
29214
|
+
object.composite = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.toObject(message.composite, options);
|
|
29215
|
+
if (options.oneofs)
|
|
29216
|
+
object.variant = "composite";
|
|
29217
|
+
}
|
|
28504
29218
|
return object;
|
|
28505
29219
|
};
|
|
28506
29220
|
|
|
@@ -28523,22 +29237,270 @@ $root.org = (function() {
|
|
|
28523
29237
|
/**
|
|
28524
29238
|
* Properties of a ChainedDocuments.
|
|
28525
29239
|
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
28526
|
-
* @interface IChainedDocuments
|
|
28527
|
-
* @property {Array.<Uint8Array>|null} [innerDocuments] ChainedDocuments innerDocuments
|
|
28528
|
-
* @property {Array.<Uint8Array>|null} [outerDocuments] ChainedDocuments outerDocuments
|
|
29240
|
+
* @interface IChainedDocuments
|
|
29241
|
+
* @property {Array.<Uint8Array>|null} [innerDocuments] ChainedDocuments innerDocuments
|
|
29242
|
+
* @property {Array.<Uint8Array>|null} [outerDocuments] ChainedDocuments outerDocuments
|
|
29243
|
+
*/
|
|
29244
|
+
|
|
29245
|
+
/**
|
|
29246
|
+
* Constructs a new ChainedDocuments.
|
|
29247
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
29248
|
+
* @classdesc Represents a ChainedDocuments.
|
|
29249
|
+
* @implements IChainedDocuments
|
|
29250
|
+
* @constructor
|
|
29251
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments=} [properties] Properties to set
|
|
29252
|
+
*/
|
|
29253
|
+
function ChainedDocuments(properties) {
|
|
29254
|
+
this.innerDocuments = [];
|
|
29255
|
+
this.outerDocuments = [];
|
|
29256
|
+
if (properties)
|
|
29257
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
29258
|
+
if (properties[keys[i]] != null)
|
|
29259
|
+
this[keys[i]] = properties[keys[i]];
|
|
29260
|
+
}
|
|
29261
|
+
|
|
29262
|
+
/**
|
|
29263
|
+
* ChainedDocuments innerDocuments.
|
|
29264
|
+
* @member {Array.<Uint8Array>} innerDocuments
|
|
29265
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
29266
|
+
* @instance
|
|
29267
|
+
*/
|
|
29268
|
+
ChainedDocuments.prototype.innerDocuments = $util.emptyArray;
|
|
29269
|
+
|
|
29270
|
+
/**
|
|
29271
|
+
* ChainedDocuments outerDocuments.
|
|
29272
|
+
* @member {Array.<Uint8Array>} outerDocuments
|
|
29273
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
29274
|
+
* @instance
|
|
29275
|
+
*/
|
|
29276
|
+
ChainedDocuments.prototype.outerDocuments = $util.emptyArray;
|
|
29277
|
+
|
|
29278
|
+
/**
|
|
29279
|
+
* Creates a new ChainedDocuments instance using the specified properties.
|
|
29280
|
+
* @function create
|
|
29281
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
29282
|
+
* @static
|
|
29283
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments=} [properties] Properties to set
|
|
29284
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments instance
|
|
29285
|
+
*/
|
|
29286
|
+
ChainedDocuments.create = function create(properties) {
|
|
29287
|
+
return new ChainedDocuments(properties);
|
|
29288
|
+
};
|
|
29289
|
+
|
|
29290
|
+
/**
|
|
29291
|
+
* Encodes the specified ChainedDocuments message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.verify|verify} messages.
|
|
29292
|
+
* @function encode
|
|
29293
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
29294
|
+
* @static
|
|
29295
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments} message ChainedDocuments message or plain object to encode
|
|
29296
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29297
|
+
* @returns {$protobuf.Writer} Writer
|
|
29298
|
+
*/
|
|
29299
|
+
ChainedDocuments.encode = function encode(message, writer) {
|
|
29300
|
+
if (!writer)
|
|
29301
|
+
writer = $Writer.create();
|
|
29302
|
+
if (message.innerDocuments != null && message.innerDocuments.length)
|
|
29303
|
+
for (var i = 0; i < message.innerDocuments.length; ++i)
|
|
29304
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.innerDocuments[i]);
|
|
29305
|
+
if (message.outerDocuments != null && message.outerDocuments.length)
|
|
29306
|
+
for (var i = 0; i < message.outerDocuments.length; ++i)
|
|
29307
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.outerDocuments[i]);
|
|
29308
|
+
return writer;
|
|
29309
|
+
};
|
|
29310
|
+
|
|
29311
|
+
/**
|
|
29312
|
+
* Encodes the specified ChainedDocuments message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.verify|verify} messages.
|
|
29313
|
+
* @function encodeDelimited
|
|
29314
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
29315
|
+
* @static
|
|
29316
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IChainedDocuments} message ChainedDocuments message or plain object to encode
|
|
29317
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29318
|
+
* @returns {$protobuf.Writer} Writer
|
|
29319
|
+
*/
|
|
29320
|
+
ChainedDocuments.encodeDelimited = function encodeDelimited(message, writer) {
|
|
29321
|
+
return this.encode(message, writer).ldelim();
|
|
29322
|
+
};
|
|
29323
|
+
|
|
29324
|
+
/**
|
|
29325
|
+
* Decodes a ChainedDocuments message from the specified reader or buffer.
|
|
29326
|
+
* @function decode
|
|
29327
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
29328
|
+
* @static
|
|
29329
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29330
|
+
* @param {number} [length] Message length if known beforehand
|
|
29331
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
|
|
29332
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29333
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29334
|
+
*/
|
|
29335
|
+
ChainedDocuments.decode = function decode(reader, length) {
|
|
29336
|
+
if (!(reader instanceof $Reader))
|
|
29337
|
+
reader = $Reader.create(reader);
|
|
29338
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments();
|
|
29339
|
+
while (reader.pos < end) {
|
|
29340
|
+
var tag = reader.uint32();
|
|
29341
|
+
switch (tag >>> 3) {
|
|
29342
|
+
case 1:
|
|
29343
|
+
if (!(message.innerDocuments && message.innerDocuments.length))
|
|
29344
|
+
message.innerDocuments = [];
|
|
29345
|
+
message.innerDocuments.push(reader.bytes());
|
|
29346
|
+
break;
|
|
29347
|
+
case 2:
|
|
29348
|
+
if (!(message.outerDocuments && message.outerDocuments.length))
|
|
29349
|
+
message.outerDocuments = [];
|
|
29350
|
+
message.outerDocuments.push(reader.bytes());
|
|
29351
|
+
break;
|
|
29352
|
+
default:
|
|
29353
|
+
reader.skipType(tag & 7);
|
|
29354
|
+
break;
|
|
29355
|
+
}
|
|
29356
|
+
}
|
|
29357
|
+
return message;
|
|
29358
|
+
};
|
|
29359
|
+
|
|
29360
|
+
/**
|
|
29361
|
+
* Decodes a ChainedDocuments message from the specified reader or buffer, length delimited.
|
|
29362
|
+
* @function decodeDelimited
|
|
29363
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
29364
|
+
* @static
|
|
29365
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29366
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
|
|
29367
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29368
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29369
|
+
*/
|
|
29370
|
+
ChainedDocuments.decodeDelimited = function decodeDelimited(reader) {
|
|
29371
|
+
if (!(reader instanceof $Reader))
|
|
29372
|
+
reader = new $Reader(reader);
|
|
29373
|
+
return this.decode(reader, reader.uint32());
|
|
29374
|
+
};
|
|
29375
|
+
|
|
29376
|
+
/**
|
|
29377
|
+
* Verifies a ChainedDocuments message.
|
|
29378
|
+
* @function verify
|
|
29379
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
29380
|
+
* @static
|
|
29381
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
29382
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
29383
|
+
*/
|
|
29384
|
+
ChainedDocuments.verify = function verify(message) {
|
|
29385
|
+
if (typeof message !== "object" || message === null)
|
|
29386
|
+
return "object expected";
|
|
29387
|
+
if (message.innerDocuments != null && message.hasOwnProperty("innerDocuments")) {
|
|
29388
|
+
if (!Array.isArray(message.innerDocuments))
|
|
29389
|
+
return "innerDocuments: array expected";
|
|
29390
|
+
for (var i = 0; i < message.innerDocuments.length; ++i)
|
|
29391
|
+
if (!(message.innerDocuments[i] && typeof message.innerDocuments[i].length === "number" || $util.isString(message.innerDocuments[i])))
|
|
29392
|
+
return "innerDocuments: buffer[] expected";
|
|
29393
|
+
}
|
|
29394
|
+
if (message.outerDocuments != null && message.hasOwnProperty("outerDocuments")) {
|
|
29395
|
+
if (!Array.isArray(message.outerDocuments))
|
|
29396
|
+
return "outerDocuments: array expected";
|
|
29397
|
+
for (var i = 0; i < message.outerDocuments.length; ++i)
|
|
29398
|
+
if (!(message.outerDocuments[i] && typeof message.outerDocuments[i].length === "number" || $util.isString(message.outerDocuments[i])))
|
|
29399
|
+
return "outerDocuments: buffer[] expected";
|
|
29400
|
+
}
|
|
29401
|
+
return null;
|
|
29402
|
+
};
|
|
29403
|
+
|
|
29404
|
+
/**
|
|
29405
|
+
* Creates a ChainedDocuments message from a plain object. Also converts values to their respective internal types.
|
|
29406
|
+
* @function fromObject
|
|
29407
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
29408
|
+
* @static
|
|
29409
|
+
* @param {Object.<string,*>} object Plain object
|
|
29410
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} ChainedDocuments
|
|
29411
|
+
*/
|
|
29412
|
+
ChainedDocuments.fromObject = function fromObject(object) {
|
|
29413
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments)
|
|
29414
|
+
return object;
|
|
29415
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments();
|
|
29416
|
+
if (object.innerDocuments) {
|
|
29417
|
+
if (!Array.isArray(object.innerDocuments))
|
|
29418
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.innerDocuments: array expected");
|
|
29419
|
+
message.innerDocuments = [];
|
|
29420
|
+
for (var i = 0; i < object.innerDocuments.length; ++i)
|
|
29421
|
+
if (typeof object.innerDocuments[i] === "string")
|
|
29422
|
+
$util.base64.decode(object.innerDocuments[i], message.innerDocuments[i] = $util.newBuffer($util.base64.length(object.innerDocuments[i])), 0);
|
|
29423
|
+
else if (object.innerDocuments[i].length >= 0)
|
|
29424
|
+
message.innerDocuments[i] = object.innerDocuments[i];
|
|
29425
|
+
}
|
|
29426
|
+
if (object.outerDocuments) {
|
|
29427
|
+
if (!Array.isArray(object.outerDocuments))
|
|
29428
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments.outerDocuments: array expected");
|
|
29429
|
+
message.outerDocuments = [];
|
|
29430
|
+
for (var i = 0; i < object.outerDocuments.length; ++i)
|
|
29431
|
+
if (typeof object.outerDocuments[i] === "string")
|
|
29432
|
+
$util.base64.decode(object.outerDocuments[i], message.outerDocuments[i] = $util.newBuffer($util.base64.length(object.outerDocuments[i])), 0);
|
|
29433
|
+
else if (object.outerDocuments[i].length >= 0)
|
|
29434
|
+
message.outerDocuments[i] = object.outerDocuments[i];
|
|
29435
|
+
}
|
|
29436
|
+
return message;
|
|
29437
|
+
};
|
|
29438
|
+
|
|
29439
|
+
/**
|
|
29440
|
+
* Creates a plain object from a ChainedDocuments message. Also converts values to other types if specified.
|
|
29441
|
+
* @function toObject
|
|
29442
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
29443
|
+
* @static
|
|
29444
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments} message ChainedDocuments
|
|
29445
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
29446
|
+
* @returns {Object.<string,*>} Plain object
|
|
29447
|
+
*/
|
|
29448
|
+
ChainedDocuments.toObject = function toObject(message, options) {
|
|
29449
|
+
if (!options)
|
|
29450
|
+
options = {};
|
|
29451
|
+
var object = {};
|
|
29452
|
+
if (options.arrays || options.defaults) {
|
|
29453
|
+
object.innerDocuments = [];
|
|
29454
|
+
object.outerDocuments = [];
|
|
29455
|
+
}
|
|
29456
|
+
if (message.innerDocuments && message.innerDocuments.length) {
|
|
29457
|
+
object.innerDocuments = [];
|
|
29458
|
+
for (var j = 0; j < message.innerDocuments.length; ++j)
|
|
29459
|
+
object.innerDocuments[j] = options.bytes === String ? $util.base64.encode(message.innerDocuments[j], 0, message.innerDocuments[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.innerDocuments[j]) : message.innerDocuments[j];
|
|
29460
|
+
}
|
|
29461
|
+
if (message.outerDocuments && message.outerDocuments.length) {
|
|
29462
|
+
object.outerDocuments = [];
|
|
29463
|
+
for (var j = 0; j < message.outerDocuments.length; ++j)
|
|
29464
|
+
object.outerDocuments[j] = options.bytes === String ? $util.base64.encode(message.outerDocuments[j], 0, message.outerDocuments[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.outerDocuments[j]) : message.outerDocuments[j];
|
|
29465
|
+
}
|
|
29466
|
+
return object;
|
|
29467
|
+
};
|
|
29468
|
+
|
|
29469
|
+
/**
|
|
29470
|
+
* Converts this ChainedDocuments to JSON.
|
|
29471
|
+
* @function toJSON
|
|
29472
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ChainedDocuments
|
|
29473
|
+
* @instance
|
|
29474
|
+
* @returns {Object.<string,*>} JSON object
|
|
29475
|
+
*/
|
|
29476
|
+
ChainedDocuments.prototype.toJSON = function toJSON() {
|
|
29477
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
29478
|
+
};
|
|
29479
|
+
|
|
29480
|
+
return ChainedDocuments;
|
|
29481
|
+
})();
|
|
29482
|
+
|
|
29483
|
+
GetDocumentsResponseV1.CompositeDocuments = (function() {
|
|
29484
|
+
|
|
29485
|
+
/**
|
|
29486
|
+
* Properties of a CompositeDocuments.
|
|
29487
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
29488
|
+
* @interface ICompositeDocuments
|
|
29489
|
+
* @property {Array.<Uint8Array>|null} [pageDocuments] CompositeDocuments pageDocuments
|
|
29490
|
+
* @property {Array.<org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.ISubQueryResult>|null} [subResults] CompositeDocuments subResults
|
|
28529
29491
|
*/
|
|
28530
29492
|
|
|
28531
29493
|
/**
|
|
28532
|
-
* Constructs a new
|
|
29494
|
+
* Constructs a new CompositeDocuments.
|
|
28533
29495
|
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1
|
|
28534
|
-
* @classdesc Represents a
|
|
28535
|
-
* @implements
|
|
29496
|
+
* @classdesc Represents a CompositeDocuments.
|
|
29497
|
+
* @implements ICompositeDocuments
|
|
28536
29498
|
* @constructor
|
|
28537
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29499
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICompositeDocuments=} [properties] Properties to set
|
|
28538
29500
|
*/
|
|
28539
|
-
function
|
|
28540
|
-
this.
|
|
28541
|
-
this.
|
|
29501
|
+
function CompositeDocuments(properties) {
|
|
29502
|
+
this.pageDocuments = [];
|
|
29503
|
+
this.subResults = [];
|
|
28542
29504
|
if (properties)
|
|
28543
29505
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28544
29506
|
if (properties[keys[i]] != null)
|
|
@@ -28546,94 +29508,94 @@ $root.org = (function() {
|
|
|
28546
29508
|
}
|
|
28547
29509
|
|
|
28548
29510
|
/**
|
|
28549
|
-
*
|
|
28550
|
-
* @member {Array.<Uint8Array>}
|
|
28551
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29511
|
+
* CompositeDocuments pageDocuments.
|
|
29512
|
+
* @member {Array.<Uint8Array>} pageDocuments
|
|
29513
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
|
|
28552
29514
|
* @instance
|
|
28553
29515
|
*/
|
|
28554
|
-
|
|
29516
|
+
CompositeDocuments.prototype.pageDocuments = $util.emptyArray;
|
|
28555
29517
|
|
|
28556
29518
|
/**
|
|
28557
|
-
*
|
|
28558
|
-
* @member {Array.<
|
|
28559
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29519
|
+
* CompositeDocuments subResults.
|
|
29520
|
+
* @member {Array.<org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.ISubQueryResult>} subResults
|
|
29521
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
|
|
28560
29522
|
* @instance
|
|
28561
29523
|
*/
|
|
28562
|
-
|
|
29524
|
+
CompositeDocuments.prototype.subResults = $util.emptyArray;
|
|
28563
29525
|
|
|
28564
29526
|
/**
|
|
28565
|
-
* Creates a new
|
|
29527
|
+
* Creates a new CompositeDocuments instance using the specified properties.
|
|
28566
29528
|
* @function create
|
|
28567
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29529
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
|
|
28568
29530
|
* @static
|
|
28569
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
28570
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29531
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICompositeDocuments=} [properties] Properties to set
|
|
29532
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments} CompositeDocuments instance
|
|
28571
29533
|
*/
|
|
28572
|
-
|
|
28573
|
-
return new
|
|
29534
|
+
CompositeDocuments.create = function create(properties) {
|
|
29535
|
+
return new CompositeDocuments(properties);
|
|
28574
29536
|
};
|
|
28575
29537
|
|
|
28576
29538
|
/**
|
|
28577
|
-
* Encodes the specified
|
|
29539
|
+
* Encodes the specified CompositeDocuments message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.verify|verify} messages.
|
|
28578
29540
|
* @function encode
|
|
28579
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29541
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
|
|
28580
29542
|
* @static
|
|
28581
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29543
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICompositeDocuments} message CompositeDocuments message or plain object to encode
|
|
28582
29544
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28583
29545
|
* @returns {$protobuf.Writer} Writer
|
|
28584
29546
|
*/
|
|
28585
|
-
|
|
29547
|
+
CompositeDocuments.encode = function encode(message, writer) {
|
|
28586
29548
|
if (!writer)
|
|
28587
29549
|
writer = $Writer.create();
|
|
28588
|
-
if (message.
|
|
28589
|
-
for (var i = 0; i < message.
|
|
28590
|
-
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.
|
|
28591
|
-
if (message.
|
|
28592
|
-
for (var i = 0; i < message.
|
|
28593
|
-
writer.uint32(/* id 2, wireType 2 =*/18).
|
|
29550
|
+
if (message.pageDocuments != null && message.pageDocuments.length)
|
|
29551
|
+
for (var i = 0; i < message.pageDocuments.length; ++i)
|
|
29552
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.pageDocuments[i]);
|
|
29553
|
+
if (message.subResults != null && message.subResults.length)
|
|
29554
|
+
for (var i = 0; i < message.subResults.length; ++i)
|
|
29555
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.encode(message.subResults[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
28594
29556
|
return writer;
|
|
28595
29557
|
};
|
|
28596
29558
|
|
|
28597
29559
|
/**
|
|
28598
|
-
* Encodes the specified
|
|
29560
|
+
* Encodes the specified CompositeDocuments message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.verify|verify} messages.
|
|
28599
29561
|
* @function encodeDelimited
|
|
28600
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29562
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
|
|
28601
29563
|
* @static
|
|
28602
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29564
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICompositeDocuments} message CompositeDocuments message or plain object to encode
|
|
28603
29565
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28604
29566
|
* @returns {$protobuf.Writer} Writer
|
|
28605
29567
|
*/
|
|
28606
|
-
|
|
29568
|
+
CompositeDocuments.encodeDelimited = function encodeDelimited(message, writer) {
|
|
28607
29569
|
return this.encode(message, writer).ldelim();
|
|
28608
29570
|
};
|
|
28609
29571
|
|
|
28610
29572
|
/**
|
|
28611
|
-
* Decodes a
|
|
29573
|
+
* Decodes a CompositeDocuments message from the specified reader or buffer.
|
|
28612
29574
|
* @function decode
|
|
28613
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29575
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
|
|
28614
29576
|
* @static
|
|
28615
29577
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28616
29578
|
* @param {number} [length] Message length if known beforehand
|
|
28617
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29579
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments} CompositeDocuments
|
|
28618
29580
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28619
29581
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28620
29582
|
*/
|
|
28621
|
-
|
|
29583
|
+
CompositeDocuments.decode = function decode(reader, length) {
|
|
28622
29584
|
if (!(reader instanceof $Reader))
|
|
28623
29585
|
reader = $Reader.create(reader);
|
|
28624
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29586
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments();
|
|
28625
29587
|
while (reader.pos < end) {
|
|
28626
29588
|
var tag = reader.uint32();
|
|
28627
29589
|
switch (tag >>> 3) {
|
|
28628
29590
|
case 1:
|
|
28629
|
-
if (!(message.
|
|
28630
|
-
message.
|
|
28631
|
-
message.
|
|
29591
|
+
if (!(message.pageDocuments && message.pageDocuments.length))
|
|
29592
|
+
message.pageDocuments = [];
|
|
29593
|
+
message.pageDocuments.push(reader.bytes());
|
|
28632
29594
|
break;
|
|
28633
29595
|
case 2:
|
|
28634
|
-
if (!(message.
|
|
28635
|
-
message.
|
|
28636
|
-
message.
|
|
29596
|
+
if (!(message.subResults && message.subResults.length))
|
|
29597
|
+
message.subResults = [];
|
|
29598
|
+
message.subResults.push($root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.decode(reader, reader.uint32()));
|
|
28637
29599
|
break;
|
|
28638
29600
|
default:
|
|
28639
29601
|
reader.skipType(tag & 7);
|
|
@@ -28644,126 +29606,373 @@ $root.org = (function() {
|
|
|
28644
29606
|
};
|
|
28645
29607
|
|
|
28646
29608
|
/**
|
|
28647
|
-
* Decodes a
|
|
29609
|
+
* Decodes a CompositeDocuments message from the specified reader or buffer, length delimited.
|
|
28648
29610
|
* @function decodeDelimited
|
|
28649
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29611
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
|
|
28650
29612
|
* @static
|
|
28651
29613
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28652
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29614
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments} CompositeDocuments
|
|
28653
29615
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28654
29616
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28655
29617
|
*/
|
|
28656
|
-
|
|
29618
|
+
CompositeDocuments.decodeDelimited = function decodeDelimited(reader) {
|
|
28657
29619
|
if (!(reader instanceof $Reader))
|
|
28658
29620
|
reader = new $Reader(reader);
|
|
28659
29621
|
return this.decode(reader, reader.uint32());
|
|
28660
29622
|
};
|
|
28661
29623
|
|
|
28662
29624
|
/**
|
|
28663
|
-
* Verifies a
|
|
29625
|
+
* Verifies a CompositeDocuments message.
|
|
28664
29626
|
* @function verify
|
|
28665
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29627
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
|
|
28666
29628
|
* @static
|
|
28667
29629
|
* @param {Object.<string,*>} message Plain object to verify
|
|
28668
29630
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
28669
29631
|
*/
|
|
28670
|
-
|
|
29632
|
+
CompositeDocuments.verify = function verify(message) {
|
|
28671
29633
|
if (typeof message !== "object" || message === null)
|
|
28672
29634
|
return "object expected";
|
|
28673
|
-
if (message.
|
|
28674
|
-
if (!Array.isArray(message.
|
|
28675
|
-
return "
|
|
28676
|
-
for (var i = 0; i < message.
|
|
28677
|
-
if (!(message.
|
|
28678
|
-
return "
|
|
28679
|
-
}
|
|
28680
|
-
if (message.
|
|
28681
|
-
if (!Array.isArray(message.
|
|
28682
|
-
return "
|
|
28683
|
-
for (var i = 0; i < message.
|
|
28684
|
-
|
|
28685
|
-
|
|
29635
|
+
if (message.pageDocuments != null && message.hasOwnProperty("pageDocuments")) {
|
|
29636
|
+
if (!Array.isArray(message.pageDocuments))
|
|
29637
|
+
return "pageDocuments: array expected";
|
|
29638
|
+
for (var i = 0; i < message.pageDocuments.length; ++i)
|
|
29639
|
+
if (!(message.pageDocuments[i] && typeof message.pageDocuments[i].length === "number" || $util.isString(message.pageDocuments[i])))
|
|
29640
|
+
return "pageDocuments: buffer[] expected";
|
|
29641
|
+
}
|
|
29642
|
+
if (message.subResults != null && message.hasOwnProperty("subResults")) {
|
|
29643
|
+
if (!Array.isArray(message.subResults))
|
|
29644
|
+
return "subResults: array expected";
|
|
29645
|
+
for (var i = 0; i < message.subResults.length; ++i) {
|
|
29646
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.verify(message.subResults[i]);
|
|
29647
|
+
if (error)
|
|
29648
|
+
return "subResults." + error;
|
|
29649
|
+
}
|
|
28686
29650
|
}
|
|
28687
29651
|
return null;
|
|
28688
29652
|
};
|
|
28689
29653
|
|
|
28690
29654
|
/**
|
|
28691
|
-
* Creates a
|
|
29655
|
+
* Creates a CompositeDocuments message from a plain object. Also converts values to their respective internal types.
|
|
28692
29656
|
* @function fromObject
|
|
28693
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29657
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
|
|
28694
29658
|
* @static
|
|
28695
29659
|
* @param {Object.<string,*>} object Plain object
|
|
28696
|
-
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29660
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments} CompositeDocuments
|
|
28697
29661
|
*/
|
|
28698
|
-
|
|
28699
|
-
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29662
|
+
CompositeDocuments.fromObject = function fromObject(object) {
|
|
29663
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments)
|
|
28700
29664
|
return object;
|
|
28701
|
-
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
28702
|
-
if (object.
|
|
28703
|
-
if (!Array.isArray(object.
|
|
28704
|
-
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
28705
|
-
message.
|
|
28706
|
-
for (var i = 0; i < object.
|
|
28707
|
-
if (typeof object.
|
|
28708
|
-
$util.base64.decode(object.
|
|
28709
|
-
else if (object.
|
|
28710
|
-
message.
|
|
28711
|
-
}
|
|
28712
|
-
if (object.
|
|
28713
|
-
if (!Array.isArray(object.
|
|
28714
|
-
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
28715
|
-
message.
|
|
28716
|
-
for (var i = 0; i < object.
|
|
28717
|
-
if (typeof object.
|
|
28718
|
-
|
|
28719
|
-
|
|
28720
|
-
|
|
29665
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments();
|
|
29666
|
+
if (object.pageDocuments) {
|
|
29667
|
+
if (!Array.isArray(object.pageDocuments))
|
|
29668
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.pageDocuments: array expected");
|
|
29669
|
+
message.pageDocuments = [];
|
|
29670
|
+
for (var i = 0; i < object.pageDocuments.length; ++i)
|
|
29671
|
+
if (typeof object.pageDocuments[i] === "string")
|
|
29672
|
+
$util.base64.decode(object.pageDocuments[i], message.pageDocuments[i] = $util.newBuffer($util.base64.length(object.pageDocuments[i])), 0);
|
|
29673
|
+
else if (object.pageDocuments[i].length >= 0)
|
|
29674
|
+
message.pageDocuments[i] = object.pageDocuments[i];
|
|
29675
|
+
}
|
|
29676
|
+
if (object.subResults) {
|
|
29677
|
+
if (!Array.isArray(object.subResults))
|
|
29678
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.subResults: array expected");
|
|
29679
|
+
message.subResults = [];
|
|
29680
|
+
for (var i = 0; i < object.subResults.length; ++i) {
|
|
29681
|
+
if (typeof object.subResults[i] !== "object")
|
|
29682
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.subResults: object expected");
|
|
29683
|
+
message.subResults[i] = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.fromObject(object.subResults[i]);
|
|
29684
|
+
}
|
|
28721
29685
|
}
|
|
28722
29686
|
return message;
|
|
28723
29687
|
};
|
|
28724
29688
|
|
|
28725
29689
|
/**
|
|
28726
|
-
* Creates a plain object from a
|
|
29690
|
+
* Creates a plain object from a CompositeDocuments message. Also converts values to other types if specified.
|
|
28727
29691
|
* @function toObject
|
|
28728
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29692
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
|
|
28729
29693
|
* @static
|
|
28730
|
-
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29694
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments} message CompositeDocuments
|
|
28731
29695
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
28732
29696
|
* @returns {Object.<string,*>} Plain object
|
|
28733
29697
|
*/
|
|
28734
|
-
|
|
29698
|
+
CompositeDocuments.toObject = function toObject(message, options) {
|
|
28735
29699
|
if (!options)
|
|
28736
29700
|
options = {};
|
|
28737
29701
|
var object = {};
|
|
28738
29702
|
if (options.arrays || options.defaults) {
|
|
28739
|
-
object.
|
|
28740
|
-
object.
|
|
29703
|
+
object.pageDocuments = [];
|
|
29704
|
+
object.subResults = [];
|
|
28741
29705
|
}
|
|
28742
|
-
if (message.
|
|
28743
|
-
object.
|
|
28744
|
-
for (var j = 0; j < message.
|
|
28745
|
-
object.
|
|
29706
|
+
if (message.pageDocuments && message.pageDocuments.length) {
|
|
29707
|
+
object.pageDocuments = [];
|
|
29708
|
+
for (var j = 0; j < message.pageDocuments.length; ++j)
|
|
29709
|
+
object.pageDocuments[j] = options.bytes === String ? $util.base64.encode(message.pageDocuments[j], 0, message.pageDocuments[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.pageDocuments[j]) : message.pageDocuments[j];
|
|
28746
29710
|
}
|
|
28747
|
-
if (message.
|
|
28748
|
-
object.
|
|
28749
|
-
for (var j = 0; j < message.
|
|
28750
|
-
object.
|
|
29711
|
+
if (message.subResults && message.subResults.length) {
|
|
29712
|
+
object.subResults = [];
|
|
29713
|
+
for (var j = 0; j < message.subResults.length; ++j)
|
|
29714
|
+
object.subResults[j] = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.toObject(message.subResults[j], options);
|
|
28751
29715
|
}
|
|
28752
29716
|
return object;
|
|
28753
29717
|
};
|
|
28754
29718
|
|
|
28755
29719
|
/**
|
|
28756
|
-
* Converts this
|
|
29720
|
+
* Converts this CompositeDocuments to JSON.
|
|
28757
29721
|
* @function toJSON
|
|
28758
|
-
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.
|
|
29722
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
|
|
28759
29723
|
* @instance
|
|
28760
29724
|
* @returns {Object.<string,*>} JSON object
|
|
28761
29725
|
*/
|
|
28762
|
-
|
|
29726
|
+
CompositeDocuments.prototype.toJSON = function toJSON() {
|
|
28763
29727
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
28764
29728
|
};
|
|
28765
29729
|
|
|
28766
|
-
|
|
29730
|
+
CompositeDocuments.SubQueryResult = (function() {
|
|
29731
|
+
|
|
29732
|
+
/**
|
|
29733
|
+
* Properties of a SubQueryResult.
|
|
29734
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
|
|
29735
|
+
* @interface ISubQueryResult
|
|
29736
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IDocuments|null} [documents] SubQueryResult documents
|
|
29737
|
+
* @property {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICountEntries|null} [counts] SubQueryResult counts
|
|
29738
|
+
*/
|
|
29739
|
+
|
|
29740
|
+
/**
|
|
29741
|
+
* Constructs a new SubQueryResult.
|
|
29742
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments
|
|
29743
|
+
* @classdesc Represents a SubQueryResult.
|
|
29744
|
+
* @implements ISubQueryResult
|
|
29745
|
+
* @constructor
|
|
29746
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.ISubQueryResult=} [properties] Properties to set
|
|
29747
|
+
*/
|
|
29748
|
+
function SubQueryResult(properties) {
|
|
29749
|
+
if (properties)
|
|
29750
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
29751
|
+
if (properties[keys[i]] != null)
|
|
29752
|
+
this[keys[i]] = properties[keys[i]];
|
|
29753
|
+
}
|
|
29754
|
+
|
|
29755
|
+
/**
|
|
29756
|
+
* SubQueryResult documents.
|
|
29757
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.IDocuments|null|undefined} documents
|
|
29758
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
|
|
29759
|
+
* @instance
|
|
29760
|
+
*/
|
|
29761
|
+
SubQueryResult.prototype.documents = null;
|
|
29762
|
+
|
|
29763
|
+
/**
|
|
29764
|
+
* SubQueryResult counts.
|
|
29765
|
+
* @member {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ICountEntries|null|undefined} counts
|
|
29766
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
|
|
29767
|
+
* @instance
|
|
29768
|
+
*/
|
|
29769
|
+
SubQueryResult.prototype.counts = null;
|
|
29770
|
+
|
|
29771
|
+
// OneOf field names bound to virtual getters and setters
|
|
29772
|
+
var $oneOfFields;
|
|
29773
|
+
|
|
29774
|
+
/**
|
|
29775
|
+
* SubQueryResult result.
|
|
29776
|
+
* @member {"documents"|"counts"|undefined} result
|
|
29777
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
|
|
29778
|
+
* @instance
|
|
29779
|
+
*/
|
|
29780
|
+
Object.defineProperty(SubQueryResult.prototype, "result", {
|
|
29781
|
+
get: $util.oneOfGetter($oneOfFields = ["documents", "counts"]),
|
|
29782
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
29783
|
+
});
|
|
29784
|
+
|
|
29785
|
+
/**
|
|
29786
|
+
* Creates a new SubQueryResult instance using the specified properties.
|
|
29787
|
+
* @function create
|
|
29788
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
|
|
29789
|
+
* @static
|
|
29790
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.ISubQueryResult=} [properties] Properties to set
|
|
29791
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult} SubQueryResult instance
|
|
29792
|
+
*/
|
|
29793
|
+
SubQueryResult.create = function create(properties) {
|
|
29794
|
+
return new SubQueryResult(properties);
|
|
29795
|
+
};
|
|
29796
|
+
|
|
29797
|
+
/**
|
|
29798
|
+
* Encodes the specified SubQueryResult message. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.verify|verify} messages.
|
|
29799
|
+
* @function encode
|
|
29800
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
|
|
29801
|
+
* @static
|
|
29802
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.ISubQueryResult} message SubQueryResult message or plain object to encode
|
|
29803
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29804
|
+
* @returns {$protobuf.Writer} Writer
|
|
29805
|
+
*/
|
|
29806
|
+
SubQueryResult.encode = function encode(message, writer) {
|
|
29807
|
+
if (!writer)
|
|
29808
|
+
writer = $Writer.create();
|
|
29809
|
+
if (message.documents != null && Object.hasOwnProperty.call(message, "documents"))
|
|
29810
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.encode(message.documents, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
29811
|
+
if (message.counts != null && Object.hasOwnProperty.call(message, "counts"))
|
|
29812
|
+
$root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntries.encode(message.counts, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
29813
|
+
return writer;
|
|
29814
|
+
};
|
|
29815
|
+
|
|
29816
|
+
/**
|
|
29817
|
+
* Encodes the specified SubQueryResult message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.verify|verify} messages.
|
|
29818
|
+
* @function encodeDelimited
|
|
29819
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
|
|
29820
|
+
* @static
|
|
29821
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.ISubQueryResult} message SubQueryResult message or plain object to encode
|
|
29822
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29823
|
+
* @returns {$protobuf.Writer} Writer
|
|
29824
|
+
*/
|
|
29825
|
+
SubQueryResult.encodeDelimited = function encodeDelimited(message, writer) {
|
|
29826
|
+
return this.encode(message, writer).ldelim();
|
|
29827
|
+
};
|
|
29828
|
+
|
|
29829
|
+
/**
|
|
29830
|
+
* Decodes a SubQueryResult message from the specified reader or buffer.
|
|
29831
|
+
* @function decode
|
|
29832
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
|
|
29833
|
+
* @static
|
|
29834
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29835
|
+
* @param {number} [length] Message length if known beforehand
|
|
29836
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult} SubQueryResult
|
|
29837
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29838
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29839
|
+
*/
|
|
29840
|
+
SubQueryResult.decode = function decode(reader, length) {
|
|
29841
|
+
if (!(reader instanceof $Reader))
|
|
29842
|
+
reader = $Reader.create(reader);
|
|
29843
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult();
|
|
29844
|
+
while (reader.pos < end) {
|
|
29845
|
+
var tag = reader.uint32();
|
|
29846
|
+
switch (tag >>> 3) {
|
|
29847
|
+
case 1:
|
|
29848
|
+
message.documents = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.decode(reader, reader.uint32());
|
|
29849
|
+
break;
|
|
29850
|
+
case 2:
|
|
29851
|
+
message.counts = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntries.decode(reader, reader.uint32());
|
|
29852
|
+
break;
|
|
29853
|
+
default:
|
|
29854
|
+
reader.skipType(tag & 7);
|
|
29855
|
+
break;
|
|
29856
|
+
}
|
|
29857
|
+
}
|
|
29858
|
+
return message;
|
|
29859
|
+
};
|
|
29860
|
+
|
|
29861
|
+
/**
|
|
29862
|
+
* Decodes a SubQueryResult message from the specified reader or buffer, length delimited.
|
|
29863
|
+
* @function decodeDelimited
|
|
29864
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
|
|
29865
|
+
* @static
|
|
29866
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29867
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult} SubQueryResult
|
|
29868
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29869
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29870
|
+
*/
|
|
29871
|
+
SubQueryResult.decodeDelimited = function decodeDelimited(reader) {
|
|
29872
|
+
if (!(reader instanceof $Reader))
|
|
29873
|
+
reader = new $Reader(reader);
|
|
29874
|
+
return this.decode(reader, reader.uint32());
|
|
29875
|
+
};
|
|
29876
|
+
|
|
29877
|
+
/**
|
|
29878
|
+
* Verifies a SubQueryResult message.
|
|
29879
|
+
* @function verify
|
|
29880
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
|
|
29881
|
+
* @static
|
|
29882
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
29883
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
29884
|
+
*/
|
|
29885
|
+
SubQueryResult.verify = function verify(message) {
|
|
29886
|
+
if (typeof message !== "object" || message === null)
|
|
29887
|
+
return "object expected";
|
|
29888
|
+
var properties = {};
|
|
29889
|
+
if (message.documents != null && message.hasOwnProperty("documents")) {
|
|
29890
|
+
properties.result = 1;
|
|
29891
|
+
{
|
|
29892
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.verify(message.documents);
|
|
29893
|
+
if (error)
|
|
29894
|
+
return "documents." + error;
|
|
29895
|
+
}
|
|
29896
|
+
}
|
|
29897
|
+
if (message.counts != null && message.hasOwnProperty("counts")) {
|
|
29898
|
+
if (properties.result === 1)
|
|
29899
|
+
return "result: multiple values";
|
|
29900
|
+
properties.result = 1;
|
|
29901
|
+
{
|
|
29902
|
+
var error = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntries.verify(message.counts);
|
|
29903
|
+
if (error)
|
|
29904
|
+
return "counts." + error;
|
|
29905
|
+
}
|
|
29906
|
+
}
|
|
29907
|
+
return null;
|
|
29908
|
+
};
|
|
29909
|
+
|
|
29910
|
+
/**
|
|
29911
|
+
* Creates a SubQueryResult message from a plain object. Also converts values to their respective internal types.
|
|
29912
|
+
* @function fromObject
|
|
29913
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
|
|
29914
|
+
* @static
|
|
29915
|
+
* @param {Object.<string,*>} object Plain object
|
|
29916
|
+
* @returns {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult} SubQueryResult
|
|
29917
|
+
*/
|
|
29918
|
+
SubQueryResult.fromObject = function fromObject(object) {
|
|
29919
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult)
|
|
29920
|
+
return object;
|
|
29921
|
+
var message = new $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult();
|
|
29922
|
+
if (object.documents != null) {
|
|
29923
|
+
if (typeof object.documents !== "object")
|
|
29924
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.documents: object expected");
|
|
29925
|
+
message.documents = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.fromObject(object.documents);
|
|
29926
|
+
}
|
|
29927
|
+
if (object.counts != null) {
|
|
29928
|
+
if (typeof object.counts !== "object")
|
|
29929
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult.counts: object expected");
|
|
29930
|
+
message.counts = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntries.fromObject(object.counts);
|
|
29931
|
+
}
|
|
29932
|
+
return message;
|
|
29933
|
+
};
|
|
29934
|
+
|
|
29935
|
+
/**
|
|
29936
|
+
* Creates a plain object from a SubQueryResult message. Also converts values to other types if specified.
|
|
29937
|
+
* @function toObject
|
|
29938
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
|
|
29939
|
+
* @static
|
|
29940
|
+
* @param {org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult} message SubQueryResult
|
|
29941
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
29942
|
+
* @returns {Object.<string,*>} Plain object
|
|
29943
|
+
*/
|
|
29944
|
+
SubQueryResult.toObject = function toObject(message, options) {
|
|
29945
|
+
if (!options)
|
|
29946
|
+
options = {};
|
|
29947
|
+
var object = {};
|
|
29948
|
+
if (message.documents != null && message.hasOwnProperty("documents")) {
|
|
29949
|
+
object.documents = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.Documents.toObject(message.documents, options);
|
|
29950
|
+
if (options.oneofs)
|
|
29951
|
+
object.result = "documents";
|
|
29952
|
+
}
|
|
29953
|
+
if (message.counts != null && message.hasOwnProperty("counts")) {
|
|
29954
|
+
object.counts = $root.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntries.toObject(message.counts, options);
|
|
29955
|
+
if (options.oneofs)
|
|
29956
|
+
object.result = "counts";
|
|
29957
|
+
}
|
|
29958
|
+
return object;
|
|
29959
|
+
};
|
|
29960
|
+
|
|
29961
|
+
/**
|
|
29962
|
+
* Converts this SubQueryResult to JSON.
|
|
29963
|
+
* @function toJSON
|
|
29964
|
+
* @memberof org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CompositeDocuments.SubQueryResult
|
|
29965
|
+
* @instance
|
|
29966
|
+
* @returns {Object.<string,*>} JSON object
|
|
29967
|
+
*/
|
|
29968
|
+
SubQueryResult.prototype.toJSON = function toJSON() {
|
|
29969
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
29970
|
+
};
|
|
29971
|
+
|
|
29972
|
+
return SubQueryResult;
|
|
29973
|
+
})();
|
|
29974
|
+
|
|
29975
|
+
return CompositeDocuments;
|
|
28767
29976
|
})();
|
|
28768
29977
|
|
|
28769
29978
|
return GetDocumentsResponseV1;
|