@science-corporation/synapse 2.2.5 → 2.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api/api.js CHANGED
@@ -6896,6 +6896,39 @@
6896
6896
  * @variation 2
6897
6897
  */
6898
6898
 
6899
+ /**
6900
+ * Callback as used by {@link synapse.SynapseDevice#listApps}.
6901
+ * @memberof synapse.SynapseDevice
6902
+ * @typedef ListAppsCallback
6903
+ * @type {function}
6904
+ * @param {Error|null} error Error, if any
6905
+ * @param {synapse.ListAppsResponse} [response] ListAppsResponse
6906
+ */
6907
+
6908
+ /**
6909
+ * Calls ListApps.
6910
+ * @function listApps
6911
+ * @memberof synapse.SynapseDevice
6912
+ * @instance
6913
+ * @param {synapse.IListAppsRequest} request ListAppsRequest message or plain object
6914
+ * @param {synapse.SynapseDevice.ListAppsCallback} callback Node-style callback called with the error, if any, and ListAppsResponse
6915
+ * @returns {undefined}
6916
+ * @variation 1
6917
+ */
6918
+ Object.defineProperty(SynapseDevice.prototype.listApps = function listApps(request, callback) {
6919
+ return this.rpcCall(listApps, $root.synapse.ListAppsRequest, $root.synapse.ListAppsResponse, request, callback);
6920
+ }, "name", { value: "ListApps" });
6921
+
6922
+ /**
6923
+ * Calls ListApps.
6924
+ * @function listApps
6925
+ * @memberof synapse.SynapseDevice
6926
+ * @instance
6927
+ * @param {synapse.IListAppsRequest} request ListAppsRequest message or plain object
6928
+ * @returns {Promise<synapse.ListAppsResponse>} Promise
6929
+ * @variation 2
6930
+ */
6931
+
6899
6932
  /**
6900
6933
  * Callback as used by {@link synapse.SynapseDevice#listFiles}.
6901
6934
  * @memberof synapse.SynapseDevice
@@ -20495,6 +20528,632 @@
20495
20528
  return AppPerformanceSummary;
20496
20529
  })();
20497
20530
 
20531
+ synapse.AppInfo = (function() {
20532
+
20533
+ /**
20534
+ * Properties of an AppInfo.
20535
+ * @memberof synapse
20536
+ * @interface IAppInfo
20537
+ * @property {string|null} [name] AppInfo name
20538
+ * @property {string|null} [version] AppInfo version
20539
+ */
20540
+
20541
+ /**
20542
+ * Constructs a new AppInfo.
20543
+ * @memberof synapse
20544
+ * @classdesc Represents an AppInfo.
20545
+ * @implements IAppInfo
20546
+ * @constructor
20547
+ * @param {synapse.IAppInfo=} [properties] Properties to set
20548
+ */
20549
+ function AppInfo(properties) {
20550
+ if (properties)
20551
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20552
+ if (properties[keys[i]] != null)
20553
+ this[keys[i]] = properties[keys[i]];
20554
+ }
20555
+
20556
+ /**
20557
+ * AppInfo name.
20558
+ * @member {string} name
20559
+ * @memberof synapse.AppInfo
20560
+ * @instance
20561
+ */
20562
+ AppInfo.prototype.name = "";
20563
+
20564
+ /**
20565
+ * AppInfo version.
20566
+ * @member {string} version
20567
+ * @memberof synapse.AppInfo
20568
+ * @instance
20569
+ */
20570
+ AppInfo.prototype.version = "";
20571
+
20572
+ /**
20573
+ * Creates a new AppInfo instance using the specified properties.
20574
+ * @function create
20575
+ * @memberof synapse.AppInfo
20576
+ * @static
20577
+ * @param {synapse.IAppInfo=} [properties] Properties to set
20578
+ * @returns {synapse.AppInfo} AppInfo instance
20579
+ */
20580
+ AppInfo.create = function create(properties) {
20581
+ return new AppInfo(properties);
20582
+ };
20583
+
20584
+ /**
20585
+ * Encodes the specified AppInfo message. Does not implicitly {@link synapse.AppInfo.verify|verify} messages.
20586
+ * @function encode
20587
+ * @memberof synapse.AppInfo
20588
+ * @static
20589
+ * @param {synapse.IAppInfo} message AppInfo message or plain object to encode
20590
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20591
+ * @returns {$protobuf.Writer} Writer
20592
+ */
20593
+ AppInfo.encode = function encode(message, writer) {
20594
+ if (!writer)
20595
+ writer = $Writer.create();
20596
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
20597
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
20598
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
20599
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.version);
20600
+ return writer;
20601
+ };
20602
+
20603
+ /**
20604
+ * Encodes the specified AppInfo message, length delimited. Does not implicitly {@link synapse.AppInfo.verify|verify} messages.
20605
+ * @function encodeDelimited
20606
+ * @memberof synapse.AppInfo
20607
+ * @static
20608
+ * @param {synapse.IAppInfo} message AppInfo message or plain object to encode
20609
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20610
+ * @returns {$protobuf.Writer} Writer
20611
+ */
20612
+ AppInfo.encodeDelimited = function encodeDelimited(message, writer) {
20613
+ return this.encode(message, writer).ldelim();
20614
+ };
20615
+
20616
+ /**
20617
+ * Decodes an AppInfo message from the specified reader or buffer.
20618
+ * @function decode
20619
+ * @memberof synapse.AppInfo
20620
+ * @static
20621
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20622
+ * @param {number} [length] Message length if known beforehand
20623
+ * @returns {synapse.AppInfo} AppInfo
20624
+ * @throws {Error} If the payload is not a reader or valid buffer
20625
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20626
+ */
20627
+ AppInfo.decode = function decode(reader, length) {
20628
+ if (!(reader instanceof $Reader))
20629
+ reader = $Reader.create(reader);
20630
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.synapse.AppInfo();
20631
+ while (reader.pos < end) {
20632
+ var tag = reader.uint32();
20633
+ switch (tag >>> 3) {
20634
+ case 1: {
20635
+ message.name = reader.string();
20636
+ break;
20637
+ }
20638
+ case 2: {
20639
+ message.version = reader.string();
20640
+ break;
20641
+ }
20642
+ default:
20643
+ reader.skipType(tag & 7);
20644
+ break;
20645
+ }
20646
+ }
20647
+ return message;
20648
+ };
20649
+
20650
+ /**
20651
+ * Decodes an AppInfo message from the specified reader or buffer, length delimited.
20652
+ * @function decodeDelimited
20653
+ * @memberof synapse.AppInfo
20654
+ * @static
20655
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20656
+ * @returns {synapse.AppInfo} AppInfo
20657
+ * @throws {Error} If the payload is not a reader or valid buffer
20658
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20659
+ */
20660
+ AppInfo.decodeDelimited = function decodeDelimited(reader) {
20661
+ if (!(reader instanceof $Reader))
20662
+ reader = new $Reader(reader);
20663
+ return this.decode(reader, reader.uint32());
20664
+ };
20665
+
20666
+ /**
20667
+ * Verifies an AppInfo message.
20668
+ * @function verify
20669
+ * @memberof synapse.AppInfo
20670
+ * @static
20671
+ * @param {Object.<string,*>} message Plain object to verify
20672
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
20673
+ */
20674
+ AppInfo.verify = function verify(message) {
20675
+ if (typeof message !== "object" || message === null)
20676
+ return "object expected";
20677
+ if (message.name != null && message.hasOwnProperty("name"))
20678
+ if (!$util.isString(message.name))
20679
+ return "name: string expected";
20680
+ if (message.version != null && message.hasOwnProperty("version"))
20681
+ if (!$util.isString(message.version))
20682
+ return "version: string expected";
20683
+ return null;
20684
+ };
20685
+
20686
+ /**
20687
+ * Creates an AppInfo message from a plain object. Also converts values to their respective internal types.
20688
+ * @function fromObject
20689
+ * @memberof synapse.AppInfo
20690
+ * @static
20691
+ * @param {Object.<string,*>} object Plain object
20692
+ * @returns {synapse.AppInfo} AppInfo
20693
+ */
20694
+ AppInfo.fromObject = function fromObject(object) {
20695
+ if (object instanceof $root.synapse.AppInfo)
20696
+ return object;
20697
+ var message = new $root.synapse.AppInfo();
20698
+ if (object.name != null)
20699
+ message.name = String(object.name);
20700
+ if (object.version != null)
20701
+ message.version = String(object.version);
20702
+ return message;
20703
+ };
20704
+
20705
+ /**
20706
+ * Creates a plain object from an AppInfo message. Also converts values to other types if specified.
20707
+ * @function toObject
20708
+ * @memberof synapse.AppInfo
20709
+ * @static
20710
+ * @param {synapse.AppInfo} message AppInfo
20711
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
20712
+ * @returns {Object.<string,*>} Plain object
20713
+ */
20714
+ AppInfo.toObject = function toObject(message, options) {
20715
+ if (!options)
20716
+ options = {};
20717
+ var object = {};
20718
+ if (options.defaults) {
20719
+ object.name = "";
20720
+ object.version = "";
20721
+ }
20722
+ if (message.name != null && message.hasOwnProperty("name"))
20723
+ object.name = message.name;
20724
+ if (message.version != null && message.hasOwnProperty("version"))
20725
+ object.version = message.version;
20726
+ return object;
20727
+ };
20728
+
20729
+ /**
20730
+ * Converts this AppInfo to JSON.
20731
+ * @function toJSON
20732
+ * @memberof synapse.AppInfo
20733
+ * @instance
20734
+ * @returns {Object.<string,*>} JSON object
20735
+ */
20736
+ AppInfo.prototype.toJSON = function toJSON() {
20737
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20738
+ };
20739
+
20740
+ /**
20741
+ * Gets the default type url for AppInfo
20742
+ * @function getTypeUrl
20743
+ * @memberof synapse.AppInfo
20744
+ * @static
20745
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
20746
+ * @returns {string} The default type url
20747
+ */
20748
+ AppInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20749
+ if (typeUrlPrefix === undefined) {
20750
+ typeUrlPrefix = "type.googleapis.com";
20751
+ }
20752
+ return typeUrlPrefix + "/synapse.AppInfo";
20753
+ };
20754
+
20755
+ return AppInfo;
20756
+ })();
20757
+
20758
+ synapse.ListAppsRequest = (function() {
20759
+
20760
+ /**
20761
+ * Properties of a ListAppsRequest.
20762
+ * @memberof synapse
20763
+ * @interface IListAppsRequest
20764
+ */
20765
+
20766
+ /**
20767
+ * Constructs a new ListAppsRequest.
20768
+ * @memberof synapse
20769
+ * @classdesc Represents a ListAppsRequest.
20770
+ * @implements IListAppsRequest
20771
+ * @constructor
20772
+ * @param {synapse.IListAppsRequest=} [properties] Properties to set
20773
+ */
20774
+ function ListAppsRequest(properties) {
20775
+ if (properties)
20776
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20777
+ if (properties[keys[i]] != null)
20778
+ this[keys[i]] = properties[keys[i]];
20779
+ }
20780
+
20781
+ /**
20782
+ * Creates a new ListAppsRequest instance using the specified properties.
20783
+ * @function create
20784
+ * @memberof synapse.ListAppsRequest
20785
+ * @static
20786
+ * @param {synapse.IListAppsRequest=} [properties] Properties to set
20787
+ * @returns {synapse.ListAppsRequest} ListAppsRequest instance
20788
+ */
20789
+ ListAppsRequest.create = function create(properties) {
20790
+ return new ListAppsRequest(properties);
20791
+ };
20792
+
20793
+ /**
20794
+ * Encodes the specified ListAppsRequest message. Does not implicitly {@link synapse.ListAppsRequest.verify|verify} messages.
20795
+ * @function encode
20796
+ * @memberof synapse.ListAppsRequest
20797
+ * @static
20798
+ * @param {synapse.IListAppsRequest} message ListAppsRequest message or plain object to encode
20799
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20800
+ * @returns {$protobuf.Writer} Writer
20801
+ */
20802
+ ListAppsRequest.encode = function encode(message, writer) {
20803
+ if (!writer)
20804
+ writer = $Writer.create();
20805
+ return writer;
20806
+ };
20807
+
20808
+ /**
20809
+ * Encodes the specified ListAppsRequest message, length delimited. Does not implicitly {@link synapse.ListAppsRequest.verify|verify} messages.
20810
+ * @function encodeDelimited
20811
+ * @memberof synapse.ListAppsRequest
20812
+ * @static
20813
+ * @param {synapse.IListAppsRequest} message ListAppsRequest message or plain object to encode
20814
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20815
+ * @returns {$protobuf.Writer} Writer
20816
+ */
20817
+ ListAppsRequest.encodeDelimited = function encodeDelimited(message, writer) {
20818
+ return this.encode(message, writer).ldelim();
20819
+ };
20820
+
20821
+ /**
20822
+ * Decodes a ListAppsRequest message from the specified reader or buffer.
20823
+ * @function decode
20824
+ * @memberof synapse.ListAppsRequest
20825
+ * @static
20826
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20827
+ * @param {number} [length] Message length if known beforehand
20828
+ * @returns {synapse.ListAppsRequest} ListAppsRequest
20829
+ * @throws {Error} If the payload is not a reader or valid buffer
20830
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20831
+ */
20832
+ ListAppsRequest.decode = function decode(reader, length) {
20833
+ if (!(reader instanceof $Reader))
20834
+ reader = $Reader.create(reader);
20835
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.synapse.ListAppsRequest();
20836
+ while (reader.pos < end) {
20837
+ var tag = reader.uint32();
20838
+ switch (tag >>> 3) {
20839
+ default:
20840
+ reader.skipType(tag & 7);
20841
+ break;
20842
+ }
20843
+ }
20844
+ return message;
20845
+ };
20846
+
20847
+ /**
20848
+ * Decodes a ListAppsRequest message from the specified reader or buffer, length delimited.
20849
+ * @function decodeDelimited
20850
+ * @memberof synapse.ListAppsRequest
20851
+ * @static
20852
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20853
+ * @returns {synapse.ListAppsRequest} ListAppsRequest
20854
+ * @throws {Error} If the payload is not a reader or valid buffer
20855
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20856
+ */
20857
+ ListAppsRequest.decodeDelimited = function decodeDelimited(reader) {
20858
+ if (!(reader instanceof $Reader))
20859
+ reader = new $Reader(reader);
20860
+ return this.decode(reader, reader.uint32());
20861
+ };
20862
+
20863
+ /**
20864
+ * Verifies a ListAppsRequest message.
20865
+ * @function verify
20866
+ * @memberof synapse.ListAppsRequest
20867
+ * @static
20868
+ * @param {Object.<string,*>} message Plain object to verify
20869
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
20870
+ */
20871
+ ListAppsRequest.verify = function verify(message) {
20872
+ if (typeof message !== "object" || message === null)
20873
+ return "object expected";
20874
+ return null;
20875
+ };
20876
+
20877
+ /**
20878
+ * Creates a ListAppsRequest message from a plain object. Also converts values to their respective internal types.
20879
+ * @function fromObject
20880
+ * @memberof synapse.ListAppsRequest
20881
+ * @static
20882
+ * @param {Object.<string,*>} object Plain object
20883
+ * @returns {synapse.ListAppsRequest} ListAppsRequest
20884
+ */
20885
+ ListAppsRequest.fromObject = function fromObject(object) {
20886
+ if (object instanceof $root.synapse.ListAppsRequest)
20887
+ return object;
20888
+ return new $root.synapse.ListAppsRequest();
20889
+ };
20890
+
20891
+ /**
20892
+ * Creates a plain object from a ListAppsRequest message. Also converts values to other types if specified.
20893
+ * @function toObject
20894
+ * @memberof synapse.ListAppsRequest
20895
+ * @static
20896
+ * @param {synapse.ListAppsRequest} message ListAppsRequest
20897
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
20898
+ * @returns {Object.<string,*>} Plain object
20899
+ */
20900
+ ListAppsRequest.toObject = function toObject() {
20901
+ return {};
20902
+ };
20903
+
20904
+ /**
20905
+ * Converts this ListAppsRequest to JSON.
20906
+ * @function toJSON
20907
+ * @memberof synapse.ListAppsRequest
20908
+ * @instance
20909
+ * @returns {Object.<string,*>} JSON object
20910
+ */
20911
+ ListAppsRequest.prototype.toJSON = function toJSON() {
20912
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20913
+ };
20914
+
20915
+ /**
20916
+ * Gets the default type url for ListAppsRequest
20917
+ * @function getTypeUrl
20918
+ * @memberof synapse.ListAppsRequest
20919
+ * @static
20920
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
20921
+ * @returns {string} The default type url
20922
+ */
20923
+ ListAppsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20924
+ if (typeUrlPrefix === undefined) {
20925
+ typeUrlPrefix = "type.googleapis.com";
20926
+ }
20927
+ return typeUrlPrefix + "/synapse.ListAppsRequest";
20928
+ };
20929
+
20930
+ return ListAppsRequest;
20931
+ })();
20932
+
20933
+ synapse.ListAppsResponse = (function() {
20934
+
20935
+ /**
20936
+ * Properties of a ListAppsResponse.
20937
+ * @memberof synapse
20938
+ * @interface IListAppsResponse
20939
+ * @property {Array.<synapse.IAppInfo>|null} [apps] ListAppsResponse apps
20940
+ */
20941
+
20942
+ /**
20943
+ * Constructs a new ListAppsResponse.
20944
+ * @memberof synapse
20945
+ * @classdesc Represents a ListAppsResponse.
20946
+ * @implements IListAppsResponse
20947
+ * @constructor
20948
+ * @param {synapse.IListAppsResponse=} [properties] Properties to set
20949
+ */
20950
+ function ListAppsResponse(properties) {
20951
+ this.apps = [];
20952
+ if (properties)
20953
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20954
+ if (properties[keys[i]] != null)
20955
+ this[keys[i]] = properties[keys[i]];
20956
+ }
20957
+
20958
+ /**
20959
+ * ListAppsResponse apps.
20960
+ * @member {Array.<synapse.IAppInfo>} apps
20961
+ * @memberof synapse.ListAppsResponse
20962
+ * @instance
20963
+ */
20964
+ ListAppsResponse.prototype.apps = $util.emptyArray;
20965
+
20966
+ /**
20967
+ * Creates a new ListAppsResponse instance using the specified properties.
20968
+ * @function create
20969
+ * @memberof synapse.ListAppsResponse
20970
+ * @static
20971
+ * @param {synapse.IListAppsResponse=} [properties] Properties to set
20972
+ * @returns {synapse.ListAppsResponse} ListAppsResponse instance
20973
+ */
20974
+ ListAppsResponse.create = function create(properties) {
20975
+ return new ListAppsResponse(properties);
20976
+ };
20977
+
20978
+ /**
20979
+ * Encodes the specified ListAppsResponse message. Does not implicitly {@link synapse.ListAppsResponse.verify|verify} messages.
20980
+ * @function encode
20981
+ * @memberof synapse.ListAppsResponse
20982
+ * @static
20983
+ * @param {synapse.IListAppsResponse} message ListAppsResponse message or plain object to encode
20984
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20985
+ * @returns {$protobuf.Writer} Writer
20986
+ */
20987
+ ListAppsResponse.encode = function encode(message, writer) {
20988
+ if (!writer)
20989
+ writer = $Writer.create();
20990
+ if (message.apps != null && message.apps.length)
20991
+ for (var i = 0; i < message.apps.length; ++i)
20992
+ $root.synapse.AppInfo.encode(message.apps[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
20993
+ return writer;
20994
+ };
20995
+
20996
+ /**
20997
+ * Encodes the specified ListAppsResponse message, length delimited. Does not implicitly {@link synapse.ListAppsResponse.verify|verify} messages.
20998
+ * @function encodeDelimited
20999
+ * @memberof synapse.ListAppsResponse
21000
+ * @static
21001
+ * @param {synapse.IListAppsResponse} message ListAppsResponse message or plain object to encode
21002
+ * @param {$protobuf.Writer} [writer] Writer to encode to
21003
+ * @returns {$protobuf.Writer} Writer
21004
+ */
21005
+ ListAppsResponse.encodeDelimited = function encodeDelimited(message, writer) {
21006
+ return this.encode(message, writer).ldelim();
21007
+ };
21008
+
21009
+ /**
21010
+ * Decodes a ListAppsResponse message from the specified reader or buffer.
21011
+ * @function decode
21012
+ * @memberof synapse.ListAppsResponse
21013
+ * @static
21014
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
21015
+ * @param {number} [length] Message length if known beforehand
21016
+ * @returns {synapse.ListAppsResponse} ListAppsResponse
21017
+ * @throws {Error} If the payload is not a reader or valid buffer
21018
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
21019
+ */
21020
+ ListAppsResponse.decode = function decode(reader, length) {
21021
+ if (!(reader instanceof $Reader))
21022
+ reader = $Reader.create(reader);
21023
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.synapse.ListAppsResponse();
21024
+ while (reader.pos < end) {
21025
+ var tag = reader.uint32();
21026
+ switch (tag >>> 3) {
21027
+ case 1: {
21028
+ if (!(message.apps && message.apps.length))
21029
+ message.apps = [];
21030
+ message.apps.push($root.synapse.AppInfo.decode(reader, reader.uint32()));
21031
+ break;
21032
+ }
21033
+ default:
21034
+ reader.skipType(tag & 7);
21035
+ break;
21036
+ }
21037
+ }
21038
+ return message;
21039
+ };
21040
+
21041
+ /**
21042
+ * Decodes a ListAppsResponse message from the specified reader or buffer, length delimited.
21043
+ * @function decodeDelimited
21044
+ * @memberof synapse.ListAppsResponse
21045
+ * @static
21046
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
21047
+ * @returns {synapse.ListAppsResponse} ListAppsResponse
21048
+ * @throws {Error} If the payload is not a reader or valid buffer
21049
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
21050
+ */
21051
+ ListAppsResponse.decodeDelimited = function decodeDelimited(reader) {
21052
+ if (!(reader instanceof $Reader))
21053
+ reader = new $Reader(reader);
21054
+ return this.decode(reader, reader.uint32());
21055
+ };
21056
+
21057
+ /**
21058
+ * Verifies a ListAppsResponse message.
21059
+ * @function verify
21060
+ * @memberof synapse.ListAppsResponse
21061
+ * @static
21062
+ * @param {Object.<string,*>} message Plain object to verify
21063
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
21064
+ */
21065
+ ListAppsResponse.verify = function verify(message) {
21066
+ if (typeof message !== "object" || message === null)
21067
+ return "object expected";
21068
+ if (message.apps != null && message.hasOwnProperty("apps")) {
21069
+ if (!Array.isArray(message.apps))
21070
+ return "apps: array expected";
21071
+ for (var i = 0; i < message.apps.length; ++i) {
21072
+ var error = $root.synapse.AppInfo.verify(message.apps[i]);
21073
+ if (error)
21074
+ return "apps." + error;
21075
+ }
21076
+ }
21077
+ return null;
21078
+ };
21079
+
21080
+ /**
21081
+ * Creates a ListAppsResponse message from a plain object. Also converts values to their respective internal types.
21082
+ * @function fromObject
21083
+ * @memberof synapse.ListAppsResponse
21084
+ * @static
21085
+ * @param {Object.<string,*>} object Plain object
21086
+ * @returns {synapse.ListAppsResponse} ListAppsResponse
21087
+ */
21088
+ ListAppsResponse.fromObject = function fromObject(object) {
21089
+ if (object instanceof $root.synapse.ListAppsResponse)
21090
+ return object;
21091
+ var message = new $root.synapse.ListAppsResponse();
21092
+ if (object.apps) {
21093
+ if (!Array.isArray(object.apps))
21094
+ throw TypeError(".synapse.ListAppsResponse.apps: array expected");
21095
+ message.apps = [];
21096
+ for (var i = 0; i < object.apps.length; ++i) {
21097
+ if (typeof object.apps[i] !== "object")
21098
+ throw TypeError(".synapse.ListAppsResponse.apps: object expected");
21099
+ message.apps[i] = $root.synapse.AppInfo.fromObject(object.apps[i]);
21100
+ }
21101
+ }
21102
+ return message;
21103
+ };
21104
+
21105
+ /**
21106
+ * Creates a plain object from a ListAppsResponse message. Also converts values to other types if specified.
21107
+ * @function toObject
21108
+ * @memberof synapse.ListAppsResponse
21109
+ * @static
21110
+ * @param {synapse.ListAppsResponse} message ListAppsResponse
21111
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
21112
+ * @returns {Object.<string,*>} Plain object
21113
+ */
21114
+ ListAppsResponse.toObject = function toObject(message, options) {
21115
+ if (!options)
21116
+ options = {};
21117
+ var object = {};
21118
+ if (options.arrays || options.defaults)
21119
+ object.apps = [];
21120
+ if (message.apps && message.apps.length) {
21121
+ object.apps = [];
21122
+ for (var j = 0; j < message.apps.length; ++j)
21123
+ object.apps[j] = $root.synapse.AppInfo.toObject(message.apps[j], options);
21124
+ }
21125
+ return object;
21126
+ };
21127
+
21128
+ /**
21129
+ * Converts this ListAppsResponse to JSON.
21130
+ * @function toJSON
21131
+ * @memberof synapse.ListAppsResponse
21132
+ * @instance
21133
+ * @returns {Object.<string,*>} JSON object
21134
+ */
21135
+ ListAppsResponse.prototype.toJSON = function toJSON() {
21136
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
21137
+ };
21138
+
21139
+ /**
21140
+ * Gets the default type url for ListAppsResponse
21141
+ * @function getTypeUrl
21142
+ * @memberof synapse.ListAppsResponse
21143
+ * @static
21144
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
21145
+ * @returns {string} The default type url
21146
+ */
21147
+ ListAppsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
21148
+ if (typeUrlPrefix === undefined) {
21149
+ typeUrlPrefix = "type.googleapis.com";
21150
+ }
21151
+ return typeUrlPrefix + "/synapse.ListAppsResponse";
21152
+ };
21153
+
21154
+ return ListAppsResponse;
21155
+ })();
21156
+
20498
21157
  synapse.FunctionProfile = (function() {
20499
21158
 
20500
21159
  /**