@aceplus/smartace-api 2.13.0-alpha.1 → 2.13.0-jan-auth-refactor.1

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 (221) hide show
  1. package/package.json +1 -1
  2. package/auth.account_pb.d.ts +0 -704
  3. package/auth.account_pb.js +0 -5239
  4. package/auth.account_pb_service.d.ts +0 -511
  5. package/auth.account_pb_service.js +0 -997
  6. package/auth.account_two_factor_pb.d.ts +0 -159
  7. package/auth.account_two_factor_pb.js +0 -1184
  8. package/auth.account_two_factor_pb_service.d.ts +0 -121
  9. package/auth.account_two_factor_pb_service.js +0 -182
  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 -94
  23. package/auth.authn_pb.js +0 -636
  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.firmware_pb.d.ts +0 -256
  39. package/auth.firmware_pb.js +0 -1997
  40. package/auth.firmware_pb_service.d.ts +0 -120
  41. package/auth.firmware_pb_service.js +0 -181
  42. package/auth.push_notification_pb.d.ts +0 -187
  43. package/auth.push_notification_pb.js +0 -1289
  44. package/auth.push_notification_pb_service.d.ts +0 -121
  45. package/auth.push_notification_pb_service.js +0 -182
  46. package/auth.sms_pb.d.ts +0 -79
  47. package/auth.sms_pb.js +0 -575
  48. package/auth.sms_pb_service.d.ts +0 -83
  49. package/auth.sms_pb_service.js +0 -102
  50. package/google/api/annotations_pb.d.ts +0 -9
  51. package/google/api/annotations_pb.js +0 -54
  52. package/google/api/annotations_pb_service.d.ts +0 -3
  53. package/google/api/annotations_pb_service.js +0 -3
  54. package/google/api/auth_pb.d.ts +0 -150
  55. package/google/api/auth_pb.js +0 -1160
  56. package/google/api/auth_pb_service.d.ts +0 -3
  57. package/google/api/auth_pb_service.js +0 -3
  58. package/google/api/backend_pb.d.ts +0 -59
  59. package/google/api/backend_pb.js +0 -448
  60. package/google/api/backend_pb_service.d.ts +0 -3
  61. package/google/api/backend_pb_service.js +0 -3
  62. package/google/api/billing_pb.d.ts +0 -54
  63. package/google/api/billing_pb.js +0 -416
  64. package/google/api/billing_pb_service.d.ts +0 -3
  65. package/google/api/billing_pb_service.js +0 -3
  66. package/google/api/client_pb.d.ts +0 -12
  67. package/google/api/client_pb.js +0 -104
  68. package/google/api/client_pb_service.d.ts +0 -3
  69. package/google/api/client_pb_service.js +0 -3
  70. package/google/api/config_change_pb.d.ts +0 -72
  71. package/google/api/config_change_pb.js +0 -489
  72. package/google/api/config_change_pb_service.d.ts +0 -3
  73. package/google/api/config_change_pb_service.js +0 -3
  74. package/google/api/consumer_pb.d.ts +0 -65
  75. package/google/api/consumer_pb.js +0 -430
  76. package/google/api/consumer_pb_service.d.ts +0 -3
  77. package/google/api/consumer_pb_service.js +0 -3
  78. package/google/api/context_pb.d.ts +0 -59
  79. package/google/api/context_pb.js +0 -463
  80. package/google/api/context_pb_service.d.ts +0 -3
  81. package/google/api/context_pb_service.js +0 -3
  82. package/google/api/control_pb.d.ts +0 -25
  83. package/google/api/control_pb.js +0 -176
  84. package/google/api/control_pb_service.d.ts +0 -3
  85. package/google/api/control_pb_service.js +0 -3
  86. package/google/api/distribution_pb.d.ts +0 -235
  87. package/google/api/distribution_pb.js +0 -1805
  88. package/google/api/distribution_pb_service.d.ts +0 -3
  89. package/google/api/distribution_pb_service.js +0 -3
  90. package/google/api/documentation_pb.d.ts +0 -103
  91. package/google/api/documentation_pb.js +0 -803
  92. package/google/api/documentation_pb_service.d.ts +0 -3
  93. package/google/api/documentation_pb_service.js +0 -3
  94. package/google/api/endpoint_pb.d.ts +0 -46
  95. package/google/api/endpoint_pb.js +0 -343
  96. package/google/api/endpoint_pb_service.d.ts +0 -3
  97. package/google/api/endpoint_pb_service.js +0 -3
  98. package/google/api/error_reason_pb.d.ts +0 -40
  99. package/google/api/error_reason_pb.js +0 -61
  100. package/google/api/error_reason_pb_service.d.ts +0 -3
  101. package/google/api/error_reason_pb_service.js +0 -3
  102. package/google/api/field_behavior_pb.d.ts +0 -20
  103. package/google/api/field_behavior_pb.js +0 -66
  104. package/google/api/field_behavior_pb_service.d.ts +0 -3
  105. package/google/api/field_behavior_pb_service.js +0 -3
  106. package/google/api/http_pb.d.ts +0 -136
  107. package/google/api/http_pb.js +0 -1012
  108. package/google/api/http_pb_service.d.ts +0 -3
  109. package/google/api/http_pb_service.js +0 -3
  110. package/google/api/httpbody_pb.d.ts +0 -38
  111. package/google/api/httpbody_pb.js +0 -292
  112. package/google/api/httpbody_pb_service.d.ts +0 -3
  113. package/google/api/httpbody_pb_service.js +0 -3
  114. package/google/api/label_pb.d.ts +0 -41
  115. package/google/api/label_pb.js +0 -246
  116. package/google/api/label_pb_service.d.ts +0 -3
  117. package/google/api/label_pb_service.js +0 -3
  118. package/google/api/launch_stage_pb.d.ts +0 -16
  119. package/google/api/launch_stage_pb.js +0 -37
  120. package/google/api/launch_stage_pb_service.d.ts +0 -3
  121. package/google/api/launch_stage_pb_service.js +0 -3
  122. package/google/api/log_pb.d.ts +0 -40
  123. package/google/api/log_pb.js +0 -298
  124. package/google/api/log_pb_service.d.ts +0 -3
  125. package/google/api/log_pb_service.js +0 -3
  126. package/google/api/logging_pb.d.ts +0 -60
  127. package/google/api/logging_pb.js +0 -469
  128. package/google/api/logging_pb_service.d.ts +0 -3
  129. package/google/api/logging_pb_service.js +0 -3
  130. package/google/api/metric_pb.d.ts +0 -100
  131. package/google/api/metric_pb.js +0 -629
  132. package/google/api/metric_pb_service.d.ts +0 -3
  133. package/google/api/metric_pb_service.js +0 -3
  134. package/google/api/monitored_resource_pb.d.ts +0 -93
  135. package/google/api/monitored_resource_pb.js +0 -723
  136. package/google/api/monitored_resource_pb_service.d.ts +0 -3
  137. package/google/api/monitored_resource_pb_service.js +0 -3
  138. package/google/api/monitoring_pb.d.ts +0 -60
  139. package/google/api/monitoring_pb.js +0 -469
  140. package/google/api/monitoring_pb_service.d.ts +0 -3
  141. package/google/api/monitoring_pb_service.js +0 -3
  142. package/google/api/policy_pb.d.ts +0 -64
  143. package/google/api/policy_pb.js +0 -502
  144. package/google/api/policy_pb_service.d.ts +0 -3
  145. package/google/api/policy_pb_service.js +0 -3
  146. package/google/api/quota_pb.d.ts +0 -112
  147. package/google/api/quota_pb.js +0 -873
  148. package/google/api/quota_pb_service.d.ts +0 -3
  149. package/google/api/quota_pb_service.js +0 -3
  150. package/google/api/resource_pb.d.ts +0 -99
  151. package/google/api/resource_pb.js +0 -684
  152. package/google/api/resource_pb_service.d.ts +0 -3
  153. package/google/api/resource_pb_service.js +0 -3
  154. package/google/api/routing_pb.d.ts +0 -54
  155. package/google/api/routing_pb.js +0 -416
  156. package/google/api/routing_pb_service.d.ts +0 -3
  157. package/google/api/routing_pb_service.js +0 -3
  158. package/google/api/service_pb.d.ts +0 -184
  159. package/google/api/service_pb.js +0 -1400
  160. package/google/api/service_pb_service.d.ts +0 -3
  161. package/google/api/service_pb_service.js +0 -3
  162. package/google/api/source_info_pb.d.ts +0 -28
  163. package/google/api/source_info_pb.js +0 -208
  164. package/google/api/source_info_pb_service.d.ts +0 -3
  165. package/google/api/source_info_pb_service.js +0 -3
  166. package/google/api/system_parameter_pb.d.ts +0 -81
  167. package/google/api/system_parameter_pb.js +0 -630
  168. package/google/api/system_parameter_pb_service.d.ts +0 -3
  169. package/google/api/system_parameter_pb_service.js +0 -3
  170. package/google/api/usage_pb.d.ts +0 -66
  171. package/google/api/usage_pb.js +0 -499
  172. package/google/api/usage_pb_service.d.ts +0 -3
  173. package/google/api/usage_pb_service.js +0 -3
  174. package/google/api/visibility_pb.d.ts +0 -64
  175. package/google/api/visibility_pb.js +0 -546
  176. package/google/api/visibility_pb_service.d.ts +0 -3
  177. package/google/api/visibility_pb_service.js +0 -3
  178. package/meta.spic_config_pb.d.ts +0 -184
  179. package/meta.spic_config_pb.js +0 -1382
  180. package/meta.spic_config_pb_service.d.ts +0 -122
  181. package/meta.spic_config_pb_service.js +0 -183
  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 -346
  187. package/platform.client_pb.js +0 -2633
  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 -434
  195. package/platform.local_account_pb.js +0 -3318
  196. package/platform.local_account_pb_service.d.ts +0 -388
  197. package/platform.local_account_pb_service.js +0 -743
  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 -45
  207. package/platform.pagination_pb.js +0 -276
  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 -1320
  211. package/spic.cabinet_pb.js +0 -9833
  212. package/spic.cabinet_pb_service.d.ts +0 -359
  213. package/spic.cabinet_pb_service.js +0 -677
  214. package/spic.config_pb.d.ts +0 -249
  215. package/spic.config_pb.js +0 -1891
  216. package/spic.config_pb_service.d.ts +0 -120
  217. package/spic.config_pb_service.js +0 -181
  218. package/spic.contractor_pb.d.ts +0 -195
  219. package/spic.contractor_pb.js +0 -1476
  220. package/spic.contractor_pb_service.d.ts +0 -139
  221. package/spic.contractor_pb_service.js +0 -221
@@ -1,1929 +0,0 @@
1
- // source: auth.cluster.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 platform_pagination_pb = require('./platform.pagination_pb.js');
25
- goog.object.extend(proto, platform_pagination_pb);
26
- var google_api_annotations_pb = require('./google/api/annotations_pb.js');
27
- goog.object.extend(proto, google_api_annotations_pb);
28
- goog.exportSymbol('proto.Auth.ClusterProto', null, global);
29
- goog.exportSymbol('proto.Auth.ClusterProto.CreateRequest', null, global);
30
- goog.exportSymbol('proto.Auth.ClusterProto.DeleteReply', null, global);
31
- goog.exportSymbol('proto.Auth.ClusterProto.DeleteRequest', null, global);
32
- goog.exportSymbol('proto.Auth.ClusterProto.RetrieveRequest', null, global);
33
- goog.exportSymbol('proto.Auth.ClusterProto.RetrieveRequest.SearchCase', null, global);
34
- goog.exportSymbol('proto.Auth.ClusterProto.SearchReply', null, global);
35
- goog.exportSymbol('proto.Auth.ClusterProto.SearchRequest', null, global);
36
- goog.exportSymbol('proto.Auth.ClusterProto.UpdateRequest', null, global);
37
- /**
38
- * Generated by JsPbCodeGenerator.
39
- * @param {Array=} opt_data Optional initial data array, typically from a
40
- * server response, or constructed directly in Javascript. The array is used
41
- * in place and becomes part of the constructed object. It is not cloned.
42
- * If no data is provided, the constructed object will be empty, but still
43
- * valid.
44
- * @extends {jspb.Message}
45
- * @constructor
46
- */
47
- proto.Auth.ClusterProto = function(opt_data) {
48
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
49
- };
50
- goog.inherits(proto.Auth.ClusterProto, jspb.Message);
51
- if (goog.DEBUG && !COMPILED) {
52
- /**
53
- * @public
54
- * @override
55
- */
56
- proto.Auth.ClusterProto.displayName = 'proto.Auth.ClusterProto';
57
- }
58
- /**
59
- * Generated by JsPbCodeGenerator.
60
- * @param {Array=} opt_data Optional initial data array, typically from a
61
- * server response, or constructed directly in Javascript. The array is used
62
- * in place and becomes part of the constructed object. It is not cloned.
63
- * If no data is provided, the constructed object will be empty, but still
64
- * valid.
65
- * @extends {jspb.Message}
66
- * @constructor
67
- */
68
- proto.Auth.ClusterProto.CreateRequest = function(opt_data) {
69
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
70
- };
71
- goog.inherits(proto.Auth.ClusterProto.CreateRequest, jspb.Message);
72
- if (goog.DEBUG && !COMPILED) {
73
- /**
74
- * @public
75
- * @override
76
- */
77
- proto.Auth.ClusterProto.CreateRequest.displayName = 'proto.Auth.ClusterProto.CreateRequest';
78
- }
79
- /**
80
- * Generated by JsPbCodeGenerator.
81
- * @param {Array=} opt_data Optional initial data array, typically from a
82
- * server response, or constructed directly in Javascript. The array is used
83
- * in place and becomes part of the constructed object. It is not cloned.
84
- * If no data is provided, the constructed object will be empty, but still
85
- * valid.
86
- * @extends {jspb.Message}
87
- * @constructor
88
- */
89
- proto.Auth.ClusterProto.RetrieveRequest = function(opt_data) {
90
- jspb.Message.initialize(this, opt_data, 0, -1, null, proto.Auth.ClusterProto.RetrieveRequest.oneofGroups_);
91
- };
92
- goog.inherits(proto.Auth.ClusterProto.RetrieveRequest, jspb.Message);
93
- if (goog.DEBUG && !COMPILED) {
94
- /**
95
- * @public
96
- * @override
97
- */
98
- proto.Auth.ClusterProto.RetrieveRequest.displayName = 'proto.Auth.ClusterProto.RetrieveRequest';
99
- }
100
- /**
101
- * Generated by JsPbCodeGenerator.
102
- * @param {Array=} opt_data Optional initial data array, typically from a
103
- * server response, or constructed directly in Javascript. The array is used
104
- * in place and becomes part of the constructed object. It is not cloned.
105
- * If no data is provided, the constructed object will be empty, but still
106
- * valid.
107
- * @extends {jspb.Message}
108
- * @constructor
109
- */
110
- proto.Auth.ClusterProto.UpdateRequest = function(opt_data) {
111
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
112
- };
113
- goog.inherits(proto.Auth.ClusterProto.UpdateRequest, jspb.Message);
114
- if (goog.DEBUG && !COMPILED) {
115
- /**
116
- * @public
117
- * @override
118
- */
119
- proto.Auth.ClusterProto.UpdateRequest.displayName = 'proto.Auth.ClusterProto.UpdateRequest';
120
- }
121
- /**
122
- * Generated by JsPbCodeGenerator.
123
- * @param {Array=} opt_data Optional initial data array, typically from a
124
- * server response, or constructed directly in Javascript. The array is used
125
- * in place and becomes part of the constructed object. It is not cloned.
126
- * If no data is provided, the constructed object will be empty, but still
127
- * valid.
128
- * @extends {jspb.Message}
129
- * @constructor
130
- */
131
- proto.Auth.ClusterProto.DeleteRequest = function(opt_data) {
132
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
133
- };
134
- goog.inherits(proto.Auth.ClusterProto.DeleteRequest, jspb.Message);
135
- if (goog.DEBUG && !COMPILED) {
136
- /**
137
- * @public
138
- * @override
139
- */
140
- proto.Auth.ClusterProto.DeleteRequest.displayName = 'proto.Auth.ClusterProto.DeleteRequest';
141
- }
142
- /**
143
- * Generated by JsPbCodeGenerator.
144
- * @param {Array=} opt_data Optional initial data array, typically from a
145
- * server response, or constructed directly in Javascript. The array is used
146
- * in place and becomes part of the constructed object. It is not cloned.
147
- * If no data is provided, the constructed object will be empty, but still
148
- * valid.
149
- * @extends {jspb.Message}
150
- * @constructor
151
- */
152
- proto.Auth.ClusterProto.DeleteReply = function(opt_data) {
153
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
154
- };
155
- goog.inherits(proto.Auth.ClusterProto.DeleteReply, jspb.Message);
156
- if (goog.DEBUG && !COMPILED) {
157
- /**
158
- * @public
159
- * @override
160
- */
161
- proto.Auth.ClusterProto.DeleteReply.displayName = 'proto.Auth.ClusterProto.DeleteReply';
162
- }
163
- /**
164
- * Generated by JsPbCodeGenerator.
165
- * @param {Array=} opt_data Optional initial data array, typically from a
166
- * server response, or constructed directly in Javascript. The array is used
167
- * in place and becomes part of the constructed object. It is not cloned.
168
- * If no data is provided, the constructed object will be empty, but still
169
- * valid.
170
- * @extends {jspb.Message}
171
- * @constructor
172
- */
173
- proto.Auth.ClusterProto.SearchRequest = function(opt_data) {
174
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
175
- };
176
- goog.inherits(proto.Auth.ClusterProto.SearchRequest, jspb.Message);
177
- if (goog.DEBUG && !COMPILED) {
178
- /**
179
- * @public
180
- * @override
181
- */
182
- proto.Auth.ClusterProto.SearchRequest.displayName = 'proto.Auth.ClusterProto.SearchRequest';
183
- }
184
- /**
185
- * Generated by JsPbCodeGenerator.
186
- * @param {Array=} opt_data Optional initial data array, typically from a
187
- * server response, or constructed directly in Javascript. The array is used
188
- * in place and becomes part of the constructed object. It is not cloned.
189
- * If no data is provided, the constructed object will be empty, but still
190
- * valid.
191
- * @extends {jspb.Message}
192
- * @constructor
193
- */
194
- proto.Auth.ClusterProto.SearchReply = function(opt_data) {
195
- jspb.Message.initialize(this, opt_data, 0, -1, proto.Auth.ClusterProto.SearchReply.repeatedFields_, null);
196
- };
197
- goog.inherits(proto.Auth.ClusterProto.SearchReply, jspb.Message);
198
- if (goog.DEBUG && !COMPILED) {
199
- /**
200
- * @public
201
- * @override
202
- */
203
- proto.Auth.ClusterProto.SearchReply.displayName = 'proto.Auth.ClusterProto.SearchReply';
204
- }
205
-
206
-
207
-
208
- if (jspb.Message.GENERATE_TO_OBJECT) {
209
- /**
210
- * Creates an object representation of this proto.
211
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
212
- * Optional fields that are not set will be set to undefined.
213
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
214
- * For the list of reserved names please see:
215
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
216
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
217
- * JSPB instance for transitional soy proto support:
218
- * http://goto/soy-param-migration
219
- * @return {!Object}
220
- */
221
- proto.Auth.ClusterProto.prototype.toObject = function(opt_includeInstance) {
222
- return proto.Auth.ClusterProto.toObject(opt_includeInstance, this);
223
- };
224
-
225
-
226
- /**
227
- * Static version of the {@see toObject} method.
228
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
229
- * the JSPB instance for transitional soy proto support:
230
- * http://goto/soy-param-migration
231
- * @param {!proto.Auth.ClusterProto} msg The msg instance to transform.
232
- * @return {!Object}
233
- * @suppress {unusedLocalVariables} f is only used for nested messages
234
- */
235
- proto.Auth.ClusterProto.toObject = function(includeInstance, msg) {
236
- var f, obj = {
237
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
238
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
239
- customName: jspb.Message.getFieldWithDefault(msg, 3, ""),
240
- endpoint: jspb.Message.getFieldWithDefault(msg, 4, ""),
241
- deviceEndpoint: jspb.Message.getFieldWithDefault(msg, 5, ""),
242
- country: jspb.Message.getFieldWithDefault(msg, 6, "")
243
- };
244
-
245
- if (includeInstance) {
246
- obj.$jspbMessageInstance = msg;
247
- }
248
- return obj;
249
- };
250
- }
251
-
252
-
253
- /**
254
- * Deserializes binary data (in protobuf wire format).
255
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
256
- * @return {!proto.Auth.ClusterProto}
257
- */
258
- proto.Auth.ClusterProto.deserializeBinary = function(bytes) {
259
- var reader = new jspb.BinaryReader(bytes);
260
- var msg = new proto.Auth.ClusterProto;
261
- return proto.Auth.ClusterProto.deserializeBinaryFromReader(msg, reader);
262
- };
263
-
264
-
265
- /**
266
- * Deserializes binary data (in protobuf wire format) from the
267
- * given reader into the given message object.
268
- * @param {!proto.Auth.ClusterProto} msg The message object to deserialize into.
269
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
270
- * @return {!proto.Auth.ClusterProto}
271
- */
272
- proto.Auth.ClusterProto.deserializeBinaryFromReader = function(msg, reader) {
273
- while (reader.nextField()) {
274
- if (reader.isEndGroup()) {
275
- break;
276
- }
277
- var field = reader.getFieldNumber();
278
- switch (field) {
279
- case 1:
280
- var value = /** @type {number} */ (reader.readInt64());
281
- msg.setId(value);
282
- break;
283
- case 2:
284
- var value = /** @type {string} */ (reader.readString());
285
- msg.setName(value);
286
- break;
287
- case 3:
288
- var value = /** @type {string} */ (reader.readString());
289
- msg.setCustomName(value);
290
- break;
291
- case 4:
292
- var value = /** @type {string} */ (reader.readString());
293
- msg.setEndpoint(value);
294
- break;
295
- case 5:
296
- var value = /** @type {string} */ (reader.readString());
297
- msg.setDeviceEndpoint(value);
298
- break;
299
- case 6:
300
- var value = /** @type {string} */ (reader.readString());
301
- msg.setCountry(value);
302
- break;
303
- default:
304
- reader.skipField();
305
- break;
306
- }
307
- }
308
- return msg;
309
- };
310
-
311
-
312
- /**
313
- * Serializes the message to binary data (in protobuf wire format).
314
- * @return {!Uint8Array}
315
- */
316
- proto.Auth.ClusterProto.prototype.serializeBinary = function() {
317
- var writer = new jspb.BinaryWriter();
318
- proto.Auth.ClusterProto.serializeBinaryToWriter(this, writer);
319
- return writer.getResultBuffer();
320
- };
321
-
322
-
323
- /**
324
- * Serializes the given message to binary data (in protobuf wire
325
- * format), writing to the given BinaryWriter.
326
- * @param {!proto.Auth.ClusterProto} message
327
- * @param {!jspb.BinaryWriter} writer
328
- * @suppress {unusedLocalVariables} f is only used for nested messages
329
- */
330
- proto.Auth.ClusterProto.serializeBinaryToWriter = function(message, writer) {
331
- var f = undefined;
332
- f = message.getId();
333
- if (f !== 0) {
334
- writer.writeInt64(
335
- 1,
336
- f
337
- );
338
- }
339
- f = message.getName();
340
- if (f.length > 0) {
341
- writer.writeString(
342
- 2,
343
- f
344
- );
345
- }
346
- f = message.getCustomName();
347
- if (f.length > 0) {
348
- writer.writeString(
349
- 3,
350
- f
351
- );
352
- }
353
- f = message.getEndpoint();
354
- if (f.length > 0) {
355
- writer.writeString(
356
- 4,
357
- f
358
- );
359
- }
360
- f = message.getDeviceEndpoint();
361
- if (f.length > 0) {
362
- writer.writeString(
363
- 5,
364
- f
365
- );
366
- }
367
- f = message.getCountry();
368
- if (f.length > 0) {
369
- writer.writeString(
370
- 6,
371
- f
372
- );
373
- }
374
- };
375
-
376
-
377
-
378
-
379
-
380
- if (jspb.Message.GENERATE_TO_OBJECT) {
381
- /**
382
- * Creates an object representation of this proto.
383
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
384
- * Optional fields that are not set will be set to undefined.
385
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
386
- * For the list of reserved names please see:
387
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
388
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
389
- * JSPB instance for transitional soy proto support:
390
- * http://goto/soy-param-migration
391
- * @return {!Object}
392
- */
393
- proto.Auth.ClusterProto.CreateRequest.prototype.toObject = function(opt_includeInstance) {
394
- return proto.Auth.ClusterProto.CreateRequest.toObject(opt_includeInstance, this);
395
- };
396
-
397
-
398
- /**
399
- * Static version of the {@see toObject} method.
400
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
401
- * the JSPB instance for transitional soy proto support:
402
- * http://goto/soy-param-migration
403
- * @param {!proto.Auth.ClusterProto.CreateRequest} msg The msg instance to transform.
404
- * @return {!Object}
405
- * @suppress {unusedLocalVariables} f is only used for nested messages
406
- */
407
- proto.Auth.ClusterProto.CreateRequest.toObject = function(includeInstance, msg) {
408
- var f, obj = {
409
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
410
- customName: jspb.Message.getFieldWithDefault(msg, 2, ""),
411
- endpoint: jspb.Message.getFieldWithDefault(msg, 3, ""),
412
- deviceEndpoint: jspb.Message.getFieldWithDefault(msg, 4, ""),
413
- country: jspb.Message.getFieldWithDefault(msg, 5, "")
414
- };
415
-
416
- if (includeInstance) {
417
- obj.$jspbMessageInstance = msg;
418
- }
419
- return obj;
420
- };
421
- }
422
-
423
-
424
- /**
425
- * Deserializes binary data (in protobuf wire format).
426
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
427
- * @return {!proto.Auth.ClusterProto.CreateRequest}
428
- */
429
- proto.Auth.ClusterProto.CreateRequest.deserializeBinary = function(bytes) {
430
- var reader = new jspb.BinaryReader(bytes);
431
- var msg = new proto.Auth.ClusterProto.CreateRequest;
432
- return proto.Auth.ClusterProto.CreateRequest.deserializeBinaryFromReader(msg, reader);
433
- };
434
-
435
-
436
- /**
437
- * Deserializes binary data (in protobuf wire format) from the
438
- * given reader into the given message object.
439
- * @param {!proto.Auth.ClusterProto.CreateRequest} msg The message object to deserialize into.
440
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
441
- * @return {!proto.Auth.ClusterProto.CreateRequest}
442
- */
443
- proto.Auth.ClusterProto.CreateRequest.deserializeBinaryFromReader = function(msg, reader) {
444
- while (reader.nextField()) {
445
- if (reader.isEndGroup()) {
446
- break;
447
- }
448
- var field = reader.getFieldNumber();
449
- switch (field) {
450
- case 1:
451
- var value = /** @type {string} */ (reader.readString());
452
- msg.setName(value);
453
- break;
454
- case 2:
455
- var value = /** @type {string} */ (reader.readString());
456
- msg.setCustomName(value);
457
- break;
458
- case 3:
459
- var value = /** @type {string} */ (reader.readString());
460
- msg.setEndpoint(value);
461
- break;
462
- case 4:
463
- var value = /** @type {string} */ (reader.readString());
464
- msg.setDeviceEndpoint(value);
465
- break;
466
- case 5:
467
- var value = /** @type {string} */ (reader.readString());
468
- msg.setCountry(value);
469
- break;
470
- default:
471
- reader.skipField();
472
- break;
473
- }
474
- }
475
- return msg;
476
- };
477
-
478
-
479
- /**
480
- * Serializes the message to binary data (in protobuf wire format).
481
- * @return {!Uint8Array}
482
- */
483
- proto.Auth.ClusterProto.CreateRequest.prototype.serializeBinary = function() {
484
- var writer = new jspb.BinaryWriter();
485
- proto.Auth.ClusterProto.CreateRequest.serializeBinaryToWriter(this, writer);
486
- return writer.getResultBuffer();
487
- };
488
-
489
-
490
- /**
491
- * Serializes the given message to binary data (in protobuf wire
492
- * format), writing to the given BinaryWriter.
493
- * @param {!proto.Auth.ClusterProto.CreateRequest} message
494
- * @param {!jspb.BinaryWriter} writer
495
- * @suppress {unusedLocalVariables} f is only used for nested messages
496
- */
497
- proto.Auth.ClusterProto.CreateRequest.serializeBinaryToWriter = function(message, writer) {
498
- var f = undefined;
499
- f = message.getName();
500
- if (f.length > 0) {
501
- writer.writeString(
502
- 1,
503
- f
504
- );
505
- }
506
- f = message.getCustomName();
507
- if (f.length > 0) {
508
- writer.writeString(
509
- 2,
510
- f
511
- );
512
- }
513
- f = message.getEndpoint();
514
- if (f.length > 0) {
515
- writer.writeString(
516
- 3,
517
- f
518
- );
519
- }
520
- f = message.getDeviceEndpoint();
521
- if (f.length > 0) {
522
- writer.writeString(
523
- 4,
524
- f
525
- );
526
- }
527
- f = message.getCountry();
528
- if (f.length > 0) {
529
- writer.writeString(
530
- 5,
531
- f
532
- );
533
- }
534
- };
535
-
536
-
537
- /**
538
- * optional string name = 1;
539
- * @return {string}
540
- */
541
- proto.Auth.ClusterProto.CreateRequest.prototype.getName = function() {
542
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
543
- };
544
-
545
-
546
- /**
547
- * @param {string} value
548
- * @return {!proto.Auth.ClusterProto.CreateRequest} returns this
549
- */
550
- proto.Auth.ClusterProto.CreateRequest.prototype.setName = function(value) {
551
- return jspb.Message.setProto3StringField(this, 1, value);
552
- };
553
-
554
-
555
- /**
556
- * optional string custom_name = 2;
557
- * @return {string}
558
- */
559
- proto.Auth.ClusterProto.CreateRequest.prototype.getCustomName = function() {
560
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
561
- };
562
-
563
-
564
- /**
565
- * @param {string} value
566
- * @return {!proto.Auth.ClusterProto.CreateRequest} returns this
567
- */
568
- proto.Auth.ClusterProto.CreateRequest.prototype.setCustomName = function(value) {
569
- return jspb.Message.setProto3StringField(this, 2, value);
570
- };
571
-
572
-
573
- /**
574
- * optional string endpoint = 3;
575
- * @return {string}
576
- */
577
- proto.Auth.ClusterProto.CreateRequest.prototype.getEndpoint = function() {
578
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
579
- };
580
-
581
-
582
- /**
583
- * @param {string} value
584
- * @return {!proto.Auth.ClusterProto.CreateRequest} returns this
585
- */
586
- proto.Auth.ClusterProto.CreateRequest.prototype.setEndpoint = function(value) {
587
- return jspb.Message.setProto3StringField(this, 3, value);
588
- };
589
-
590
-
591
- /**
592
- * optional string device_endpoint = 4;
593
- * @return {string}
594
- */
595
- proto.Auth.ClusterProto.CreateRequest.prototype.getDeviceEndpoint = function() {
596
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
597
- };
598
-
599
-
600
- /**
601
- * @param {string} value
602
- * @return {!proto.Auth.ClusterProto.CreateRequest} returns this
603
- */
604
- proto.Auth.ClusterProto.CreateRequest.prototype.setDeviceEndpoint = function(value) {
605
- return jspb.Message.setProto3StringField(this, 4, value);
606
- };
607
-
608
-
609
- /**
610
- * optional string country = 5;
611
- * @return {string}
612
- */
613
- proto.Auth.ClusterProto.CreateRequest.prototype.getCountry = function() {
614
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
615
- };
616
-
617
-
618
- /**
619
- * @param {string} value
620
- * @return {!proto.Auth.ClusterProto.CreateRequest} returns this
621
- */
622
- proto.Auth.ClusterProto.CreateRequest.prototype.setCountry = function(value) {
623
- return jspb.Message.setProto3StringField(this, 5, value);
624
- };
625
-
626
-
627
-
628
- /**
629
- * Oneof group definitions for this message. Each group defines the field
630
- * numbers belonging to that group. When of these fields' value is set, all
631
- * other fields in the group are cleared. During deserialization, if multiple
632
- * fields are encountered for a group, only the last value seen will be kept.
633
- * @private {!Array<!Array<number>>}
634
- * @const
635
- */
636
- proto.Auth.ClusterProto.RetrieveRequest.oneofGroups_ = [[1,2]];
637
-
638
- /**
639
- * @enum {number}
640
- */
641
- proto.Auth.ClusterProto.RetrieveRequest.SearchCase = {
642
- SEARCH_NOT_SET: 0,
643
- ID: 1,
644
- NAME: 2
645
- };
646
-
647
- /**
648
- * @return {proto.Auth.ClusterProto.RetrieveRequest.SearchCase}
649
- */
650
- proto.Auth.ClusterProto.RetrieveRequest.prototype.getSearchCase = function() {
651
- return /** @type {proto.Auth.ClusterProto.RetrieveRequest.SearchCase} */(jspb.Message.computeOneofCase(this, proto.Auth.ClusterProto.RetrieveRequest.oneofGroups_[0]));
652
- };
653
-
654
-
655
-
656
- if (jspb.Message.GENERATE_TO_OBJECT) {
657
- /**
658
- * Creates an object representation of this proto.
659
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
660
- * Optional fields that are not set will be set to undefined.
661
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
662
- * For the list of reserved names please see:
663
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
664
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
665
- * JSPB instance for transitional soy proto support:
666
- * http://goto/soy-param-migration
667
- * @return {!Object}
668
- */
669
- proto.Auth.ClusterProto.RetrieveRequest.prototype.toObject = function(opt_includeInstance) {
670
- return proto.Auth.ClusterProto.RetrieveRequest.toObject(opt_includeInstance, this);
671
- };
672
-
673
-
674
- /**
675
- * Static version of the {@see toObject} method.
676
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
677
- * the JSPB instance for transitional soy proto support:
678
- * http://goto/soy-param-migration
679
- * @param {!proto.Auth.ClusterProto.RetrieveRequest} msg The msg instance to transform.
680
- * @return {!Object}
681
- * @suppress {unusedLocalVariables} f is only used for nested messages
682
- */
683
- proto.Auth.ClusterProto.RetrieveRequest.toObject = function(includeInstance, msg) {
684
- var f, obj = {
685
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
686
- name: jspb.Message.getFieldWithDefault(msg, 2, "")
687
- };
688
-
689
- if (includeInstance) {
690
- obj.$jspbMessageInstance = msg;
691
- }
692
- return obj;
693
- };
694
- }
695
-
696
-
697
- /**
698
- * Deserializes binary data (in protobuf wire format).
699
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
700
- * @return {!proto.Auth.ClusterProto.RetrieveRequest}
701
- */
702
- proto.Auth.ClusterProto.RetrieveRequest.deserializeBinary = function(bytes) {
703
- var reader = new jspb.BinaryReader(bytes);
704
- var msg = new proto.Auth.ClusterProto.RetrieveRequest;
705
- return proto.Auth.ClusterProto.RetrieveRequest.deserializeBinaryFromReader(msg, reader);
706
- };
707
-
708
-
709
- /**
710
- * Deserializes binary data (in protobuf wire format) from the
711
- * given reader into the given message object.
712
- * @param {!proto.Auth.ClusterProto.RetrieveRequest} msg The message object to deserialize into.
713
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
714
- * @return {!proto.Auth.ClusterProto.RetrieveRequest}
715
- */
716
- proto.Auth.ClusterProto.RetrieveRequest.deserializeBinaryFromReader = function(msg, reader) {
717
- while (reader.nextField()) {
718
- if (reader.isEndGroup()) {
719
- break;
720
- }
721
- var field = reader.getFieldNumber();
722
- switch (field) {
723
- case 1:
724
- var value = /** @type {number} */ (reader.readInt64());
725
- msg.setId(value);
726
- break;
727
- case 2:
728
- var value = /** @type {string} */ (reader.readString());
729
- msg.setName(value);
730
- break;
731
- default:
732
- reader.skipField();
733
- break;
734
- }
735
- }
736
- return msg;
737
- };
738
-
739
-
740
- /**
741
- * Serializes the message to binary data (in protobuf wire format).
742
- * @return {!Uint8Array}
743
- */
744
- proto.Auth.ClusterProto.RetrieveRequest.prototype.serializeBinary = function() {
745
- var writer = new jspb.BinaryWriter();
746
- proto.Auth.ClusterProto.RetrieveRequest.serializeBinaryToWriter(this, writer);
747
- return writer.getResultBuffer();
748
- };
749
-
750
-
751
- /**
752
- * Serializes the given message to binary data (in protobuf wire
753
- * format), writing to the given BinaryWriter.
754
- * @param {!proto.Auth.ClusterProto.RetrieveRequest} message
755
- * @param {!jspb.BinaryWriter} writer
756
- * @suppress {unusedLocalVariables} f is only used for nested messages
757
- */
758
- proto.Auth.ClusterProto.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
759
- var f = undefined;
760
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
761
- if (f != null) {
762
- writer.writeInt64(
763
- 1,
764
- f
765
- );
766
- }
767
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
768
- if (f != null) {
769
- writer.writeString(
770
- 2,
771
- f
772
- );
773
- }
774
- };
775
-
776
-
777
- /**
778
- * optional int64 id = 1;
779
- * @return {number}
780
- */
781
- proto.Auth.ClusterProto.RetrieveRequest.prototype.getId = function() {
782
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
783
- };
784
-
785
-
786
- /**
787
- * @param {number} value
788
- * @return {!proto.Auth.ClusterProto.RetrieveRequest} returns this
789
- */
790
- proto.Auth.ClusterProto.RetrieveRequest.prototype.setId = function(value) {
791
- return jspb.Message.setOneofField(this, 1, proto.Auth.ClusterProto.RetrieveRequest.oneofGroups_[0], value);
792
- };
793
-
794
-
795
- /**
796
- * Clears the field making it undefined.
797
- * @return {!proto.Auth.ClusterProto.RetrieveRequest} returns this
798
- */
799
- proto.Auth.ClusterProto.RetrieveRequest.prototype.clearId = function() {
800
- return jspb.Message.setOneofField(this, 1, proto.Auth.ClusterProto.RetrieveRequest.oneofGroups_[0], undefined);
801
- };
802
-
803
-
804
- /**
805
- * Returns whether this field is set.
806
- * @return {boolean}
807
- */
808
- proto.Auth.ClusterProto.RetrieveRequest.prototype.hasId = function() {
809
- return jspb.Message.getField(this, 1) != null;
810
- };
811
-
812
-
813
- /**
814
- * optional string name = 2;
815
- * @return {string}
816
- */
817
- proto.Auth.ClusterProto.RetrieveRequest.prototype.getName = function() {
818
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
819
- };
820
-
821
-
822
- /**
823
- * @param {string} value
824
- * @return {!proto.Auth.ClusterProto.RetrieveRequest} returns this
825
- */
826
- proto.Auth.ClusterProto.RetrieveRequest.prototype.setName = function(value) {
827
- return jspb.Message.setOneofField(this, 2, proto.Auth.ClusterProto.RetrieveRequest.oneofGroups_[0], value);
828
- };
829
-
830
-
831
- /**
832
- * Clears the field making it undefined.
833
- * @return {!proto.Auth.ClusterProto.RetrieveRequest} returns this
834
- */
835
- proto.Auth.ClusterProto.RetrieveRequest.prototype.clearName = function() {
836
- return jspb.Message.setOneofField(this, 2, proto.Auth.ClusterProto.RetrieveRequest.oneofGroups_[0], undefined);
837
- };
838
-
839
-
840
- /**
841
- * Returns whether this field is set.
842
- * @return {boolean}
843
- */
844
- proto.Auth.ClusterProto.RetrieveRequest.prototype.hasName = function() {
845
- return jspb.Message.getField(this, 2) != null;
846
- };
847
-
848
-
849
-
850
-
851
-
852
- if (jspb.Message.GENERATE_TO_OBJECT) {
853
- /**
854
- * Creates an object representation of this proto.
855
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
856
- * Optional fields that are not set will be set to undefined.
857
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
858
- * For the list of reserved names please see:
859
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
860
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
861
- * JSPB instance for transitional soy proto support:
862
- * http://goto/soy-param-migration
863
- * @return {!Object}
864
- */
865
- proto.Auth.ClusterProto.UpdateRequest.prototype.toObject = function(opt_includeInstance) {
866
- return proto.Auth.ClusterProto.UpdateRequest.toObject(opt_includeInstance, this);
867
- };
868
-
869
-
870
- /**
871
- * Static version of the {@see toObject} method.
872
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
873
- * the JSPB instance for transitional soy proto support:
874
- * http://goto/soy-param-migration
875
- * @param {!proto.Auth.ClusterProto.UpdateRequest} msg The msg instance to transform.
876
- * @return {!Object}
877
- * @suppress {unusedLocalVariables} f is only used for nested messages
878
- */
879
- proto.Auth.ClusterProto.UpdateRequest.toObject = function(includeInstance, msg) {
880
- var f, obj = {
881
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
882
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
883
- customName: jspb.Message.getFieldWithDefault(msg, 3, ""),
884
- endpoint: jspb.Message.getFieldWithDefault(msg, 4, ""),
885
- deviceEndpoint: jspb.Message.getFieldWithDefault(msg, 5, ""),
886
- country: jspb.Message.getFieldWithDefault(msg, 6, "")
887
- };
888
-
889
- if (includeInstance) {
890
- obj.$jspbMessageInstance = msg;
891
- }
892
- return obj;
893
- };
894
- }
895
-
896
-
897
- /**
898
- * Deserializes binary data (in protobuf wire format).
899
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
900
- * @return {!proto.Auth.ClusterProto.UpdateRequest}
901
- */
902
- proto.Auth.ClusterProto.UpdateRequest.deserializeBinary = function(bytes) {
903
- var reader = new jspb.BinaryReader(bytes);
904
- var msg = new proto.Auth.ClusterProto.UpdateRequest;
905
- return proto.Auth.ClusterProto.UpdateRequest.deserializeBinaryFromReader(msg, reader);
906
- };
907
-
908
-
909
- /**
910
- * Deserializes binary data (in protobuf wire format) from the
911
- * given reader into the given message object.
912
- * @param {!proto.Auth.ClusterProto.UpdateRequest} msg The message object to deserialize into.
913
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
914
- * @return {!proto.Auth.ClusterProto.UpdateRequest}
915
- */
916
- proto.Auth.ClusterProto.UpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
917
- while (reader.nextField()) {
918
- if (reader.isEndGroup()) {
919
- break;
920
- }
921
- var field = reader.getFieldNumber();
922
- switch (field) {
923
- case 1:
924
- var value = /** @type {number} */ (reader.readInt64());
925
- msg.setId(value);
926
- break;
927
- case 2:
928
- var value = /** @type {string} */ (reader.readString());
929
- msg.setName(value);
930
- break;
931
- case 3:
932
- var value = /** @type {string} */ (reader.readString());
933
- msg.setCustomName(value);
934
- break;
935
- case 4:
936
- var value = /** @type {string} */ (reader.readString());
937
- msg.setEndpoint(value);
938
- break;
939
- case 5:
940
- var value = /** @type {string} */ (reader.readString());
941
- msg.setDeviceEndpoint(value);
942
- break;
943
- case 6:
944
- var value = /** @type {string} */ (reader.readString());
945
- msg.setCountry(value);
946
- break;
947
- default:
948
- reader.skipField();
949
- break;
950
- }
951
- }
952
- return msg;
953
- };
954
-
955
-
956
- /**
957
- * Serializes the message to binary data (in protobuf wire format).
958
- * @return {!Uint8Array}
959
- */
960
- proto.Auth.ClusterProto.UpdateRequest.prototype.serializeBinary = function() {
961
- var writer = new jspb.BinaryWriter();
962
- proto.Auth.ClusterProto.UpdateRequest.serializeBinaryToWriter(this, writer);
963
- return writer.getResultBuffer();
964
- };
965
-
966
-
967
- /**
968
- * Serializes the given message to binary data (in protobuf wire
969
- * format), writing to the given BinaryWriter.
970
- * @param {!proto.Auth.ClusterProto.UpdateRequest} message
971
- * @param {!jspb.BinaryWriter} writer
972
- * @suppress {unusedLocalVariables} f is only used for nested messages
973
- */
974
- proto.Auth.ClusterProto.UpdateRequest.serializeBinaryToWriter = function(message, writer) {
975
- var f = undefined;
976
- f = message.getId();
977
- if (f !== 0) {
978
- writer.writeInt64(
979
- 1,
980
- f
981
- );
982
- }
983
- f = message.getName();
984
- if (f.length > 0) {
985
- writer.writeString(
986
- 2,
987
- f
988
- );
989
- }
990
- f = message.getCustomName();
991
- if (f.length > 0) {
992
- writer.writeString(
993
- 3,
994
- f
995
- );
996
- }
997
- f = message.getEndpoint();
998
- if (f.length > 0) {
999
- writer.writeString(
1000
- 4,
1001
- f
1002
- );
1003
- }
1004
- f = message.getDeviceEndpoint();
1005
- if (f.length > 0) {
1006
- writer.writeString(
1007
- 5,
1008
- f
1009
- );
1010
- }
1011
- f = message.getCountry();
1012
- if (f.length > 0) {
1013
- writer.writeString(
1014
- 6,
1015
- f
1016
- );
1017
- }
1018
- };
1019
-
1020
-
1021
- /**
1022
- * optional int64 id = 1;
1023
- * @return {number}
1024
- */
1025
- proto.Auth.ClusterProto.UpdateRequest.prototype.getId = function() {
1026
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1027
- };
1028
-
1029
-
1030
- /**
1031
- * @param {number} value
1032
- * @return {!proto.Auth.ClusterProto.UpdateRequest} returns this
1033
- */
1034
- proto.Auth.ClusterProto.UpdateRequest.prototype.setId = function(value) {
1035
- return jspb.Message.setProto3IntField(this, 1, value);
1036
- };
1037
-
1038
-
1039
- /**
1040
- * optional string name = 2;
1041
- * @return {string}
1042
- */
1043
- proto.Auth.ClusterProto.UpdateRequest.prototype.getName = function() {
1044
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1045
- };
1046
-
1047
-
1048
- /**
1049
- * @param {string} value
1050
- * @return {!proto.Auth.ClusterProto.UpdateRequest} returns this
1051
- */
1052
- proto.Auth.ClusterProto.UpdateRequest.prototype.setName = function(value) {
1053
- return jspb.Message.setProto3StringField(this, 2, value);
1054
- };
1055
-
1056
-
1057
- /**
1058
- * optional string custom_name = 3;
1059
- * @return {string}
1060
- */
1061
- proto.Auth.ClusterProto.UpdateRequest.prototype.getCustomName = function() {
1062
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1063
- };
1064
-
1065
-
1066
- /**
1067
- * @param {string} value
1068
- * @return {!proto.Auth.ClusterProto.UpdateRequest} returns this
1069
- */
1070
- proto.Auth.ClusterProto.UpdateRequest.prototype.setCustomName = function(value) {
1071
- return jspb.Message.setProto3StringField(this, 3, value);
1072
- };
1073
-
1074
-
1075
- /**
1076
- * optional string endpoint = 4;
1077
- * @return {string}
1078
- */
1079
- proto.Auth.ClusterProto.UpdateRequest.prototype.getEndpoint = function() {
1080
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1081
- };
1082
-
1083
-
1084
- /**
1085
- * @param {string} value
1086
- * @return {!proto.Auth.ClusterProto.UpdateRequest} returns this
1087
- */
1088
- proto.Auth.ClusterProto.UpdateRequest.prototype.setEndpoint = function(value) {
1089
- return jspb.Message.setProto3StringField(this, 4, value);
1090
- };
1091
-
1092
-
1093
- /**
1094
- * optional string device_endpoint = 5;
1095
- * @return {string}
1096
- */
1097
- proto.Auth.ClusterProto.UpdateRequest.prototype.getDeviceEndpoint = function() {
1098
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1099
- };
1100
-
1101
-
1102
- /**
1103
- * @param {string} value
1104
- * @return {!proto.Auth.ClusterProto.UpdateRequest} returns this
1105
- */
1106
- proto.Auth.ClusterProto.UpdateRequest.prototype.setDeviceEndpoint = function(value) {
1107
- return jspb.Message.setProto3StringField(this, 5, value);
1108
- };
1109
-
1110
-
1111
- /**
1112
- * optional string country = 6;
1113
- * @return {string}
1114
- */
1115
- proto.Auth.ClusterProto.UpdateRequest.prototype.getCountry = function() {
1116
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1117
- };
1118
-
1119
-
1120
- /**
1121
- * @param {string} value
1122
- * @return {!proto.Auth.ClusterProto.UpdateRequest} returns this
1123
- */
1124
- proto.Auth.ClusterProto.UpdateRequest.prototype.setCountry = function(value) {
1125
- return jspb.Message.setProto3StringField(this, 6, value);
1126
- };
1127
-
1128
-
1129
-
1130
-
1131
-
1132
- if (jspb.Message.GENERATE_TO_OBJECT) {
1133
- /**
1134
- * Creates an object representation of this proto.
1135
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1136
- * Optional fields that are not set will be set to undefined.
1137
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1138
- * For the list of reserved names please see:
1139
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1140
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1141
- * JSPB instance for transitional soy proto support:
1142
- * http://goto/soy-param-migration
1143
- * @return {!Object}
1144
- */
1145
- proto.Auth.ClusterProto.DeleteRequest.prototype.toObject = function(opt_includeInstance) {
1146
- return proto.Auth.ClusterProto.DeleteRequest.toObject(opt_includeInstance, this);
1147
- };
1148
-
1149
-
1150
- /**
1151
- * Static version of the {@see toObject} method.
1152
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1153
- * the JSPB instance for transitional soy proto support:
1154
- * http://goto/soy-param-migration
1155
- * @param {!proto.Auth.ClusterProto.DeleteRequest} msg The msg instance to transform.
1156
- * @return {!Object}
1157
- * @suppress {unusedLocalVariables} f is only used for nested messages
1158
- */
1159
- proto.Auth.ClusterProto.DeleteRequest.toObject = function(includeInstance, msg) {
1160
- var f, obj = {
1161
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1162
- };
1163
-
1164
- if (includeInstance) {
1165
- obj.$jspbMessageInstance = msg;
1166
- }
1167
- return obj;
1168
- };
1169
- }
1170
-
1171
-
1172
- /**
1173
- * Deserializes binary data (in protobuf wire format).
1174
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1175
- * @return {!proto.Auth.ClusterProto.DeleteRequest}
1176
- */
1177
- proto.Auth.ClusterProto.DeleteRequest.deserializeBinary = function(bytes) {
1178
- var reader = new jspb.BinaryReader(bytes);
1179
- var msg = new proto.Auth.ClusterProto.DeleteRequest;
1180
- return proto.Auth.ClusterProto.DeleteRequest.deserializeBinaryFromReader(msg, reader);
1181
- };
1182
-
1183
-
1184
- /**
1185
- * Deserializes binary data (in protobuf wire format) from the
1186
- * given reader into the given message object.
1187
- * @param {!proto.Auth.ClusterProto.DeleteRequest} msg The message object to deserialize into.
1188
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1189
- * @return {!proto.Auth.ClusterProto.DeleteRequest}
1190
- */
1191
- proto.Auth.ClusterProto.DeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
1192
- while (reader.nextField()) {
1193
- if (reader.isEndGroup()) {
1194
- break;
1195
- }
1196
- var field = reader.getFieldNumber();
1197
- switch (field) {
1198
- case 1:
1199
- var value = /** @type {number} */ (reader.readInt64());
1200
- msg.setId(value);
1201
- break;
1202
- default:
1203
- reader.skipField();
1204
- break;
1205
- }
1206
- }
1207
- return msg;
1208
- };
1209
-
1210
-
1211
- /**
1212
- * Serializes the message to binary data (in protobuf wire format).
1213
- * @return {!Uint8Array}
1214
- */
1215
- proto.Auth.ClusterProto.DeleteRequest.prototype.serializeBinary = function() {
1216
- var writer = new jspb.BinaryWriter();
1217
- proto.Auth.ClusterProto.DeleteRequest.serializeBinaryToWriter(this, writer);
1218
- return writer.getResultBuffer();
1219
- };
1220
-
1221
-
1222
- /**
1223
- * Serializes the given message to binary data (in protobuf wire
1224
- * format), writing to the given BinaryWriter.
1225
- * @param {!proto.Auth.ClusterProto.DeleteRequest} message
1226
- * @param {!jspb.BinaryWriter} writer
1227
- * @suppress {unusedLocalVariables} f is only used for nested messages
1228
- */
1229
- proto.Auth.ClusterProto.DeleteRequest.serializeBinaryToWriter = function(message, writer) {
1230
- var f = undefined;
1231
- f = message.getId();
1232
- if (f !== 0) {
1233
- writer.writeInt64(
1234
- 1,
1235
- f
1236
- );
1237
- }
1238
- };
1239
-
1240
-
1241
- /**
1242
- * optional int64 id = 1;
1243
- * @return {number}
1244
- */
1245
- proto.Auth.ClusterProto.DeleteRequest.prototype.getId = function() {
1246
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1247
- };
1248
-
1249
-
1250
- /**
1251
- * @param {number} value
1252
- * @return {!proto.Auth.ClusterProto.DeleteRequest} returns this
1253
- */
1254
- proto.Auth.ClusterProto.DeleteRequest.prototype.setId = function(value) {
1255
- return jspb.Message.setProto3IntField(this, 1, value);
1256
- };
1257
-
1258
-
1259
-
1260
-
1261
-
1262
- if (jspb.Message.GENERATE_TO_OBJECT) {
1263
- /**
1264
- * Creates an object representation of this proto.
1265
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1266
- * Optional fields that are not set will be set to undefined.
1267
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1268
- * For the list of reserved names please see:
1269
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1270
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1271
- * JSPB instance for transitional soy proto support:
1272
- * http://goto/soy-param-migration
1273
- * @return {!Object}
1274
- */
1275
- proto.Auth.ClusterProto.DeleteReply.prototype.toObject = function(opt_includeInstance) {
1276
- return proto.Auth.ClusterProto.DeleteReply.toObject(opt_includeInstance, this);
1277
- };
1278
-
1279
-
1280
- /**
1281
- * Static version of the {@see toObject} method.
1282
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1283
- * the JSPB instance for transitional soy proto support:
1284
- * http://goto/soy-param-migration
1285
- * @param {!proto.Auth.ClusterProto.DeleteReply} msg The msg instance to transform.
1286
- * @return {!Object}
1287
- * @suppress {unusedLocalVariables} f is only used for nested messages
1288
- */
1289
- proto.Auth.ClusterProto.DeleteReply.toObject = function(includeInstance, msg) {
1290
- var f, obj = {
1291
-
1292
- };
1293
-
1294
- if (includeInstance) {
1295
- obj.$jspbMessageInstance = msg;
1296
- }
1297
- return obj;
1298
- };
1299
- }
1300
-
1301
-
1302
- /**
1303
- * Deserializes binary data (in protobuf wire format).
1304
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1305
- * @return {!proto.Auth.ClusterProto.DeleteReply}
1306
- */
1307
- proto.Auth.ClusterProto.DeleteReply.deserializeBinary = function(bytes) {
1308
- var reader = new jspb.BinaryReader(bytes);
1309
- var msg = new proto.Auth.ClusterProto.DeleteReply;
1310
- return proto.Auth.ClusterProto.DeleteReply.deserializeBinaryFromReader(msg, reader);
1311
- };
1312
-
1313
-
1314
- /**
1315
- * Deserializes binary data (in protobuf wire format) from the
1316
- * given reader into the given message object.
1317
- * @param {!proto.Auth.ClusterProto.DeleteReply} msg The message object to deserialize into.
1318
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1319
- * @return {!proto.Auth.ClusterProto.DeleteReply}
1320
- */
1321
- proto.Auth.ClusterProto.DeleteReply.deserializeBinaryFromReader = function(msg, reader) {
1322
- while (reader.nextField()) {
1323
- if (reader.isEndGroup()) {
1324
- break;
1325
- }
1326
- var field = reader.getFieldNumber();
1327
- switch (field) {
1328
- default:
1329
- reader.skipField();
1330
- break;
1331
- }
1332
- }
1333
- return msg;
1334
- };
1335
-
1336
-
1337
- /**
1338
- * Serializes the message to binary data (in protobuf wire format).
1339
- * @return {!Uint8Array}
1340
- */
1341
- proto.Auth.ClusterProto.DeleteReply.prototype.serializeBinary = function() {
1342
- var writer = new jspb.BinaryWriter();
1343
- proto.Auth.ClusterProto.DeleteReply.serializeBinaryToWriter(this, writer);
1344
- return writer.getResultBuffer();
1345
- };
1346
-
1347
-
1348
- /**
1349
- * Serializes the given message to binary data (in protobuf wire
1350
- * format), writing to the given BinaryWriter.
1351
- * @param {!proto.Auth.ClusterProto.DeleteReply} message
1352
- * @param {!jspb.BinaryWriter} writer
1353
- * @suppress {unusedLocalVariables} f is only used for nested messages
1354
- */
1355
- proto.Auth.ClusterProto.DeleteReply.serializeBinaryToWriter = function(message, writer) {
1356
- var f = undefined;
1357
- };
1358
-
1359
-
1360
-
1361
-
1362
-
1363
- if (jspb.Message.GENERATE_TO_OBJECT) {
1364
- /**
1365
- * Creates an object representation of this proto.
1366
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1367
- * Optional fields that are not set will be set to undefined.
1368
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1369
- * For the list of reserved names please see:
1370
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1371
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1372
- * JSPB instance for transitional soy proto support:
1373
- * http://goto/soy-param-migration
1374
- * @return {!Object}
1375
- */
1376
- proto.Auth.ClusterProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
1377
- return proto.Auth.ClusterProto.SearchRequest.toObject(opt_includeInstance, this);
1378
- };
1379
-
1380
-
1381
- /**
1382
- * Static version of the {@see toObject} method.
1383
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1384
- * the JSPB instance for transitional soy proto support:
1385
- * http://goto/soy-param-migration
1386
- * @param {!proto.Auth.ClusterProto.SearchRequest} msg The msg instance to transform.
1387
- * @return {!Object}
1388
- * @suppress {unusedLocalVariables} f is only used for nested messages
1389
- */
1390
- proto.Auth.ClusterProto.SearchRequest.toObject = function(includeInstance, msg) {
1391
- var f, obj = {
1392
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1393
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1394
- customName: jspb.Message.getFieldWithDefault(msg, 3, ""),
1395
- page: jspb.Message.getFieldWithDefault(msg, 4, 0),
1396
- count: jspb.Message.getFieldWithDefault(msg, 5, 0)
1397
- };
1398
-
1399
- if (includeInstance) {
1400
- obj.$jspbMessageInstance = msg;
1401
- }
1402
- return obj;
1403
- };
1404
- }
1405
-
1406
-
1407
- /**
1408
- * Deserializes binary data (in protobuf wire format).
1409
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1410
- * @return {!proto.Auth.ClusterProto.SearchRequest}
1411
- */
1412
- proto.Auth.ClusterProto.SearchRequest.deserializeBinary = function(bytes) {
1413
- var reader = new jspb.BinaryReader(bytes);
1414
- var msg = new proto.Auth.ClusterProto.SearchRequest;
1415
- return proto.Auth.ClusterProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
1416
- };
1417
-
1418
-
1419
- /**
1420
- * Deserializes binary data (in protobuf wire format) from the
1421
- * given reader into the given message object.
1422
- * @param {!proto.Auth.ClusterProto.SearchRequest} msg The message object to deserialize into.
1423
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1424
- * @return {!proto.Auth.ClusterProto.SearchRequest}
1425
- */
1426
- proto.Auth.ClusterProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
1427
- while (reader.nextField()) {
1428
- if (reader.isEndGroup()) {
1429
- break;
1430
- }
1431
- var field = reader.getFieldNumber();
1432
- switch (field) {
1433
- case 1:
1434
- var value = /** @type {number} */ (reader.readInt64());
1435
- msg.setId(value);
1436
- break;
1437
- case 2:
1438
- var value = /** @type {string} */ (reader.readString());
1439
- msg.setName(value);
1440
- break;
1441
- case 3:
1442
- var value = /** @type {string} */ (reader.readString());
1443
- msg.setCustomName(value);
1444
- break;
1445
- case 4:
1446
- var value = /** @type {number} */ (reader.readInt32());
1447
- msg.setPage(value);
1448
- break;
1449
- case 5:
1450
- var value = /** @type {number} */ (reader.readInt32());
1451
- msg.setCount(value);
1452
- break;
1453
- default:
1454
- reader.skipField();
1455
- break;
1456
- }
1457
- }
1458
- return msg;
1459
- };
1460
-
1461
-
1462
- /**
1463
- * Serializes the message to binary data (in protobuf wire format).
1464
- * @return {!Uint8Array}
1465
- */
1466
- proto.Auth.ClusterProto.SearchRequest.prototype.serializeBinary = function() {
1467
- var writer = new jspb.BinaryWriter();
1468
- proto.Auth.ClusterProto.SearchRequest.serializeBinaryToWriter(this, writer);
1469
- return writer.getResultBuffer();
1470
- };
1471
-
1472
-
1473
- /**
1474
- * Serializes the given message to binary data (in protobuf wire
1475
- * format), writing to the given BinaryWriter.
1476
- * @param {!proto.Auth.ClusterProto.SearchRequest} message
1477
- * @param {!jspb.BinaryWriter} writer
1478
- * @suppress {unusedLocalVariables} f is only used for nested messages
1479
- */
1480
- proto.Auth.ClusterProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
1481
- var f = undefined;
1482
- f = message.getId();
1483
- if (f !== 0) {
1484
- writer.writeInt64(
1485
- 1,
1486
- f
1487
- );
1488
- }
1489
- f = message.getName();
1490
- if (f.length > 0) {
1491
- writer.writeString(
1492
- 2,
1493
- f
1494
- );
1495
- }
1496
- f = message.getCustomName();
1497
- if (f.length > 0) {
1498
- writer.writeString(
1499
- 3,
1500
- f
1501
- );
1502
- }
1503
- f = message.getPage();
1504
- if (f !== 0) {
1505
- writer.writeInt32(
1506
- 4,
1507
- f
1508
- );
1509
- }
1510
- f = message.getCount();
1511
- if (f !== 0) {
1512
- writer.writeInt32(
1513
- 5,
1514
- f
1515
- );
1516
- }
1517
- };
1518
-
1519
-
1520
- /**
1521
- * optional int64 id = 1;
1522
- * @return {number}
1523
- */
1524
- proto.Auth.ClusterProto.SearchRequest.prototype.getId = function() {
1525
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1526
- };
1527
-
1528
-
1529
- /**
1530
- * @param {number} value
1531
- * @return {!proto.Auth.ClusterProto.SearchRequest} returns this
1532
- */
1533
- proto.Auth.ClusterProto.SearchRequest.prototype.setId = function(value) {
1534
- return jspb.Message.setProto3IntField(this, 1, value);
1535
- };
1536
-
1537
-
1538
- /**
1539
- * optional string name = 2;
1540
- * @return {string}
1541
- */
1542
- proto.Auth.ClusterProto.SearchRequest.prototype.getName = function() {
1543
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1544
- };
1545
-
1546
-
1547
- /**
1548
- * @param {string} value
1549
- * @return {!proto.Auth.ClusterProto.SearchRequest} returns this
1550
- */
1551
- proto.Auth.ClusterProto.SearchRequest.prototype.setName = function(value) {
1552
- return jspb.Message.setProto3StringField(this, 2, value);
1553
- };
1554
-
1555
-
1556
- /**
1557
- * optional string custom_name = 3;
1558
- * @return {string}
1559
- */
1560
- proto.Auth.ClusterProto.SearchRequest.prototype.getCustomName = function() {
1561
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1562
- };
1563
-
1564
-
1565
- /**
1566
- * @param {string} value
1567
- * @return {!proto.Auth.ClusterProto.SearchRequest} returns this
1568
- */
1569
- proto.Auth.ClusterProto.SearchRequest.prototype.setCustomName = function(value) {
1570
- return jspb.Message.setProto3StringField(this, 3, value);
1571
- };
1572
-
1573
-
1574
- /**
1575
- * optional int32 page = 4;
1576
- * @return {number}
1577
- */
1578
- proto.Auth.ClusterProto.SearchRequest.prototype.getPage = function() {
1579
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1580
- };
1581
-
1582
-
1583
- /**
1584
- * @param {number} value
1585
- * @return {!proto.Auth.ClusterProto.SearchRequest} returns this
1586
- */
1587
- proto.Auth.ClusterProto.SearchRequest.prototype.setPage = function(value) {
1588
- return jspb.Message.setProto3IntField(this, 4, value);
1589
- };
1590
-
1591
-
1592
- /**
1593
- * optional int32 count = 5;
1594
- * @return {number}
1595
- */
1596
- proto.Auth.ClusterProto.SearchRequest.prototype.getCount = function() {
1597
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1598
- };
1599
-
1600
-
1601
- /**
1602
- * @param {number} value
1603
- * @return {!proto.Auth.ClusterProto.SearchRequest} returns this
1604
- */
1605
- proto.Auth.ClusterProto.SearchRequest.prototype.setCount = function(value) {
1606
- return jspb.Message.setProto3IntField(this, 5, value);
1607
- };
1608
-
1609
-
1610
-
1611
- /**
1612
- * List of repeated fields within this message type.
1613
- * @private {!Array<number>}
1614
- * @const
1615
- */
1616
- proto.Auth.ClusterProto.SearchReply.repeatedFields_ = [1];
1617
-
1618
-
1619
-
1620
- if (jspb.Message.GENERATE_TO_OBJECT) {
1621
- /**
1622
- * Creates an object representation of this proto.
1623
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1624
- * Optional fields that are not set will be set to undefined.
1625
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1626
- * For the list of reserved names please see:
1627
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1628
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1629
- * JSPB instance for transitional soy proto support:
1630
- * http://goto/soy-param-migration
1631
- * @return {!Object}
1632
- */
1633
- proto.Auth.ClusterProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
1634
- return proto.Auth.ClusterProto.SearchReply.toObject(opt_includeInstance, this);
1635
- };
1636
-
1637
-
1638
- /**
1639
- * Static version of the {@see toObject} method.
1640
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1641
- * the JSPB instance for transitional soy proto support:
1642
- * http://goto/soy-param-migration
1643
- * @param {!proto.Auth.ClusterProto.SearchReply} msg The msg instance to transform.
1644
- * @return {!Object}
1645
- * @suppress {unusedLocalVariables} f is only used for nested messages
1646
- */
1647
- proto.Auth.ClusterProto.SearchReply.toObject = function(includeInstance, msg) {
1648
- var f, obj = {
1649
- clustersList: jspb.Message.toObjectList(msg.getClustersList(),
1650
- proto.Auth.ClusterProto.toObject, includeInstance),
1651
- pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
1652
- };
1653
-
1654
- if (includeInstance) {
1655
- obj.$jspbMessageInstance = msg;
1656
- }
1657
- return obj;
1658
- };
1659
- }
1660
-
1661
-
1662
- /**
1663
- * Deserializes binary data (in protobuf wire format).
1664
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1665
- * @return {!proto.Auth.ClusterProto.SearchReply}
1666
- */
1667
- proto.Auth.ClusterProto.SearchReply.deserializeBinary = function(bytes) {
1668
- var reader = new jspb.BinaryReader(bytes);
1669
- var msg = new proto.Auth.ClusterProto.SearchReply;
1670
- return proto.Auth.ClusterProto.SearchReply.deserializeBinaryFromReader(msg, reader);
1671
- };
1672
-
1673
-
1674
- /**
1675
- * Deserializes binary data (in protobuf wire format) from the
1676
- * given reader into the given message object.
1677
- * @param {!proto.Auth.ClusterProto.SearchReply} msg The message object to deserialize into.
1678
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1679
- * @return {!proto.Auth.ClusterProto.SearchReply}
1680
- */
1681
- proto.Auth.ClusterProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
1682
- while (reader.nextField()) {
1683
- if (reader.isEndGroup()) {
1684
- break;
1685
- }
1686
- var field = reader.getFieldNumber();
1687
- switch (field) {
1688
- case 1:
1689
- var value = new proto.Auth.ClusterProto;
1690
- reader.readMessage(value,proto.Auth.ClusterProto.deserializeBinaryFromReader);
1691
- msg.addClusters(value);
1692
- break;
1693
- case 2:
1694
- var value = new platform_pagination_pb.PaginationProto;
1695
- reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
1696
- msg.setPagination(value);
1697
- break;
1698
- default:
1699
- reader.skipField();
1700
- break;
1701
- }
1702
- }
1703
- return msg;
1704
- };
1705
-
1706
-
1707
- /**
1708
- * Serializes the message to binary data (in protobuf wire format).
1709
- * @return {!Uint8Array}
1710
- */
1711
- proto.Auth.ClusterProto.SearchReply.prototype.serializeBinary = function() {
1712
- var writer = new jspb.BinaryWriter();
1713
- proto.Auth.ClusterProto.SearchReply.serializeBinaryToWriter(this, writer);
1714
- return writer.getResultBuffer();
1715
- };
1716
-
1717
-
1718
- /**
1719
- * Serializes the given message to binary data (in protobuf wire
1720
- * format), writing to the given BinaryWriter.
1721
- * @param {!proto.Auth.ClusterProto.SearchReply} message
1722
- * @param {!jspb.BinaryWriter} writer
1723
- * @suppress {unusedLocalVariables} f is only used for nested messages
1724
- */
1725
- proto.Auth.ClusterProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
1726
- var f = undefined;
1727
- f = message.getClustersList();
1728
- if (f.length > 0) {
1729
- writer.writeRepeatedMessage(
1730
- 1,
1731
- f,
1732
- proto.Auth.ClusterProto.serializeBinaryToWriter
1733
- );
1734
- }
1735
- f = message.getPagination();
1736
- if (f != null) {
1737
- writer.writeMessage(
1738
- 2,
1739
- f,
1740
- platform_pagination_pb.PaginationProto.serializeBinaryToWriter
1741
- );
1742
- }
1743
- };
1744
-
1745
-
1746
- /**
1747
- * repeated ClusterProto Clusters = 1;
1748
- * @return {!Array<!proto.Auth.ClusterProto>}
1749
- */
1750
- proto.Auth.ClusterProto.SearchReply.prototype.getClustersList = function() {
1751
- return /** @type{!Array<!proto.Auth.ClusterProto>} */ (
1752
- jspb.Message.getRepeatedWrapperField(this, proto.Auth.ClusterProto, 1));
1753
- };
1754
-
1755
-
1756
- /**
1757
- * @param {!Array<!proto.Auth.ClusterProto>} value
1758
- * @return {!proto.Auth.ClusterProto.SearchReply} returns this
1759
- */
1760
- proto.Auth.ClusterProto.SearchReply.prototype.setClustersList = function(value) {
1761
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
1762
- };
1763
-
1764
-
1765
- /**
1766
- * @param {!proto.Auth.ClusterProto=} opt_value
1767
- * @param {number=} opt_index
1768
- * @return {!proto.Auth.ClusterProto}
1769
- */
1770
- proto.Auth.ClusterProto.SearchReply.prototype.addClusters = function(opt_value, opt_index) {
1771
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Auth.ClusterProto, opt_index);
1772
- };
1773
-
1774
-
1775
- /**
1776
- * Clears the list making it empty but non-null.
1777
- * @return {!proto.Auth.ClusterProto.SearchReply} returns this
1778
- */
1779
- proto.Auth.ClusterProto.SearchReply.prototype.clearClustersList = function() {
1780
- return this.setClustersList([]);
1781
- };
1782
-
1783
-
1784
- /**
1785
- * optional Platform.PaginationProto pagination = 2;
1786
- * @return {?proto.Platform.PaginationProto}
1787
- */
1788
- proto.Auth.ClusterProto.SearchReply.prototype.getPagination = function() {
1789
- return /** @type{?proto.Platform.PaginationProto} */ (
1790
- jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
1791
- };
1792
-
1793
-
1794
- /**
1795
- * @param {?proto.Platform.PaginationProto|undefined} value
1796
- * @return {!proto.Auth.ClusterProto.SearchReply} returns this
1797
- */
1798
- proto.Auth.ClusterProto.SearchReply.prototype.setPagination = function(value) {
1799
- return jspb.Message.setWrapperField(this, 2, value);
1800
- };
1801
-
1802
-
1803
- /**
1804
- * Clears the message field making it undefined.
1805
- * @return {!proto.Auth.ClusterProto.SearchReply} returns this
1806
- */
1807
- proto.Auth.ClusterProto.SearchReply.prototype.clearPagination = function() {
1808
- return this.setPagination(undefined);
1809
- };
1810
-
1811
-
1812
- /**
1813
- * Returns whether this field is set.
1814
- * @return {boolean}
1815
- */
1816
- proto.Auth.ClusterProto.SearchReply.prototype.hasPagination = function() {
1817
- return jspb.Message.getField(this, 2) != null;
1818
- };
1819
-
1820
-
1821
- /**
1822
- * optional int64 id = 1;
1823
- * @return {number}
1824
- */
1825
- proto.Auth.ClusterProto.prototype.getId = function() {
1826
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1827
- };
1828
-
1829
-
1830
- /**
1831
- * @param {number} value
1832
- * @return {!proto.Auth.ClusterProto} returns this
1833
- */
1834
- proto.Auth.ClusterProto.prototype.setId = function(value) {
1835
- return jspb.Message.setProto3IntField(this, 1, value);
1836
- };
1837
-
1838
-
1839
- /**
1840
- * optional string name = 2;
1841
- * @return {string}
1842
- */
1843
- proto.Auth.ClusterProto.prototype.getName = function() {
1844
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1845
- };
1846
-
1847
-
1848
- /**
1849
- * @param {string} value
1850
- * @return {!proto.Auth.ClusterProto} returns this
1851
- */
1852
- proto.Auth.ClusterProto.prototype.setName = function(value) {
1853
- return jspb.Message.setProto3StringField(this, 2, value);
1854
- };
1855
-
1856
-
1857
- /**
1858
- * optional string custom_name = 3;
1859
- * @return {string}
1860
- */
1861
- proto.Auth.ClusterProto.prototype.getCustomName = function() {
1862
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1863
- };
1864
-
1865
-
1866
- /**
1867
- * @param {string} value
1868
- * @return {!proto.Auth.ClusterProto} returns this
1869
- */
1870
- proto.Auth.ClusterProto.prototype.setCustomName = function(value) {
1871
- return jspb.Message.setProto3StringField(this, 3, value);
1872
- };
1873
-
1874
-
1875
- /**
1876
- * optional string endpoint = 4;
1877
- * @return {string}
1878
- */
1879
- proto.Auth.ClusterProto.prototype.getEndpoint = function() {
1880
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1881
- };
1882
-
1883
-
1884
- /**
1885
- * @param {string} value
1886
- * @return {!proto.Auth.ClusterProto} returns this
1887
- */
1888
- proto.Auth.ClusterProto.prototype.setEndpoint = function(value) {
1889
- return jspb.Message.setProto3StringField(this, 4, value);
1890
- };
1891
-
1892
-
1893
- /**
1894
- * optional string device_endpoint = 5;
1895
- * @return {string}
1896
- */
1897
- proto.Auth.ClusterProto.prototype.getDeviceEndpoint = function() {
1898
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1899
- };
1900
-
1901
-
1902
- /**
1903
- * @param {string} value
1904
- * @return {!proto.Auth.ClusterProto} returns this
1905
- */
1906
- proto.Auth.ClusterProto.prototype.setDeviceEndpoint = function(value) {
1907
- return jspb.Message.setProto3StringField(this, 5, value);
1908
- };
1909
-
1910
-
1911
- /**
1912
- * optional string country = 6;
1913
- * @return {string}
1914
- */
1915
- proto.Auth.ClusterProto.prototype.getCountry = function() {
1916
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1917
- };
1918
-
1919
-
1920
- /**
1921
- * @param {string} value
1922
- * @return {!proto.Auth.ClusterProto} returns this
1923
- */
1924
- proto.Auth.ClusterProto.prototype.setCountry = function(value) {
1925
- return jspb.Message.setProto3StringField(this, 6, value);
1926
- };
1927
-
1928
-
1929
- goog.object.extend(exports, proto.Auth);