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