@aceplus/smartace-api 2.1.0-drumtracker.7 → 2.1.0-drumtracker.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.
Files changed (217) hide show
  1. package/package.json +1 -1
  2. package/auth.account_events_pb.d.ts +0 -5
  3. package/auth.account_events_pb.js +0 -23
  4. package/auth.account_events_pb_service.d.ts +0 -3
  5. package/auth.account_events_pb_service.js +0 -3
  6. package/auth.account_pb.d.ts +0 -525
  7. package/auth.account_pb.js +0 -3983
  8. package/auth.account_pb_service.d.ts +0 -454
  9. package/auth.account_pb_service.js +0 -877
  10. package/auth.app_account_pb.d.ts +0 -156
  11. package/auth.app_account_pb.js +0 -1153
  12. package/auth.app_account_pb_service.d.ts +0 -160
  13. package/auth.app_account_pb_service.js +0 -263
  14. package/auth.app_authn_pb.d.ts +0 -172
  15. package/auth.app_authn_pb.js +0 -1233
  16. package/auth.app_authn_pb_service.d.ts +0 -140
  17. package/auth.app_authn_pb_service.js +0 -222
  18. package/auth.app_distribution_pb.d.ts +0 -174
  19. package/auth.app_distribution_pb.js +0 -1338
  20. package/auth.app_distribution_pb_service.d.ts +0 -120
  21. package/auth.app_distribution_pb_service.js +0 -181
  22. package/auth.authn_pb.d.ts +0 -85
  23. package/auth.authn_pb.js +0 -625
  24. package/auth.authn_pb_service.d.ts +0 -82
  25. package/auth.authn_pb_service.js +0 -101
  26. package/auth.cluster_pb.d.ts +0 -258
  27. package/auth.cluster_pb.js +0 -1929
  28. package/auth.cluster_pb_service.d.ts +0 -139
  29. package/auth.cluster_pb_service.js +0 -221
  30. package/auth.distribution_pb.d.ts +0 -233
  31. package/auth.distribution_pb.js +0 -1785
  32. package/auth.distribution_pb_service.d.ts +0 -82
  33. package/auth.distribution_pb_service.js +0 -101
  34. package/auth.email_pb.d.ts +0 -277
  35. package/auth.email_pb.js +0 -1960
  36. package/auth.email_pb_service.d.ts +0 -121
  37. package/auth.email_pb_service.js +0 -182
  38. package/auth.push_notification_pb.d.ts +0 -187
  39. package/auth.push_notification_pb.js +0 -1289
  40. package/auth.push_notification_pb_service.d.ts +0 -121
  41. package/auth.push_notification_pb_service.js +0 -182
  42. package/auth.sms_pb.d.ts +0 -79
  43. package/auth.sms_pb.js +0 -575
  44. package/auth.sms_pb_service.d.ts +0 -83
  45. package/auth.sms_pb_service.js +0 -102
  46. package/drumtracker.drum_pb.d.ts +0 -499
  47. package/drumtracker.drum_pb.js +0 -3785
  48. package/drumtracker.drum_pb_service.d.ts +0 -158
  49. package/drumtracker.drum_pb_service.js +0 -261
  50. package/drumtracker.tracker_pb.d.ts +0 -244
  51. package/drumtracker.tracker_pb.js +0 -1864
  52. package/drumtracker.tracker_pb_service.d.ts +0 -139
  53. package/drumtracker.tracker_pb_service.js +0 -221
  54. package/google/api/annotations_pb.d.ts +0 -9
  55. package/google/api/annotations_pb.js +0 -54
  56. package/google/api/annotations_pb_service.d.ts +0 -3
  57. package/google/api/annotations_pb_service.js +0 -3
  58. package/google/api/auth_pb.d.ts +0 -150
  59. package/google/api/auth_pb.js +0 -1160
  60. package/google/api/auth_pb_service.d.ts +0 -3
  61. package/google/api/auth_pb_service.js +0 -3
  62. package/google/api/backend_pb.d.ts +0 -59
  63. package/google/api/backend_pb.js +0 -448
  64. package/google/api/backend_pb_service.d.ts +0 -3
  65. package/google/api/backend_pb_service.js +0 -3
  66. package/google/api/billing_pb.d.ts +0 -54
  67. package/google/api/billing_pb.js +0 -416
  68. package/google/api/billing_pb_service.d.ts +0 -3
  69. package/google/api/billing_pb_service.js +0 -3
  70. package/google/api/client_pb.d.ts +0 -12
  71. package/google/api/client_pb.js +0 -104
  72. package/google/api/client_pb_service.d.ts +0 -3
  73. package/google/api/client_pb_service.js +0 -3
  74. package/google/api/config_change_pb.d.ts +0 -72
  75. package/google/api/config_change_pb.js +0 -489
  76. package/google/api/config_change_pb_service.d.ts +0 -3
  77. package/google/api/config_change_pb_service.js +0 -3
  78. package/google/api/consumer_pb.d.ts +0 -65
  79. package/google/api/consumer_pb.js +0 -430
  80. package/google/api/consumer_pb_service.d.ts +0 -3
  81. package/google/api/consumer_pb_service.js +0 -3
  82. package/google/api/context_pb.d.ts +0 -59
  83. package/google/api/context_pb.js +0 -463
  84. package/google/api/context_pb_service.d.ts +0 -3
  85. package/google/api/context_pb_service.js +0 -3
  86. package/google/api/control_pb.d.ts +0 -25
  87. package/google/api/control_pb.js +0 -176
  88. package/google/api/control_pb_service.d.ts +0 -3
  89. package/google/api/control_pb_service.js +0 -3
  90. package/google/api/distribution_pb.d.ts +0 -235
  91. package/google/api/distribution_pb.js +0 -1805
  92. package/google/api/distribution_pb_service.d.ts +0 -3
  93. package/google/api/distribution_pb_service.js +0 -3
  94. package/google/api/documentation_pb.d.ts +0 -103
  95. package/google/api/documentation_pb.js +0 -803
  96. package/google/api/documentation_pb_service.d.ts +0 -3
  97. package/google/api/documentation_pb_service.js +0 -3
  98. package/google/api/endpoint_pb.d.ts +0 -46
  99. package/google/api/endpoint_pb.js +0 -343
  100. package/google/api/endpoint_pb_service.d.ts +0 -3
  101. package/google/api/endpoint_pb_service.js +0 -3
  102. package/google/api/error_reason_pb.d.ts +0 -40
  103. package/google/api/error_reason_pb.js +0 -61
  104. package/google/api/error_reason_pb_service.d.ts +0 -3
  105. package/google/api/error_reason_pb_service.js +0 -3
  106. package/google/api/field_behavior_pb.d.ts +0 -20
  107. package/google/api/field_behavior_pb.js +0 -66
  108. package/google/api/field_behavior_pb_service.d.ts +0 -3
  109. package/google/api/field_behavior_pb_service.js +0 -3
  110. package/google/api/http_pb.d.ts +0 -136
  111. package/google/api/http_pb.js +0 -1012
  112. package/google/api/http_pb_service.d.ts +0 -3
  113. package/google/api/http_pb_service.js +0 -3
  114. package/google/api/httpbody_pb.d.ts +0 -38
  115. package/google/api/httpbody_pb.js +0 -292
  116. package/google/api/httpbody_pb_service.d.ts +0 -3
  117. package/google/api/httpbody_pb_service.js +0 -3
  118. package/google/api/label_pb.d.ts +0 -41
  119. package/google/api/label_pb.js +0 -246
  120. package/google/api/label_pb_service.d.ts +0 -3
  121. package/google/api/label_pb_service.js +0 -3
  122. package/google/api/launch_stage_pb.d.ts +0 -16
  123. package/google/api/launch_stage_pb.js +0 -37
  124. package/google/api/launch_stage_pb_service.d.ts +0 -3
  125. package/google/api/launch_stage_pb_service.js +0 -3
  126. package/google/api/log_pb.d.ts +0 -40
  127. package/google/api/log_pb.js +0 -298
  128. package/google/api/log_pb_service.d.ts +0 -3
  129. package/google/api/log_pb_service.js +0 -3
  130. package/google/api/logging_pb.d.ts +0 -60
  131. package/google/api/logging_pb.js +0 -469
  132. package/google/api/logging_pb_service.d.ts +0 -3
  133. package/google/api/logging_pb_service.js +0 -3
  134. package/google/api/metric_pb.d.ts +0 -100
  135. package/google/api/metric_pb.js +0 -629
  136. package/google/api/metric_pb_service.d.ts +0 -3
  137. package/google/api/metric_pb_service.js +0 -3
  138. package/google/api/monitored_resource_pb.d.ts +0 -93
  139. package/google/api/monitored_resource_pb.js +0 -723
  140. package/google/api/monitored_resource_pb_service.d.ts +0 -3
  141. package/google/api/monitored_resource_pb_service.js +0 -3
  142. package/google/api/monitoring_pb.d.ts +0 -60
  143. package/google/api/monitoring_pb.js +0 -469
  144. package/google/api/monitoring_pb_service.d.ts +0 -3
  145. package/google/api/monitoring_pb_service.js +0 -3
  146. package/google/api/policy_pb.d.ts +0 -64
  147. package/google/api/policy_pb.js +0 -502
  148. package/google/api/policy_pb_service.d.ts +0 -3
  149. package/google/api/policy_pb_service.js +0 -3
  150. package/google/api/quota_pb.d.ts +0 -112
  151. package/google/api/quota_pb.js +0 -873
  152. package/google/api/quota_pb_service.d.ts +0 -3
  153. package/google/api/quota_pb_service.js +0 -3
  154. package/google/api/resource_pb.d.ts +0 -99
  155. package/google/api/resource_pb.js +0 -684
  156. package/google/api/resource_pb_service.d.ts +0 -3
  157. package/google/api/resource_pb_service.js +0 -3
  158. package/google/api/routing_pb.d.ts +0 -54
  159. package/google/api/routing_pb.js +0 -416
  160. package/google/api/routing_pb_service.d.ts +0 -3
  161. package/google/api/routing_pb_service.js +0 -3
  162. package/google/api/service_pb.d.ts +0 -184
  163. package/google/api/service_pb.js +0 -1400
  164. package/google/api/service_pb_service.d.ts +0 -3
  165. package/google/api/service_pb_service.js +0 -3
  166. package/google/api/source_info_pb.d.ts +0 -28
  167. package/google/api/source_info_pb.js +0 -208
  168. package/google/api/source_info_pb_service.d.ts +0 -3
  169. package/google/api/source_info_pb_service.js +0 -3
  170. package/google/api/system_parameter_pb.d.ts +0 -81
  171. package/google/api/system_parameter_pb.js +0 -630
  172. package/google/api/system_parameter_pb_service.d.ts +0 -3
  173. package/google/api/system_parameter_pb_service.js +0 -3
  174. package/google/api/usage_pb.d.ts +0 -66
  175. package/google/api/usage_pb.js +0 -499
  176. package/google/api/usage_pb_service.d.ts +0 -3
  177. package/google/api/usage_pb_service.js +0 -3
  178. package/google/api/visibility_pb.d.ts +0 -64
  179. package/google/api/visibility_pb.js +0 -546
  180. package/google/api/visibility_pb_service.d.ts +0 -3
  181. package/google/api/visibility_pb_service.js +0 -3
  182. package/platform.activity_log_pb.d.ts +0 -177
  183. package/platform.activity_log_pb.js +0 -1294
  184. package/platform.activity_log_pb_service.d.ts +0 -82
  185. package/platform.activity_log_pb_service.js +0 -101
  186. package/platform.client_pb.d.ts +0 -316
  187. package/platform.client_pb.js +0 -2399
  188. package/platform.client_pb_service.d.ts +0 -158
  189. package/platform.client_pb_service.js +0 -261
  190. package/platform.group_pb.d.ts +0 -195
  191. package/platform.group_pb.js +0 -1476
  192. package/platform.group_pb_service.d.ts +0 -139
  193. package/platform.group_pb_service.js +0 -221
  194. package/platform.local_account_pb.d.ts +0 -392
  195. package/platform.local_account_pb.js +0 -2962
  196. package/platform.local_account_pb_service.d.ts +0 -350
  197. package/platform.local_account_pb_service.js +0 -663
  198. package/platform.local_distribution_pb.d.ts +0 -69
  199. package/platform.local_distribution_pb.js +0 -506
  200. package/platform.local_distribution_pb_service.d.ts +0 -63
  201. package/platform.local_distribution_pb_service.js +0 -61
  202. package/platform.location_pb.d.ts +0 -271
  203. package/platform.location_pb.js +0 -2046
  204. package/platform.location_pb_service.d.ts +0 -139
  205. package/platform.location_pb_service.js +0 -221
  206. package/platform.pagination_pb.d.ts +0 -37
  207. package/platform.pagination_pb.js +0 -266
  208. package/platform.pagination_pb_service.d.ts +0 -3
  209. package/platform.pagination_pb_service.js +0 -3
  210. package/spic.cabinet_pb.d.ts +0 -1304
  211. package/spic.cabinet_pb.js +0 -9727
  212. package/spic.cabinet_pb_service.d.ts +0 -359
  213. package/spic.cabinet_pb_service.js +0 -677
  214. package/spic.contractor_pb.d.ts +0 -195
  215. package/spic.contractor_pb.js +0 -1476
  216. package/spic.contractor_pb_service.d.ts +0 -139
  217. package/spic.contractor_pb_service.js +0 -221
@@ -1,3785 +0,0 @@
1
- // source: drumtracker.drum.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
23
-
24
- var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
25
- goog.object.extend(proto, google_protobuf_empty_pb);
26
- var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
27
- goog.object.extend(proto, google_protobuf_timestamp_pb);
28
- var google_api_annotations_pb = require('./google/api/annotations_pb.js');
29
- goog.object.extend(proto, google_api_annotations_pb);
30
- var platform_pagination_pb = require('./platform.pagination_pb.js');
31
- goog.object.extend(proto, platform_pagination_pb);
32
- goog.exportSymbol('proto.Drumtracker.DrumProto', null, global);
33
- goog.exportSymbol('proto.Drumtracker.DrumProto.CableType', null, global);
34
- goog.exportSymbol('proto.Drumtracker.DrumProto.CreateRequest', null, global);
35
- goog.exportSymbol('proto.Drumtracker.DrumProto.DeleteReply', null, global);
36
- goog.exportSymbol('proto.Drumtracker.DrumProto.DeleteRequest', null, global);
37
- goog.exportSymbol('proto.Drumtracker.DrumProto.DeleteRequest.SearchCase', null, global);
38
- goog.exportSymbol('proto.Drumtracker.DrumProto.DrumFilters', null, global);
39
- goog.exportSymbol('proto.Drumtracker.DrumProto.DrumType', null, global);
40
- goog.exportSymbol('proto.Drumtracker.DrumProto.LocationSearchReply', null, global);
41
- goog.exportSymbol('proto.Drumtracker.DrumProto.LocationSearchRequest', null, global);
42
- goog.exportSymbol('proto.Drumtracker.DrumProto.RetrieveRequest', null, global);
43
- goog.exportSymbol('proto.Drumtracker.DrumProto.RetrieveRequest.SearchCase', null, global);
44
- goog.exportSymbol('proto.Drumtracker.DrumProto.SearchReply', null, global);
45
- goog.exportSymbol('proto.Drumtracker.DrumProto.SearchRequest', null, global);
46
- goog.exportSymbol('proto.Drumtracker.DrumProto.UpdateRequest', null, global);
47
- /**
48
- * Generated by JsPbCodeGenerator.
49
- * @param {Array=} opt_data Optional initial data array, typically from a
50
- * server response, or constructed directly in Javascript. The array is used
51
- * in place and becomes part of the constructed object. It is not cloned.
52
- * If no data is provided, the constructed object will be empty, but still
53
- * valid.
54
- * @extends {jspb.Message}
55
- * @constructor
56
- */
57
- proto.Drumtracker.DrumProto = function(opt_data) {
58
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
59
- };
60
- goog.inherits(proto.Drumtracker.DrumProto, jspb.Message);
61
- if (goog.DEBUG && !COMPILED) {
62
- /**
63
- * @public
64
- * @override
65
- */
66
- proto.Drumtracker.DrumProto.displayName = 'proto.Drumtracker.DrumProto';
67
- }
68
- /**
69
- * Generated by JsPbCodeGenerator.
70
- * @param {Array=} opt_data Optional initial data array, typically from a
71
- * server response, or constructed directly in Javascript. The array is used
72
- * in place and becomes part of the constructed object. It is not cloned.
73
- * If no data is provided, the constructed object will be empty, but still
74
- * valid.
75
- * @extends {jspb.Message}
76
- * @constructor
77
- */
78
- proto.Drumtracker.DrumProto.CableType = function(opt_data) {
79
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
80
- };
81
- goog.inherits(proto.Drumtracker.DrumProto.CableType, jspb.Message);
82
- if (goog.DEBUG && !COMPILED) {
83
- /**
84
- * @public
85
- * @override
86
- */
87
- proto.Drumtracker.DrumProto.CableType.displayName = 'proto.Drumtracker.DrumProto.CableType';
88
- }
89
- /**
90
- * Generated by JsPbCodeGenerator.
91
- * @param {Array=} opt_data Optional initial data array, typically from a
92
- * server response, or constructed directly in Javascript. The array is used
93
- * in place and becomes part of the constructed object. It is not cloned.
94
- * If no data is provided, the constructed object will be empty, but still
95
- * valid.
96
- * @extends {jspb.Message}
97
- * @constructor
98
- */
99
- proto.Drumtracker.DrumProto.DrumType = function(opt_data) {
100
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
101
- };
102
- goog.inherits(proto.Drumtracker.DrumProto.DrumType, jspb.Message);
103
- if (goog.DEBUG && !COMPILED) {
104
- /**
105
- * @public
106
- * @override
107
- */
108
- proto.Drumtracker.DrumProto.DrumType.displayName = 'proto.Drumtracker.DrumProto.DrumType';
109
- }
110
- /**
111
- * Generated by JsPbCodeGenerator.
112
- * @param {Array=} opt_data Optional initial data array, typically from a
113
- * server response, or constructed directly in Javascript. The array is used
114
- * in place and becomes part of the constructed object. It is not cloned.
115
- * If no data is provided, the constructed object will be empty, but still
116
- * valid.
117
- * @extends {jspb.Message}
118
- * @constructor
119
- */
120
- proto.Drumtracker.DrumProto.CreateRequest = function(opt_data) {
121
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
122
- };
123
- goog.inherits(proto.Drumtracker.DrumProto.CreateRequest, jspb.Message);
124
- if (goog.DEBUG && !COMPILED) {
125
- /**
126
- * @public
127
- * @override
128
- */
129
- proto.Drumtracker.DrumProto.CreateRequest.displayName = 'proto.Drumtracker.DrumProto.CreateRequest';
130
- }
131
- /**
132
- * Generated by JsPbCodeGenerator.
133
- * @param {Array=} opt_data Optional initial data array, typically from a
134
- * server response, or constructed directly in Javascript. The array is used
135
- * in place and becomes part of the constructed object. It is not cloned.
136
- * If no data is provided, the constructed object will be empty, but still
137
- * valid.
138
- * @extends {jspb.Message}
139
- * @constructor
140
- */
141
- proto.Drumtracker.DrumProto.RetrieveRequest = function(opt_data) {
142
- jspb.Message.initialize(this, opt_data, 0, -1, null, proto.Drumtracker.DrumProto.RetrieveRequest.oneofGroups_);
143
- };
144
- goog.inherits(proto.Drumtracker.DrumProto.RetrieveRequest, jspb.Message);
145
- if (goog.DEBUG && !COMPILED) {
146
- /**
147
- * @public
148
- * @override
149
- */
150
- proto.Drumtracker.DrumProto.RetrieveRequest.displayName = 'proto.Drumtracker.DrumProto.RetrieveRequest';
151
- }
152
- /**
153
- * Generated by JsPbCodeGenerator.
154
- * @param {Array=} opt_data Optional initial data array, typically from a
155
- * server response, or constructed directly in Javascript. The array is used
156
- * in place and becomes part of the constructed object. It is not cloned.
157
- * If no data is provided, the constructed object will be empty, but still
158
- * valid.
159
- * @extends {jspb.Message}
160
- * @constructor
161
- */
162
- proto.Drumtracker.DrumProto.UpdateRequest = function(opt_data) {
163
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
164
- };
165
- goog.inherits(proto.Drumtracker.DrumProto.UpdateRequest, jspb.Message);
166
- if (goog.DEBUG && !COMPILED) {
167
- /**
168
- * @public
169
- * @override
170
- */
171
- proto.Drumtracker.DrumProto.UpdateRequest.displayName = 'proto.Drumtracker.DrumProto.UpdateRequest';
172
- }
173
- /**
174
- * Generated by JsPbCodeGenerator.
175
- * @param {Array=} opt_data Optional initial data array, typically from a
176
- * server response, or constructed directly in Javascript. The array is used
177
- * in place and becomes part of the constructed object. It is not cloned.
178
- * If no data is provided, the constructed object will be empty, but still
179
- * valid.
180
- * @extends {jspb.Message}
181
- * @constructor
182
- */
183
- proto.Drumtracker.DrumProto.DeleteRequest = function(opt_data) {
184
- jspb.Message.initialize(this, opt_data, 0, -1, null, proto.Drumtracker.DrumProto.DeleteRequest.oneofGroups_);
185
- };
186
- goog.inherits(proto.Drumtracker.DrumProto.DeleteRequest, jspb.Message);
187
- if (goog.DEBUG && !COMPILED) {
188
- /**
189
- * @public
190
- * @override
191
- */
192
- proto.Drumtracker.DrumProto.DeleteRequest.displayName = 'proto.Drumtracker.DrumProto.DeleteRequest';
193
- }
194
- /**
195
- * Generated by JsPbCodeGenerator.
196
- * @param {Array=} opt_data Optional initial data array, typically from a
197
- * server response, or constructed directly in Javascript. The array is used
198
- * in place and becomes part of the constructed object. It is not cloned.
199
- * If no data is provided, the constructed object will be empty, but still
200
- * valid.
201
- * @extends {jspb.Message}
202
- * @constructor
203
- */
204
- proto.Drumtracker.DrumProto.DeleteReply = function(opt_data) {
205
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
206
- };
207
- goog.inherits(proto.Drumtracker.DrumProto.DeleteReply, jspb.Message);
208
- if (goog.DEBUG && !COMPILED) {
209
- /**
210
- * @public
211
- * @override
212
- */
213
- proto.Drumtracker.DrumProto.DeleteReply.displayName = 'proto.Drumtracker.DrumProto.DeleteReply';
214
- }
215
- /**
216
- * Generated by JsPbCodeGenerator.
217
- * @param {Array=} opt_data Optional initial data array, typically from a
218
- * server response, or constructed directly in Javascript. The array is used
219
- * in place and becomes part of the constructed object. It is not cloned.
220
- * If no data is provided, the constructed object will be empty, but still
221
- * valid.
222
- * @extends {jspb.Message}
223
- * @constructor
224
- */
225
- proto.Drumtracker.DrumProto.SearchRequest = function(opt_data) {
226
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
227
- };
228
- goog.inherits(proto.Drumtracker.DrumProto.SearchRequest, jspb.Message);
229
- if (goog.DEBUG && !COMPILED) {
230
- /**
231
- * @public
232
- * @override
233
- */
234
- proto.Drumtracker.DrumProto.SearchRequest.displayName = 'proto.Drumtracker.DrumProto.SearchRequest';
235
- }
236
- /**
237
- * Generated by JsPbCodeGenerator.
238
- * @param {Array=} opt_data Optional initial data array, typically from a
239
- * server response, or constructed directly in Javascript. The array is used
240
- * in place and becomes part of the constructed object. It is not cloned.
241
- * If no data is provided, the constructed object will be empty, but still
242
- * valid.
243
- * @extends {jspb.Message}
244
- * @constructor
245
- */
246
- proto.Drumtracker.DrumProto.SearchReply = function(opt_data) {
247
- jspb.Message.initialize(this, opt_data, 0, -1, proto.Drumtracker.DrumProto.SearchReply.repeatedFields_, null);
248
- };
249
- goog.inherits(proto.Drumtracker.DrumProto.SearchReply, jspb.Message);
250
- if (goog.DEBUG && !COMPILED) {
251
- /**
252
- * @public
253
- * @override
254
- */
255
- proto.Drumtracker.DrumProto.SearchReply.displayName = 'proto.Drumtracker.DrumProto.SearchReply';
256
- }
257
- /**
258
- * Generated by JsPbCodeGenerator.
259
- * @param {Array=} opt_data Optional initial data array, typically from a
260
- * server response, or constructed directly in Javascript. The array is used
261
- * in place and becomes part of the constructed object. It is not cloned.
262
- * If no data is provided, the constructed object will be empty, but still
263
- * valid.
264
- * @extends {jspb.Message}
265
- * @constructor
266
- */
267
- proto.Drumtracker.DrumProto.LocationSearchRequest = function(opt_data) {
268
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
269
- };
270
- goog.inherits(proto.Drumtracker.DrumProto.LocationSearchRequest, jspb.Message);
271
- if (goog.DEBUG && !COMPILED) {
272
- /**
273
- * @public
274
- * @override
275
- */
276
- proto.Drumtracker.DrumProto.LocationSearchRequest.displayName = 'proto.Drumtracker.DrumProto.LocationSearchRequest';
277
- }
278
- /**
279
- * Generated by JsPbCodeGenerator.
280
- * @param {Array=} opt_data Optional initial data array, typically from a
281
- * server response, or constructed directly in Javascript. The array is used
282
- * in place and becomes part of the constructed object. It is not cloned.
283
- * If no data is provided, the constructed object will be empty, but still
284
- * valid.
285
- * @extends {jspb.Message}
286
- * @constructor
287
- */
288
- proto.Drumtracker.DrumProto.LocationSearchReply = function(opt_data) {
289
- jspb.Message.initialize(this, opt_data, 0, -1, proto.Drumtracker.DrumProto.LocationSearchReply.repeatedFields_, null);
290
- };
291
- goog.inherits(proto.Drumtracker.DrumProto.LocationSearchReply, jspb.Message);
292
- if (goog.DEBUG && !COMPILED) {
293
- /**
294
- * @public
295
- * @override
296
- */
297
- proto.Drumtracker.DrumProto.LocationSearchReply.displayName = 'proto.Drumtracker.DrumProto.LocationSearchReply';
298
- }
299
- /**
300
- * Generated by JsPbCodeGenerator.
301
- * @param {Array=} opt_data Optional initial data array, typically from a
302
- * server response, or constructed directly in Javascript. The array is used
303
- * in place and becomes part of the constructed object. It is not cloned.
304
- * If no data is provided, the constructed object will be empty, but still
305
- * valid.
306
- * @extends {jspb.Message}
307
- * @constructor
308
- */
309
- proto.Drumtracker.DrumProto.DrumFilters = function(opt_data) {
310
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
311
- };
312
- goog.inherits(proto.Drumtracker.DrumProto.DrumFilters, jspb.Message);
313
- if (goog.DEBUG && !COMPILED) {
314
- /**
315
- * @public
316
- * @override
317
- */
318
- proto.Drumtracker.DrumProto.DrumFilters.displayName = 'proto.Drumtracker.DrumProto.DrumFilters';
319
- }
320
-
321
-
322
-
323
- if (jspb.Message.GENERATE_TO_OBJECT) {
324
- /**
325
- * Creates an object representation of this proto.
326
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
327
- * Optional fields that are not set will be set to undefined.
328
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
329
- * For the list of reserved names please see:
330
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
331
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
332
- * JSPB instance for transitional soy proto support:
333
- * http://goto/soy-param-migration
334
- * @return {!Object}
335
- */
336
- proto.Drumtracker.DrumProto.prototype.toObject = function(opt_includeInstance) {
337
- return proto.Drumtracker.DrumProto.toObject(opt_includeInstance, this);
338
- };
339
-
340
-
341
- /**
342
- * Static version of the {@see toObject} method.
343
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
344
- * the JSPB instance for transitional soy proto support:
345
- * http://goto/soy-param-migration
346
- * @param {!proto.Drumtracker.DrumProto} msg The msg instance to transform.
347
- * @return {!Object}
348
- * @suppress {unusedLocalVariables} f is only used for nested messages
349
- */
350
- proto.Drumtracker.DrumProto.toObject = function(includeInstance, msg) {
351
- var f, obj = {
352
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
353
- drumNumber: jspb.Message.getFieldWithDefault(msg, 2, 0),
354
- drumType: (f = msg.getDrumType()) && proto.Drumtracker.DrumProto.DrumType.toObject(includeInstance, f),
355
- cableType: (f = msg.getCableType()) && proto.Drumtracker.DrumProto.CableType.toObject(includeInstance, f),
356
- groupId: jspb.Message.getFieldWithDefault(msg, 5, ""),
357
- cableLength: jspb.Message.getFieldWithDefault(msg, 6, 0),
358
- residualLength: jspb.Message.getFieldWithDefault(msg, 7, 0),
359
- latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
360
- longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
361
- temperature: jspb.Message.getFieldWithDefault(msg, 10, 0),
362
- lastUpdate: (f = msg.getLastUpdate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
363
- salesReference: jspb.Message.getFieldWithDefault(msg, 12, ""),
364
- customerReference: jspb.Message.getFieldWithDefault(msg, 13, "")
365
- };
366
-
367
- if (includeInstance) {
368
- obj.$jspbMessageInstance = msg;
369
- }
370
- return obj;
371
- };
372
- }
373
-
374
-
375
- /**
376
- * Deserializes binary data (in protobuf wire format).
377
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
378
- * @return {!proto.Drumtracker.DrumProto}
379
- */
380
- proto.Drumtracker.DrumProto.deserializeBinary = function(bytes) {
381
- var reader = new jspb.BinaryReader(bytes);
382
- var msg = new proto.Drumtracker.DrumProto;
383
- return proto.Drumtracker.DrumProto.deserializeBinaryFromReader(msg, reader);
384
- };
385
-
386
-
387
- /**
388
- * Deserializes binary data (in protobuf wire format) from the
389
- * given reader into the given message object.
390
- * @param {!proto.Drumtracker.DrumProto} msg The message object to deserialize into.
391
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
392
- * @return {!proto.Drumtracker.DrumProto}
393
- */
394
- proto.Drumtracker.DrumProto.deserializeBinaryFromReader = function(msg, reader) {
395
- while (reader.nextField()) {
396
- if (reader.isEndGroup()) {
397
- break;
398
- }
399
- var field = reader.getFieldNumber();
400
- switch (field) {
401
- case 1:
402
- var value = /** @type {number} */ (reader.readInt64());
403
- msg.setId(value);
404
- break;
405
- case 2:
406
- var value = /** @type {number} */ (reader.readInt64());
407
- msg.setDrumNumber(value);
408
- break;
409
- case 3:
410
- var value = new proto.Drumtracker.DrumProto.DrumType;
411
- reader.readMessage(value,proto.Drumtracker.DrumProto.DrumType.deserializeBinaryFromReader);
412
- msg.setDrumType(value);
413
- break;
414
- case 4:
415
- var value = new proto.Drumtracker.DrumProto.CableType;
416
- reader.readMessage(value,proto.Drumtracker.DrumProto.CableType.deserializeBinaryFromReader);
417
- msg.setCableType(value);
418
- break;
419
- case 5:
420
- var value = /** @type {string} */ (reader.readString());
421
- msg.setGroupId(value);
422
- break;
423
- case 6:
424
- var value = /** @type {number} */ (reader.readInt32());
425
- msg.setCableLength(value);
426
- break;
427
- case 7:
428
- var value = /** @type {number} */ (reader.readInt32());
429
- msg.setResidualLength(value);
430
- break;
431
- case 8:
432
- var value = /** @type {number} */ (reader.readDouble());
433
- msg.setLatitude(value);
434
- break;
435
- case 9:
436
- var value = /** @type {number} */ (reader.readDouble());
437
- msg.setLongitude(value);
438
- break;
439
- case 10:
440
- var value = /** @type {number} */ (reader.readInt32());
441
- msg.setTemperature(value);
442
- break;
443
- case 11:
444
- var value = new google_protobuf_timestamp_pb.Timestamp;
445
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
446
- msg.setLastUpdate(value);
447
- break;
448
- case 12:
449
- var value = /** @type {string} */ (reader.readString());
450
- msg.setSalesReference(value);
451
- break;
452
- case 13:
453
- var value = /** @type {string} */ (reader.readString());
454
- msg.setCustomerReference(value);
455
- break;
456
- default:
457
- reader.skipField();
458
- break;
459
- }
460
- }
461
- return msg;
462
- };
463
-
464
-
465
- /**
466
- * Serializes the message to binary data (in protobuf wire format).
467
- * @return {!Uint8Array}
468
- */
469
- proto.Drumtracker.DrumProto.prototype.serializeBinary = function() {
470
- var writer = new jspb.BinaryWriter();
471
- proto.Drumtracker.DrumProto.serializeBinaryToWriter(this, writer);
472
- return writer.getResultBuffer();
473
- };
474
-
475
-
476
- /**
477
- * Serializes the given message to binary data (in protobuf wire
478
- * format), writing to the given BinaryWriter.
479
- * @param {!proto.Drumtracker.DrumProto} message
480
- * @param {!jspb.BinaryWriter} writer
481
- * @suppress {unusedLocalVariables} f is only used for nested messages
482
- */
483
- proto.Drumtracker.DrumProto.serializeBinaryToWriter = function(message, writer) {
484
- var f = undefined;
485
- f = message.getId();
486
- if (f !== 0) {
487
- writer.writeInt64(
488
- 1,
489
- f
490
- );
491
- }
492
- f = message.getDrumNumber();
493
- if (f !== 0) {
494
- writer.writeInt64(
495
- 2,
496
- f
497
- );
498
- }
499
- f = message.getDrumType();
500
- if (f != null) {
501
- writer.writeMessage(
502
- 3,
503
- f,
504
- proto.Drumtracker.DrumProto.DrumType.serializeBinaryToWriter
505
- );
506
- }
507
- f = message.getCableType();
508
- if (f != null) {
509
- writer.writeMessage(
510
- 4,
511
- f,
512
- proto.Drumtracker.DrumProto.CableType.serializeBinaryToWriter
513
- );
514
- }
515
- f = message.getGroupId();
516
- if (f.length > 0) {
517
- writer.writeString(
518
- 5,
519
- f
520
- );
521
- }
522
- f = message.getCableLength();
523
- if (f !== 0) {
524
- writer.writeInt32(
525
- 6,
526
- f
527
- );
528
- }
529
- f = message.getResidualLength();
530
- if (f !== 0) {
531
- writer.writeInt32(
532
- 7,
533
- f
534
- );
535
- }
536
- f = message.getLatitude();
537
- if (f !== 0.0) {
538
- writer.writeDouble(
539
- 8,
540
- f
541
- );
542
- }
543
- f = message.getLongitude();
544
- if (f !== 0.0) {
545
- writer.writeDouble(
546
- 9,
547
- f
548
- );
549
- }
550
- f = message.getTemperature();
551
- if (f !== 0) {
552
- writer.writeInt32(
553
- 10,
554
- f
555
- );
556
- }
557
- f = message.getLastUpdate();
558
- if (f != null) {
559
- writer.writeMessage(
560
- 11,
561
- f,
562
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
563
- );
564
- }
565
- f = message.getSalesReference();
566
- if (f.length > 0) {
567
- writer.writeString(
568
- 12,
569
- f
570
- );
571
- }
572
- f = message.getCustomerReference();
573
- if (f.length > 0) {
574
- writer.writeString(
575
- 13,
576
- f
577
- );
578
- }
579
- };
580
-
581
-
582
-
583
-
584
-
585
- if (jspb.Message.GENERATE_TO_OBJECT) {
586
- /**
587
- * Creates an object representation of this proto.
588
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
589
- * Optional fields that are not set will be set to undefined.
590
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
591
- * For the list of reserved names please see:
592
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
593
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
594
- * JSPB instance for transitional soy proto support:
595
- * http://goto/soy-param-migration
596
- * @return {!Object}
597
- */
598
- proto.Drumtracker.DrumProto.CableType.prototype.toObject = function(opt_includeInstance) {
599
- return proto.Drumtracker.DrumProto.CableType.toObject(opt_includeInstance, this);
600
- };
601
-
602
-
603
- /**
604
- * Static version of the {@see toObject} method.
605
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
606
- * the JSPB instance for transitional soy proto support:
607
- * http://goto/soy-param-migration
608
- * @param {!proto.Drumtracker.DrumProto.CableType} msg The msg instance to transform.
609
- * @return {!Object}
610
- * @suppress {unusedLocalVariables} f is only used for nested messages
611
- */
612
- proto.Drumtracker.DrumProto.CableType.toObject = function(includeInstance, msg) {
613
- var f, obj = {
614
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
615
- description: jspb.Message.getFieldWithDefault(msg, 2, ""),
616
- diameter: jspb.Message.getFieldWithDefault(msg, 3, 0)
617
- };
618
-
619
- if (includeInstance) {
620
- obj.$jspbMessageInstance = msg;
621
- }
622
- return obj;
623
- };
624
- }
625
-
626
-
627
- /**
628
- * Deserializes binary data (in protobuf wire format).
629
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
630
- * @return {!proto.Drumtracker.DrumProto.CableType}
631
- */
632
- proto.Drumtracker.DrumProto.CableType.deserializeBinary = function(bytes) {
633
- var reader = new jspb.BinaryReader(bytes);
634
- var msg = new proto.Drumtracker.DrumProto.CableType;
635
- return proto.Drumtracker.DrumProto.CableType.deserializeBinaryFromReader(msg, reader);
636
- };
637
-
638
-
639
- /**
640
- * Deserializes binary data (in protobuf wire format) from the
641
- * given reader into the given message object.
642
- * @param {!proto.Drumtracker.DrumProto.CableType} msg The message object to deserialize into.
643
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
644
- * @return {!proto.Drumtracker.DrumProto.CableType}
645
- */
646
- proto.Drumtracker.DrumProto.CableType.deserializeBinaryFromReader = function(msg, reader) {
647
- while (reader.nextField()) {
648
- if (reader.isEndGroup()) {
649
- break;
650
- }
651
- var field = reader.getFieldNumber();
652
- switch (field) {
653
- case 1:
654
- var value = /** @type {string} */ (reader.readString());
655
- msg.setName(value);
656
- break;
657
- case 2:
658
- var value = /** @type {string} */ (reader.readString());
659
- msg.setDescription(value);
660
- break;
661
- case 3:
662
- var value = /** @type {number} */ (reader.readInt32());
663
- msg.setDiameter(value);
664
- break;
665
- default:
666
- reader.skipField();
667
- break;
668
- }
669
- }
670
- return msg;
671
- };
672
-
673
-
674
- /**
675
- * Serializes the message to binary data (in protobuf wire format).
676
- * @return {!Uint8Array}
677
- */
678
- proto.Drumtracker.DrumProto.CableType.prototype.serializeBinary = function() {
679
- var writer = new jspb.BinaryWriter();
680
- proto.Drumtracker.DrumProto.CableType.serializeBinaryToWriter(this, writer);
681
- return writer.getResultBuffer();
682
- };
683
-
684
-
685
- /**
686
- * Serializes the given message to binary data (in protobuf wire
687
- * format), writing to the given BinaryWriter.
688
- * @param {!proto.Drumtracker.DrumProto.CableType} message
689
- * @param {!jspb.BinaryWriter} writer
690
- * @suppress {unusedLocalVariables} f is only used for nested messages
691
- */
692
- proto.Drumtracker.DrumProto.CableType.serializeBinaryToWriter = function(message, writer) {
693
- var f = undefined;
694
- f = message.getName();
695
- if (f.length > 0) {
696
- writer.writeString(
697
- 1,
698
- f
699
- );
700
- }
701
- f = message.getDescription();
702
- if (f.length > 0) {
703
- writer.writeString(
704
- 2,
705
- f
706
- );
707
- }
708
- f = message.getDiameter();
709
- if (f !== 0) {
710
- writer.writeInt32(
711
- 3,
712
- f
713
- );
714
- }
715
- };
716
-
717
-
718
- /**
719
- * optional string name = 1;
720
- * @return {string}
721
- */
722
- proto.Drumtracker.DrumProto.CableType.prototype.getName = function() {
723
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
724
- };
725
-
726
-
727
- /**
728
- * @param {string} value
729
- * @return {!proto.Drumtracker.DrumProto.CableType} returns this
730
- */
731
- proto.Drumtracker.DrumProto.CableType.prototype.setName = function(value) {
732
- return jspb.Message.setProto3StringField(this, 1, value);
733
- };
734
-
735
-
736
- /**
737
- * optional string description = 2;
738
- * @return {string}
739
- */
740
- proto.Drumtracker.DrumProto.CableType.prototype.getDescription = function() {
741
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
742
- };
743
-
744
-
745
- /**
746
- * @param {string} value
747
- * @return {!proto.Drumtracker.DrumProto.CableType} returns this
748
- */
749
- proto.Drumtracker.DrumProto.CableType.prototype.setDescription = function(value) {
750
- return jspb.Message.setProto3StringField(this, 2, value);
751
- };
752
-
753
-
754
- /**
755
- * optional int32 diameter = 3;
756
- * @return {number}
757
- */
758
- proto.Drumtracker.DrumProto.CableType.prototype.getDiameter = function() {
759
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
760
- };
761
-
762
-
763
- /**
764
- * @param {number} value
765
- * @return {!proto.Drumtracker.DrumProto.CableType} returns this
766
- */
767
- proto.Drumtracker.DrumProto.CableType.prototype.setDiameter = function(value) {
768
- return jspb.Message.setProto3IntField(this, 3, value);
769
- };
770
-
771
-
772
-
773
-
774
-
775
- if (jspb.Message.GENERATE_TO_OBJECT) {
776
- /**
777
- * Creates an object representation of this proto.
778
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
779
- * Optional fields that are not set will be set to undefined.
780
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
781
- * For the list of reserved names please see:
782
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
783
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
784
- * JSPB instance for transitional soy proto support:
785
- * http://goto/soy-param-migration
786
- * @return {!Object}
787
- */
788
- proto.Drumtracker.DrumProto.DrumType.prototype.toObject = function(opt_includeInstance) {
789
- return proto.Drumtracker.DrumProto.DrumType.toObject(opt_includeInstance, this);
790
- };
791
-
792
-
793
- /**
794
- * Static version of the {@see toObject} method.
795
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
796
- * the JSPB instance for transitional soy proto support:
797
- * http://goto/soy-param-migration
798
- * @param {!proto.Drumtracker.DrumProto.DrumType} msg The msg instance to transform.
799
- * @return {!Object}
800
- * @suppress {unusedLocalVariables} f is only used for nested messages
801
- */
802
- proto.Drumtracker.DrumProto.DrumType.toObject = function(includeInstance, msg) {
803
- var f, obj = {
804
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
805
- diameterMin: jspb.Message.getFieldWithDefault(msg, 2, 0),
806
- diameterMax: jspb.Message.getFieldWithDefault(msg, 3, 0),
807
- width: jspb.Message.getFieldWithDefault(msg, 4, 0)
808
- };
809
-
810
- if (includeInstance) {
811
- obj.$jspbMessageInstance = msg;
812
- }
813
- return obj;
814
- };
815
- }
816
-
817
-
818
- /**
819
- * Deserializes binary data (in protobuf wire format).
820
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
821
- * @return {!proto.Drumtracker.DrumProto.DrumType}
822
- */
823
- proto.Drumtracker.DrumProto.DrumType.deserializeBinary = function(bytes) {
824
- var reader = new jspb.BinaryReader(bytes);
825
- var msg = new proto.Drumtracker.DrumProto.DrumType;
826
- return proto.Drumtracker.DrumProto.DrumType.deserializeBinaryFromReader(msg, reader);
827
- };
828
-
829
-
830
- /**
831
- * Deserializes binary data (in protobuf wire format) from the
832
- * given reader into the given message object.
833
- * @param {!proto.Drumtracker.DrumProto.DrumType} msg The message object to deserialize into.
834
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
835
- * @return {!proto.Drumtracker.DrumProto.DrumType}
836
- */
837
- proto.Drumtracker.DrumProto.DrumType.deserializeBinaryFromReader = function(msg, reader) {
838
- while (reader.nextField()) {
839
- if (reader.isEndGroup()) {
840
- break;
841
- }
842
- var field = reader.getFieldNumber();
843
- switch (field) {
844
- case 1:
845
- var value = /** @type {string} */ (reader.readString());
846
- msg.setName(value);
847
- break;
848
- case 2:
849
- var value = /** @type {number} */ (reader.readInt32());
850
- msg.setDiameterMin(value);
851
- break;
852
- case 3:
853
- var value = /** @type {number} */ (reader.readInt32());
854
- msg.setDiameterMax(value);
855
- break;
856
- case 4:
857
- var value = /** @type {number} */ (reader.readInt32());
858
- msg.setWidth(value);
859
- break;
860
- default:
861
- reader.skipField();
862
- break;
863
- }
864
- }
865
- return msg;
866
- };
867
-
868
-
869
- /**
870
- * Serializes the message to binary data (in protobuf wire format).
871
- * @return {!Uint8Array}
872
- */
873
- proto.Drumtracker.DrumProto.DrumType.prototype.serializeBinary = function() {
874
- var writer = new jspb.BinaryWriter();
875
- proto.Drumtracker.DrumProto.DrumType.serializeBinaryToWriter(this, writer);
876
- return writer.getResultBuffer();
877
- };
878
-
879
-
880
- /**
881
- * Serializes the given message to binary data (in protobuf wire
882
- * format), writing to the given BinaryWriter.
883
- * @param {!proto.Drumtracker.DrumProto.DrumType} message
884
- * @param {!jspb.BinaryWriter} writer
885
- * @suppress {unusedLocalVariables} f is only used for nested messages
886
- */
887
- proto.Drumtracker.DrumProto.DrumType.serializeBinaryToWriter = function(message, writer) {
888
- var f = undefined;
889
- f = message.getName();
890
- if (f.length > 0) {
891
- writer.writeString(
892
- 1,
893
- f
894
- );
895
- }
896
- f = message.getDiameterMin();
897
- if (f !== 0) {
898
- writer.writeInt32(
899
- 2,
900
- f
901
- );
902
- }
903
- f = message.getDiameterMax();
904
- if (f !== 0) {
905
- writer.writeInt32(
906
- 3,
907
- f
908
- );
909
- }
910
- f = message.getWidth();
911
- if (f !== 0) {
912
- writer.writeInt32(
913
- 4,
914
- f
915
- );
916
- }
917
- };
918
-
919
-
920
- /**
921
- * optional string name = 1;
922
- * @return {string}
923
- */
924
- proto.Drumtracker.DrumProto.DrumType.prototype.getName = function() {
925
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
926
- };
927
-
928
-
929
- /**
930
- * @param {string} value
931
- * @return {!proto.Drumtracker.DrumProto.DrumType} returns this
932
- */
933
- proto.Drumtracker.DrumProto.DrumType.prototype.setName = function(value) {
934
- return jspb.Message.setProto3StringField(this, 1, value);
935
- };
936
-
937
-
938
- /**
939
- * optional int32 diameter_min = 2;
940
- * @return {number}
941
- */
942
- proto.Drumtracker.DrumProto.DrumType.prototype.getDiameterMin = function() {
943
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
944
- };
945
-
946
-
947
- /**
948
- * @param {number} value
949
- * @return {!proto.Drumtracker.DrumProto.DrumType} returns this
950
- */
951
- proto.Drumtracker.DrumProto.DrumType.prototype.setDiameterMin = function(value) {
952
- return jspb.Message.setProto3IntField(this, 2, value);
953
- };
954
-
955
-
956
- /**
957
- * optional int32 diameter_max = 3;
958
- * @return {number}
959
- */
960
- proto.Drumtracker.DrumProto.DrumType.prototype.getDiameterMax = function() {
961
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
962
- };
963
-
964
-
965
- /**
966
- * @param {number} value
967
- * @return {!proto.Drumtracker.DrumProto.DrumType} returns this
968
- */
969
- proto.Drumtracker.DrumProto.DrumType.prototype.setDiameterMax = function(value) {
970
- return jspb.Message.setProto3IntField(this, 3, value);
971
- };
972
-
973
-
974
- /**
975
- * optional int32 width = 4;
976
- * @return {number}
977
- */
978
- proto.Drumtracker.DrumProto.DrumType.prototype.getWidth = function() {
979
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
980
- };
981
-
982
-
983
- /**
984
- * @param {number} value
985
- * @return {!proto.Drumtracker.DrumProto.DrumType} returns this
986
- */
987
- proto.Drumtracker.DrumProto.DrumType.prototype.setWidth = function(value) {
988
- return jspb.Message.setProto3IntField(this, 4, value);
989
- };
990
-
991
-
992
-
993
-
994
-
995
- if (jspb.Message.GENERATE_TO_OBJECT) {
996
- /**
997
- * Creates an object representation of this proto.
998
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
999
- * Optional fields that are not set will be set to undefined.
1000
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1001
- * For the list of reserved names please see:
1002
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1003
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1004
- * JSPB instance for transitional soy proto support:
1005
- * http://goto/soy-param-migration
1006
- * @return {!Object}
1007
- */
1008
- proto.Drumtracker.DrumProto.CreateRequest.prototype.toObject = function(opt_includeInstance) {
1009
- return proto.Drumtracker.DrumProto.CreateRequest.toObject(opt_includeInstance, this);
1010
- };
1011
-
1012
-
1013
- /**
1014
- * Static version of the {@see toObject} method.
1015
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1016
- * the JSPB instance for transitional soy proto support:
1017
- * http://goto/soy-param-migration
1018
- * @param {!proto.Drumtracker.DrumProto.CreateRequest} msg The msg instance to transform.
1019
- * @return {!Object}
1020
- * @suppress {unusedLocalVariables} f is only used for nested messages
1021
- */
1022
- proto.Drumtracker.DrumProto.CreateRequest.toObject = function(includeInstance, msg) {
1023
- var f, obj = {
1024
- drumNumber: jspb.Message.getFieldWithDefault(msg, 1, 0),
1025
- drumType: (f = msg.getDrumType()) && proto.Drumtracker.DrumProto.DrumType.toObject(includeInstance, f),
1026
- cableType: (f = msg.getCableType()) && proto.Drumtracker.DrumProto.DrumType.toObject(includeInstance, f),
1027
- groupId: jspb.Message.getFieldWithDefault(msg, 4, ""),
1028
- cableLength: jspb.Message.getFieldWithDefault(msg, 5, 0),
1029
- residualLength: jspb.Message.getFieldWithDefault(msg, 6, 0),
1030
- salesReference: jspb.Message.getFieldWithDefault(msg, 7, ""),
1031
- customerReference: jspb.Message.getFieldWithDefault(msg, 8, "")
1032
- };
1033
-
1034
- if (includeInstance) {
1035
- obj.$jspbMessageInstance = msg;
1036
- }
1037
- return obj;
1038
- };
1039
- }
1040
-
1041
-
1042
- /**
1043
- * Deserializes binary data (in protobuf wire format).
1044
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1045
- * @return {!proto.Drumtracker.DrumProto.CreateRequest}
1046
- */
1047
- proto.Drumtracker.DrumProto.CreateRequest.deserializeBinary = function(bytes) {
1048
- var reader = new jspb.BinaryReader(bytes);
1049
- var msg = new proto.Drumtracker.DrumProto.CreateRequest;
1050
- return proto.Drumtracker.DrumProto.CreateRequest.deserializeBinaryFromReader(msg, reader);
1051
- };
1052
-
1053
-
1054
- /**
1055
- * Deserializes binary data (in protobuf wire format) from the
1056
- * given reader into the given message object.
1057
- * @param {!proto.Drumtracker.DrumProto.CreateRequest} msg The message object to deserialize into.
1058
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1059
- * @return {!proto.Drumtracker.DrumProto.CreateRequest}
1060
- */
1061
- proto.Drumtracker.DrumProto.CreateRequest.deserializeBinaryFromReader = function(msg, reader) {
1062
- while (reader.nextField()) {
1063
- if (reader.isEndGroup()) {
1064
- break;
1065
- }
1066
- var field = reader.getFieldNumber();
1067
- switch (field) {
1068
- case 1:
1069
- var value = /** @type {number} */ (reader.readInt64());
1070
- msg.setDrumNumber(value);
1071
- break;
1072
- case 2:
1073
- var value = new proto.Drumtracker.DrumProto.DrumType;
1074
- reader.readMessage(value,proto.Drumtracker.DrumProto.DrumType.deserializeBinaryFromReader);
1075
- msg.setDrumType(value);
1076
- break;
1077
- case 3:
1078
- var value = new proto.Drumtracker.DrumProto.DrumType;
1079
- reader.readMessage(value,proto.Drumtracker.DrumProto.DrumType.deserializeBinaryFromReader);
1080
- msg.setCableType(value);
1081
- break;
1082
- case 4:
1083
- var value = /** @type {string} */ (reader.readString());
1084
- msg.setGroupId(value);
1085
- break;
1086
- case 5:
1087
- var value = /** @type {number} */ (reader.readInt32());
1088
- msg.setCableLength(value);
1089
- break;
1090
- case 6:
1091
- var value = /** @type {number} */ (reader.readInt32());
1092
- msg.setResidualLength(value);
1093
- break;
1094
- case 7:
1095
- var value = /** @type {string} */ (reader.readString());
1096
- msg.setSalesReference(value);
1097
- break;
1098
- case 8:
1099
- var value = /** @type {string} */ (reader.readString());
1100
- msg.setCustomerReference(value);
1101
- break;
1102
- default:
1103
- reader.skipField();
1104
- break;
1105
- }
1106
- }
1107
- return msg;
1108
- };
1109
-
1110
-
1111
- /**
1112
- * Serializes the message to binary data (in protobuf wire format).
1113
- * @return {!Uint8Array}
1114
- */
1115
- proto.Drumtracker.DrumProto.CreateRequest.prototype.serializeBinary = function() {
1116
- var writer = new jspb.BinaryWriter();
1117
- proto.Drumtracker.DrumProto.CreateRequest.serializeBinaryToWriter(this, writer);
1118
- return writer.getResultBuffer();
1119
- };
1120
-
1121
-
1122
- /**
1123
- * Serializes the given message to binary data (in protobuf wire
1124
- * format), writing to the given BinaryWriter.
1125
- * @param {!proto.Drumtracker.DrumProto.CreateRequest} message
1126
- * @param {!jspb.BinaryWriter} writer
1127
- * @suppress {unusedLocalVariables} f is only used for nested messages
1128
- */
1129
- proto.Drumtracker.DrumProto.CreateRequest.serializeBinaryToWriter = function(message, writer) {
1130
- var f = undefined;
1131
- f = message.getDrumNumber();
1132
- if (f !== 0) {
1133
- writer.writeInt64(
1134
- 1,
1135
- f
1136
- );
1137
- }
1138
- f = message.getDrumType();
1139
- if (f != null) {
1140
- writer.writeMessage(
1141
- 2,
1142
- f,
1143
- proto.Drumtracker.DrumProto.DrumType.serializeBinaryToWriter
1144
- );
1145
- }
1146
- f = message.getCableType();
1147
- if (f != null) {
1148
- writer.writeMessage(
1149
- 3,
1150
- f,
1151
- proto.Drumtracker.DrumProto.DrumType.serializeBinaryToWriter
1152
- );
1153
- }
1154
- f = message.getGroupId();
1155
- if (f.length > 0) {
1156
- writer.writeString(
1157
- 4,
1158
- f
1159
- );
1160
- }
1161
- f = message.getCableLength();
1162
- if (f !== 0) {
1163
- writer.writeInt32(
1164
- 5,
1165
- f
1166
- );
1167
- }
1168
- f = message.getResidualLength();
1169
- if (f !== 0) {
1170
- writer.writeInt32(
1171
- 6,
1172
- f
1173
- );
1174
- }
1175
- f = message.getSalesReference();
1176
- if (f.length > 0) {
1177
- writer.writeString(
1178
- 7,
1179
- f
1180
- );
1181
- }
1182
- f = message.getCustomerReference();
1183
- if (f.length > 0) {
1184
- writer.writeString(
1185
- 8,
1186
- f
1187
- );
1188
- }
1189
- };
1190
-
1191
-
1192
- /**
1193
- * optional int64 drum_number = 1;
1194
- * @return {number}
1195
- */
1196
- proto.Drumtracker.DrumProto.CreateRequest.prototype.getDrumNumber = function() {
1197
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1198
- };
1199
-
1200
-
1201
- /**
1202
- * @param {number} value
1203
- * @return {!proto.Drumtracker.DrumProto.CreateRequest} returns this
1204
- */
1205
- proto.Drumtracker.DrumProto.CreateRequest.prototype.setDrumNumber = function(value) {
1206
- return jspb.Message.setProto3IntField(this, 1, value);
1207
- };
1208
-
1209
-
1210
- /**
1211
- * optional DrumType drum_type = 2;
1212
- * @return {?proto.Drumtracker.DrumProto.DrumType}
1213
- */
1214
- proto.Drumtracker.DrumProto.CreateRequest.prototype.getDrumType = function() {
1215
- return /** @type{?proto.Drumtracker.DrumProto.DrumType} */ (
1216
- jspb.Message.getWrapperField(this, proto.Drumtracker.DrumProto.DrumType, 2));
1217
- };
1218
-
1219
-
1220
- /**
1221
- * @param {?proto.Drumtracker.DrumProto.DrumType|undefined} value
1222
- * @return {!proto.Drumtracker.DrumProto.CreateRequest} returns this
1223
- */
1224
- proto.Drumtracker.DrumProto.CreateRequest.prototype.setDrumType = function(value) {
1225
- return jspb.Message.setWrapperField(this, 2, value);
1226
- };
1227
-
1228
-
1229
- /**
1230
- * Clears the message field making it undefined.
1231
- * @return {!proto.Drumtracker.DrumProto.CreateRequest} returns this
1232
- */
1233
- proto.Drumtracker.DrumProto.CreateRequest.prototype.clearDrumType = function() {
1234
- return this.setDrumType(undefined);
1235
- };
1236
-
1237
-
1238
- /**
1239
- * Returns whether this field is set.
1240
- * @return {boolean}
1241
- */
1242
- proto.Drumtracker.DrumProto.CreateRequest.prototype.hasDrumType = function() {
1243
- return jspb.Message.getField(this, 2) != null;
1244
- };
1245
-
1246
-
1247
- /**
1248
- * optional DrumType cable_type = 3;
1249
- * @return {?proto.Drumtracker.DrumProto.DrumType}
1250
- */
1251
- proto.Drumtracker.DrumProto.CreateRequest.prototype.getCableType = function() {
1252
- return /** @type{?proto.Drumtracker.DrumProto.DrumType} */ (
1253
- jspb.Message.getWrapperField(this, proto.Drumtracker.DrumProto.DrumType, 3));
1254
- };
1255
-
1256
-
1257
- /**
1258
- * @param {?proto.Drumtracker.DrumProto.DrumType|undefined} value
1259
- * @return {!proto.Drumtracker.DrumProto.CreateRequest} returns this
1260
- */
1261
- proto.Drumtracker.DrumProto.CreateRequest.prototype.setCableType = function(value) {
1262
- return jspb.Message.setWrapperField(this, 3, value);
1263
- };
1264
-
1265
-
1266
- /**
1267
- * Clears the message field making it undefined.
1268
- * @return {!proto.Drumtracker.DrumProto.CreateRequest} returns this
1269
- */
1270
- proto.Drumtracker.DrumProto.CreateRequest.prototype.clearCableType = function() {
1271
- return this.setCableType(undefined);
1272
- };
1273
-
1274
-
1275
- /**
1276
- * Returns whether this field is set.
1277
- * @return {boolean}
1278
- */
1279
- proto.Drumtracker.DrumProto.CreateRequest.prototype.hasCableType = function() {
1280
- return jspb.Message.getField(this, 3) != null;
1281
- };
1282
-
1283
-
1284
- /**
1285
- * optional string group_id = 4;
1286
- * @return {string}
1287
- */
1288
- proto.Drumtracker.DrumProto.CreateRequest.prototype.getGroupId = function() {
1289
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1290
- };
1291
-
1292
-
1293
- /**
1294
- * @param {string} value
1295
- * @return {!proto.Drumtracker.DrumProto.CreateRequest} returns this
1296
- */
1297
- proto.Drumtracker.DrumProto.CreateRequest.prototype.setGroupId = function(value) {
1298
- return jspb.Message.setProto3StringField(this, 4, value);
1299
- };
1300
-
1301
-
1302
- /**
1303
- * optional int32 cable_length = 5;
1304
- * @return {number}
1305
- */
1306
- proto.Drumtracker.DrumProto.CreateRequest.prototype.getCableLength = function() {
1307
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1308
- };
1309
-
1310
-
1311
- /**
1312
- * @param {number} value
1313
- * @return {!proto.Drumtracker.DrumProto.CreateRequest} returns this
1314
- */
1315
- proto.Drumtracker.DrumProto.CreateRequest.prototype.setCableLength = function(value) {
1316
- return jspb.Message.setProto3IntField(this, 5, value);
1317
- };
1318
-
1319
-
1320
- /**
1321
- * optional int32 residual_length = 6;
1322
- * @return {number}
1323
- */
1324
- proto.Drumtracker.DrumProto.CreateRequest.prototype.getResidualLength = function() {
1325
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1326
- };
1327
-
1328
-
1329
- /**
1330
- * @param {number} value
1331
- * @return {!proto.Drumtracker.DrumProto.CreateRequest} returns this
1332
- */
1333
- proto.Drumtracker.DrumProto.CreateRequest.prototype.setResidualLength = function(value) {
1334
- return jspb.Message.setProto3IntField(this, 6, value);
1335
- };
1336
-
1337
-
1338
- /**
1339
- * optional string sales_reference = 7;
1340
- * @return {string}
1341
- */
1342
- proto.Drumtracker.DrumProto.CreateRequest.prototype.getSalesReference = function() {
1343
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1344
- };
1345
-
1346
-
1347
- /**
1348
- * @param {string} value
1349
- * @return {!proto.Drumtracker.DrumProto.CreateRequest} returns this
1350
- */
1351
- proto.Drumtracker.DrumProto.CreateRequest.prototype.setSalesReference = function(value) {
1352
- return jspb.Message.setProto3StringField(this, 7, value);
1353
- };
1354
-
1355
-
1356
- /**
1357
- * optional string customer_reference = 8;
1358
- * @return {string}
1359
- */
1360
- proto.Drumtracker.DrumProto.CreateRequest.prototype.getCustomerReference = function() {
1361
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1362
- };
1363
-
1364
-
1365
- /**
1366
- * @param {string} value
1367
- * @return {!proto.Drumtracker.DrumProto.CreateRequest} returns this
1368
- */
1369
- proto.Drumtracker.DrumProto.CreateRequest.prototype.setCustomerReference = function(value) {
1370
- return jspb.Message.setProto3StringField(this, 8, value);
1371
- };
1372
-
1373
-
1374
-
1375
- /**
1376
- * Oneof group definitions for this message. Each group defines the field
1377
- * numbers belonging to that group. When of these fields' value is set, all
1378
- * other fields in the group are cleared. During deserialization, if multiple
1379
- * fields are encountered for a group, only the last value seen will be kept.
1380
- * @private {!Array<!Array<number>>}
1381
- * @const
1382
- */
1383
- proto.Drumtracker.DrumProto.RetrieveRequest.oneofGroups_ = [[1,2]];
1384
-
1385
- /**
1386
- * @enum {number}
1387
- */
1388
- proto.Drumtracker.DrumProto.RetrieveRequest.SearchCase = {
1389
- SEARCH_NOT_SET: 0,
1390
- ID: 1,
1391
- DRUM_NUMBER: 2
1392
- };
1393
-
1394
- /**
1395
- * @return {proto.Drumtracker.DrumProto.RetrieveRequest.SearchCase}
1396
- */
1397
- proto.Drumtracker.DrumProto.RetrieveRequest.prototype.getSearchCase = function() {
1398
- return /** @type {proto.Drumtracker.DrumProto.RetrieveRequest.SearchCase} */(jspb.Message.computeOneofCase(this, proto.Drumtracker.DrumProto.RetrieveRequest.oneofGroups_[0]));
1399
- };
1400
-
1401
-
1402
-
1403
- if (jspb.Message.GENERATE_TO_OBJECT) {
1404
- /**
1405
- * Creates an object representation of this proto.
1406
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1407
- * Optional fields that are not set will be set to undefined.
1408
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1409
- * For the list of reserved names please see:
1410
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1411
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1412
- * JSPB instance for transitional soy proto support:
1413
- * http://goto/soy-param-migration
1414
- * @return {!Object}
1415
- */
1416
- proto.Drumtracker.DrumProto.RetrieveRequest.prototype.toObject = function(opt_includeInstance) {
1417
- return proto.Drumtracker.DrumProto.RetrieveRequest.toObject(opt_includeInstance, this);
1418
- };
1419
-
1420
-
1421
- /**
1422
- * Static version of the {@see toObject} method.
1423
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1424
- * the JSPB instance for transitional soy proto support:
1425
- * http://goto/soy-param-migration
1426
- * @param {!proto.Drumtracker.DrumProto.RetrieveRequest} msg The msg instance to transform.
1427
- * @return {!Object}
1428
- * @suppress {unusedLocalVariables} f is only used for nested messages
1429
- */
1430
- proto.Drumtracker.DrumProto.RetrieveRequest.toObject = function(includeInstance, msg) {
1431
- var f, obj = {
1432
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1433
- drumNumber: jspb.Message.getFieldWithDefault(msg, 2, 0)
1434
- };
1435
-
1436
- if (includeInstance) {
1437
- obj.$jspbMessageInstance = msg;
1438
- }
1439
- return obj;
1440
- };
1441
- }
1442
-
1443
-
1444
- /**
1445
- * Deserializes binary data (in protobuf wire format).
1446
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1447
- * @return {!proto.Drumtracker.DrumProto.RetrieveRequest}
1448
- */
1449
- proto.Drumtracker.DrumProto.RetrieveRequest.deserializeBinary = function(bytes) {
1450
- var reader = new jspb.BinaryReader(bytes);
1451
- var msg = new proto.Drumtracker.DrumProto.RetrieveRequest;
1452
- return proto.Drumtracker.DrumProto.RetrieveRequest.deserializeBinaryFromReader(msg, reader);
1453
- };
1454
-
1455
-
1456
- /**
1457
- * Deserializes binary data (in protobuf wire format) from the
1458
- * given reader into the given message object.
1459
- * @param {!proto.Drumtracker.DrumProto.RetrieveRequest} msg The message object to deserialize into.
1460
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1461
- * @return {!proto.Drumtracker.DrumProto.RetrieveRequest}
1462
- */
1463
- proto.Drumtracker.DrumProto.RetrieveRequest.deserializeBinaryFromReader = function(msg, reader) {
1464
- while (reader.nextField()) {
1465
- if (reader.isEndGroup()) {
1466
- break;
1467
- }
1468
- var field = reader.getFieldNumber();
1469
- switch (field) {
1470
- case 1:
1471
- var value = /** @type {number} */ (reader.readInt64());
1472
- msg.setId(value);
1473
- break;
1474
- case 2:
1475
- var value = /** @type {number} */ (reader.readInt64());
1476
- msg.setDrumNumber(value);
1477
- break;
1478
- default:
1479
- reader.skipField();
1480
- break;
1481
- }
1482
- }
1483
- return msg;
1484
- };
1485
-
1486
-
1487
- /**
1488
- * Serializes the message to binary data (in protobuf wire format).
1489
- * @return {!Uint8Array}
1490
- */
1491
- proto.Drumtracker.DrumProto.RetrieveRequest.prototype.serializeBinary = function() {
1492
- var writer = new jspb.BinaryWriter();
1493
- proto.Drumtracker.DrumProto.RetrieveRequest.serializeBinaryToWriter(this, writer);
1494
- return writer.getResultBuffer();
1495
- };
1496
-
1497
-
1498
- /**
1499
- * Serializes the given message to binary data (in protobuf wire
1500
- * format), writing to the given BinaryWriter.
1501
- * @param {!proto.Drumtracker.DrumProto.RetrieveRequest} message
1502
- * @param {!jspb.BinaryWriter} writer
1503
- * @suppress {unusedLocalVariables} f is only used for nested messages
1504
- */
1505
- proto.Drumtracker.DrumProto.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
1506
- var f = undefined;
1507
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
1508
- if (f != null) {
1509
- writer.writeInt64(
1510
- 1,
1511
- f
1512
- );
1513
- }
1514
- f = /** @type {number} */ (jspb.Message.getField(message, 2));
1515
- if (f != null) {
1516
- writer.writeInt64(
1517
- 2,
1518
- f
1519
- );
1520
- }
1521
- };
1522
-
1523
-
1524
- /**
1525
- * optional int64 id = 1;
1526
- * @return {number}
1527
- */
1528
- proto.Drumtracker.DrumProto.RetrieveRequest.prototype.getId = function() {
1529
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1530
- };
1531
-
1532
-
1533
- /**
1534
- * @param {number} value
1535
- * @return {!proto.Drumtracker.DrumProto.RetrieveRequest} returns this
1536
- */
1537
- proto.Drumtracker.DrumProto.RetrieveRequest.prototype.setId = function(value) {
1538
- return jspb.Message.setOneofField(this, 1, proto.Drumtracker.DrumProto.RetrieveRequest.oneofGroups_[0], value);
1539
- };
1540
-
1541
-
1542
- /**
1543
- * Clears the field making it undefined.
1544
- * @return {!proto.Drumtracker.DrumProto.RetrieveRequest} returns this
1545
- */
1546
- proto.Drumtracker.DrumProto.RetrieveRequest.prototype.clearId = function() {
1547
- return jspb.Message.setOneofField(this, 1, proto.Drumtracker.DrumProto.RetrieveRequest.oneofGroups_[0], undefined);
1548
- };
1549
-
1550
-
1551
- /**
1552
- * Returns whether this field is set.
1553
- * @return {boolean}
1554
- */
1555
- proto.Drumtracker.DrumProto.RetrieveRequest.prototype.hasId = function() {
1556
- return jspb.Message.getField(this, 1) != null;
1557
- };
1558
-
1559
-
1560
- /**
1561
- * optional int64 drum_number = 2;
1562
- * @return {number}
1563
- */
1564
- proto.Drumtracker.DrumProto.RetrieveRequest.prototype.getDrumNumber = function() {
1565
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1566
- };
1567
-
1568
-
1569
- /**
1570
- * @param {number} value
1571
- * @return {!proto.Drumtracker.DrumProto.RetrieveRequest} returns this
1572
- */
1573
- proto.Drumtracker.DrumProto.RetrieveRequest.prototype.setDrumNumber = function(value) {
1574
- return jspb.Message.setOneofField(this, 2, proto.Drumtracker.DrumProto.RetrieveRequest.oneofGroups_[0], value);
1575
- };
1576
-
1577
-
1578
- /**
1579
- * Clears the field making it undefined.
1580
- * @return {!proto.Drumtracker.DrumProto.RetrieveRequest} returns this
1581
- */
1582
- proto.Drumtracker.DrumProto.RetrieveRequest.prototype.clearDrumNumber = function() {
1583
- return jspb.Message.setOneofField(this, 2, proto.Drumtracker.DrumProto.RetrieveRequest.oneofGroups_[0], undefined);
1584
- };
1585
-
1586
-
1587
- /**
1588
- * Returns whether this field is set.
1589
- * @return {boolean}
1590
- */
1591
- proto.Drumtracker.DrumProto.RetrieveRequest.prototype.hasDrumNumber = function() {
1592
- return jspb.Message.getField(this, 2) != null;
1593
- };
1594
-
1595
-
1596
-
1597
-
1598
-
1599
- if (jspb.Message.GENERATE_TO_OBJECT) {
1600
- /**
1601
- * Creates an object representation of this proto.
1602
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1603
- * Optional fields that are not set will be set to undefined.
1604
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1605
- * For the list of reserved names please see:
1606
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1607
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1608
- * JSPB instance for transitional soy proto support:
1609
- * http://goto/soy-param-migration
1610
- * @return {!Object}
1611
- */
1612
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.toObject = function(opt_includeInstance) {
1613
- return proto.Drumtracker.DrumProto.UpdateRequest.toObject(opt_includeInstance, this);
1614
- };
1615
-
1616
-
1617
- /**
1618
- * Static version of the {@see toObject} method.
1619
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1620
- * the JSPB instance for transitional soy proto support:
1621
- * http://goto/soy-param-migration
1622
- * @param {!proto.Drumtracker.DrumProto.UpdateRequest} msg The msg instance to transform.
1623
- * @return {!Object}
1624
- * @suppress {unusedLocalVariables} f is only used for nested messages
1625
- */
1626
- proto.Drumtracker.DrumProto.UpdateRequest.toObject = function(includeInstance, msg) {
1627
- var f, obj = {
1628
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1629
- drumNumber: jspb.Message.getFieldWithDefault(msg, 2, 0),
1630
- drumType: (f = msg.getDrumType()) && proto.Drumtracker.DrumProto.DrumType.toObject(includeInstance, f),
1631
- cableType: (f = msg.getCableType()) && proto.Drumtracker.DrumProto.DrumType.toObject(includeInstance, f),
1632
- groupId: jspb.Message.getFieldWithDefault(msg, 5, ""),
1633
- cableLength: jspb.Message.getFieldWithDefault(msg, 6, 0),
1634
- residualLength: jspb.Message.getFieldWithDefault(msg, 7, 0),
1635
- salesReference: jspb.Message.getFieldWithDefault(msg, 8, ""),
1636
- customerReference: jspb.Message.getFieldWithDefault(msg, 9, "")
1637
- };
1638
-
1639
- if (includeInstance) {
1640
- obj.$jspbMessageInstance = msg;
1641
- }
1642
- return obj;
1643
- };
1644
- }
1645
-
1646
-
1647
- /**
1648
- * Deserializes binary data (in protobuf wire format).
1649
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1650
- * @return {!proto.Drumtracker.DrumProto.UpdateRequest}
1651
- */
1652
- proto.Drumtracker.DrumProto.UpdateRequest.deserializeBinary = function(bytes) {
1653
- var reader = new jspb.BinaryReader(bytes);
1654
- var msg = new proto.Drumtracker.DrumProto.UpdateRequest;
1655
- return proto.Drumtracker.DrumProto.UpdateRequest.deserializeBinaryFromReader(msg, reader);
1656
- };
1657
-
1658
-
1659
- /**
1660
- * Deserializes binary data (in protobuf wire format) from the
1661
- * given reader into the given message object.
1662
- * @param {!proto.Drumtracker.DrumProto.UpdateRequest} msg The message object to deserialize into.
1663
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1664
- * @return {!proto.Drumtracker.DrumProto.UpdateRequest}
1665
- */
1666
- proto.Drumtracker.DrumProto.UpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
1667
- while (reader.nextField()) {
1668
- if (reader.isEndGroup()) {
1669
- break;
1670
- }
1671
- var field = reader.getFieldNumber();
1672
- switch (field) {
1673
- case 1:
1674
- var value = /** @type {number} */ (reader.readInt64());
1675
- msg.setId(value);
1676
- break;
1677
- case 2:
1678
- var value = /** @type {number} */ (reader.readInt64());
1679
- msg.setDrumNumber(value);
1680
- break;
1681
- case 3:
1682
- var value = new proto.Drumtracker.DrumProto.DrumType;
1683
- reader.readMessage(value,proto.Drumtracker.DrumProto.DrumType.deserializeBinaryFromReader);
1684
- msg.setDrumType(value);
1685
- break;
1686
- case 4:
1687
- var value = new proto.Drumtracker.DrumProto.DrumType;
1688
- reader.readMessage(value,proto.Drumtracker.DrumProto.DrumType.deserializeBinaryFromReader);
1689
- msg.setCableType(value);
1690
- break;
1691
- case 5:
1692
- var value = /** @type {string} */ (reader.readString());
1693
- msg.setGroupId(value);
1694
- break;
1695
- case 6:
1696
- var value = /** @type {number} */ (reader.readInt32());
1697
- msg.setCableLength(value);
1698
- break;
1699
- case 7:
1700
- var value = /** @type {number} */ (reader.readInt32());
1701
- msg.setResidualLength(value);
1702
- break;
1703
- case 8:
1704
- var value = /** @type {string} */ (reader.readString());
1705
- msg.setSalesReference(value);
1706
- break;
1707
- case 9:
1708
- var value = /** @type {string} */ (reader.readString());
1709
- msg.setCustomerReference(value);
1710
- break;
1711
- default:
1712
- reader.skipField();
1713
- break;
1714
- }
1715
- }
1716
- return msg;
1717
- };
1718
-
1719
-
1720
- /**
1721
- * Serializes the message to binary data (in protobuf wire format).
1722
- * @return {!Uint8Array}
1723
- */
1724
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.serializeBinary = function() {
1725
- var writer = new jspb.BinaryWriter();
1726
- proto.Drumtracker.DrumProto.UpdateRequest.serializeBinaryToWriter(this, writer);
1727
- return writer.getResultBuffer();
1728
- };
1729
-
1730
-
1731
- /**
1732
- * Serializes the given message to binary data (in protobuf wire
1733
- * format), writing to the given BinaryWriter.
1734
- * @param {!proto.Drumtracker.DrumProto.UpdateRequest} message
1735
- * @param {!jspb.BinaryWriter} writer
1736
- * @suppress {unusedLocalVariables} f is only used for nested messages
1737
- */
1738
- proto.Drumtracker.DrumProto.UpdateRequest.serializeBinaryToWriter = function(message, writer) {
1739
- var f = undefined;
1740
- f = message.getId();
1741
- if (f !== 0) {
1742
- writer.writeInt64(
1743
- 1,
1744
- f
1745
- );
1746
- }
1747
- f = message.getDrumNumber();
1748
- if (f !== 0) {
1749
- writer.writeInt64(
1750
- 2,
1751
- f
1752
- );
1753
- }
1754
- f = message.getDrumType();
1755
- if (f != null) {
1756
- writer.writeMessage(
1757
- 3,
1758
- f,
1759
- proto.Drumtracker.DrumProto.DrumType.serializeBinaryToWriter
1760
- );
1761
- }
1762
- f = message.getCableType();
1763
- if (f != null) {
1764
- writer.writeMessage(
1765
- 4,
1766
- f,
1767
- proto.Drumtracker.DrumProto.DrumType.serializeBinaryToWriter
1768
- );
1769
- }
1770
- f = message.getGroupId();
1771
- if (f.length > 0) {
1772
- writer.writeString(
1773
- 5,
1774
- f
1775
- );
1776
- }
1777
- f = message.getCableLength();
1778
- if (f !== 0) {
1779
- writer.writeInt32(
1780
- 6,
1781
- f
1782
- );
1783
- }
1784
- f = message.getResidualLength();
1785
- if (f !== 0) {
1786
- writer.writeInt32(
1787
- 7,
1788
- f
1789
- );
1790
- }
1791
- f = message.getSalesReference();
1792
- if (f.length > 0) {
1793
- writer.writeString(
1794
- 8,
1795
- f
1796
- );
1797
- }
1798
- f = message.getCustomerReference();
1799
- if (f.length > 0) {
1800
- writer.writeString(
1801
- 9,
1802
- f
1803
- );
1804
- }
1805
- };
1806
-
1807
-
1808
- /**
1809
- * optional int64 id = 1;
1810
- * @return {number}
1811
- */
1812
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.getId = function() {
1813
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1814
- };
1815
-
1816
-
1817
- /**
1818
- * @param {number} value
1819
- * @return {!proto.Drumtracker.DrumProto.UpdateRequest} returns this
1820
- */
1821
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.setId = function(value) {
1822
- return jspb.Message.setProto3IntField(this, 1, value);
1823
- };
1824
-
1825
-
1826
- /**
1827
- * optional int64 drum_number = 2;
1828
- * @return {number}
1829
- */
1830
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.getDrumNumber = function() {
1831
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1832
- };
1833
-
1834
-
1835
- /**
1836
- * @param {number} value
1837
- * @return {!proto.Drumtracker.DrumProto.UpdateRequest} returns this
1838
- */
1839
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.setDrumNumber = function(value) {
1840
- return jspb.Message.setProto3IntField(this, 2, value);
1841
- };
1842
-
1843
-
1844
- /**
1845
- * optional DrumType drum_type = 3;
1846
- * @return {?proto.Drumtracker.DrumProto.DrumType}
1847
- */
1848
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.getDrumType = function() {
1849
- return /** @type{?proto.Drumtracker.DrumProto.DrumType} */ (
1850
- jspb.Message.getWrapperField(this, proto.Drumtracker.DrumProto.DrumType, 3));
1851
- };
1852
-
1853
-
1854
- /**
1855
- * @param {?proto.Drumtracker.DrumProto.DrumType|undefined} value
1856
- * @return {!proto.Drumtracker.DrumProto.UpdateRequest} returns this
1857
- */
1858
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.setDrumType = function(value) {
1859
- return jspb.Message.setWrapperField(this, 3, value);
1860
- };
1861
-
1862
-
1863
- /**
1864
- * Clears the message field making it undefined.
1865
- * @return {!proto.Drumtracker.DrumProto.UpdateRequest} returns this
1866
- */
1867
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.clearDrumType = function() {
1868
- return this.setDrumType(undefined);
1869
- };
1870
-
1871
-
1872
- /**
1873
- * Returns whether this field is set.
1874
- * @return {boolean}
1875
- */
1876
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.hasDrumType = function() {
1877
- return jspb.Message.getField(this, 3) != null;
1878
- };
1879
-
1880
-
1881
- /**
1882
- * optional DrumType cable_type = 4;
1883
- * @return {?proto.Drumtracker.DrumProto.DrumType}
1884
- */
1885
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.getCableType = function() {
1886
- return /** @type{?proto.Drumtracker.DrumProto.DrumType} */ (
1887
- jspb.Message.getWrapperField(this, proto.Drumtracker.DrumProto.DrumType, 4));
1888
- };
1889
-
1890
-
1891
- /**
1892
- * @param {?proto.Drumtracker.DrumProto.DrumType|undefined} value
1893
- * @return {!proto.Drumtracker.DrumProto.UpdateRequest} returns this
1894
- */
1895
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.setCableType = function(value) {
1896
- return jspb.Message.setWrapperField(this, 4, value);
1897
- };
1898
-
1899
-
1900
- /**
1901
- * Clears the message field making it undefined.
1902
- * @return {!proto.Drumtracker.DrumProto.UpdateRequest} returns this
1903
- */
1904
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.clearCableType = function() {
1905
- return this.setCableType(undefined);
1906
- };
1907
-
1908
-
1909
- /**
1910
- * Returns whether this field is set.
1911
- * @return {boolean}
1912
- */
1913
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.hasCableType = function() {
1914
- return jspb.Message.getField(this, 4) != null;
1915
- };
1916
-
1917
-
1918
- /**
1919
- * optional string group_id = 5;
1920
- * @return {string}
1921
- */
1922
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.getGroupId = function() {
1923
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1924
- };
1925
-
1926
-
1927
- /**
1928
- * @param {string} value
1929
- * @return {!proto.Drumtracker.DrumProto.UpdateRequest} returns this
1930
- */
1931
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.setGroupId = function(value) {
1932
- return jspb.Message.setProto3StringField(this, 5, value);
1933
- };
1934
-
1935
-
1936
- /**
1937
- * optional int32 cable_length = 6;
1938
- * @return {number}
1939
- */
1940
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.getCableLength = function() {
1941
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1942
- };
1943
-
1944
-
1945
- /**
1946
- * @param {number} value
1947
- * @return {!proto.Drumtracker.DrumProto.UpdateRequest} returns this
1948
- */
1949
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.setCableLength = function(value) {
1950
- return jspb.Message.setProto3IntField(this, 6, value);
1951
- };
1952
-
1953
-
1954
- /**
1955
- * optional int32 residual_length = 7;
1956
- * @return {number}
1957
- */
1958
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.getResidualLength = function() {
1959
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
1960
- };
1961
-
1962
-
1963
- /**
1964
- * @param {number} value
1965
- * @return {!proto.Drumtracker.DrumProto.UpdateRequest} returns this
1966
- */
1967
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.setResidualLength = function(value) {
1968
- return jspb.Message.setProto3IntField(this, 7, value);
1969
- };
1970
-
1971
-
1972
- /**
1973
- * optional string sales_reference = 8;
1974
- * @return {string}
1975
- */
1976
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.getSalesReference = function() {
1977
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1978
- };
1979
-
1980
-
1981
- /**
1982
- * @param {string} value
1983
- * @return {!proto.Drumtracker.DrumProto.UpdateRequest} returns this
1984
- */
1985
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.setSalesReference = function(value) {
1986
- return jspb.Message.setProto3StringField(this, 8, value);
1987
- };
1988
-
1989
-
1990
- /**
1991
- * optional string customer_reference = 9;
1992
- * @return {string}
1993
- */
1994
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.getCustomerReference = function() {
1995
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1996
- };
1997
-
1998
-
1999
- /**
2000
- * @param {string} value
2001
- * @return {!proto.Drumtracker.DrumProto.UpdateRequest} returns this
2002
- */
2003
- proto.Drumtracker.DrumProto.UpdateRequest.prototype.setCustomerReference = function(value) {
2004
- return jspb.Message.setProto3StringField(this, 9, value);
2005
- };
2006
-
2007
-
2008
-
2009
- /**
2010
- * Oneof group definitions for this message. Each group defines the field
2011
- * numbers belonging to that group. When of these fields' value is set, all
2012
- * other fields in the group are cleared. During deserialization, if multiple
2013
- * fields are encountered for a group, only the last value seen will be kept.
2014
- * @private {!Array<!Array<number>>}
2015
- * @const
2016
- */
2017
- proto.Drumtracker.DrumProto.DeleteRequest.oneofGroups_ = [[1,2]];
2018
-
2019
- /**
2020
- * @enum {number}
2021
- */
2022
- proto.Drumtracker.DrumProto.DeleteRequest.SearchCase = {
2023
- SEARCH_NOT_SET: 0,
2024
- ID: 1,
2025
- DRUM_NUMBER: 2
2026
- };
2027
-
2028
- /**
2029
- * @return {proto.Drumtracker.DrumProto.DeleteRequest.SearchCase}
2030
- */
2031
- proto.Drumtracker.DrumProto.DeleteRequest.prototype.getSearchCase = function() {
2032
- return /** @type {proto.Drumtracker.DrumProto.DeleteRequest.SearchCase} */(jspb.Message.computeOneofCase(this, proto.Drumtracker.DrumProto.DeleteRequest.oneofGroups_[0]));
2033
- };
2034
-
2035
-
2036
-
2037
- if (jspb.Message.GENERATE_TO_OBJECT) {
2038
- /**
2039
- * Creates an object representation of this proto.
2040
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2041
- * Optional fields that are not set will be set to undefined.
2042
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2043
- * For the list of reserved names please see:
2044
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2045
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2046
- * JSPB instance for transitional soy proto support:
2047
- * http://goto/soy-param-migration
2048
- * @return {!Object}
2049
- */
2050
- proto.Drumtracker.DrumProto.DeleteRequest.prototype.toObject = function(opt_includeInstance) {
2051
- return proto.Drumtracker.DrumProto.DeleteRequest.toObject(opt_includeInstance, this);
2052
- };
2053
-
2054
-
2055
- /**
2056
- * Static version of the {@see toObject} method.
2057
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2058
- * the JSPB instance for transitional soy proto support:
2059
- * http://goto/soy-param-migration
2060
- * @param {!proto.Drumtracker.DrumProto.DeleteRequest} msg The msg instance to transform.
2061
- * @return {!Object}
2062
- * @suppress {unusedLocalVariables} f is only used for nested messages
2063
- */
2064
- proto.Drumtracker.DrumProto.DeleteRequest.toObject = function(includeInstance, msg) {
2065
- var f, obj = {
2066
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2067
- drumNumber: jspb.Message.getFieldWithDefault(msg, 2, 0)
2068
- };
2069
-
2070
- if (includeInstance) {
2071
- obj.$jspbMessageInstance = msg;
2072
- }
2073
- return obj;
2074
- };
2075
- }
2076
-
2077
-
2078
- /**
2079
- * Deserializes binary data (in protobuf wire format).
2080
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2081
- * @return {!proto.Drumtracker.DrumProto.DeleteRequest}
2082
- */
2083
- proto.Drumtracker.DrumProto.DeleteRequest.deserializeBinary = function(bytes) {
2084
- var reader = new jspb.BinaryReader(bytes);
2085
- var msg = new proto.Drumtracker.DrumProto.DeleteRequest;
2086
- return proto.Drumtracker.DrumProto.DeleteRequest.deserializeBinaryFromReader(msg, reader);
2087
- };
2088
-
2089
-
2090
- /**
2091
- * Deserializes binary data (in protobuf wire format) from the
2092
- * given reader into the given message object.
2093
- * @param {!proto.Drumtracker.DrumProto.DeleteRequest} msg The message object to deserialize into.
2094
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2095
- * @return {!proto.Drumtracker.DrumProto.DeleteRequest}
2096
- */
2097
- proto.Drumtracker.DrumProto.DeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
2098
- while (reader.nextField()) {
2099
- if (reader.isEndGroup()) {
2100
- break;
2101
- }
2102
- var field = reader.getFieldNumber();
2103
- switch (field) {
2104
- case 1:
2105
- var value = /** @type {number} */ (reader.readInt64());
2106
- msg.setId(value);
2107
- break;
2108
- case 2:
2109
- var value = /** @type {number} */ (reader.readInt64());
2110
- msg.setDrumNumber(value);
2111
- break;
2112
- default:
2113
- reader.skipField();
2114
- break;
2115
- }
2116
- }
2117
- return msg;
2118
- };
2119
-
2120
-
2121
- /**
2122
- * Serializes the message to binary data (in protobuf wire format).
2123
- * @return {!Uint8Array}
2124
- */
2125
- proto.Drumtracker.DrumProto.DeleteRequest.prototype.serializeBinary = function() {
2126
- var writer = new jspb.BinaryWriter();
2127
- proto.Drumtracker.DrumProto.DeleteRequest.serializeBinaryToWriter(this, writer);
2128
- return writer.getResultBuffer();
2129
- };
2130
-
2131
-
2132
- /**
2133
- * Serializes the given message to binary data (in protobuf wire
2134
- * format), writing to the given BinaryWriter.
2135
- * @param {!proto.Drumtracker.DrumProto.DeleteRequest} message
2136
- * @param {!jspb.BinaryWriter} writer
2137
- * @suppress {unusedLocalVariables} f is only used for nested messages
2138
- */
2139
- proto.Drumtracker.DrumProto.DeleteRequest.serializeBinaryToWriter = function(message, writer) {
2140
- var f = undefined;
2141
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
2142
- if (f != null) {
2143
- writer.writeInt64(
2144
- 1,
2145
- f
2146
- );
2147
- }
2148
- f = /** @type {number} */ (jspb.Message.getField(message, 2));
2149
- if (f != null) {
2150
- writer.writeInt64(
2151
- 2,
2152
- f
2153
- );
2154
- }
2155
- };
2156
-
2157
-
2158
- /**
2159
- * optional int64 id = 1;
2160
- * @return {number}
2161
- */
2162
- proto.Drumtracker.DrumProto.DeleteRequest.prototype.getId = function() {
2163
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2164
- };
2165
-
2166
-
2167
- /**
2168
- * @param {number} value
2169
- * @return {!proto.Drumtracker.DrumProto.DeleteRequest} returns this
2170
- */
2171
- proto.Drumtracker.DrumProto.DeleteRequest.prototype.setId = function(value) {
2172
- return jspb.Message.setOneofField(this, 1, proto.Drumtracker.DrumProto.DeleteRequest.oneofGroups_[0], value);
2173
- };
2174
-
2175
-
2176
- /**
2177
- * Clears the field making it undefined.
2178
- * @return {!proto.Drumtracker.DrumProto.DeleteRequest} returns this
2179
- */
2180
- proto.Drumtracker.DrumProto.DeleteRequest.prototype.clearId = function() {
2181
- return jspb.Message.setOneofField(this, 1, proto.Drumtracker.DrumProto.DeleteRequest.oneofGroups_[0], undefined);
2182
- };
2183
-
2184
-
2185
- /**
2186
- * Returns whether this field is set.
2187
- * @return {boolean}
2188
- */
2189
- proto.Drumtracker.DrumProto.DeleteRequest.prototype.hasId = function() {
2190
- return jspb.Message.getField(this, 1) != null;
2191
- };
2192
-
2193
-
2194
- /**
2195
- * optional int64 drum_number = 2;
2196
- * @return {number}
2197
- */
2198
- proto.Drumtracker.DrumProto.DeleteRequest.prototype.getDrumNumber = function() {
2199
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2200
- };
2201
-
2202
-
2203
- /**
2204
- * @param {number} value
2205
- * @return {!proto.Drumtracker.DrumProto.DeleteRequest} returns this
2206
- */
2207
- proto.Drumtracker.DrumProto.DeleteRequest.prototype.setDrumNumber = function(value) {
2208
- return jspb.Message.setOneofField(this, 2, proto.Drumtracker.DrumProto.DeleteRequest.oneofGroups_[0], value);
2209
- };
2210
-
2211
-
2212
- /**
2213
- * Clears the field making it undefined.
2214
- * @return {!proto.Drumtracker.DrumProto.DeleteRequest} returns this
2215
- */
2216
- proto.Drumtracker.DrumProto.DeleteRequest.prototype.clearDrumNumber = function() {
2217
- return jspb.Message.setOneofField(this, 2, proto.Drumtracker.DrumProto.DeleteRequest.oneofGroups_[0], undefined);
2218
- };
2219
-
2220
-
2221
- /**
2222
- * Returns whether this field is set.
2223
- * @return {boolean}
2224
- */
2225
- proto.Drumtracker.DrumProto.DeleteRequest.prototype.hasDrumNumber = function() {
2226
- return jspb.Message.getField(this, 2) != null;
2227
- };
2228
-
2229
-
2230
-
2231
-
2232
-
2233
- if (jspb.Message.GENERATE_TO_OBJECT) {
2234
- /**
2235
- * Creates an object representation of this proto.
2236
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2237
- * Optional fields that are not set will be set to undefined.
2238
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2239
- * For the list of reserved names please see:
2240
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2241
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2242
- * JSPB instance for transitional soy proto support:
2243
- * http://goto/soy-param-migration
2244
- * @return {!Object}
2245
- */
2246
- proto.Drumtracker.DrumProto.DeleteReply.prototype.toObject = function(opt_includeInstance) {
2247
- return proto.Drumtracker.DrumProto.DeleteReply.toObject(opt_includeInstance, this);
2248
- };
2249
-
2250
-
2251
- /**
2252
- * Static version of the {@see toObject} method.
2253
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2254
- * the JSPB instance for transitional soy proto support:
2255
- * http://goto/soy-param-migration
2256
- * @param {!proto.Drumtracker.DrumProto.DeleteReply} msg The msg instance to transform.
2257
- * @return {!Object}
2258
- * @suppress {unusedLocalVariables} f is only used for nested messages
2259
- */
2260
- proto.Drumtracker.DrumProto.DeleteReply.toObject = function(includeInstance, msg) {
2261
- var f, obj = {
2262
-
2263
- };
2264
-
2265
- if (includeInstance) {
2266
- obj.$jspbMessageInstance = msg;
2267
- }
2268
- return obj;
2269
- };
2270
- }
2271
-
2272
-
2273
- /**
2274
- * Deserializes binary data (in protobuf wire format).
2275
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2276
- * @return {!proto.Drumtracker.DrumProto.DeleteReply}
2277
- */
2278
- proto.Drumtracker.DrumProto.DeleteReply.deserializeBinary = function(bytes) {
2279
- var reader = new jspb.BinaryReader(bytes);
2280
- var msg = new proto.Drumtracker.DrumProto.DeleteReply;
2281
- return proto.Drumtracker.DrumProto.DeleteReply.deserializeBinaryFromReader(msg, reader);
2282
- };
2283
-
2284
-
2285
- /**
2286
- * Deserializes binary data (in protobuf wire format) from the
2287
- * given reader into the given message object.
2288
- * @param {!proto.Drumtracker.DrumProto.DeleteReply} msg The message object to deserialize into.
2289
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2290
- * @return {!proto.Drumtracker.DrumProto.DeleteReply}
2291
- */
2292
- proto.Drumtracker.DrumProto.DeleteReply.deserializeBinaryFromReader = function(msg, reader) {
2293
- while (reader.nextField()) {
2294
- if (reader.isEndGroup()) {
2295
- break;
2296
- }
2297
- var field = reader.getFieldNumber();
2298
- switch (field) {
2299
- default:
2300
- reader.skipField();
2301
- break;
2302
- }
2303
- }
2304
- return msg;
2305
- };
2306
-
2307
-
2308
- /**
2309
- * Serializes the message to binary data (in protobuf wire format).
2310
- * @return {!Uint8Array}
2311
- */
2312
- proto.Drumtracker.DrumProto.DeleteReply.prototype.serializeBinary = function() {
2313
- var writer = new jspb.BinaryWriter();
2314
- proto.Drumtracker.DrumProto.DeleteReply.serializeBinaryToWriter(this, writer);
2315
- return writer.getResultBuffer();
2316
- };
2317
-
2318
-
2319
- /**
2320
- * Serializes the given message to binary data (in protobuf wire
2321
- * format), writing to the given BinaryWriter.
2322
- * @param {!proto.Drumtracker.DrumProto.DeleteReply} message
2323
- * @param {!jspb.BinaryWriter} writer
2324
- * @suppress {unusedLocalVariables} f is only used for nested messages
2325
- */
2326
- proto.Drumtracker.DrumProto.DeleteReply.serializeBinaryToWriter = function(message, writer) {
2327
- var f = undefined;
2328
- };
2329
-
2330
-
2331
-
2332
-
2333
-
2334
- if (jspb.Message.GENERATE_TO_OBJECT) {
2335
- /**
2336
- * Creates an object representation of this proto.
2337
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2338
- * Optional fields that are not set will be set to undefined.
2339
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2340
- * For the list of reserved names please see:
2341
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2342
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2343
- * JSPB instance for transitional soy proto support:
2344
- * http://goto/soy-param-migration
2345
- * @return {!Object}
2346
- */
2347
- proto.Drumtracker.DrumProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
2348
- return proto.Drumtracker.DrumProto.SearchRequest.toObject(opt_includeInstance, this);
2349
- };
2350
-
2351
-
2352
- /**
2353
- * Static version of the {@see toObject} method.
2354
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2355
- * the JSPB instance for transitional soy proto support:
2356
- * http://goto/soy-param-migration
2357
- * @param {!proto.Drumtracker.DrumProto.SearchRequest} msg The msg instance to transform.
2358
- * @return {!Object}
2359
- * @suppress {unusedLocalVariables} f is only used for nested messages
2360
- */
2361
- proto.Drumtracker.DrumProto.SearchRequest.toObject = function(includeInstance, msg) {
2362
- var f, obj = {
2363
- filters: (f = msg.getFilters()) && proto.Drumtracker.DrumProto.DrumFilters.toObject(includeInstance, f),
2364
- page: jspb.Message.getFieldWithDefault(msg, 2, 0),
2365
- count: jspb.Message.getFieldWithDefault(msg, 3, 0)
2366
- };
2367
-
2368
- if (includeInstance) {
2369
- obj.$jspbMessageInstance = msg;
2370
- }
2371
- return obj;
2372
- };
2373
- }
2374
-
2375
-
2376
- /**
2377
- * Deserializes binary data (in protobuf wire format).
2378
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2379
- * @return {!proto.Drumtracker.DrumProto.SearchRequest}
2380
- */
2381
- proto.Drumtracker.DrumProto.SearchRequest.deserializeBinary = function(bytes) {
2382
- var reader = new jspb.BinaryReader(bytes);
2383
- var msg = new proto.Drumtracker.DrumProto.SearchRequest;
2384
- return proto.Drumtracker.DrumProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
2385
- };
2386
-
2387
-
2388
- /**
2389
- * Deserializes binary data (in protobuf wire format) from the
2390
- * given reader into the given message object.
2391
- * @param {!proto.Drumtracker.DrumProto.SearchRequest} msg The message object to deserialize into.
2392
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2393
- * @return {!proto.Drumtracker.DrumProto.SearchRequest}
2394
- */
2395
- proto.Drumtracker.DrumProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
2396
- while (reader.nextField()) {
2397
- if (reader.isEndGroup()) {
2398
- break;
2399
- }
2400
- var field = reader.getFieldNumber();
2401
- switch (field) {
2402
- case 1:
2403
- var value = new proto.Drumtracker.DrumProto.DrumFilters;
2404
- reader.readMessage(value,proto.Drumtracker.DrumProto.DrumFilters.deserializeBinaryFromReader);
2405
- msg.setFilters(value);
2406
- break;
2407
- case 2:
2408
- var value = /** @type {number} */ (reader.readInt32());
2409
- msg.setPage(value);
2410
- break;
2411
- case 3:
2412
- var value = /** @type {number} */ (reader.readInt32());
2413
- msg.setCount(value);
2414
- break;
2415
- default:
2416
- reader.skipField();
2417
- break;
2418
- }
2419
- }
2420
- return msg;
2421
- };
2422
-
2423
-
2424
- /**
2425
- * Serializes the message to binary data (in protobuf wire format).
2426
- * @return {!Uint8Array}
2427
- */
2428
- proto.Drumtracker.DrumProto.SearchRequest.prototype.serializeBinary = function() {
2429
- var writer = new jspb.BinaryWriter();
2430
- proto.Drumtracker.DrumProto.SearchRequest.serializeBinaryToWriter(this, writer);
2431
- return writer.getResultBuffer();
2432
- };
2433
-
2434
-
2435
- /**
2436
- * Serializes the given message to binary data (in protobuf wire
2437
- * format), writing to the given BinaryWriter.
2438
- * @param {!proto.Drumtracker.DrumProto.SearchRequest} message
2439
- * @param {!jspb.BinaryWriter} writer
2440
- * @suppress {unusedLocalVariables} f is only used for nested messages
2441
- */
2442
- proto.Drumtracker.DrumProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
2443
- var f = undefined;
2444
- f = message.getFilters();
2445
- if (f != null) {
2446
- writer.writeMessage(
2447
- 1,
2448
- f,
2449
- proto.Drumtracker.DrumProto.DrumFilters.serializeBinaryToWriter
2450
- );
2451
- }
2452
- f = message.getPage();
2453
- if (f !== 0) {
2454
- writer.writeInt32(
2455
- 2,
2456
- f
2457
- );
2458
- }
2459
- f = message.getCount();
2460
- if (f !== 0) {
2461
- writer.writeInt32(
2462
- 3,
2463
- f
2464
- );
2465
- }
2466
- };
2467
-
2468
-
2469
- /**
2470
- * optional DrumFilters filters = 1;
2471
- * @return {?proto.Drumtracker.DrumProto.DrumFilters}
2472
- */
2473
- proto.Drumtracker.DrumProto.SearchRequest.prototype.getFilters = function() {
2474
- return /** @type{?proto.Drumtracker.DrumProto.DrumFilters} */ (
2475
- jspb.Message.getWrapperField(this, proto.Drumtracker.DrumProto.DrumFilters, 1));
2476
- };
2477
-
2478
-
2479
- /**
2480
- * @param {?proto.Drumtracker.DrumProto.DrumFilters|undefined} value
2481
- * @return {!proto.Drumtracker.DrumProto.SearchRequest} returns this
2482
- */
2483
- proto.Drumtracker.DrumProto.SearchRequest.prototype.setFilters = function(value) {
2484
- return jspb.Message.setWrapperField(this, 1, value);
2485
- };
2486
-
2487
-
2488
- /**
2489
- * Clears the message field making it undefined.
2490
- * @return {!proto.Drumtracker.DrumProto.SearchRequest} returns this
2491
- */
2492
- proto.Drumtracker.DrumProto.SearchRequest.prototype.clearFilters = function() {
2493
- return this.setFilters(undefined);
2494
- };
2495
-
2496
-
2497
- /**
2498
- * Returns whether this field is set.
2499
- * @return {boolean}
2500
- */
2501
- proto.Drumtracker.DrumProto.SearchRequest.prototype.hasFilters = function() {
2502
- return jspb.Message.getField(this, 1) != null;
2503
- };
2504
-
2505
-
2506
- /**
2507
- * optional int32 page = 2;
2508
- * @return {number}
2509
- */
2510
- proto.Drumtracker.DrumProto.SearchRequest.prototype.getPage = function() {
2511
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2512
- };
2513
-
2514
-
2515
- /**
2516
- * @param {number} value
2517
- * @return {!proto.Drumtracker.DrumProto.SearchRequest} returns this
2518
- */
2519
- proto.Drumtracker.DrumProto.SearchRequest.prototype.setPage = function(value) {
2520
- return jspb.Message.setProto3IntField(this, 2, value);
2521
- };
2522
-
2523
-
2524
- /**
2525
- * optional int32 count = 3;
2526
- * @return {number}
2527
- */
2528
- proto.Drumtracker.DrumProto.SearchRequest.prototype.getCount = function() {
2529
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2530
- };
2531
-
2532
-
2533
- /**
2534
- * @param {number} value
2535
- * @return {!proto.Drumtracker.DrumProto.SearchRequest} returns this
2536
- */
2537
- proto.Drumtracker.DrumProto.SearchRequest.prototype.setCount = function(value) {
2538
- return jspb.Message.setProto3IntField(this, 3, value);
2539
- };
2540
-
2541
-
2542
-
2543
- /**
2544
- * List of repeated fields within this message type.
2545
- * @private {!Array<number>}
2546
- * @const
2547
- */
2548
- proto.Drumtracker.DrumProto.SearchReply.repeatedFields_ = [1];
2549
-
2550
-
2551
-
2552
- if (jspb.Message.GENERATE_TO_OBJECT) {
2553
- /**
2554
- * Creates an object representation of this proto.
2555
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2556
- * Optional fields that are not set will be set to undefined.
2557
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2558
- * For the list of reserved names please see:
2559
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2560
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2561
- * JSPB instance for transitional soy proto support:
2562
- * http://goto/soy-param-migration
2563
- * @return {!Object}
2564
- */
2565
- proto.Drumtracker.DrumProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
2566
- return proto.Drumtracker.DrumProto.SearchReply.toObject(opt_includeInstance, this);
2567
- };
2568
-
2569
-
2570
- /**
2571
- * Static version of the {@see toObject} method.
2572
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2573
- * the JSPB instance for transitional soy proto support:
2574
- * http://goto/soy-param-migration
2575
- * @param {!proto.Drumtracker.DrumProto.SearchReply} msg The msg instance to transform.
2576
- * @return {!Object}
2577
- * @suppress {unusedLocalVariables} f is only used for nested messages
2578
- */
2579
- proto.Drumtracker.DrumProto.SearchReply.toObject = function(includeInstance, msg) {
2580
- var f, obj = {
2581
- drumsList: jspb.Message.toObjectList(msg.getDrumsList(),
2582
- proto.Drumtracker.DrumProto.toObject, includeInstance),
2583
- pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
2584
- };
2585
-
2586
- if (includeInstance) {
2587
- obj.$jspbMessageInstance = msg;
2588
- }
2589
- return obj;
2590
- };
2591
- }
2592
-
2593
-
2594
- /**
2595
- * Deserializes binary data (in protobuf wire format).
2596
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2597
- * @return {!proto.Drumtracker.DrumProto.SearchReply}
2598
- */
2599
- proto.Drumtracker.DrumProto.SearchReply.deserializeBinary = function(bytes) {
2600
- var reader = new jspb.BinaryReader(bytes);
2601
- var msg = new proto.Drumtracker.DrumProto.SearchReply;
2602
- return proto.Drumtracker.DrumProto.SearchReply.deserializeBinaryFromReader(msg, reader);
2603
- };
2604
-
2605
-
2606
- /**
2607
- * Deserializes binary data (in protobuf wire format) from the
2608
- * given reader into the given message object.
2609
- * @param {!proto.Drumtracker.DrumProto.SearchReply} msg The message object to deserialize into.
2610
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2611
- * @return {!proto.Drumtracker.DrumProto.SearchReply}
2612
- */
2613
- proto.Drumtracker.DrumProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
2614
- while (reader.nextField()) {
2615
- if (reader.isEndGroup()) {
2616
- break;
2617
- }
2618
- var field = reader.getFieldNumber();
2619
- switch (field) {
2620
- case 1:
2621
- var value = new proto.Drumtracker.DrumProto;
2622
- reader.readMessage(value,proto.Drumtracker.DrumProto.deserializeBinaryFromReader);
2623
- msg.addDrums(value);
2624
- break;
2625
- case 2:
2626
- var value = new platform_pagination_pb.PaginationProto;
2627
- reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
2628
- msg.setPagination(value);
2629
- break;
2630
- default:
2631
- reader.skipField();
2632
- break;
2633
- }
2634
- }
2635
- return msg;
2636
- };
2637
-
2638
-
2639
- /**
2640
- * Serializes the message to binary data (in protobuf wire format).
2641
- * @return {!Uint8Array}
2642
- */
2643
- proto.Drumtracker.DrumProto.SearchReply.prototype.serializeBinary = function() {
2644
- var writer = new jspb.BinaryWriter();
2645
- proto.Drumtracker.DrumProto.SearchReply.serializeBinaryToWriter(this, writer);
2646
- return writer.getResultBuffer();
2647
- };
2648
-
2649
-
2650
- /**
2651
- * Serializes the given message to binary data (in protobuf wire
2652
- * format), writing to the given BinaryWriter.
2653
- * @param {!proto.Drumtracker.DrumProto.SearchReply} message
2654
- * @param {!jspb.BinaryWriter} writer
2655
- * @suppress {unusedLocalVariables} f is only used for nested messages
2656
- */
2657
- proto.Drumtracker.DrumProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
2658
- var f = undefined;
2659
- f = message.getDrumsList();
2660
- if (f.length > 0) {
2661
- writer.writeRepeatedMessage(
2662
- 1,
2663
- f,
2664
- proto.Drumtracker.DrumProto.serializeBinaryToWriter
2665
- );
2666
- }
2667
- f = message.getPagination();
2668
- if (f != null) {
2669
- writer.writeMessage(
2670
- 2,
2671
- f,
2672
- platform_pagination_pb.PaginationProto.serializeBinaryToWriter
2673
- );
2674
- }
2675
- };
2676
-
2677
-
2678
- /**
2679
- * repeated DrumProto drums = 1;
2680
- * @return {!Array<!proto.Drumtracker.DrumProto>}
2681
- */
2682
- proto.Drumtracker.DrumProto.SearchReply.prototype.getDrumsList = function() {
2683
- return /** @type{!Array<!proto.Drumtracker.DrumProto>} */ (
2684
- jspb.Message.getRepeatedWrapperField(this, proto.Drumtracker.DrumProto, 1));
2685
- };
2686
-
2687
-
2688
- /**
2689
- * @param {!Array<!proto.Drumtracker.DrumProto>} value
2690
- * @return {!proto.Drumtracker.DrumProto.SearchReply} returns this
2691
- */
2692
- proto.Drumtracker.DrumProto.SearchReply.prototype.setDrumsList = function(value) {
2693
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
2694
- };
2695
-
2696
-
2697
- /**
2698
- * @param {!proto.Drumtracker.DrumProto=} opt_value
2699
- * @param {number=} opt_index
2700
- * @return {!proto.Drumtracker.DrumProto}
2701
- */
2702
- proto.Drumtracker.DrumProto.SearchReply.prototype.addDrums = function(opt_value, opt_index) {
2703
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Drumtracker.DrumProto, opt_index);
2704
- };
2705
-
2706
-
2707
- /**
2708
- * Clears the list making it empty but non-null.
2709
- * @return {!proto.Drumtracker.DrumProto.SearchReply} returns this
2710
- */
2711
- proto.Drumtracker.DrumProto.SearchReply.prototype.clearDrumsList = function() {
2712
- return this.setDrumsList([]);
2713
- };
2714
-
2715
-
2716
- /**
2717
- * optional Platform.PaginationProto pagination = 2;
2718
- * @return {?proto.Platform.PaginationProto}
2719
- */
2720
- proto.Drumtracker.DrumProto.SearchReply.prototype.getPagination = function() {
2721
- return /** @type{?proto.Platform.PaginationProto} */ (
2722
- jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
2723
- };
2724
-
2725
-
2726
- /**
2727
- * @param {?proto.Platform.PaginationProto|undefined} value
2728
- * @return {!proto.Drumtracker.DrumProto.SearchReply} returns this
2729
- */
2730
- proto.Drumtracker.DrumProto.SearchReply.prototype.setPagination = function(value) {
2731
- return jspb.Message.setWrapperField(this, 2, value);
2732
- };
2733
-
2734
-
2735
- /**
2736
- * Clears the message field making it undefined.
2737
- * @return {!proto.Drumtracker.DrumProto.SearchReply} returns this
2738
- */
2739
- proto.Drumtracker.DrumProto.SearchReply.prototype.clearPagination = function() {
2740
- return this.setPagination(undefined);
2741
- };
2742
-
2743
-
2744
- /**
2745
- * Returns whether this field is set.
2746
- * @return {boolean}
2747
- */
2748
- proto.Drumtracker.DrumProto.SearchReply.prototype.hasPagination = function() {
2749
- return jspb.Message.getField(this, 2) != null;
2750
- };
2751
-
2752
-
2753
-
2754
-
2755
-
2756
- if (jspb.Message.GENERATE_TO_OBJECT) {
2757
- /**
2758
- * Creates an object representation of this proto.
2759
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2760
- * Optional fields that are not set will be set to undefined.
2761
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2762
- * For the list of reserved names please see:
2763
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2764
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2765
- * JSPB instance for transitional soy proto support:
2766
- * http://goto/soy-param-migration
2767
- * @return {!Object}
2768
- */
2769
- proto.Drumtracker.DrumProto.LocationSearchRequest.prototype.toObject = function(opt_includeInstance) {
2770
- return proto.Drumtracker.DrumProto.LocationSearchRequest.toObject(opt_includeInstance, this);
2771
- };
2772
-
2773
-
2774
- /**
2775
- * Static version of the {@see toObject} method.
2776
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2777
- * the JSPB instance for transitional soy proto support:
2778
- * http://goto/soy-param-migration
2779
- * @param {!proto.Drumtracker.DrumProto.LocationSearchRequest} msg The msg instance to transform.
2780
- * @return {!Object}
2781
- * @suppress {unusedLocalVariables} f is only used for nested messages
2782
- */
2783
- proto.Drumtracker.DrumProto.LocationSearchRequest.toObject = function(includeInstance, msg) {
2784
- var f, obj = {
2785
- filters: (f = msg.getFilters()) && proto.Drumtracker.DrumProto.DrumFilters.toObject(includeInstance, f),
2786
- latmax: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
2787
- latmin: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
2788
- lngmax: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
2789
- lngmin: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
2790
- };
2791
-
2792
- if (includeInstance) {
2793
- obj.$jspbMessageInstance = msg;
2794
- }
2795
- return obj;
2796
- };
2797
- }
2798
-
2799
-
2800
- /**
2801
- * Deserializes binary data (in protobuf wire format).
2802
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2803
- * @return {!proto.Drumtracker.DrumProto.LocationSearchRequest}
2804
- */
2805
- proto.Drumtracker.DrumProto.LocationSearchRequest.deserializeBinary = function(bytes) {
2806
- var reader = new jspb.BinaryReader(bytes);
2807
- var msg = new proto.Drumtracker.DrumProto.LocationSearchRequest;
2808
- return proto.Drumtracker.DrumProto.LocationSearchRequest.deserializeBinaryFromReader(msg, reader);
2809
- };
2810
-
2811
-
2812
- /**
2813
- * Deserializes binary data (in protobuf wire format) from the
2814
- * given reader into the given message object.
2815
- * @param {!proto.Drumtracker.DrumProto.LocationSearchRequest} msg The message object to deserialize into.
2816
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2817
- * @return {!proto.Drumtracker.DrumProto.LocationSearchRequest}
2818
- */
2819
- proto.Drumtracker.DrumProto.LocationSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
2820
- while (reader.nextField()) {
2821
- if (reader.isEndGroup()) {
2822
- break;
2823
- }
2824
- var field = reader.getFieldNumber();
2825
- switch (field) {
2826
- case 1:
2827
- var value = new proto.Drumtracker.DrumProto.DrumFilters;
2828
- reader.readMessage(value,proto.Drumtracker.DrumProto.DrumFilters.deserializeBinaryFromReader);
2829
- msg.setFilters(value);
2830
- break;
2831
- case 2:
2832
- var value = /** @type {number} */ (reader.readDouble());
2833
- msg.setLatmax(value);
2834
- break;
2835
- case 3:
2836
- var value = /** @type {number} */ (reader.readDouble());
2837
- msg.setLatmin(value);
2838
- break;
2839
- case 4:
2840
- var value = /** @type {number} */ (reader.readDouble());
2841
- msg.setLngmax(value);
2842
- break;
2843
- case 5:
2844
- var value = /** @type {number} */ (reader.readDouble());
2845
- msg.setLngmin(value);
2846
- break;
2847
- default:
2848
- reader.skipField();
2849
- break;
2850
- }
2851
- }
2852
- return msg;
2853
- };
2854
-
2855
-
2856
- /**
2857
- * Serializes the message to binary data (in protobuf wire format).
2858
- * @return {!Uint8Array}
2859
- */
2860
- proto.Drumtracker.DrumProto.LocationSearchRequest.prototype.serializeBinary = function() {
2861
- var writer = new jspb.BinaryWriter();
2862
- proto.Drumtracker.DrumProto.LocationSearchRequest.serializeBinaryToWriter(this, writer);
2863
- return writer.getResultBuffer();
2864
- };
2865
-
2866
-
2867
- /**
2868
- * Serializes the given message to binary data (in protobuf wire
2869
- * format), writing to the given BinaryWriter.
2870
- * @param {!proto.Drumtracker.DrumProto.LocationSearchRequest} message
2871
- * @param {!jspb.BinaryWriter} writer
2872
- * @suppress {unusedLocalVariables} f is only used for nested messages
2873
- */
2874
- proto.Drumtracker.DrumProto.LocationSearchRequest.serializeBinaryToWriter = function(message, writer) {
2875
- var f = undefined;
2876
- f = message.getFilters();
2877
- if (f != null) {
2878
- writer.writeMessage(
2879
- 1,
2880
- f,
2881
- proto.Drumtracker.DrumProto.DrumFilters.serializeBinaryToWriter
2882
- );
2883
- }
2884
- f = message.getLatmax();
2885
- if (f !== 0.0) {
2886
- writer.writeDouble(
2887
- 2,
2888
- f
2889
- );
2890
- }
2891
- f = message.getLatmin();
2892
- if (f !== 0.0) {
2893
- writer.writeDouble(
2894
- 3,
2895
- f
2896
- );
2897
- }
2898
- f = message.getLngmax();
2899
- if (f !== 0.0) {
2900
- writer.writeDouble(
2901
- 4,
2902
- f
2903
- );
2904
- }
2905
- f = message.getLngmin();
2906
- if (f !== 0.0) {
2907
- writer.writeDouble(
2908
- 5,
2909
- f
2910
- );
2911
- }
2912
- };
2913
-
2914
-
2915
- /**
2916
- * optional DrumFilters filters = 1;
2917
- * @return {?proto.Drumtracker.DrumProto.DrumFilters}
2918
- */
2919
- proto.Drumtracker.DrumProto.LocationSearchRequest.prototype.getFilters = function() {
2920
- return /** @type{?proto.Drumtracker.DrumProto.DrumFilters} */ (
2921
- jspb.Message.getWrapperField(this, proto.Drumtracker.DrumProto.DrumFilters, 1));
2922
- };
2923
-
2924
-
2925
- /**
2926
- * @param {?proto.Drumtracker.DrumProto.DrumFilters|undefined} value
2927
- * @return {!proto.Drumtracker.DrumProto.LocationSearchRequest} returns this
2928
- */
2929
- proto.Drumtracker.DrumProto.LocationSearchRequest.prototype.setFilters = function(value) {
2930
- return jspb.Message.setWrapperField(this, 1, value);
2931
- };
2932
-
2933
-
2934
- /**
2935
- * Clears the message field making it undefined.
2936
- * @return {!proto.Drumtracker.DrumProto.LocationSearchRequest} returns this
2937
- */
2938
- proto.Drumtracker.DrumProto.LocationSearchRequest.prototype.clearFilters = function() {
2939
- return this.setFilters(undefined);
2940
- };
2941
-
2942
-
2943
- /**
2944
- * Returns whether this field is set.
2945
- * @return {boolean}
2946
- */
2947
- proto.Drumtracker.DrumProto.LocationSearchRequest.prototype.hasFilters = function() {
2948
- return jspb.Message.getField(this, 1) != null;
2949
- };
2950
-
2951
-
2952
- /**
2953
- * optional double latMax = 2;
2954
- * @return {number}
2955
- */
2956
- proto.Drumtracker.DrumProto.LocationSearchRequest.prototype.getLatmax = function() {
2957
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
2958
- };
2959
-
2960
-
2961
- /**
2962
- * @param {number} value
2963
- * @return {!proto.Drumtracker.DrumProto.LocationSearchRequest} returns this
2964
- */
2965
- proto.Drumtracker.DrumProto.LocationSearchRequest.prototype.setLatmax = function(value) {
2966
- return jspb.Message.setProto3FloatField(this, 2, value);
2967
- };
2968
-
2969
-
2970
- /**
2971
- * optional double latMin = 3;
2972
- * @return {number}
2973
- */
2974
- proto.Drumtracker.DrumProto.LocationSearchRequest.prototype.getLatmin = function() {
2975
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
2976
- };
2977
-
2978
-
2979
- /**
2980
- * @param {number} value
2981
- * @return {!proto.Drumtracker.DrumProto.LocationSearchRequest} returns this
2982
- */
2983
- proto.Drumtracker.DrumProto.LocationSearchRequest.prototype.setLatmin = function(value) {
2984
- return jspb.Message.setProto3FloatField(this, 3, value);
2985
- };
2986
-
2987
-
2988
- /**
2989
- * optional double lngMax = 4;
2990
- * @return {number}
2991
- */
2992
- proto.Drumtracker.DrumProto.LocationSearchRequest.prototype.getLngmax = function() {
2993
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
2994
- };
2995
-
2996
-
2997
- /**
2998
- * @param {number} value
2999
- * @return {!proto.Drumtracker.DrumProto.LocationSearchRequest} returns this
3000
- */
3001
- proto.Drumtracker.DrumProto.LocationSearchRequest.prototype.setLngmax = function(value) {
3002
- return jspb.Message.setProto3FloatField(this, 4, value);
3003
- };
3004
-
3005
-
3006
- /**
3007
- * optional double lngMin = 5;
3008
- * @return {number}
3009
- */
3010
- proto.Drumtracker.DrumProto.LocationSearchRequest.prototype.getLngmin = function() {
3011
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
3012
- };
3013
-
3014
-
3015
- /**
3016
- * @param {number} value
3017
- * @return {!proto.Drumtracker.DrumProto.LocationSearchRequest} returns this
3018
- */
3019
- proto.Drumtracker.DrumProto.LocationSearchRequest.prototype.setLngmin = function(value) {
3020
- return jspb.Message.setProto3FloatField(this, 5, value);
3021
- };
3022
-
3023
-
3024
-
3025
- /**
3026
- * List of repeated fields within this message type.
3027
- * @private {!Array<number>}
3028
- * @const
3029
- */
3030
- proto.Drumtracker.DrumProto.LocationSearchReply.repeatedFields_ = [1];
3031
-
3032
-
3033
-
3034
- if (jspb.Message.GENERATE_TO_OBJECT) {
3035
- /**
3036
- * Creates an object representation of this proto.
3037
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3038
- * Optional fields that are not set will be set to undefined.
3039
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3040
- * For the list of reserved names please see:
3041
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3042
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3043
- * JSPB instance for transitional soy proto support:
3044
- * http://goto/soy-param-migration
3045
- * @return {!Object}
3046
- */
3047
- proto.Drumtracker.DrumProto.LocationSearchReply.prototype.toObject = function(opt_includeInstance) {
3048
- return proto.Drumtracker.DrumProto.LocationSearchReply.toObject(opt_includeInstance, this);
3049
- };
3050
-
3051
-
3052
- /**
3053
- * Static version of the {@see toObject} method.
3054
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3055
- * the JSPB instance for transitional soy proto support:
3056
- * http://goto/soy-param-migration
3057
- * @param {!proto.Drumtracker.DrumProto.LocationSearchReply} msg The msg instance to transform.
3058
- * @return {!Object}
3059
- * @suppress {unusedLocalVariables} f is only used for nested messages
3060
- */
3061
- proto.Drumtracker.DrumProto.LocationSearchReply.toObject = function(includeInstance, msg) {
3062
- var f, obj = {
3063
- drumsList: jspb.Message.toObjectList(msg.getDrumsList(),
3064
- proto.Drumtracker.DrumProto.toObject, includeInstance),
3065
- total: jspb.Message.getFieldWithDefault(msg, 2, 0)
3066
- };
3067
-
3068
- if (includeInstance) {
3069
- obj.$jspbMessageInstance = msg;
3070
- }
3071
- return obj;
3072
- };
3073
- }
3074
-
3075
-
3076
- /**
3077
- * Deserializes binary data (in protobuf wire format).
3078
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3079
- * @return {!proto.Drumtracker.DrumProto.LocationSearchReply}
3080
- */
3081
- proto.Drumtracker.DrumProto.LocationSearchReply.deserializeBinary = function(bytes) {
3082
- var reader = new jspb.BinaryReader(bytes);
3083
- var msg = new proto.Drumtracker.DrumProto.LocationSearchReply;
3084
- return proto.Drumtracker.DrumProto.LocationSearchReply.deserializeBinaryFromReader(msg, reader);
3085
- };
3086
-
3087
-
3088
- /**
3089
- * Deserializes binary data (in protobuf wire format) from the
3090
- * given reader into the given message object.
3091
- * @param {!proto.Drumtracker.DrumProto.LocationSearchReply} msg The message object to deserialize into.
3092
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3093
- * @return {!proto.Drumtracker.DrumProto.LocationSearchReply}
3094
- */
3095
- proto.Drumtracker.DrumProto.LocationSearchReply.deserializeBinaryFromReader = function(msg, reader) {
3096
- while (reader.nextField()) {
3097
- if (reader.isEndGroup()) {
3098
- break;
3099
- }
3100
- var field = reader.getFieldNumber();
3101
- switch (field) {
3102
- case 1:
3103
- var value = new proto.Drumtracker.DrumProto;
3104
- reader.readMessage(value,proto.Drumtracker.DrumProto.deserializeBinaryFromReader);
3105
- msg.addDrums(value);
3106
- break;
3107
- case 2:
3108
- var value = /** @type {number} */ (reader.readInt32());
3109
- msg.setTotal(value);
3110
- break;
3111
- default:
3112
- reader.skipField();
3113
- break;
3114
- }
3115
- }
3116
- return msg;
3117
- };
3118
-
3119
-
3120
- /**
3121
- * Serializes the message to binary data (in protobuf wire format).
3122
- * @return {!Uint8Array}
3123
- */
3124
- proto.Drumtracker.DrumProto.LocationSearchReply.prototype.serializeBinary = function() {
3125
- var writer = new jspb.BinaryWriter();
3126
- proto.Drumtracker.DrumProto.LocationSearchReply.serializeBinaryToWriter(this, writer);
3127
- return writer.getResultBuffer();
3128
- };
3129
-
3130
-
3131
- /**
3132
- * Serializes the given message to binary data (in protobuf wire
3133
- * format), writing to the given BinaryWriter.
3134
- * @param {!proto.Drumtracker.DrumProto.LocationSearchReply} message
3135
- * @param {!jspb.BinaryWriter} writer
3136
- * @suppress {unusedLocalVariables} f is only used for nested messages
3137
- */
3138
- proto.Drumtracker.DrumProto.LocationSearchReply.serializeBinaryToWriter = function(message, writer) {
3139
- var f = undefined;
3140
- f = message.getDrumsList();
3141
- if (f.length > 0) {
3142
- writer.writeRepeatedMessage(
3143
- 1,
3144
- f,
3145
- proto.Drumtracker.DrumProto.serializeBinaryToWriter
3146
- );
3147
- }
3148
- f = message.getTotal();
3149
- if (f !== 0) {
3150
- writer.writeInt32(
3151
- 2,
3152
- f
3153
- );
3154
- }
3155
- };
3156
-
3157
-
3158
- /**
3159
- * repeated DrumProto drums = 1;
3160
- * @return {!Array<!proto.Drumtracker.DrumProto>}
3161
- */
3162
- proto.Drumtracker.DrumProto.LocationSearchReply.prototype.getDrumsList = function() {
3163
- return /** @type{!Array<!proto.Drumtracker.DrumProto>} */ (
3164
- jspb.Message.getRepeatedWrapperField(this, proto.Drumtracker.DrumProto, 1));
3165
- };
3166
-
3167
-
3168
- /**
3169
- * @param {!Array<!proto.Drumtracker.DrumProto>} value
3170
- * @return {!proto.Drumtracker.DrumProto.LocationSearchReply} returns this
3171
- */
3172
- proto.Drumtracker.DrumProto.LocationSearchReply.prototype.setDrumsList = function(value) {
3173
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3174
- };
3175
-
3176
-
3177
- /**
3178
- * @param {!proto.Drumtracker.DrumProto=} opt_value
3179
- * @param {number=} opt_index
3180
- * @return {!proto.Drumtracker.DrumProto}
3181
- */
3182
- proto.Drumtracker.DrumProto.LocationSearchReply.prototype.addDrums = function(opt_value, opt_index) {
3183
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Drumtracker.DrumProto, opt_index);
3184
- };
3185
-
3186
-
3187
- /**
3188
- * Clears the list making it empty but non-null.
3189
- * @return {!proto.Drumtracker.DrumProto.LocationSearchReply} returns this
3190
- */
3191
- proto.Drumtracker.DrumProto.LocationSearchReply.prototype.clearDrumsList = function() {
3192
- return this.setDrumsList([]);
3193
- };
3194
-
3195
-
3196
- /**
3197
- * optional int32 total = 2;
3198
- * @return {number}
3199
- */
3200
- proto.Drumtracker.DrumProto.LocationSearchReply.prototype.getTotal = function() {
3201
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3202
- };
3203
-
3204
-
3205
- /**
3206
- * @param {number} value
3207
- * @return {!proto.Drumtracker.DrumProto.LocationSearchReply} returns this
3208
- */
3209
- proto.Drumtracker.DrumProto.LocationSearchReply.prototype.setTotal = function(value) {
3210
- return jspb.Message.setProto3IntField(this, 2, value);
3211
- };
3212
-
3213
-
3214
-
3215
-
3216
-
3217
- if (jspb.Message.GENERATE_TO_OBJECT) {
3218
- /**
3219
- * Creates an object representation of this proto.
3220
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3221
- * Optional fields that are not set will be set to undefined.
3222
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3223
- * For the list of reserved names please see:
3224
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3225
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3226
- * JSPB instance for transitional soy proto support:
3227
- * http://goto/soy-param-migration
3228
- * @return {!Object}
3229
- */
3230
- proto.Drumtracker.DrumProto.DrumFilters.prototype.toObject = function(opt_includeInstance) {
3231
- return proto.Drumtracker.DrumProto.DrumFilters.toObject(opt_includeInstance, this);
3232
- };
3233
-
3234
-
3235
- /**
3236
- * Static version of the {@see toObject} method.
3237
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3238
- * the JSPB instance for transitional soy proto support:
3239
- * http://goto/soy-param-migration
3240
- * @param {!proto.Drumtracker.DrumProto.DrumFilters} msg The msg instance to transform.
3241
- * @return {!Object}
3242
- * @suppress {unusedLocalVariables} f is only used for nested messages
3243
- */
3244
- proto.Drumtracker.DrumProto.DrumFilters.toObject = function(includeInstance, msg) {
3245
- var f, obj = {
3246
- search: jspb.Message.getFieldWithDefault(msg, 1, ""),
3247
- minRemainingLength: jspb.Message.getFieldWithDefault(msg, 2, 0),
3248
- maxRemainingLength: jspb.Message.getFieldWithDefault(msg, 3, 0),
3249
- customerId: jspb.Message.getFieldWithDefault(msg, 4, 0),
3250
- minBattery: jspb.Message.getFieldWithDefault(msg, 5, 0),
3251
- maxBattery: jspb.Message.getFieldWithDefault(msg, 6, 0)
3252
- };
3253
-
3254
- if (includeInstance) {
3255
- obj.$jspbMessageInstance = msg;
3256
- }
3257
- return obj;
3258
- };
3259
- }
3260
-
3261
-
3262
- /**
3263
- * Deserializes binary data (in protobuf wire format).
3264
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3265
- * @return {!proto.Drumtracker.DrumProto.DrumFilters}
3266
- */
3267
- proto.Drumtracker.DrumProto.DrumFilters.deserializeBinary = function(bytes) {
3268
- var reader = new jspb.BinaryReader(bytes);
3269
- var msg = new proto.Drumtracker.DrumProto.DrumFilters;
3270
- return proto.Drumtracker.DrumProto.DrumFilters.deserializeBinaryFromReader(msg, reader);
3271
- };
3272
-
3273
-
3274
- /**
3275
- * Deserializes binary data (in protobuf wire format) from the
3276
- * given reader into the given message object.
3277
- * @param {!proto.Drumtracker.DrumProto.DrumFilters} msg The message object to deserialize into.
3278
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3279
- * @return {!proto.Drumtracker.DrumProto.DrumFilters}
3280
- */
3281
- proto.Drumtracker.DrumProto.DrumFilters.deserializeBinaryFromReader = function(msg, reader) {
3282
- while (reader.nextField()) {
3283
- if (reader.isEndGroup()) {
3284
- break;
3285
- }
3286
- var field = reader.getFieldNumber();
3287
- switch (field) {
3288
- case 1:
3289
- var value = /** @type {string} */ (reader.readString());
3290
- msg.setSearch(value);
3291
- break;
3292
- case 2:
3293
- var value = /** @type {number} */ (reader.readInt32());
3294
- msg.setMinRemainingLength(value);
3295
- break;
3296
- case 3:
3297
- var value = /** @type {number} */ (reader.readInt32());
3298
- msg.setMaxRemainingLength(value);
3299
- break;
3300
- case 4:
3301
- var value = /** @type {number} */ (reader.readInt32());
3302
- msg.setCustomerId(value);
3303
- break;
3304
- case 5:
3305
- var value = /** @type {number} */ (reader.readInt32());
3306
- msg.setMinBattery(value);
3307
- break;
3308
- case 6:
3309
- var value = /** @type {number} */ (reader.readInt32());
3310
- msg.setMaxBattery(value);
3311
- break;
3312
- default:
3313
- reader.skipField();
3314
- break;
3315
- }
3316
- }
3317
- return msg;
3318
- };
3319
-
3320
-
3321
- /**
3322
- * Serializes the message to binary data (in protobuf wire format).
3323
- * @return {!Uint8Array}
3324
- */
3325
- proto.Drumtracker.DrumProto.DrumFilters.prototype.serializeBinary = function() {
3326
- var writer = new jspb.BinaryWriter();
3327
- proto.Drumtracker.DrumProto.DrumFilters.serializeBinaryToWriter(this, writer);
3328
- return writer.getResultBuffer();
3329
- };
3330
-
3331
-
3332
- /**
3333
- * Serializes the given message to binary data (in protobuf wire
3334
- * format), writing to the given BinaryWriter.
3335
- * @param {!proto.Drumtracker.DrumProto.DrumFilters} message
3336
- * @param {!jspb.BinaryWriter} writer
3337
- * @suppress {unusedLocalVariables} f is only used for nested messages
3338
- */
3339
- proto.Drumtracker.DrumProto.DrumFilters.serializeBinaryToWriter = function(message, writer) {
3340
- var f = undefined;
3341
- f = message.getSearch();
3342
- if (f.length > 0) {
3343
- writer.writeString(
3344
- 1,
3345
- f
3346
- );
3347
- }
3348
- f = message.getMinRemainingLength();
3349
- if (f !== 0) {
3350
- writer.writeInt32(
3351
- 2,
3352
- f
3353
- );
3354
- }
3355
- f = message.getMaxRemainingLength();
3356
- if (f !== 0) {
3357
- writer.writeInt32(
3358
- 3,
3359
- f
3360
- );
3361
- }
3362
- f = message.getCustomerId();
3363
- if (f !== 0) {
3364
- writer.writeInt32(
3365
- 4,
3366
- f
3367
- );
3368
- }
3369
- f = message.getMinBattery();
3370
- if (f !== 0) {
3371
- writer.writeInt32(
3372
- 5,
3373
- f
3374
- );
3375
- }
3376
- f = message.getMaxBattery();
3377
- if (f !== 0) {
3378
- writer.writeInt32(
3379
- 6,
3380
- f
3381
- );
3382
- }
3383
- };
3384
-
3385
-
3386
- /**
3387
- * optional string search = 1;
3388
- * @return {string}
3389
- */
3390
- proto.Drumtracker.DrumProto.DrumFilters.prototype.getSearch = function() {
3391
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3392
- };
3393
-
3394
-
3395
- /**
3396
- * @param {string} value
3397
- * @return {!proto.Drumtracker.DrumProto.DrumFilters} returns this
3398
- */
3399
- proto.Drumtracker.DrumProto.DrumFilters.prototype.setSearch = function(value) {
3400
- return jspb.Message.setProto3StringField(this, 1, value);
3401
- };
3402
-
3403
-
3404
- /**
3405
- * optional int32 min_remaining_length = 2;
3406
- * @return {number}
3407
- */
3408
- proto.Drumtracker.DrumProto.DrumFilters.prototype.getMinRemainingLength = function() {
3409
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3410
- };
3411
-
3412
-
3413
- /**
3414
- * @param {number} value
3415
- * @return {!proto.Drumtracker.DrumProto.DrumFilters} returns this
3416
- */
3417
- proto.Drumtracker.DrumProto.DrumFilters.prototype.setMinRemainingLength = function(value) {
3418
- return jspb.Message.setProto3IntField(this, 2, value);
3419
- };
3420
-
3421
-
3422
- /**
3423
- * optional int32 max_remaining_length = 3;
3424
- * @return {number}
3425
- */
3426
- proto.Drumtracker.DrumProto.DrumFilters.prototype.getMaxRemainingLength = function() {
3427
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3428
- };
3429
-
3430
-
3431
- /**
3432
- * @param {number} value
3433
- * @return {!proto.Drumtracker.DrumProto.DrumFilters} returns this
3434
- */
3435
- proto.Drumtracker.DrumProto.DrumFilters.prototype.setMaxRemainingLength = function(value) {
3436
- return jspb.Message.setProto3IntField(this, 3, value);
3437
- };
3438
-
3439
-
3440
- /**
3441
- * optional int32 customer_id = 4;
3442
- * @return {number}
3443
- */
3444
- proto.Drumtracker.DrumProto.DrumFilters.prototype.getCustomerId = function() {
3445
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
3446
- };
3447
-
3448
-
3449
- /**
3450
- * @param {number} value
3451
- * @return {!proto.Drumtracker.DrumProto.DrumFilters} returns this
3452
- */
3453
- proto.Drumtracker.DrumProto.DrumFilters.prototype.setCustomerId = function(value) {
3454
- return jspb.Message.setProto3IntField(this, 4, value);
3455
- };
3456
-
3457
-
3458
- /**
3459
- * optional int32 min_battery = 5;
3460
- * @return {number}
3461
- */
3462
- proto.Drumtracker.DrumProto.DrumFilters.prototype.getMinBattery = function() {
3463
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
3464
- };
3465
-
3466
-
3467
- /**
3468
- * @param {number} value
3469
- * @return {!proto.Drumtracker.DrumProto.DrumFilters} returns this
3470
- */
3471
- proto.Drumtracker.DrumProto.DrumFilters.prototype.setMinBattery = function(value) {
3472
- return jspb.Message.setProto3IntField(this, 5, value);
3473
- };
3474
-
3475
-
3476
- /**
3477
- * optional int32 max_battery = 6;
3478
- * @return {number}
3479
- */
3480
- proto.Drumtracker.DrumProto.DrumFilters.prototype.getMaxBattery = function() {
3481
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
3482
- };
3483
-
3484
-
3485
- /**
3486
- * @param {number} value
3487
- * @return {!proto.Drumtracker.DrumProto.DrumFilters} returns this
3488
- */
3489
- proto.Drumtracker.DrumProto.DrumFilters.prototype.setMaxBattery = function(value) {
3490
- return jspb.Message.setProto3IntField(this, 6, value);
3491
- };
3492
-
3493
-
3494
- /**
3495
- * optional int64 id = 1;
3496
- * @return {number}
3497
- */
3498
- proto.Drumtracker.DrumProto.prototype.getId = function() {
3499
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3500
- };
3501
-
3502
-
3503
- /**
3504
- * @param {number} value
3505
- * @return {!proto.Drumtracker.DrumProto} returns this
3506
- */
3507
- proto.Drumtracker.DrumProto.prototype.setId = function(value) {
3508
- return jspb.Message.setProto3IntField(this, 1, value);
3509
- };
3510
-
3511
-
3512
- /**
3513
- * optional int64 drum_number = 2;
3514
- * @return {number}
3515
- */
3516
- proto.Drumtracker.DrumProto.prototype.getDrumNumber = function() {
3517
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3518
- };
3519
-
3520
-
3521
- /**
3522
- * @param {number} value
3523
- * @return {!proto.Drumtracker.DrumProto} returns this
3524
- */
3525
- proto.Drumtracker.DrumProto.prototype.setDrumNumber = function(value) {
3526
- return jspb.Message.setProto3IntField(this, 2, value);
3527
- };
3528
-
3529
-
3530
- /**
3531
- * optional DrumType drum_type = 3;
3532
- * @return {?proto.Drumtracker.DrumProto.DrumType}
3533
- */
3534
- proto.Drumtracker.DrumProto.prototype.getDrumType = function() {
3535
- return /** @type{?proto.Drumtracker.DrumProto.DrumType} */ (
3536
- jspb.Message.getWrapperField(this, proto.Drumtracker.DrumProto.DrumType, 3));
3537
- };
3538
-
3539
-
3540
- /**
3541
- * @param {?proto.Drumtracker.DrumProto.DrumType|undefined} value
3542
- * @return {!proto.Drumtracker.DrumProto} returns this
3543
- */
3544
- proto.Drumtracker.DrumProto.prototype.setDrumType = function(value) {
3545
- return jspb.Message.setWrapperField(this, 3, value);
3546
- };
3547
-
3548
-
3549
- /**
3550
- * Clears the message field making it undefined.
3551
- * @return {!proto.Drumtracker.DrumProto} returns this
3552
- */
3553
- proto.Drumtracker.DrumProto.prototype.clearDrumType = function() {
3554
- return this.setDrumType(undefined);
3555
- };
3556
-
3557
-
3558
- /**
3559
- * Returns whether this field is set.
3560
- * @return {boolean}
3561
- */
3562
- proto.Drumtracker.DrumProto.prototype.hasDrumType = function() {
3563
- return jspb.Message.getField(this, 3) != null;
3564
- };
3565
-
3566
-
3567
- /**
3568
- * optional CableType cable_type = 4;
3569
- * @return {?proto.Drumtracker.DrumProto.CableType}
3570
- */
3571
- proto.Drumtracker.DrumProto.prototype.getCableType = function() {
3572
- return /** @type{?proto.Drumtracker.DrumProto.CableType} */ (
3573
- jspb.Message.getWrapperField(this, proto.Drumtracker.DrumProto.CableType, 4));
3574
- };
3575
-
3576
-
3577
- /**
3578
- * @param {?proto.Drumtracker.DrumProto.CableType|undefined} value
3579
- * @return {!proto.Drumtracker.DrumProto} returns this
3580
- */
3581
- proto.Drumtracker.DrumProto.prototype.setCableType = function(value) {
3582
- return jspb.Message.setWrapperField(this, 4, value);
3583
- };
3584
-
3585
-
3586
- /**
3587
- * Clears the message field making it undefined.
3588
- * @return {!proto.Drumtracker.DrumProto} returns this
3589
- */
3590
- proto.Drumtracker.DrumProto.prototype.clearCableType = function() {
3591
- return this.setCableType(undefined);
3592
- };
3593
-
3594
-
3595
- /**
3596
- * Returns whether this field is set.
3597
- * @return {boolean}
3598
- */
3599
- proto.Drumtracker.DrumProto.prototype.hasCableType = function() {
3600
- return jspb.Message.getField(this, 4) != null;
3601
- };
3602
-
3603
-
3604
- /**
3605
- * optional string group_id = 5;
3606
- * @return {string}
3607
- */
3608
- proto.Drumtracker.DrumProto.prototype.getGroupId = function() {
3609
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3610
- };
3611
-
3612
-
3613
- /**
3614
- * @param {string} value
3615
- * @return {!proto.Drumtracker.DrumProto} returns this
3616
- */
3617
- proto.Drumtracker.DrumProto.prototype.setGroupId = function(value) {
3618
- return jspb.Message.setProto3StringField(this, 5, value);
3619
- };
3620
-
3621
-
3622
- /**
3623
- * optional int32 cable_length = 6;
3624
- * @return {number}
3625
- */
3626
- proto.Drumtracker.DrumProto.prototype.getCableLength = function() {
3627
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
3628
- };
3629
-
3630
-
3631
- /**
3632
- * @param {number} value
3633
- * @return {!proto.Drumtracker.DrumProto} returns this
3634
- */
3635
- proto.Drumtracker.DrumProto.prototype.setCableLength = function(value) {
3636
- return jspb.Message.setProto3IntField(this, 6, value);
3637
- };
3638
-
3639
-
3640
- /**
3641
- * optional int32 residual_length = 7;
3642
- * @return {number}
3643
- */
3644
- proto.Drumtracker.DrumProto.prototype.getResidualLength = function() {
3645
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
3646
- };
3647
-
3648
-
3649
- /**
3650
- * @param {number} value
3651
- * @return {!proto.Drumtracker.DrumProto} returns this
3652
- */
3653
- proto.Drumtracker.DrumProto.prototype.setResidualLength = function(value) {
3654
- return jspb.Message.setProto3IntField(this, 7, value);
3655
- };
3656
-
3657
-
3658
- /**
3659
- * optional double latitude = 8;
3660
- * @return {number}
3661
- */
3662
- proto.Drumtracker.DrumProto.prototype.getLatitude = function() {
3663
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
3664
- };
3665
-
3666
-
3667
- /**
3668
- * @param {number} value
3669
- * @return {!proto.Drumtracker.DrumProto} returns this
3670
- */
3671
- proto.Drumtracker.DrumProto.prototype.setLatitude = function(value) {
3672
- return jspb.Message.setProto3FloatField(this, 8, value);
3673
- };
3674
-
3675
-
3676
- /**
3677
- * optional double longitude = 9;
3678
- * @return {number}
3679
- */
3680
- proto.Drumtracker.DrumProto.prototype.getLongitude = function() {
3681
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
3682
- };
3683
-
3684
-
3685
- /**
3686
- * @param {number} value
3687
- * @return {!proto.Drumtracker.DrumProto} returns this
3688
- */
3689
- proto.Drumtracker.DrumProto.prototype.setLongitude = function(value) {
3690
- return jspb.Message.setProto3FloatField(this, 9, value);
3691
- };
3692
-
3693
-
3694
- /**
3695
- * optional int32 temperature = 10;
3696
- * @return {number}
3697
- */
3698
- proto.Drumtracker.DrumProto.prototype.getTemperature = function() {
3699
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
3700
- };
3701
-
3702
-
3703
- /**
3704
- * @param {number} value
3705
- * @return {!proto.Drumtracker.DrumProto} returns this
3706
- */
3707
- proto.Drumtracker.DrumProto.prototype.setTemperature = function(value) {
3708
- return jspb.Message.setProto3IntField(this, 10, value);
3709
- };
3710
-
3711
-
3712
- /**
3713
- * optional google.protobuf.Timestamp last_update = 11;
3714
- * @return {?proto.google.protobuf.Timestamp}
3715
- */
3716
- proto.Drumtracker.DrumProto.prototype.getLastUpdate = function() {
3717
- return /** @type{?proto.google.protobuf.Timestamp} */ (
3718
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 11));
3719
- };
3720
-
3721
-
3722
- /**
3723
- * @param {?proto.google.protobuf.Timestamp|undefined} value
3724
- * @return {!proto.Drumtracker.DrumProto} returns this
3725
- */
3726
- proto.Drumtracker.DrumProto.prototype.setLastUpdate = function(value) {
3727
- return jspb.Message.setWrapperField(this, 11, value);
3728
- };
3729
-
3730
-
3731
- /**
3732
- * Clears the message field making it undefined.
3733
- * @return {!proto.Drumtracker.DrumProto} returns this
3734
- */
3735
- proto.Drumtracker.DrumProto.prototype.clearLastUpdate = function() {
3736
- return this.setLastUpdate(undefined);
3737
- };
3738
-
3739
-
3740
- /**
3741
- * Returns whether this field is set.
3742
- * @return {boolean}
3743
- */
3744
- proto.Drumtracker.DrumProto.prototype.hasLastUpdate = function() {
3745
- return jspb.Message.getField(this, 11) != null;
3746
- };
3747
-
3748
-
3749
- /**
3750
- * optional string sales_reference = 12;
3751
- * @return {string}
3752
- */
3753
- proto.Drumtracker.DrumProto.prototype.getSalesReference = function() {
3754
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
3755
- };
3756
-
3757
-
3758
- /**
3759
- * @param {string} value
3760
- * @return {!proto.Drumtracker.DrumProto} returns this
3761
- */
3762
- proto.Drumtracker.DrumProto.prototype.setSalesReference = function(value) {
3763
- return jspb.Message.setProto3StringField(this, 12, value);
3764
- };
3765
-
3766
-
3767
- /**
3768
- * optional string customer_reference = 13;
3769
- * @return {string}
3770
- */
3771
- proto.Drumtracker.DrumProto.prototype.getCustomerReference = function() {
3772
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
3773
- };
3774
-
3775
-
3776
- /**
3777
- * @param {string} value
3778
- * @return {!proto.Drumtracker.DrumProto} returns this
3779
- */
3780
- proto.Drumtracker.DrumProto.prototype.setCustomerReference = function(value) {
3781
- return jspb.Message.setProto3StringField(this, 13, value);
3782
- };
3783
-
3784
-
3785
- goog.object.extend(exports, proto.Drumtracker);