@aceplus/smartace-api 2.13.0-alpha.13 → 2.13.0-alpha.14

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 (229) hide show
  1. package/package.json +1 -1
  2. package/auth.account_pb.d.ts +0 -574
  3. package/auth.account_pb.js +0 -4227
  4. package/auth.account_pb_service.d.ts +0 -340
  5. package/auth.account_pb_service.js +0 -637
  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.client_pb.d.ts +0 -167
  179. package/meta.client_pb.js +0 -1266
  180. package/meta.client_pb_service.d.ts +0 -122
  181. package/meta.client_pb_service.js +0 -183
  182. package/meta.spic_config_pb.d.ts +0 -184
  183. package/meta.spic_config_pb.js +0 -1382
  184. package/meta.spic_config_pb_service.d.ts +0 -122
  185. package/meta.spic_config_pb_service.js +0 -183
  186. package/platform.activity_log_pb.d.ts +0 -177
  187. package/platform.activity_log_pb.js +0 -1294
  188. package/platform.activity_log_pb_service.d.ts +0 -82
  189. package/platform.activity_log_pb_service.js +0 -101
  190. package/platform.client_pb.d.ts +0 -350
  191. package/platform.client_pb.js +0 -2663
  192. package/platform.client_pb_service.d.ts +0 -158
  193. package/platform.client_pb_service.js +0 -261
  194. package/platform.group_pb.d.ts +0 -195
  195. package/platform.group_pb.js +0 -1476
  196. package/platform.group_pb_service.d.ts +0 -139
  197. package/platform.group_pb_service.js +0 -221
  198. package/platform.local_account_internal_pb.d.ts +0 -121
  199. package/platform.local_account_internal_pb.js +0 -903
  200. package/platform.local_account_internal_pb_service.d.ts +0 -121
  201. package/platform.local_account_internal_pb_service.js +0 -182
  202. package/platform.local_account_pb.d.ts +0 -403
  203. package/platform.local_account_pb.js +0 -3032
  204. package/platform.local_account_pb_service.d.ts +0 -331
  205. package/platform.local_account_pb_service.js +0 -623
  206. package/platform.local_distribution_pb.d.ts +0 -69
  207. package/platform.local_distribution_pb.js +0 -506
  208. package/platform.local_distribution_pb_service.d.ts +0 -63
  209. package/platform.local_distribution_pb_service.js +0 -61
  210. package/platform.location_pb.d.ts +0 -271
  211. package/platform.location_pb.js +0 -2046
  212. package/platform.location_pb_service.d.ts +0 -139
  213. package/platform.location_pb_service.js +0 -221
  214. package/platform.pagination_pb.d.ts +0 -45
  215. package/platform.pagination_pb.js +0 -276
  216. package/platform.pagination_pb_service.d.ts +0 -3
  217. package/platform.pagination_pb_service.js +0 -3
  218. package/spic.cabinet_pb.d.ts +0 -1344
  219. package/spic.cabinet_pb.js +0 -9963
  220. package/spic.cabinet_pb_service.d.ts +0 -359
  221. package/spic.cabinet_pb_service.js +0 -677
  222. package/spic.config_pb.d.ts +0 -249
  223. package/spic.config_pb.js +0 -1891
  224. package/spic.config_pb_service.d.ts +0 -120
  225. package/spic.config_pb_service.js +0 -181
  226. package/spic.contractor_pb.d.ts +0 -195
  227. package/spic.contractor_pb.js +0 -1476
  228. package/spic.contractor_pb_service.d.ts +0 -139
  229. package/spic.contractor_pb_service.js +0 -221
@@ -1,3032 +0,0 @@
1
- // source: platform.local_account.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 auth_account_pb = require('./auth.account_pb.js');
25
- goog.object.extend(proto, auth_account_pb);
26
- var google_api_annotations_pb = require('./google/api/annotations_pb.js');
27
- goog.object.extend(proto, google_api_annotations_pb);
28
- var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
29
- goog.object.extend(proto, google_protobuf_empty_pb);
30
- var platform_pagination_pb = require('./platform.pagination_pb.js');
31
- goog.object.extend(proto, platform_pagination_pb);
32
- var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
33
- goog.object.extend(proto, google_protobuf_timestamp_pb);
34
- goog.exportSymbol('proto.Platform.LocalAccountProto', null, global);
35
- goog.exportSymbol('proto.Platform.LocalAccountProto.AccountTypes', null, global);
36
- goog.exportSymbol('proto.Platform.LocalAccountProto.CreateAdminRequest', null, global);
37
- goog.exportSymbol('proto.Platform.LocalAccountProto.CreateAppRequest', null, global);
38
- goog.exportSymbol('proto.Platform.LocalAccountProto.DisableAccount', null, global);
39
- goog.exportSymbol('proto.Platform.LocalAccountProto.EnableAccount', null, global);
40
- goog.exportSymbol('proto.Platform.LocalAccountProto.ResendInvitationRequest', null, global);
41
- goog.exportSymbol('proto.Platform.LocalAccountProto.SearchReply', null, global);
42
- goog.exportSymbol('proto.Platform.LocalAccountProto.SearchRequest', null, global);
43
- goog.exportSymbol('proto.Platform.LocalAccountProto.SetClientRequest', null, global);
44
- goog.exportSymbol('proto.Platform.LocalAccountProto.UpdateExpiredAt', null, global);
45
- goog.exportSymbol('proto.Platform.LocalAccountProto.UpdateRequest', null, global);
46
- /**
47
- * Generated by JsPbCodeGenerator.
48
- * @param {Array=} opt_data Optional initial data array, typically from a
49
- * server response, or constructed directly in Javascript. The array is used
50
- * in place and becomes part of the constructed object. It is not cloned.
51
- * If no data is provided, the constructed object will be empty, but still
52
- * valid.
53
- * @extends {jspb.Message}
54
- * @constructor
55
- */
56
- proto.Platform.LocalAccountProto = function(opt_data) {
57
- jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.repeatedFields_, null);
58
- };
59
- goog.inherits(proto.Platform.LocalAccountProto, jspb.Message);
60
- if (goog.DEBUG && !COMPILED) {
61
- /**
62
- * @public
63
- * @override
64
- */
65
- proto.Platform.LocalAccountProto.displayName = 'proto.Platform.LocalAccountProto';
66
- }
67
- /**
68
- * Generated by JsPbCodeGenerator.
69
- * @param {Array=} opt_data Optional initial data array, typically from a
70
- * server response, or constructed directly in Javascript. The array is used
71
- * in place and becomes part of the constructed object. It is not cloned.
72
- * If no data is provided, the constructed object will be empty, but still
73
- * valid.
74
- * @extends {jspb.Message}
75
- * @constructor
76
- */
77
- proto.Platform.LocalAccountProto.CreateAdminRequest = function(opt_data) {
78
- jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.CreateAdminRequest.repeatedFields_, null);
79
- };
80
- goog.inherits(proto.Platform.LocalAccountProto.CreateAdminRequest, jspb.Message);
81
- if (goog.DEBUG && !COMPILED) {
82
- /**
83
- * @public
84
- * @override
85
- */
86
- proto.Platform.LocalAccountProto.CreateAdminRequest.displayName = 'proto.Platform.LocalAccountProto.CreateAdminRequest';
87
- }
88
- /**
89
- * Generated by JsPbCodeGenerator.
90
- * @param {Array=} opt_data Optional initial data array, typically from a
91
- * server response, or constructed directly in Javascript. The array is used
92
- * in place and becomes part of the constructed object. It is not cloned.
93
- * If no data is provided, the constructed object will be empty, but still
94
- * valid.
95
- * @extends {jspb.Message}
96
- * @constructor
97
- */
98
- proto.Platform.LocalAccountProto.CreateAppRequest = function(opt_data) {
99
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
100
- };
101
- goog.inherits(proto.Platform.LocalAccountProto.CreateAppRequest, jspb.Message);
102
- if (goog.DEBUG && !COMPILED) {
103
- /**
104
- * @public
105
- * @override
106
- */
107
- proto.Platform.LocalAccountProto.CreateAppRequest.displayName = 'proto.Platform.LocalAccountProto.CreateAppRequest';
108
- }
109
- /**
110
- * Generated by JsPbCodeGenerator.
111
- * @param {Array=} opt_data Optional initial data array, typically from a
112
- * server response, or constructed directly in Javascript. The array is used
113
- * in place and becomes part of the constructed object. It is not cloned.
114
- * If no data is provided, the constructed object will be empty, but still
115
- * valid.
116
- * @extends {jspb.Message}
117
- * @constructor
118
- */
119
- proto.Platform.LocalAccountProto.UpdateRequest = function(opt_data) {
120
- jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.UpdateRequest.repeatedFields_, null);
121
- };
122
- goog.inherits(proto.Platform.LocalAccountProto.UpdateRequest, jspb.Message);
123
- if (goog.DEBUG && !COMPILED) {
124
- /**
125
- * @public
126
- * @override
127
- */
128
- proto.Platform.LocalAccountProto.UpdateRequest.displayName = 'proto.Platform.LocalAccountProto.UpdateRequest';
129
- }
130
- /**
131
- * Generated by JsPbCodeGenerator.
132
- * @param {Array=} opt_data Optional initial data array, typically from a
133
- * server response, or constructed directly in Javascript. The array is used
134
- * in place and becomes part of the constructed object. It is not cloned.
135
- * If no data is provided, the constructed object will be empty, but still
136
- * valid.
137
- * @extends {jspb.Message}
138
- * @constructor
139
- */
140
- proto.Platform.LocalAccountProto.SearchRequest = function(opt_data) {
141
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
142
- };
143
- goog.inherits(proto.Platform.LocalAccountProto.SearchRequest, jspb.Message);
144
- if (goog.DEBUG && !COMPILED) {
145
- /**
146
- * @public
147
- * @override
148
- */
149
- proto.Platform.LocalAccountProto.SearchRequest.displayName = 'proto.Platform.LocalAccountProto.SearchRequest';
150
- }
151
- /**
152
- * Generated by JsPbCodeGenerator.
153
- * @param {Array=} opt_data Optional initial data array, typically from a
154
- * server response, or constructed directly in Javascript. The array is used
155
- * in place and becomes part of the constructed object. It is not cloned.
156
- * If no data is provided, the constructed object will be empty, but still
157
- * valid.
158
- * @extends {jspb.Message}
159
- * @constructor
160
- */
161
- proto.Platform.LocalAccountProto.SearchReply = function(opt_data) {
162
- jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.SearchReply.repeatedFields_, null);
163
- };
164
- goog.inherits(proto.Platform.LocalAccountProto.SearchReply, jspb.Message);
165
- if (goog.DEBUG && !COMPILED) {
166
- /**
167
- * @public
168
- * @override
169
- */
170
- proto.Platform.LocalAccountProto.SearchReply.displayName = 'proto.Platform.LocalAccountProto.SearchReply';
171
- }
172
- /**
173
- * Generated by JsPbCodeGenerator.
174
- * @param {Array=} opt_data Optional initial data array, typically from a
175
- * server response, or constructed directly in Javascript. The array is used
176
- * in place and becomes part of the constructed object. It is not cloned.
177
- * If no data is provided, the constructed object will be empty, but still
178
- * valid.
179
- * @extends {jspb.Message}
180
- * @constructor
181
- */
182
- proto.Platform.LocalAccountProto.SetClientRequest = function(opt_data) {
183
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
184
- };
185
- goog.inherits(proto.Platform.LocalAccountProto.SetClientRequest, jspb.Message);
186
- if (goog.DEBUG && !COMPILED) {
187
- /**
188
- * @public
189
- * @override
190
- */
191
- proto.Platform.LocalAccountProto.SetClientRequest.displayName = 'proto.Platform.LocalAccountProto.SetClientRequest';
192
- }
193
- /**
194
- * Generated by JsPbCodeGenerator.
195
- * @param {Array=} opt_data Optional initial data array, typically from a
196
- * server response, or constructed directly in Javascript. The array is used
197
- * in place and becomes part of the constructed object. It is not cloned.
198
- * If no data is provided, the constructed object will be empty, but still
199
- * valid.
200
- * @extends {jspb.Message}
201
- * @constructor
202
- */
203
- proto.Platform.LocalAccountProto.EnableAccount = function(opt_data) {
204
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
205
- };
206
- goog.inherits(proto.Platform.LocalAccountProto.EnableAccount, jspb.Message);
207
- if (goog.DEBUG && !COMPILED) {
208
- /**
209
- * @public
210
- * @override
211
- */
212
- proto.Platform.LocalAccountProto.EnableAccount.displayName = 'proto.Platform.LocalAccountProto.EnableAccount';
213
- }
214
- /**
215
- * Generated by JsPbCodeGenerator.
216
- * @param {Array=} opt_data Optional initial data array, typically from a
217
- * server response, or constructed directly in Javascript. The array is used
218
- * in place and becomes part of the constructed object. It is not cloned.
219
- * If no data is provided, the constructed object will be empty, but still
220
- * valid.
221
- * @extends {jspb.Message}
222
- * @constructor
223
- */
224
- proto.Platform.LocalAccountProto.DisableAccount = function(opt_data) {
225
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
226
- };
227
- goog.inherits(proto.Platform.LocalAccountProto.DisableAccount, jspb.Message);
228
- if (goog.DEBUG && !COMPILED) {
229
- /**
230
- * @public
231
- * @override
232
- */
233
- proto.Platform.LocalAccountProto.DisableAccount.displayName = 'proto.Platform.LocalAccountProto.DisableAccount';
234
- }
235
- /**
236
- * Generated by JsPbCodeGenerator.
237
- * @param {Array=} opt_data Optional initial data array, typically from a
238
- * server response, or constructed directly in Javascript. The array is used
239
- * in place and becomes part of the constructed object. It is not cloned.
240
- * If no data is provided, the constructed object will be empty, but still
241
- * valid.
242
- * @extends {jspb.Message}
243
- * @constructor
244
- */
245
- proto.Platform.LocalAccountProto.UpdateExpiredAt = function(opt_data) {
246
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
247
- };
248
- goog.inherits(proto.Platform.LocalAccountProto.UpdateExpiredAt, jspb.Message);
249
- if (goog.DEBUG && !COMPILED) {
250
- /**
251
- * @public
252
- * @override
253
- */
254
- proto.Platform.LocalAccountProto.UpdateExpiredAt.displayName = 'proto.Platform.LocalAccountProto.UpdateExpiredAt';
255
- }
256
- /**
257
- * Generated by JsPbCodeGenerator.
258
- * @param {Array=} opt_data Optional initial data array, typically from a
259
- * server response, or constructed directly in Javascript. The array is used
260
- * in place and becomes part of the constructed object. It is not cloned.
261
- * If no data is provided, the constructed object will be empty, but still
262
- * valid.
263
- * @extends {jspb.Message}
264
- * @constructor
265
- */
266
- proto.Platform.LocalAccountProto.ResendInvitationRequest = function(opt_data) {
267
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
268
- };
269
- goog.inherits(proto.Platform.LocalAccountProto.ResendInvitationRequest, jspb.Message);
270
- if (goog.DEBUG && !COMPILED) {
271
- /**
272
- * @public
273
- * @override
274
- */
275
- proto.Platform.LocalAccountProto.ResendInvitationRequest.displayName = 'proto.Platform.LocalAccountProto.ResendInvitationRequest';
276
- }
277
-
278
- /**
279
- * List of repeated fields within this message type.
280
- * @private {!Array<number>}
281
- * @const
282
- */
283
- proto.Platform.LocalAccountProto.repeatedFields_ = [11];
284
-
285
-
286
-
287
- if (jspb.Message.GENERATE_TO_OBJECT) {
288
- /**
289
- * Creates an object representation of this proto.
290
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
291
- * Optional fields that are not set will be set to undefined.
292
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
293
- * For the list of reserved names please see:
294
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
295
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
296
- * JSPB instance for transitional soy proto support:
297
- * http://goto/soy-param-migration
298
- * @return {!Object}
299
- */
300
- proto.Platform.LocalAccountProto.prototype.toObject = function(opt_includeInstance) {
301
- return proto.Platform.LocalAccountProto.toObject(opt_includeInstance, this);
302
- };
303
-
304
-
305
- /**
306
- * Static version of the {@see toObject} method.
307
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
308
- * the JSPB instance for transitional soy proto support:
309
- * http://goto/soy-param-migration
310
- * @param {!proto.Platform.LocalAccountProto} msg The msg instance to transform.
311
- * @return {!Object}
312
- * @suppress {unusedLocalVariables} f is only used for nested messages
313
- */
314
- proto.Platform.LocalAccountProto.toObject = function(includeInstance, msg) {
315
- var f, obj = {
316
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
317
- email: jspb.Message.getFieldWithDefault(msg, 2, ""),
318
- phone: jspb.Message.getFieldWithDefault(msg, 3, ""),
319
- lastName: jspb.Message.getFieldWithDefault(msg, 4, ""),
320
- firstName: jspb.Message.getFieldWithDefault(msg, 5, ""),
321
- locale: jspb.Message.getFieldWithDefault(msg, 6, ""),
322
- company: jspb.Message.getFieldWithDefault(msg, 7, ""),
323
- groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
324
- enabled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
325
- expiredAt: (f = msg.getExpiredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
326
- clientRolesList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f,
327
- status: jspb.Message.getFieldWithDefault(msg, 12, 0),
328
- deleted: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
329
- clientId: jspb.Message.getFieldWithDefault(msg, 14, 0),
330
- type: jspb.Message.getFieldWithDefault(msg, 15, 0)
331
- };
332
-
333
- if (includeInstance) {
334
- obj.$jspbMessageInstance = msg;
335
- }
336
- return obj;
337
- };
338
- }
339
-
340
-
341
- /**
342
- * Deserializes binary data (in protobuf wire format).
343
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
344
- * @return {!proto.Platform.LocalAccountProto}
345
- */
346
- proto.Platform.LocalAccountProto.deserializeBinary = function(bytes) {
347
- var reader = new jspb.BinaryReader(bytes);
348
- var msg = new proto.Platform.LocalAccountProto;
349
- return proto.Platform.LocalAccountProto.deserializeBinaryFromReader(msg, reader);
350
- };
351
-
352
-
353
- /**
354
- * Deserializes binary data (in protobuf wire format) from the
355
- * given reader into the given message object.
356
- * @param {!proto.Platform.LocalAccountProto} msg The message object to deserialize into.
357
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
358
- * @return {!proto.Platform.LocalAccountProto}
359
- */
360
- proto.Platform.LocalAccountProto.deserializeBinaryFromReader = function(msg, reader) {
361
- while (reader.nextField()) {
362
- if (reader.isEndGroup()) {
363
- break;
364
- }
365
- var field = reader.getFieldNumber();
366
- switch (field) {
367
- case 1:
368
- var value = /** @type {number} */ (reader.readInt64());
369
- msg.setId(value);
370
- break;
371
- case 2:
372
- var value = /** @type {string} */ (reader.readString());
373
- msg.setEmail(value);
374
- break;
375
- case 3:
376
- var value = /** @type {string} */ (reader.readString());
377
- msg.setPhone(value);
378
- break;
379
- case 4:
380
- var value = /** @type {string} */ (reader.readString());
381
- msg.setLastName(value);
382
- break;
383
- case 5:
384
- var value = /** @type {string} */ (reader.readString());
385
- msg.setFirstName(value);
386
- break;
387
- case 6:
388
- var value = /** @type {string} */ (reader.readString());
389
- msg.setLocale(value);
390
- break;
391
- case 7:
392
- var value = /** @type {string} */ (reader.readString());
393
- msg.setCompany(value);
394
- break;
395
- case 8:
396
- var value = /** @type {string} */ (reader.readString());
397
- msg.setGroupId(value);
398
- break;
399
- case 9:
400
- var value = /** @type {boolean} */ (reader.readBool());
401
- msg.setEnabled(value);
402
- break;
403
- case 10:
404
- var value = new google_protobuf_timestamp_pb.Timestamp;
405
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
406
- msg.setExpiredAt(value);
407
- break;
408
- case 11:
409
- var values = /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
410
- for (var i = 0; i < values.length; i++) {
411
- msg.addClientRoles(values[i]);
412
- }
413
- break;
414
- case 12:
415
- var value = /** @type {!proto.Auth.AccountProto.ActivationStatuses} */ (reader.readEnum());
416
- msg.setStatus(value);
417
- break;
418
- case 13:
419
- var value = /** @type {boolean} */ (reader.readBool());
420
- msg.setDeleted(value);
421
- break;
422
- case 14:
423
- var value = /** @type {number} */ (reader.readInt64());
424
- msg.setClientId(value);
425
- break;
426
- case 15:
427
- var value = /** @type {!proto.Platform.LocalAccountProto.AccountTypes} */ (reader.readEnum());
428
- msg.setType(value);
429
- break;
430
- default:
431
- reader.skipField();
432
- break;
433
- }
434
- }
435
- return msg;
436
- };
437
-
438
-
439
- /**
440
- * Serializes the message to binary data (in protobuf wire format).
441
- * @return {!Uint8Array}
442
- */
443
- proto.Platform.LocalAccountProto.prototype.serializeBinary = function() {
444
- var writer = new jspb.BinaryWriter();
445
- proto.Platform.LocalAccountProto.serializeBinaryToWriter(this, writer);
446
- return writer.getResultBuffer();
447
- };
448
-
449
-
450
- /**
451
- * Serializes the given message to binary data (in protobuf wire
452
- * format), writing to the given BinaryWriter.
453
- * @param {!proto.Platform.LocalAccountProto} message
454
- * @param {!jspb.BinaryWriter} writer
455
- * @suppress {unusedLocalVariables} f is only used for nested messages
456
- */
457
- proto.Platform.LocalAccountProto.serializeBinaryToWriter = function(message, writer) {
458
- var f = undefined;
459
- f = message.getId();
460
- if (f !== 0) {
461
- writer.writeInt64(
462
- 1,
463
- f
464
- );
465
- }
466
- f = message.getEmail();
467
- if (f.length > 0) {
468
- writer.writeString(
469
- 2,
470
- f
471
- );
472
- }
473
- f = message.getPhone();
474
- if (f.length > 0) {
475
- writer.writeString(
476
- 3,
477
- f
478
- );
479
- }
480
- f = message.getLastName();
481
- if (f.length > 0) {
482
- writer.writeString(
483
- 4,
484
- f
485
- );
486
- }
487
- f = message.getFirstName();
488
- if (f.length > 0) {
489
- writer.writeString(
490
- 5,
491
- f
492
- );
493
- }
494
- f = message.getLocale();
495
- if (f.length > 0) {
496
- writer.writeString(
497
- 6,
498
- f
499
- );
500
- }
501
- f = message.getCompany();
502
- if (f.length > 0) {
503
- writer.writeString(
504
- 7,
505
- f
506
- );
507
- }
508
- f = message.getGroupId();
509
- if (f.length > 0) {
510
- writer.writeString(
511
- 8,
512
- f
513
- );
514
- }
515
- f = message.getEnabled();
516
- if (f) {
517
- writer.writeBool(
518
- 9,
519
- f
520
- );
521
- }
522
- f = message.getExpiredAt();
523
- if (f != null) {
524
- writer.writeMessage(
525
- 10,
526
- f,
527
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
528
- );
529
- }
530
- f = message.getClientRolesList();
531
- if (f.length > 0) {
532
- writer.writePackedEnum(
533
- 11,
534
- f
535
- );
536
- }
537
- f = message.getStatus();
538
- if (f !== 0.0) {
539
- writer.writeEnum(
540
- 12,
541
- f
542
- );
543
- }
544
- f = message.getDeleted();
545
- if (f) {
546
- writer.writeBool(
547
- 13,
548
- f
549
- );
550
- }
551
- f = message.getClientId();
552
- if (f !== 0) {
553
- writer.writeInt64(
554
- 14,
555
- f
556
- );
557
- }
558
- f = message.getType();
559
- if (f !== 0.0) {
560
- writer.writeEnum(
561
- 15,
562
- f
563
- );
564
- }
565
- };
566
-
567
-
568
- /**
569
- * @enum {number}
570
- */
571
- proto.Platform.LocalAccountProto.AccountTypes = {
572
- ADMIN: 0,
573
- APP: 1
574
- };
575
-
576
-
577
- /**
578
- * List of repeated fields within this message type.
579
- * @private {!Array<number>}
580
- * @const
581
- */
582
- proto.Platform.LocalAccountProto.CreateAdminRequest.repeatedFields_ = [8];
583
-
584
-
585
-
586
- if (jspb.Message.GENERATE_TO_OBJECT) {
587
- /**
588
- * Creates an object representation of this proto.
589
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
590
- * Optional fields that are not set will be set to undefined.
591
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
592
- * For the list of reserved names please see:
593
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
594
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
595
- * JSPB instance for transitional soy proto support:
596
- * http://goto/soy-param-migration
597
- * @return {!Object}
598
- */
599
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.toObject = function(opt_includeInstance) {
600
- return proto.Platform.LocalAccountProto.CreateAdminRequest.toObject(opt_includeInstance, this);
601
- };
602
-
603
-
604
- /**
605
- * Static version of the {@see toObject} method.
606
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
607
- * the JSPB instance for transitional soy proto support:
608
- * http://goto/soy-param-migration
609
- * @param {!proto.Platform.LocalAccountProto.CreateAdminRequest} msg The msg instance to transform.
610
- * @return {!Object}
611
- * @suppress {unusedLocalVariables} f is only used for nested messages
612
- */
613
- proto.Platform.LocalAccountProto.CreateAdminRequest.toObject = function(includeInstance, msg) {
614
- var f, obj = {
615
- email: jspb.Message.getFieldWithDefault(msg, 1, ""),
616
- lastName: jspb.Message.getFieldWithDefault(msg, 2, ""),
617
- firstName: jspb.Message.getFieldWithDefault(msg, 3, ""),
618
- locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
619
- company: jspb.Message.getFieldWithDefault(msg, 5, ""),
620
- clientId: jspb.Message.getFieldWithDefault(msg, 6, 0),
621
- groupId: jspb.Message.getFieldWithDefault(msg, 7, ""),
622
- clientRolesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f
623
- };
624
-
625
- if (includeInstance) {
626
- obj.$jspbMessageInstance = msg;
627
- }
628
- return obj;
629
- };
630
- }
631
-
632
-
633
- /**
634
- * Deserializes binary data (in protobuf wire format).
635
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
636
- * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest}
637
- */
638
- proto.Platform.LocalAccountProto.CreateAdminRequest.deserializeBinary = function(bytes) {
639
- var reader = new jspb.BinaryReader(bytes);
640
- var msg = new proto.Platform.LocalAccountProto.CreateAdminRequest;
641
- return proto.Platform.LocalAccountProto.CreateAdminRequest.deserializeBinaryFromReader(msg, reader);
642
- };
643
-
644
-
645
- /**
646
- * Deserializes binary data (in protobuf wire format) from the
647
- * given reader into the given message object.
648
- * @param {!proto.Platform.LocalAccountProto.CreateAdminRequest} msg The message object to deserialize into.
649
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
650
- * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest}
651
- */
652
- proto.Platform.LocalAccountProto.CreateAdminRequest.deserializeBinaryFromReader = function(msg, reader) {
653
- while (reader.nextField()) {
654
- if (reader.isEndGroup()) {
655
- break;
656
- }
657
- var field = reader.getFieldNumber();
658
- switch (field) {
659
- case 1:
660
- var value = /** @type {string} */ (reader.readString());
661
- msg.setEmail(value);
662
- break;
663
- case 2:
664
- var value = /** @type {string} */ (reader.readString());
665
- msg.setLastName(value);
666
- break;
667
- case 3:
668
- var value = /** @type {string} */ (reader.readString());
669
- msg.setFirstName(value);
670
- break;
671
- case 4:
672
- var value = /** @type {string} */ (reader.readString());
673
- msg.setLocale(value);
674
- break;
675
- case 5:
676
- var value = /** @type {string} */ (reader.readString());
677
- msg.setCompany(value);
678
- break;
679
- case 6:
680
- var value = /** @type {number} */ (reader.readInt32());
681
- msg.setClientId(value);
682
- break;
683
- case 7:
684
- var value = /** @type {string} */ (reader.readString());
685
- msg.setGroupId(value);
686
- break;
687
- case 8:
688
- var values = /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
689
- for (var i = 0; i < values.length; i++) {
690
- msg.addClientRoles(values[i]);
691
- }
692
- break;
693
- default:
694
- reader.skipField();
695
- break;
696
- }
697
- }
698
- return msg;
699
- };
700
-
701
-
702
- /**
703
- * Serializes the message to binary data (in protobuf wire format).
704
- * @return {!Uint8Array}
705
- */
706
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.serializeBinary = function() {
707
- var writer = new jspb.BinaryWriter();
708
- proto.Platform.LocalAccountProto.CreateAdminRequest.serializeBinaryToWriter(this, writer);
709
- return writer.getResultBuffer();
710
- };
711
-
712
-
713
- /**
714
- * Serializes the given message to binary data (in protobuf wire
715
- * format), writing to the given BinaryWriter.
716
- * @param {!proto.Platform.LocalAccountProto.CreateAdminRequest} message
717
- * @param {!jspb.BinaryWriter} writer
718
- * @suppress {unusedLocalVariables} f is only used for nested messages
719
- */
720
- proto.Platform.LocalAccountProto.CreateAdminRequest.serializeBinaryToWriter = function(message, writer) {
721
- var f = undefined;
722
- f = message.getEmail();
723
- if (f.length > 0) {
724
- writer.writeString(
725
- 1,
726
- f
727
- );
728
- }
729
- f = message.getLastName();
730
- if (f.length > 0) {
731
- writer.writeString(
732
- 2,
733
- f
734
- );
735
- }
736
- f = message.getFirstName();
737
- if (f.length > 0) {
738
- writer.writeString(
739
- 3,
740
- f
741
- );
742
- }
743
- f = message.getLocale();
744
- if (f.length > 0) {
745
- writer.writeString(
746
- 4,
747
- f
748
- );
749
- }
750
- f = message.getCompany();
751
- if (f.length > 0) {
752
- writer.writeString(
753
- 5,
754
- f
755
- );
756
- }
757
- f = message.getClientId();
758
- if (f !== 0) {
759
- writer.writeInt32(
760
- 6,
761
- f
762
- );
763
- }
764
- f = message.getGroupId();
765
- if (f.length > 0) {
766
- writer.writeString(
767
- 7,
768
- f
769
- );
770
- }
771
- f = message.getClientRolesList();
772
- if (f.length > 0) {
773
- writer.writePackedEnum(
774
- 8,
775
- f
776
- );
777
- }
778
- };
779
-
780
-
781
- /**
782
- * optional string email = 1;
783
- * @return {string}
784
- */
785
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getEmail = function() {
786
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
787
- };
788
-
789
-
790
- /**
791
- * @param {string} value
792
- * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
793
- */
794
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setEmail = function(value) {
795
- return jspb.Message.setProto3StringField(this, 1, value);
796
- };
797
-
798
-
799
- /**
800
- * optional string last_name = 2;
801
- * @return {string}
802
- */
803
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getLastName = function() {
804
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
805
- };
806
-
807
-
808
- /**
809
- * @param {string} value
810
- * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
811
- */
812
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setLastName = function(value) {
813
- return jspb.Message.setProto3StringField(this, 2, value);
814
- };
815
-
816
-
817
- /**
818
- * optional string first_name = 3;
819
- * @return {string}
820
- */
821
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getFirstName = function() {
822
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
823
- };
824
-
825
-
826
- /**
827
- * @param {string} value
828
- * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
829
- */
830
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setFirstName = function(value) {
831
- return jspb.Message.setProto3StringField(this, 3, value);
832
- };
833
-
834
-
835
- /**
836
- * optional string locale = 4;
837
- * @return {string}
838
- */
839
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getLocale = function() {
840
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
841
- };
842
-
843
-
844
- /**
845
- * @param {string} value
846
- * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
847
- */
848
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setLocale = function(value) {
849
- return jspb.Message.setProto3StringField(this, 4, value);
850
- };
851
-
852
-
853
- /**
854
- * optional string company = 5;
855
- * @return {string}
856
- */
857
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getCompany = function() {
858
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
859
- };
860
-
861
-
862
- /**
863
- * @param {string} value
864
- * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
865
- */
866
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setCompany = function(value) {
867
- return jspb.Message.setProto3StringField(this, 5, value);
868
- };
869
-
870
-
871
- /**
872
- * optional int32 client_id = 6;
873
- * @return {number}
874
- */
875
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getClientId = function() {
876
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
877
- };
878
-
879
-
880
- /**
881
- * @param {number} value
882
- * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
883
- */
884
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setClientId = function(value) {
885
- return jspb.Message.setProto3IntField(this, 6, value);
886
- };
887
-
888
-
889
- /**
890
- * optional string group_id = 7;
891
- * @return {string}
892
- */
893
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getGroupId = function() {
894
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
895
- };
896
-
897
-
898
- /**
899
- * @param {string} value
900
- * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
901
- */
902
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setGroupId = function(value) {
903
- return jspb.Message.setProto3StringField(this, 7, value);
904
- };
905
-
906
-
907
- /**
908
- * repeated Auth.AccountProto.Roles client_roles = 8;
909
- * @return {!Array<!proto.Auth.AccountProto.Roles>}
910
- */
911
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getClientRolesList = function() {
912
- return /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (jspb.Message.getRepeatedField(this, 8));
913
- };
914
-
915
-
916
- /**
917
- * @param {!Array<!proto.Auth.AccountProto.Roles>} value
918
- * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
919
- */
920
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setClientRolesList = function(value) {
921
- return jspb.Message.setField(this, 8, value || []);
922
- };
923
-
924
-
925
- /**
926
- * @param {!proto.Auth.AccountProto.Roles} value
927
- * @param {number=} opt_index
928
- * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
929
- */
930
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.addClientRoles = function(value, opt_index) {
931
- return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
932
- };
933
-
934
-
935
- /**
936
- * Clears the list making it empty but non-null.
937
- * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
938
- */
939
- proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.clearClientRolesList = function() {
940
- return this.setClientRolesList([]);
941
- };
942
-
943
-
944
-
945
-
946
-
947
- if (jspb.Message.GENERATE_TO_OBJECT) {
948
- /**
949
- * Creates an object representation of this proto.
950
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
951
- * Optional fields that are not set will be set to undefined.
952
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
953
- * For the list of reserved names please see:
954
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
955
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
956
- * JSPB instance for transitional soy proto support:
957
- * http://goto/soy-param-migration
958
- * @return {!Object}
959
- */
960
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.toObject = function(opt_includeInstance) {
961
- return proto.Platform.LocalAccountProto.CreateAppRequest.toObject(opt_includeInstance, this);
962
- };
963
-
964
-
965
- /**
966
- * Static version of the {@see toObject} method.
967
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
968
- * the JSPB instance for transitional soy proto support:
969
- * http://goto/soy-param-migration
970
- * @param {!proto.Platform.LocalAccountProto.CreateAppRequest} msg The msg instance to transform.
971
- * @return {!Object}
972
- * @suppress {unusedLocalVariables} f is only used for nested messages
973
- */
974
- proto.Platform.LocalAccountProto.CreateAppRequest.toObject = function(includeInstance, msg) {
975
- var f, obj = {
976
- phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
977
- lastName: jspb.Message.getFieldWithDefault(msg, 2, ""),
978
- firstName: jspb.Message.getFieldWithDefault(msg, 3, ""),
979
- locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
980
- company: jspb.Message.getFieldWithDefault(msg, 5, ""),
981
- clientId: jspb.Message.getFieldWithDefault(msg, 6, 0),
982
- groupId: jspb.Message.getFieldWithDefault(msg, 7, "")
983
- };
984
-
985
- if (includeInstance) {
986
- obj.$jspbMessageInstance = msg;
987
- }
988
- return obj;
989
- };
990
- }
991
-
992
-
993
- /**
994
- * Deserializes binary data (in protobuf wire format).
995
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
996
- * @return {!proto.Platform.LocalAccountProto.CreateAppRequest}
997
- */
998
- proto.Platform.LocalAccountProto.CreateAppRequest.deserializeBinary = function(bytes) {
999
- var reader = new jspb.BinaryReader(bytes);
1000
- var msg = new proto.Platform.LocalAccountProto.CreateAppRequest;
1001
- return proto.Platform.LocalAccountProto.CreateAppRequest.deserializeBinaryFromReader(msg, reader);
1002
- };
1003
-
1004
-
1005
- /**
1006
- * Deserializes binary data (in protobuf wire format) from the
1007
- * given reader into the given message object.
1008
- * @param {!proto.Platform.LocalAccountProto.CreateAppRequest} msg The message object to deserialize into.
1009
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1010
- * @return {!proto.Platform.LocalAccountProto.CreateAppRequest}
1011
- */
1012
- proto.Platform.LocalAccountProto.CreateAppRequest.deserializeBinaryFromReader = function(msg, reader) {
1013
- while (reader.nextField()) {
1014
- if (reader.isEndGroup()) {
1015
- break;
1016
- }
1017
- var field = reader.getFieldNumber();
1018
- switch (field) {
1019
- case 1:
1020
- var value = /** @type {string} */ (reader.readString());
1021
- msg.setPhone(value);
1022
- break;
1023
- case 2:
1024
- var value = /** @type {string} */ (reader.readString());
1025
- msg.setLastName(value);
1026
- break;
1027
- case 3:
1028
- var value = /** @type {string} */ (reader.readString());
1029
- msg.setFirstName(value);
1030
- break;
1031
- case 4:
1032
- var value = /** @type {string} */ (reader.readString());
1033
- msg.setLocale(value);
1034
- break;
1035
- case 5:
1036
- var value = /** @type {string} */ (reader.readString());
1037
- msg.setCompany(value);
1038
- break;
1039
- case 6:
1040
- var value = /** @type {number} */ (reader.readInt32());
1041
- msg.setClientId(value);
1042
- break;
1043
- case 7:
1044
- var value = /** @type {string} */ (reader.readString());
1045
- msg.setGroupId(value);
1046
- break;
1047
- default:
1048
- reader.skipField();
1049
- break;
1050
- }
1051
- }
1052
- return msg;
1053
- };
1054
-
1055
-
1056
- /**
1057
- * Serializes the message to binary data (in protobuf wire format).
1058
- * @return {!Uint8Array}
1059
- */
1060
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.serializeBinary = function() {
1061
- var writer = new jspb.BinaryWriter();
1062
- proto.Platform.LocalAccountProto.CreateAppRequest.serializeBinaryToWriter(this, writer);
1063
- return writer.getResultBuffer();
1064
- };
1065
-
1066
-
1067
- /**
1068
- * Serializes the given message to binary data (in protobuf wire
1069
- * format), writing to the given BinaryWriter.
1070
- * @param {!proto.Platform.LocalAccountProto.CreateAppRequest} message
1071
- * @param {!jspb.BinaryWriter} writer
1072
- * @suppress {unusedLocalVariables} f is only used for nested messages
1073
- */
1074
- proto.Platform.LocalAccountProto.CreateAppRequest.serializeBinaryToWriter = function(message, writer) {
1075
- var f = undefined;
1076
- f = message.getPhone();
1077
- if (f.length > 0) {
1078
- writer.writeString(
1079
- 1,
1080
- f
1081
- );
1082
- }
1083
- f = message.getLastName();
1084
- if (f.length > 0) {
1085
- writer.writeString(
1086
- 2,
1087
- f
1088
- );
1089
- }
1090
- f = message.getFirstName();
1091
- if (f.length > 0) {
1092
- writer.writeString(
1093
- 3,
1094
- f
1095
- );
1096
- }
1097
- f = message.getLocale();
1098
- if (f.length > 0) {
1099
- writer.writeString(
1100
- 4,
1101
- f
1102
- );
1103
- }
1104
- f = message.getCompany();
1105
- if (f.length > 0) {
1106
- writer.writeString(
1107
- 5,
1108
- f
1109
- );
1110
- }
1111
- f = message.getClientId();
1112
- if (f !== 0) {
1113
- writer.writeInt32(
1114
- 6,
1115
- f
1116
- );
1117
- }
1118
- f = message.getGroupId();
1119
- if (f.length > 0) {
1120
- writer.writeString(
1121
- 7,
1122
- f
1123
- );
1124
- }
1125
- };
1126
-
1127
-
1128
- /**
1129
- * optional string phone = 1;
1130
- * @return {string}
1131
- */
1132
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.getPhone = function() {
1133
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1134
- };
1135
-
1136
-
1137
- /**
1138
- * @param {string} value
1139
- * @return {!proto.Platform.LocalAccountProto.CreateAppRequest} returns this
1140
- */
1141
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setPhone = function(value) {
1142
- return jspb.Message.setProto3StringField(this, 1, value);
1143
- };
1144
-
1145
-
1146
- /**
1147
- * optional string last_name = 2;
1148
- * @return {string}
1149
- */
1150
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.getLastName = function() {
1151
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1152
- };
1153
-
1154
-
1155
- /**
1156
- * @param {string} value
1157
- * @return {!proto.Platform.LocalAccountProto.CreateAppRequest} returns this
1158
- */
1159
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setLastName = function(value) {
1160
- return jspb.Message.setProto3StringField(this, 2, value);
1161
- };
1162
-
1163
-
1164
- /**
1165
- * optional string first_name = 3;
1166
- * @return {string}
1167
- */
1168
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.getFirstName = function() {
1169
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1170
- };
1171
-
1172
-
1173
- /**
1174
- * @param {string} value
1175
- * @return {!proto.Platform.LocalAccountProto.CreateAppRequest} returns this
1176
- */
1177
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setFirstName = function(value) {
1178
- return jspb.Message.setProto3StringField(this, 3, value);
1179
- };
1180
-
1181
-
1182
- /**
1183
- * optional string locale = 4;
1184
- * @return {string}
1185
- */
1186
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.getLocale = function() {
1187
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1188
- };
1189
-
1190
-
1191
- /**
1192
- * @param {string} value
1193
- * @return {!proto.Platform.LocalAccountProto.CreateAppRequest} returns this
1194
- */
1195
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setLocale = function(value) {
1196
- return jspb.Message.setProto3StringField(this, 4, value);
1197
- };
1198
-
1199
-
1200
- /**
1201
- * optional string company = 5;
1202
- * @return {string}
1203
- */
1204
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.getCompany = function() {
1205
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1206
- };
1207
-
1208
-
1209
- /**
1210
- * @param {string} value
1211
- * @return {!proto.Platform.LocalAccountProto.CreateAppRequest} returns this
1212
- */
1213
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setCompany = function(value) {
1214
- return jspb.Message.setProto3StringField(this, 5, value);
1215
- };
1216
-
1217
-
1218
- /**
1219
- * optional int32 client_id = 6;
1220
- * @return {number}
1221
- */
1222
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.getClientId = function() {
1223
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1224
- };
1225
-
1226
-
1227
- /**
1228
- * @param {number} value
1229
- * @return {!proto.Platform.LocalAccountProto.CreateAppRequest} returns this
1230
- */
1231
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setClientId = function(value) {
1232
- return jspb.Message.setProto3IntField(this, 6, value);
1233
- };
1234
-
1235
-
1236
- /**
1237
- * optional string group_id = 7;
1238
- * @return {string}
1239
- */
1240
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.getGroupId = function() {
1241
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1242
- };
1243
-
1244
-
1245
- /**
1246
- * @param {string} value
1247
- * @return {!proto.Platform.LocalAccountProto.CreateAppRequest} returns this
1248
- */
1249
- proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setGroupId = function(value) {
1250
- return jspb.Message.setProto3StringField(this, 7, value);
1251
- };
1252
-
1253
-
1254
-
1255
- /**
1256
- * List of repeated fields within this message type.
1257
- * @private {!Array<number>}
1258
- * @const
1259
- */
1260
- proto.Platform.LocalAccountProto.UpdateRequest.repeatedFields_ = [7];
1261
-
1262
-
1263
-
1264
- if (jspb.Message.GENERATE_TO_OBJECT) {
1265
- /**
1266
- * Creates an object representation of this proto.
1267
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1268
- * Optional fields that are not set will be set to undefined.
1269
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1270
- * For the list of reserved names please see:
1271
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1272
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1273
- * JSPB instance for transitional soy proto support:
1274
- * http://goto/soy-param-migration
1275
- * @return {!Object}
1276
- */
1277
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.toObject = function(opt_includeInstance) {
1278
- return proto.Platform.LocalAccountProto.UpdateRequest.toObject(opt_includeInstance, this);
1279
- };
1280
-
1281
-
1282
- /**
1283
- * Static version of the {@see toObject} method.
1284
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1285
- * the JSPB instance for transitional soy proto support:
1286
- * http://goto/soy-param-migration
1287
- * @param {!proto.Platform.LocalAccountProto.UpdateRequest} msg The msg instance to transform.
1288
- * @return {!Object}
1289
- * @suppress {unusedLocalVariables} f is only used for nested messages
1290
- */
1291
- proto.Platform.LocalAccountProto.UpdateRequest.toObject = function(includeInstance, msg) {
1292
- var f, obj = {
1293
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1294
- lastName: jspb.Message.getFieldWithDefault(msg, 2, ""),
1295
- firstName: jspb.Message.getFieldWithDefault(msg, 3, ""),
1296
- locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
1297
- company: jspb.Message.getFieldWithDefault(msg, 5, ""),
1298
- groupId: jspb.Message.getFieldWithDefault(msg, 6, ""),
1299
- clientRolesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
1300
- };
1301
-
1302
- if (includeInstance) {
1303
- obj.$jspbMessageInstance = msg;
1304
- }
1305
- return obj;
1306
- };
1307
- }
1308
-
1309
-
1310
- /**
1311
- * Deserializes binary data (in protobuf wire format).
1312
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1313
- * @return {!proto.Platform.LocalAccountProto.UpdateRequest}
1314
- */
1315
- proto.Platform.LocalAccountProto.UpdateRequest.deserializeBinary = function(bytes) {
1316
- var reader = new jspb.BinaryReader(bytes);
1317
- var msg = new proto.Platform.LocalAccountProto.UpdateRequest;
1318
- return proto.Platform.LocalAccountProto.UpdateRequest.deserializeBinaryFromReader(msg, reader);
1319
- };
1320
-
1321
-
1322
- /**
1323
- * Deserializes binary data (in protobuf wire format) from the
1324
- * given reader into the given message object.
1325
- * @param {!proto.Platform.LocalAccountProto.UpdateRequest} msg The message object to deserialize into.
1326
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1327
- * @return {!proto.Platform.LocalAccountProto.UpdateRequest}
1328
- */
1329
- proto.Platform.LocalAccountProto.UpdateRequest.deserializeBinaryFromReader = function(msg, reader) {
1330
- while (reader.nextField()) {
1331
- if (reader.isEndGroup()) {
1332
- break;
1333
- }
1334
- var field = reader.getFieldNumber();
1335
- switch (field) {
1336
- case 1:
1337
- var value = /** @type {number} */ (reader.readInt64());
1338
- msg.setId(value);
1339
- break;
1340
- case 2:
1341
- var value = /** @type {string} */ (reader.readString());
1342
- msg.setLastName(value);
1343
- break;
1344
- case 3:
1345
- var value = /** @type {string} */ (reader.readString());
1346
- msg.setFirstName(value);
1347
- break;
1348
- case 4:
1349
- var value = /** @type {string} */ (reader.readString());
1350
- msg.setLocale(value);
1351
- break;
1352
- case 5:
1353
- var value = /** @type {string} */ (reader.readString());
1354
- msg.setCompany(value);
1355
- break;
1356
- case 6:
1357
- var value = /** @type {string} */ (reader.readString());
1358
- msg.setGroupId(value);
1359
- break;
1360
- case 7:
1361
- var values = /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
1362
- for (var i = 0; i < values.length; i++) {
1363
- msg.addClientRoles(values[i]);
1364
- }
1365
- break;
1366
- default:
1367
- reader.skipField();
1368
- break;
1369
- }
1370
- }
1371
- return msg;
1372
- };
1373
-
1374
-
1375
- /**
1376
- * Serializes the message to binary data (in protobuf wire format).
1377
- * @return {!Uint8Array}
1378
- */
1379
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.serializeBinary = function() {
1380
- var writer = new jspb.BinaryWriter();
1381
- proto.Platform.LocalAccountProto.UpdateRequest.serializeBinaryToWriter(this, writer);
1382
- return writer.getResultBuffer();
1383
- };
1384
-
1385
-
1386
- /**
1387
- * Serializes the given message to binary data (in protobuf wire
1388
- * format), writing to the given BinaryWriter.
1389
- * @param {!proto.Platform.LocalAccountProto.UpdateRequest} message
1390
- * @param {!jspb.BinaryWriter} writer
1391
- * @suppress {unusedLocalVariables} f is only used for nested messages
1392
- */
1393
- proto.Platform.LocalAccountProto.UpdateRequest.serializeBinaryToWriter = function(message, writer) {
1394
- var f = undefined;
1395
- f = message.getId();
1396
- if (f !== 0) {
1397
- writer.writeInt64(
1398
- 1,
1399
- f
1400
- );
1401
- }
1402
- f = message.getLastName();
1403
- if (f.length > 0) {
1404
- writer.writeString(
1405
- 2,
1406
- f
1407
- );
1408
- }
1409
- f = message.getFirstName();
1410
- if (f.length > 0) {
1411
- writer.writeString(
1412
- 3,
1413
- f
1414
- );
1415
- }
1416
- f = message.getLocale();
1417
- if (f.length > 0) {
1418
- writer.writeString(
1419
- 4,
1420
- f
1421
- );
1422
- }
1423
- f = message.getCompany();
1424
- if (f.length > 0) {
1425
- writer.writeString(
1426
- 5,
1427
- f
1428
- );
1429
- }
1430
- f = message.getGroupId();
1431
- if (f.length > 0) {
1432
- writer.writeString(
1433
- 6,
1434
- f
1435
- );
1436
- }
1437
- f = message.getClientRolesList();
1438
- if (f.length > 0) {
1439
- writer.writePackedEnum(
1440
- 7,
1441
- f
1442
- );
1443
- }
1444
- };
1445
-
1446
-
1447
- /**
1448
- * optional int64 id = 1;
1449
- * @return {number}
1450
- */
1451
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.getId = function() {
1452
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1453
- };
1454
-
1455
-
1456
- /**
1457
- * @param {number} value
1458
- * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1459
- */
1460
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.setId = function(value) {
1461
- return jspb.Message.setProto3IntField(this, 1, value);
1462
- };
1463
-
1464
-
1465
- /**
1466
- * optional string last_name = 2;
1467
- * @return {string}
1468
- */
1469
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.getLastName = function() {
1470
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1471
- };
1472
-
1473
-
1474
- /**
1475
- * @param {string} value
1476
- * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1477
- */
1478
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.setLastName = function(value) {
1479
- return jspb.Message.setProto3StringField(this, 2, value);
1480
- };
1481
-
1482
-
1483
- /**
1484
- * optional string first_name = 3;
1485
- * @return {string}
1486
- */
1487
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.getFirstName = function() {
1488
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1489
- };
1490
-
1491
-
1492
- /**
1493
- * @param {string} value
1494
- * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1495
- */
1496
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.setFirstName = function(value) {
1497
- return jspb.Message.setProto3StringField(this, 3, value);
1498
- };
1499
-
1500
-
1501
- /**
1502
- * optional string locale = 4;
1503
- * @return {string}
1504
- */
1505
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.getLocale = function() {
1506
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1507
- };
1508
-
1509
-
1510
- /**
1511
- * @param {string} value
1512
- * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1513
- */
1514
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.setLocale = function(value) {
1515
- return jspb.Message.setProto3StringField(this, 4, value);
1516
- };
1517
-
1518
-
1519
- /**
1520
- * optional string company = 5;
1521
- * @return {string}
1522
- */
1523
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.getCompany = function() {
1524
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1525
- };
1526
-
1527
-
1528
- /**
1529
- * @param {string} value
1530
- * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1531
- */
1532
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.setCompany = function(value) {
1533
- return jspb.Message.setProto3StringField(this, 5, value);
1534
- };
1535
-
1536
-
1537
- /**
1538
- * optional string group_id = 6;
1539
- * @return {string}
1540
- */
1541
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.getGroupId = function() {
1542
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1543
- };
1544
-
1545
-
1546
- /**
1547
- * @param {string} value
1548
- * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1549
- */
1550
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.setGroupId = function(value) {
1551
- return jspb.Message.setProto3StringField(this, 6, value);
1552
- };
1553
-
1554
-
1555
- /**
1556
- * repeated Auth.AccountProto.Roles client_roles = 7;
1557
- * @return {!Array<!proto.Auth.AccountProto.Roles>}
1558
- */
1559
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.getClientRolesList = function() {
1560
- return /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (jspb.Message.getRepeatedField(this, 7));
1561
- };
1562
-
1563
-
1564
- /**
1565
- * @param {!Array<!proto.Auth.AccountProto.Roles>} value
1566
- * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1567
- */
1568
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.setClientRolesList = function(value) {
1569
- return jspb.Message.setField(this, 7, value || []);
1570
- };
1571
-
1572
-
1573
- /**
1574
- * @param {!proto.Auth.AccountProto.Roles} value
1575
- * @param {number=} opt_index
1576
- * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1577
- */
1578
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.addClientRoles = function(value, opt_index) {
1579
- return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
1580
- };
1581
-
1582
-
1583
- /**
1584
- * Clears the list making it empty but non-null.
1585
- * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1586
- */
1587
- proto.Platform.LocalAccountProto.UpdateRequest.prototype.clearClientRolesList = function() {
1588
- return this.setClientRolesList([]);
1589
- };
1590
-
1591
-
1592
-
1593
-
1594
-
1595
- if (jspb.Message.GENERATE_TO_OBJECT) {
1596
- /**
1597
- * Creates an object representation of this proto.
1598
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1599
- * Optional fields that are not set will be set to undefined.
1600
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1601
- * For the list of reserved names please see:
1602
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1603
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1604
- * JSPB instance for transitional soy proto support:
1605
- * http://goto/soy-param-migration
1606
- * @return {!Object}
1607
- */
1608
- proto.Platform.LocalAccountProto.SearchRequest.prototype.toObject = function(opt_includeInstance) {
1609
- return proto.Platform.LocalAccountProto.SearchRequest.toObject(opt_includeInstance, this);
1610
- };
1611
-
1612
-
1613
- /**
1614
- * Static version of the {@see toObject} method.
1615
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1616
- * the JSPB instance for transitional soy proto support:
1617
- * http://goto/soy-param-migration
1618
- * @param {!proto.Platform.LocalAccountProto.SearchRequest} msg The msg instance to transform.
1619
- * @return {!Object}
1620
- * @suppress {unusedLocalVariables} f is only used for nested messages
1621
- */
1622
- proto.Platform.LocalAccountProto.SearchRequest.toObject = function(includeInstance, msg) {
1623
- var f, obj = {
1624
- search: jspb.Message.getFieldWithDefault(msg, 1, ""),
1625
- page: jspb.Message.getFieldWithDefault(msg, 2, 0),
1626
- count: jspb.Message.getFieldWithDefault(msg, 3, 0)
1627
- };
1628
-
1629
- if (includeInstance) {
1630
- obj.$jspbMessageInstance = msg;
1631
- }
1632
- return obj;
1633
- };
1634
- }
1635
-
1636
-
1637
- /**
1638
- * Deserializes binary data (in protobuf wire format).
1639
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1640
- * @return {!proto.Platform.LocalAccountProto.SearchRequest}
1641
- */
1642
- proto.Platform.LocalAccountProto.SearchRequest.deserializeBinary = function(bytes) {
1643
- var reader = new jspb.BinaryReader(bytes);
1644
- var msg = new proto.Platform.LocalAccountProto.SearchRequest;
1645
- return proto.Platform.LocalAccountProto.SearchRequest.deserializeBinaryFromReader(msg, reader);
1646
- };
1647
-
1648
-
1649
- /**
1650
- * Deserializes binary data (in protobuf wire format) from the
1651
- * given reader into the given message object.
1652
- * @param {!proto.Platform.LocalAccountProto.SearchRequest} msg The message object to deserialize into.
1653
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1654
- * @return {!proto.Platform.LocalAccountProto.SearchRequest}
1655
- */
1656
- proto.Platform.LocalAccountProto.SearchRequest.deserializeBinaryFromReader = function(msg, reader) {
1657
- while (reader.nextField()) {
1658
- if (reader.isEndGroup()) {
1659
- break;
1660
- }
1661
- var field = reader.getFieldNumber();
1662
- switch (field) {
1663
- case 1:
1664
- var value = /** @type {string} */ (reader.readString());
1665
- msg.setSearch(value);
1666
- break;
1667
- case 2:
1668
- var value = /** @type {number} */ (reader.readInt32());
1669
- msg.setPage(value);
1670
- break;
1671
- case 3:
1672
- var value = /** @type {number} */ (reader.readInt32());
1673
- msg.setCount(value);
1674
- break;
1675
- default:
1676
- reader.skipField();
1677
- break;
1678
- }
1679
- }
1680
- return msg;
1681
- };
1682
-
1683
-
1684
- /**
1685
- * Serializes the message to binary data (in protobuf wire format).
1686
- * @return {!Uint8Array}
1687
- */
1688
- proto.Platform.LocalAccountProto.SearchRequest.prototype.serializeBinary = function() {
1689
- var writer = new jspb.BinaryWriter();
1690
- proto.Platform.LocalAccountProto.SearchRequest.serializeBinaryToWriter(this, writer);
1691
- return writer.getResultBuffer();
1692
- };
1693
-
1694
-
1695
- /**
1696
- * Serializes the given message to binary data (in protobuf wire
1697
- * format), writing to the given BinaryWriter.
1698
- * @param {!proto.Platform.LocalAccountProto.SearchRequest} message
1699
- * @param {!jspb.BinaryWriter} writer
1700
- * @suppress {unusedLocalVariables} f is only used for nested messages
1701
- */
1702
- proto.Platform.LocalAccountProto.SearchRequest.serializeBinaryToWriter = function(message, writer) {
1703
- var f = undefined;
1704
- f = message.getSearch();
1705
- if (f.length > 0) {
1706
- writer.writeString(
1707
- 1,
1708
- f
1709
- );
1710
- }
1711
- f = message.getPage();
1712
- if (f !== 0) {
1713
- writer.writeInt32(
1714
- 2,
1715
- f
1716
- );
1717
- }
1718
- f = message.getCount();
1719
- if (f !== 0) {
1720
- writer.writeInt32(
1721
- 3,
1722
- f
1723
- );
1724
- }
1725
- };
1726
-
1727
-
1728
- /**
1729
- * optional string search = 1;
1730
- * @return {string}
1731
- */
1732
- proto.Platform.LocalAccountProto.SearchRequest.prototype.getSearch = function() {
1733
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1734
- };
1735
-
1736
-
1737
- /**
1738
- * @param {string} value
1739
- * @return {!proto.Platform.LocalAccountProto.SearchRequest} returns this
1740
- */
1741
- proto.Platform.LocalAccountProto.SearchRequest.prototype.setSearch = function(value) {
1742
- return jspb.Message.setProto3StringField(this, 1, value);
1743
- };
1744
-
1745
-
1746
- /**
1747
- * optional int32 page = 2;
1748
- * @return {number}
1749
- */
1750
- proto.Platform.LocalAccountProto.SearchRequest.prototype.getPage = function() {
1751
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1752
- };
1753
-
1754
-
1755
- /**
1756
- * @param {number} value
1757
- * @return {!proto.Platform.LocalAccountProto.SearchRequest} returns this
1758
- */
1759
- proto.Platform.LocalAccountProto.SearchRequest.prototype.setPage = function(value) {
1760
- return jspb.Message.setProto3IntField(this, 2, value);
1761
- };
1762
-
1763
-
1764
- /**
1765
- * optional int32 count = 3;
1766
- * @return {number}
1767
- */
1768
- proto.Platform.LocalAccountProto.SearchRequest.prototype.getCount = function() {
1769
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1770
- };
1771
-
1772
-
1773
- /**
1774
- * @param {number} value
1775
- * @return {!proto.Platform.LocalAccountProto.SearchRequest} returns this
1776
- */
1777
- proto.Platform.LocalAccountProto.SearchRequest.prototype.setCount = function(value) {
1778
- return jspb.Message.setProto3IntField(this, 3, value);
1779
- };
1780
-
1781
-
1782
-
1783
- /**
1784
- * List of repeated fields within this message type.
1785
- * @private {!Array<number>}
1786
- * @const
1787
- */
1788
- proto.Platform.LocalAccountProto.SearchReply.repeatedFields_ = [1];
1789
-
1790
-
1791
-
1792
- if (jspb.Message.GENERATE_TO_OBJECT) {
1793
- /**
1794
- * Creates an object representation of this proto.
1795
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1796
- * Optional fields that are not set will be set to undefined.
1797
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1798
- * For the list of reserved names please see:
1799
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1800
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1801
- * JSPB instance for transitional soy proto support:
1802
- * http://goto/soy-param-migration
1803
- * @return {!Object}
1804
- */
1805
- proto.Platform.LocalAccountProto.SearchReply.prototype.toObject = function(opt_includeInstance) {
1806
- return proto.Platform.LocalAccountProto.SearchReply.toObject(opt_includeInstance, this);
1807
- };
1808
-
1809
-
1810
- /**
1811
- * Static version of the {@see toObject} method.
1812
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1813
- * the JSPB instance for transitional soy proto support:
1814
- * http://goto/soy-param-migration
1815
- * @param {!proto.Platform.LocalAccountProto.SearchReply} msg The msg instance to transform.
1816
- * @return {!Object}
1817
- * @suppress {unusedLocalVariables} f is only used for nested messages
1818
- */
1819
- proto.Platform.LocalAccountProto.SearchReply.toObject = function(includeInstance, msg) {
1820
- var f, obj = {
1821
- accountsList: jspb.Message.toObjectList(msg.getAccountsList(),
1822
- proto.Platform.LocalAccountProto.toObject, includeInstance),
1823
- pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f)
1824
- };
1825
-
1826
- if (includeInstance) {
1827
- obj.$jspbMessageInstance = msg;
1828
- }
1829
- return obj;
1830
- };
1831
- }
1832
-
1833
-
1834
- /**
1835
- * Deserializes binary data (in protobuf wire format).
1836
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1837
- * @return {!proto.Platform.LocalAccountProto.SearchReply}
1838
- */
1839
- proto.Platform.LocalAccountProto.SearchReply.deserializeBinary = function(bytes) {
1840
- var reader = new jspb.BinaryReader(bytes);
1841
- var msg = new proto.Platform.LocalAccountProto.SearchReply;
1842
- return proto.Platform.LocalAccountProto.SearchReply.deserializeBinaryFromReader(msg, reader);
1843
- };
1844
-
1845
-
1846
- /**
1847
- * Deserializes binary data (in protobuf wire format) from the
1848
- * given reader into the given message object.
1849
- * @param {!proto.Platform.LocalAccountProto.SearchReply} msg The message object to deserialize into.
1850
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1851
- * @return {!proto.Platform.LocalAccountProto.SearchReply}
1852
- */
1853
- proto.Platform.LocalAccountProto.SearchReply.deserializeBinaryFromReader = function(msg, reader) {
1854
- while (reader.nextField()) {
1855
- if (reader.isEndGroup()) {
1856
- break;
1857
- }
1858
- var field = reader.getFieldNumber();
1859
- switch (field) {
1860
- case 1:
1861
- var value = new proto.Platform.LocalAccountProto;
1862
- reader.readMessage(value,proto.Platform.LocalAccountProto.deserializeBinaryFromReader);
1863
- msg.addAccounts(value);
1864
- break;
1865
- case 2:
1866
- var value = new platform_pagination_pb.PaginationProto;
1867
- reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
1868
- msg.setPagination(value);
1869
- break;
1870
- default:
1871
- reader.skipField();
1872
- break;
1873
- }
1874
- }
1875
- return msg;
1876
- };
1877
-
1878
-
1879
- /**
1880
- * Serializes the message to binary data (in protobuf wire format).
1881
- * @return {!Uint8Array}
1882
- */
1883
- proto.Platform.LocalAccountProto.SearchReply.prototype.serializeBinary = function() {
1884
- var writer = new jspb.BinaryWriter();
1885
- proto.Platform.LocalAccountProto.SearchReply.serializeBinaryToWriter(this, writer);
1886
- return writer.getResultBuffer();
1887
- };
1888
-
1889
-
1890
- /**
1891
- * Serializes the given message to binary data (in protobuf wire
1892
- * format), writing to the given BinaryWriter.
1893
- * @param {!proto.Platform.LocalAccountProto.SearchReply} message
1894
- * @param {!jspb.BinaryWriter} writer
1895
- * @suppress {unusedLocalVariables} f is only used for nested messages
1896
- */
1897
- proto.Platform.LocalAccountProto.SearchReply.serializeBinaryToWriter = function(message, writer) {
1898
- var f = undefined;
1899
- f = message.getAccountsList();
1900
- if (f.length > 0) {
1901
- writer.writeRepeatedMessage(
1902
- 1,
1903
- f,
1904
- proto.Platform.LocalAccountProto.serializeBinaryToWriter
1905
- );
1906
- }
1907
- f = message.getPagination();
1908
- if (f != null) {
1909
- writer.writeMessage(
1910
- 2,
1911
- f,
1912
- platform_pagination_pb.PaginationProto.serializeBinaryToWriter
1913
- );
1914
- }
1915
- };
1916
-
1917
-
1918
- /**
1919
- * repeated LocalAccountProto accounts = 1;
1920
- * @return {!Array<!proto.Platform.LocalAccountProto>}
1921
- */
1922
- proto.Platform.LocalAccountProto.SearchReply.prototype.getAccountsList = function() {
1923
- return /** @type{!Array<!proto.Platform.LocalAccountProto>} */ (
1924
- jspb.Message.getRepeatedWrapperField(this, proto.Platform.LocalAccountProto, 1));
1925
- };
1926
-
1927
-
1928
- /**
1929
- * @param {!Array<!proto.Platform.LocalAccountProto>} value
1930
- * @return {!proto.Platform.LocalAccountProto.SearchReply} returns this
1931
- */
1932
- proto.Platform.LocalAccountProto.SearchReply.prototype.setAccountsList = function(value) {
1933
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
1934
- };
1935
-
1936
-
1937
- /**
1938
- * @param {!proto.Platform.LocalAccountProto=} opt_value
1939
- * @param {number=} opt_index
1940
- * @return {!proto.Platform.LocalAccountProto}
1941
- */
1942
- proto.Platform.LocalAccountProto.SearchReply.prototype.addAccounts = function(opt_value, opt_index) {
1943
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Platform.LocalAccountProto, opt_index);
1944
- };
1945
-
1946
-
1947
- /**
1948
- * Clears the list making it empty but non-null.
1949
- * @return {!proto.Platform.LocalAccountProto.SearchReply} returns this
1950
- */
1951
- proto.Platform.LocalAccountProto.SearchReply.prototype.clearAccountsList = function() {
1952
- return this.setAccountsList([]);
1953
- };
1954
-
1955
-
1956
- /**
1957
- * optional PaginationProto pagination = 2;
1958
- * @return {?proto.Platform.PaginationProto}
1959
- */
1960
- proto.Platform.LocalAccountProto.SearchReply.prototype.getPagination = function() {
1961
- return /** @type{?proto.Platform.PaginationProto} */ (
1962
- jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 2));
1963
- };
1964
-
1965
-
1966
- /**
1967
- * @param {?proto.Platform.PaginationProto|undefined} value
1968
- * @return {!proto.Platform.LocalAccountProto.SearchReply} returns this
1969
- */
1970
- proto.Platform.LocalAccountProto.SearchReply.prototype.setPagination = function(value) {
1971
- return jspb.Message.setWrapperField(this, 2, value);
1972
- };
1973
-
1974
-
1975
- /**
1976
- * Clears the message field making it undefined.
1977
- * @return {!proto.Platform.LocalAccountProto.SearchReply} returns this
1978
- */
1979
- proto.Platform.LocalAccountProto.SearchReply.prototype.clearPagination = function() {
1980
- return this.setPagination(undefined);
1981
- };
1982
-
1983
-
1984
- /**
1985
- * Returns whether this field is set.
1986
- * @return {boolean}
1987
- */
1988
- proto.Platform.LocalAccountProto.SearchReply.prototype.hasPagination = function() {
1989
- return jspb.Message.getField(this, 2) != null;
1990
- };
1991
-
1992
-
1993
-
1994
-
1995
-
1996
- if (jspb.Message.GENERATE_TO_OBJECT) {
1997
- /**
1998
- * Creates an object representation of this proto.
1999
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2000
- * Optional fields that are not set will be set to undefined.
2001
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2002
- * For the list of reserved names please see:
2003
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2004
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2005
- * JSPB instance for transitional soy proto support:
2006
- * http://goto/soy-param-migration
2007
- * @return {!Object}
2008
- */
2009
- proto.Platform.LocalAccountProto.SetClientRequest.prototype.toObject = function(opt_includeInstance) {
2010
- return proto.Platform.LocalAccountProto.SetClientRequest.toObject(opt_includeInstance, this);
2011
- };
2012
-
2013
-
2014
- /**
2015
- * Static version of the {@see toObject} method.
2016
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2017
- * the JSPB instance for transitional soy proto support:
2018
- * http://goto/soy-param-migration
2019
- * @param {!proto.Platform.LocalAccountProto.SetClientRequest} msg The msg instance to transform.
2020
- * @return {!Object}
2021
- * @suppress {unusedLocalVariables} f is only used for nested messages
2022
- */
2023
- proto.Platform.LocalAccountProto.SetClientRequest.toObject = function(includeInstance, msg) {
2024
- var f, obj = {
2025
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2026
- clientId: jspb.Message.getFieldWithDefault(msg, 2, 0)
2027
- };
2028
-
2029
- if (includeInstance) {
2030
- obj.$jspbMessageInstance = msg;
2031
- }
2032
- return obj;
2033
- };
2034
- }
2035
-
2036
-
2037
- /**
2038
- * Deserializes binary data (in protobuf wire format).
2039
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2040
- * @return {!proto.Platform.LocalAccountProto.SetClientRequest}
2041
- */
2042
- proto.Platform.LocalAccountProto.SetClientRequest.deserializeBinary = function(bytes) {
2043
- var reader = new jspb.BinaryReader(bytes);
2044
- var msg = new proto.Platform.LocalAccountProto.SetClientRequest;
2045
- return proto.Platform.LocalAccountProto.SetClientRequest.deserializeBinaryFromReader(msg, reader);
2046
- };
2047
-
2048
-
2049
- /**
2050
- * Deserializes binary data (in protobuf wire format) from the
2051
- * given reader into the given message object.
2052
- * @param {!proto.Platform.LocalAccountProto.SetClientRequest} msg The message object to deserialize into.
2053
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2054
- * @return {!proto.Platform.LocalAccountProto.SetClientRequest}
2055
- */
2056
- proto.Platform.LocalAccountProto.SetClientRequest.deserializeBinaryFromReader = function(msg, reader) {
2057
- while (reader.nextField()) {
2058
- if (reader.isEndGroup()) {
2059
- break;
2060
- }
2061
- var field = reader.getFieldNumber();
2062
- switch (field) {
2063
- case 1:
2064
- var value = /** @type {number} */ (reader.readInt64());
2065
- msg.setId(value);
2066
- break;
2067
- case 2:
2068
- var value = /** @type {number} */ (reader.readInt32());
2069
- msg.setClientId(value);
2070
- break;
2071
- default:
2072
- reader.skipField();
2073
- break;
2074
- }
2075
- }
2076
- return msg;
2077
- };
2078
-
2079
-
2080
- /**
2081
- * Serializes the message to binary data (in protobuf wire format).
2082
- * @return {!Uint8Array}
2083
- */
2084
- proto.Platform.LocalAccountProto.SetClientRequest.prototype.serializeBinary = function() {
2085
- var writer = new jspb.BinaryWriter();
2086
- proto.Platform.LocalAccountProto.SetClientRequest.serializeBinaryToWriter(this, writer);
2087
- return writer.getResultBuffer();
2088
- };
2089
-
2090
-
2091
- /**
2092
- * Serializes the given message to binary data (in protobuf wire
2093
- * format), writing to the given BinaryWriter.
2094
- * @param {!proto.Platform.LocalAccountProto.SetClientRequest} message
2095
- * @param {!jspb.BinaryWriter} writer
2096
- * @suppress {unusedLocalVariables} f is only used for nested messages
2097
- */
2098
- proto.Platform.LocalAccountProto.SetClientRequest.serializeBinaryToWriter = function(message, writer) {
2099
- var f = undefined;
2100
- f = message.getId();
2101
- if (f !== 0) {
2102
- writer.writeInt64(
2103
- 1,
2104
- f
2105
- );
2106
- }
2107
- f = message.getClientId();
2108
- if (f !== 0) {
2109
- writer.writeInt32(
2110
- 2,
2111
- f
2112
- );
2113
- }
2114
- };
2115
-
2116
-
2117
- /**
2118
- * optional int64 id = 1;
2119
- * @return {number}
2120
- */
2121
- proto.Platform.LocalAccountProto.SetClientRequest.prototype.getId = function() {
2122
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2123
- };
2124
-
2125
-
2126
- /**
2127
- * @param {number} value
2128
- * @return {!proto.Platform.LocalAccountProto.SetClientRequest} returns this
2129
- */
2130
- proto.Platform.LocalAccountProto.SetClientRequest.prototype.setId = function(value) {
2131
- return jspb.Message.setProto3IntField(this, 1, value);
2132
- };
2133
-
2134
-
2135
- /**
2136
- * optional int32 client_id = 2;
2137
- * @return {number}
2138
- */
2139
- proto.Platform.LocalAccountProto.SetClientRequest.prototype.getClientId = function() {
2140
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2141
- };
2142
-
2143
-
2144
- /**
2145
- * @param {number} value
2146
- * @return {!proto.Platform.LocalAccountProto.SetClientRequest} returns this
2147
- */
2148
- proto.Platform.LocalAccountProto.SetClientRequest.prototype.setClientId = function(value) {
2149
- return jspb.Message.setProto3IntField(this, 2, value);
2150
- };
2151
-
2152
-
2153
-
2154
-
2155
-
2156
- if (jspb.Message.GENERATE_TO_OBJECT) {
2157
- /**
2158
- * Creates an object representation of this proto.
2159
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2160
- * Optional fields that are not set will be set to undefined.
2161
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2162
- * For the list of reserved names please see:
2163
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2164
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2165
- * JSPB instance for transitional soy proto support:
2166
- * http://goto/soy-param-migration
2167
- * @return {!Object}
2168
- */
2169
- proto.Platform.LocalAccountProto.EnableAccount.prototype.toObject = function(opt_includeInstance) {
2170
- return proto.Platform.LocalAccountProto.EnableAccount.toObject(opt_includeInstance, this);
2171
- };
2172
-
2173
-
2174
- /**
2175
- * Static version of the {@see toObject} method.
2176
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2177
- * the JSPB instance for transitional soy proto support:
2178
- * http://goto/soy-param-migration
2179
- * @param {!proto.Platform.LocalAccountProto.EnableAccount} msg The msg instance to transform.
2180
- * @return {!Object}
2181
- * @suppress {unusedLocalVariables} f is only used for nested messages
2182
- */
2183
- proto.Platform.LocalAccountProto.EnableAccount.toObject = function(includeInstance, msg) {
2184
- var f, obj = {
2185
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2186
- };
2187
-
2188
- if (includeInstance) {
2189
- obj.$jspbMessageInstance = msg;
2190
- }
2191
- return obj;
2192
- };
2193
- }
2194
-
2195
-
2196
- /**
2197
- * Deserializes binary data (in protobuf wire format).
2198
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2199
- * @return {!proto.Platform.LocalAccountProto.EnableAccount}
2200
- */
2201
- proto.Platform.LocalAccountProto.EnableAccount.deserializeBinary = function(bytes) {
2202
- var reader = new jspb.BinaryReader(bytes);
2203
- var msg = new proto.Platform.LocalAccountProto.EnableAccount;
2204
- return proto.Platform.LocalAccountProto.EnableAccount.deserializeBinaryFromReader(msg, reader);
2205
- };
2206
-
2207
-
2208
- /**
2209
- * Deserializes binary data (in protobuf wire format) from the
2210
- * given reader into the given message object.
2211
- * @param {!proto.Platform.LocalAccountProto.EnableAccount} msg The message object to deserialize into.
2212
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2213
- * @return {!proto.Platform.LocalAccountProto.EnableAccount}
2214
- */
2215
- proto.Platform.LocalAccountProto.EnableAccount.deserializeBinaryFromReader = function(msg, reader) {
2216
- while (reader.nextField()) {
2217
- if (reader.isEndGroup()) {
2218
- break;
2219
- }
2220
- var field = reader.getFieldNumber();
2221
- switch (field) {
2222
- case 1:
2223
- var value = /** @type {number} */ (reader.readInt64());
2224
- msg.setId(value);
2225
- break;
2226
- default:
2227
- reader.skipField();
2228
- break;
2229
- }
2230
- }
2231
- return msg;
2232
- };
2233
-
2234
-
2235
- /**
2236
- * Serializes the message to binary data (in protobuf wire format).
2237
- * @return {!Uint8Array}
2238
- */
2239
- proto.Platform.LocalAccountProto.EnableAccount.prototype.serializeBinary = function() {
2240
- var writer = new jspb.BinaryWriter();
2241
- proto.Platform.LocalAccountProto.EnableAccount.serializeBinaryToWriter(this, writer);
2242
- return writer.getResultBuffer();
2243
- };
2244
-
2245
-
2246
- /**
2247
- * Serializes the given message to binary data (in protobuf wire
2248
- * format), writing to the given BinaryWriter.
2249
- * @param {!proto.Platform.LocalAccountProto.EnableAccount} message
2250
- * @param {!jspb.BinaryWriter} writer
2251
- * @suppress {unusedLocalVariables} f is only used for nested messages
2252
- */
2253
- proto.Platform.LocalAccountProto.EnableAccount.serializeBinaryToWriter = function(message, writer) {
2254
- var f = undefined;
2255
- f = message.getId();
2256
- if (f !== 0) {
2257
- writer.writeInt64(
2258
- 1,
2259
- f
2260
- );
2261
- }
2262
- };
2263
-
2264
-
2265
- /**
2266
- * optional int64 id = 1;
2267
- * @return {number}
2268
- */
2269
- proto.Platform.LocalAccountProto.EnableAccount.prototype.getId = function() {
2270
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2271
- };
2272
-
2273
-
2274
- /**
2275
- * @param {number} value
2276
- * @return {!proto.Platform.LocalAccountProto.EnableAccount} returns this
2277
- */
2278
- proto.Platform.LocalAccountProto.EnableAccount.prototype.setId = function(value) {
2279
- return jspb.Message.setProto3IntField(this, 1, value);
2280
- };
2281
-
2282
-
2283
-
2284
-
2285
-
2286
- if (jspb.Message.GENERATE_TO_OBJECT) {
2287
- /**
2288
- * Creates an object representation of this proto.
2289
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2290
- * Optional fields that are not set will be set to undefined.
2291
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2292
- * For the list of reserved names please see:
2293
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2294
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2295
- * JSPB instance for transitional soy proto support:
2296
- * http://goto/soy-param-migration
2297
- * @return {!Object}
2298
- */
2299
- proto.Platform.LocalAccountProto.DisableAccount.prototype.toObject = function(opt_includeInstance) {
2300
- return proto.Platform.LocalAccountProto.DisableAccount.toObject(opt_includeInstance, this);
2301
- };
2302
-
2303
-
2304
- /**
2305
- * Static version of the {@see toObject} method.
2306
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2307
- * the JSPB instance for transitional soy proto support:
2308
- * http://goto/soy-param-migration
2309
- * @param {!proto.Platform.LocalAccountProto.DisableAccount} msg The msg instance to transform.
2310
- * @return {!Object}
2311
- * @suppress {unusedLocalVariables} f is only used for nested messages
2312
- */
2313
- proto.Platform.LocalAccountProto.DisableAccount.toObject = function(includeInstance, msg) {
2314
- var f, obj = {
2315
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2316
- };
2317
-
2318
- if (includeInstance) {
2319
- obj.$jspbMessageInstance = msg;
2320
- }
2321
- return obj;
2322
- };
2323
- }
2324
-
2325
-
2326
- /**
2327
- * Deserializes binary data (in protobuf wire format).
2328
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2329
- * @return {!proto.Platform.LocalAccountProto.DisableAccount}
2330
- */
2331
- proto.Platform.LocalAccountProto.DisableAccount.deserializeBinary = function(bytes) {
2332
- var reader = new jspb.BinaryReader(bytes);
2333
- var msg = new proto.Platform.LocalAccountProto.DisableAccount;
2334
- return proto.Platform.LocalAccountProto.DisableAccount.deserializeBinaryFromReader(msg, reader);
2335
- };
2336
-
2337
-
2338
- /**
2339
- * Deserializes binary data (in protobuf wire format) from the
2340
- * given reader into the given message object.
2341
- * @param {!proto.Platform.LocalAccountProto.DisableAccount} msg The message object to deserialize into.
2342
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2343
- * @return {!proto.Platform.LocalAccountProto.DisableAccount}
2344
- */
2345
- proto.Platform.LocalAccountProto.DisableAccount.deserializeBinaryFromReader = function(msg, reader) {
2346
- while (reader.nextField()) {
2347
- if (reader.isEndGroup()) {
2348
- break;
2349
- }
2350
- var field = reader.getFieldNumber();
2351
- switch (field) {
2352
- case 1:
2353
- var value = /** @type {number} */ (reader.readInt64());
2354
- msg.setId(value);
2355
- break;
2356
- default:
2357
- reader.skipField();
2358
- break;
2359
- }
2360
- }
2361
- return msg;
2362
- };
2363
-
2364
-
2365
- /**
2366
- * Serializes the message to binary data (in protobuf wire format).
2367
- * @return {!Uint8Array}
2368
- */
2369
- proto.Platform.LocalAccountProto.DisableAccount.prototype.serializeBinary = function() {
2370
- var writer = new jspb.BinaryWriter();
2371
- proto.Platform.LocalAccountProto.DisableAccount.serializeBinaryToWriter(this, writer);
2372
- return writer.getResultBuffer();
2373
- };
2374
-
2375
-
2376
- /**
2377
- * Serializes the given message to binary data (in protobuf wire
2378
- * format), writing to the given BinaryWriter.
2379
- * @param {!proto.Platform.LocalAccountProto.DisableAccount} message
2380
- * @param {!jspb.BinaryWriter} writer
2381
- * @suppress {unusedLocalVariables} f is only used for nested messages
2382
- */
2383
- proto.Platform.LocalAccountProto.DisableAccount.serializeBinaryToWriter = function(message, writer) {
2384
- var f = undefined;
2385
- f = message.getId();
2386
- if (f !== 0) {
2387
- writer.writeInt64(
2388
- 1,
2389
- f
2390
- );
2391
- }
2392
- };
2393
-
2394
-
2395
- /**
2396
- * optional int64 id = 1;
2397
- * @return {number}
2398
- */
2399
- proto.Platform.LocalAccountProto.DisableAccount.prototype.getId = function() {
2400
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2401
- };
2402
-
2403
-
2404
- /**
2405
- * @param {number} value
2406
- * @return {!proto.Platform.LocalAccountProto.DisableAccount} returns this
2407
- */
2408
- proto.Platform.LocalAccountProto.DisableAccount.prototype.setId = function(value) {
2409
- return jspb.Message.setProto3IntField(this, 1, value);
2410
- };
2411
-
2412
-
2413
-
2414
-
2415
-
2416
- if (jspb.Message.GENERATE_TO_OBJECT) {
2417
- /**
2418
- * Creates an object representation of this proto.
2419
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2420
- * Optional fields that are not set will be set to undefined.
2421
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2422
- * For the list of reserved names please see:
2423
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2424
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2425
- * JSPB instance for transitional soy proto support:
2426
- * http://goto/soy-param-migration
2427
- * @return {!Object}
2428
- */
2429
- proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.toObject = function(opt_includeInstance) {
2430
- return proto.Platform.LocalAccountProto.UpdateExpiredAt.toObject(opt_includeInstance, this);
2431
- };
2432
-
2433
-
2434
- /**
2435
- * Static version of the {@see toObject} method.
2436
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2437
- * the JSPB instance for transitional soy proto support:
2438
- * http://goto/soy-param-migration
2439
- * @param {!proto.Platform.LocalAccountProto.UpdateExpiredAt} msg The msg instance to transform.
2440
- * @return {!Object}
2441
- * @suppress {unusedLocalVariables} f is only used for nested messages
2442
- */
2443
- proto.Platform.LocalAccountProto.UpdateExpiredAt.toObject = function(includeInstance, msg) {
2444
- var f, obj = {
2445
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2446
- expiredAt: (f = msg.getExpiredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2447
- };
2448
-
2449
- if (includeInstance) {
2450
- obj.$jspbMessageInstance = msg;
2451
- }
2452
- return obj;
2453
- };
2454
- }
2455
-
2456
-
2457
- /**
2458
- * Deserializes binary data (in protobuf wire format).
2459
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2460
- * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt}
2461
- */
2462
- proto.Platform.LocalAccountProto.UpdateExpiredAt.deserializeBinary = function(bytes) {
2463
- var reader = new jspb.BinaryReader(bytes);
2464
- var msg = new proto.Platform.LocalAccountProto.UpdateExpiredAt;
2465
- return proto.Platform.LocalAccountProto.UpdateExpiredAt.deserializeBinaryFromReader(msg, reader);
2466
- };
2467
-
2468
-
2469
- /**
2470
- * Deserializes binary data (in protobuf wire format) from the
2471
- * given reader into the given message object.
2472
- * @param {!proto.Platform.LocalAccountProto.UpdateExpiredAt} msg The message object to deserialize into.
2473
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2474
- * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt}
2475
- */
2476
- proto.Platform.LocalAccountProto.UpdateExpiredAt.deserializeBinaryFromReader = function(msg, reader) {
2477
- while (reader.nextField()) {
2478
- if (reader.isEndGroup()) {
2479
- break;
2480
- }
2481
- var field = reader.getFieldNumber();
2482
- switch (field) {
2483
- case 1:
2484
- var value = /** @type {number} */ (reader.readInt64());
2485
- msg.setId(value);
2486
- break;
2487
- case 2:
2488
- var value = new google_protobuf_timestamp_pb.Timestamp;
2489
- reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2490
- msg.setExpiredAt(value);
2491
- break;
2492
- default:
2493
- reader.skipField();
2494
- break;
2495
- }
2496
- }
2497
- return msg;
2498
- };
2499
-
2500
-
2501
- /**
2502
- * Serializes the message to binary data (in protobuf wire format).
2503
- * @return {!Uint8Array}
2504
- */
2505
- proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.serializeBinary = function() {
2506
- var writer = new jspb.BinaryWriter();
2507
- proto.Platform.LocalAccountProto.UpdateExpiredAt.serializeBinaryToWriter(this, writer);
2508
- return writer.getResultBuffer();
2509
- };
2510
-
2511
-
2512
- /**
2513
- * Serializes the given message to binary data (in protobuf wire
2514
- * format), writing to the given BinaryWriter.
2515
- * @param {!proto.Platform.LocalAccountProto.UpdateExpiredAt} message
2516
- * @param {!jspb.BinaryWriter} writer
2517
- * @suppress {unusedLocalVariables} f is only used for nested messages
2518
- */
2519
- proto.Platform.LocalAccountProto.UpdateExpiredAt.serializeBinaryToWriter = function(message, writer) {
2520
- var f = undefined;
2521
- f = message.getId();
2522
- if (f !== 0) {
2523
- writer.writeInt64(
2524
- 1,
2525
- f
2526
- );
2527
- }
2528
- f = message.getExpiredAt();
2529
- if (f != null) {
2530
- writer.writeMessage(
2531
- 2,
2532
- f,
2533
- google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2534
- );
2535
- }
2536
- };
2537
-
2538
-
2539
- /**
2540
- * optional int64 id = 1;
2541
- * @return {number}
2542
- */
2543
- proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.getId = function() {
2544
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2545
- };
2546
-
2547
-
2548
- /**
2549
- * @param {number} value
2550
- * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt} returns this
2551
- */
2552
- proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.setId = function(value) {
2553
- return jspb.Message.setProto3IntField(this, 1, value);
2554
- };
2555
-
2556
-
2557
- /**
2558
- * optional google.protobuf.Timestamp expired_at = 2;
2559
- * @return {?proto.google.protobuf.Timestamp}
2560
- */
2561
- proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.getExpiredAt = function() {
2562
- return /** @type{?proto.google.protobuf.Timestamp} */ (
2563
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
2564
- };
2565
-
2566
-
2567
- /**
2568
- * @param {?proto.google.protobuf.Timestamp|undefined} value
2569
- * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt} returns this
2570
- */
2571
- proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.setExpiredAt = function(value) {
2572
- return jspb.Message.setWrapperField(this, 2, value);
2573
- };
2574
-
2575
-
2576
- /**
2577
- * Clears the message field making it undefined.
2578
- * @return {!proto.Platform.LocalAccountProto.UpdateExpiredAt} returns this
2579
- */
2580
- proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.clearExpiredAt = function() {
2581
- return this.setExpiredAt(undefined);
2582
- };
2583
-
2584
-
2585
- /**
2586
- * Returns whether this field is set.
2587
- * @return {boolean}
2588
- */
2589
- proto.Platform.LocalAccountProto.UpdateExpiredAt.prototype.hasExpiredAt = function() {
2590
- return jspb.Message.getField(this, 2) != null;
2591
- };
2592
-
2593
-
2594
-
2595
-
2596
-
2597
- if (jspb.Message.GENERATE_TO_OBJECT) {
2598
- /**
2599
- * Creates an object representation of this proto.
2600
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2601
- * Optional fields that are not set will be set to undefined.
2602
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2603
- * For the list of reserved names please see:
2604
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2605
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2606
- * JSPB instance for transitional soy proto support:
2607
- * http://goto/soy-param-migration
2608
- * @return {!Object}
2609
- */
2610
- proto.Platform.LocalAccountProto.ResendInvitationRequest.prototype.toObject = function(opt_includeInstance) {
2611
- return proto.Platform.LocalAccountProto.ResendInvitationRequest.toObject(opt_includeInstance, this);
2612
- };
2613
-
2614
-
2615
- /**
2616
- * Static version of the {@see toObject} method.
2617
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2618
- * the JSPB instance for transitional soy proto support:
2619
- * http://goto/soy-param-migration
2620
- * @param {!proto.Platform.LocalAccountProto.ResendInvitationRequest} msg The msg instance to transform.
2621
- * @return {!Object}
2622
- * @suppress {unusedLocalVariables} f is only used for nested messages
2623
- */
2624
- proto.Platform.LocalAccountProto.ResendInvitationRequest.toObject = function(includeInstance, msg) {
2625
- var f, obj = {
2626
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2627
- };
2628
-
2629
- if (includeInstance) {
2630
- obj.$jspbMessageInstance = msg;
2631
- }
2632
- return obj;
2633
- };
2634
- }
2635
-
2636
-
2637
- /**
2638
- * Deserializes binary data (in protobuf wire format).
2639
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2640
- * @return {!proto.Platform.LocalAccountProto.ResendInvitationRequest}
2641
- */
2642
- proto.Platform.LocalAccountProto.ResendInvitationRequest.deserializeBinary = function(bytes) {
2643
- var reader = new jspb.BinaryReader(bytes);
2644
- var msg = new proto.Platform.LocalAccountProto.ResendInvitationRequest;
2645
- return proto.Platform.LocalAccountProto.ResendInvitationRequest.deserializeBinaryFromReader(msg, reader);
2646
- };
2647
-
2648
-
2649
- /**
2650
- * Deserializes binary data (in protobuf wire format) from the
2651
- * given reader into the given message object.
2652
- * @param {!proto.Platform.LocalAccountProto.ResendInvitationRequest} msg The message object to deserialize into.
2653
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2654
- * @return {!proto.Platform.LocalAccountProto.ResendInvitationRequest}
2655
- */
2656
- proto.Platform.LocalAccountProto.ResendInvitationRequest.deserializeBinaryFromReader = function(msg, reader) {
2657
- while (reader.nextField()) {
2658
- if (reader.isEndGroup()) {
2659
- break;
2660
- }
2661
- var field = reader.getFieldNumber();
2662
- switch (field) {
2663
- case 1:
2664
- var value = /** @type {number} */ (reader.readInt64());
2665
- msg.setId(value);
2666
- break;
2667
- default:
2668
- reader.skipField();
2669
- break;
2670
- }
2671
- }
2672
- return msg;
2673
- };
2674
-
2675
-
2676
- /**
2677
- * Serializes the message to binary data (in protobuf wire format).
2678
- * @return {!Uint8Array}
2679
- */
2680
- proto.Platform.LocalAccountProto.ResendInvitationRequest.prototype.serializeBinary = function() {
2681
- var writer = new jspb.BinaryWriter();
2682
- proto.Platform.LocalAccountProto.ResendInvitationRequest.serializeBinaryToWriter(this, writer);
2683
- return writer.getResultBuffer();
2684
- };
2685
-
2686
-
2687
- /**
2688
- * Serializes the given message to binary data (in protobuf wire
2689
- * format), writing to the given BinaryWriter.
2690
- * @param {!proto.Platform.LocalAccountProto.ResendInvitationRequest} message
2691
- * @param {!jspb.BinaryWriter} writer
2692
- * @suppress {unusedLocalVariables} f is only used for nested messages
2693
- */
2694
- proto.Platform.LocalAccountProto.ResendInvitationRequest.serializeBinaryToWriter = function(message, writer) {
2695
- var f = undefined;
2696
- f = message.getId();
2697
- if (f !== 0) {
2698
- writer.writeInt64(
2699
- 1,
2700
- f
2701
- );
2702
- }
2703
- };
2704
-
2705
-
2706
- /**
2707
- * optional int64 id = 1;
2708
- * @return {number}
2709
- */
2710
- proto.Platform.LocalAccountProto.ResendInvitationRequest.prototype.getId = function() {
2711
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2712
- };
2713
-
2714
-
2715
- /**
2716
- * @param {number} value
2717
- * @return {!proto.Platform.LocalAccountProto.ResendInvitationRequest} returns this
2718
- */
2719
- proto.Platform.LocalAccountProto.ResendInvitationRequest.prototype.setId = function(value) {
2720
- return jspb.Message.setProto3IntField(this, 1, value);
2721
- };
2722
-
2723
-
2724
- /**
2725
- * optional int64 id = 1;
2726
- * @return {number}
2727
- */
2728
- proto.Platform.LocalAccountProto.prototype.getId = function() {
2729
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2730
- };
2731
-
2732
-
2733
- /**
2734
- * @param {number} value
2735
- * @return {!proto.Platform.LocalAccountProto} returns this
2736
- */
2737
- proto.Platform.LocalAccountProto.prototype.setId = function(value) {
2738
- return jspb.Message.setProto3IntField(this, 1, value);
2739
- };
2740
-
2741
-
2742
- /**
2743
- * optional string email = 2;
2744
- * @return {string}
2745
- */
2746
- proto.Platform.LocalAccountProto.prototype.getEmail = function() {
2747
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2748
- };
2749
-
2750
-
2751
- /**
2752
- * @param {string} value
2753
- * @return {!proto.Platform.LocalAccountProto} returns this
2754
- */
2755
- proto.Platform.LocalAccountProto.prototype.setEmail = function(value) {
2756
- return jspb.Message.setProto3StringField(this, 2, value);
2757
- };
2758
-
2759
-
2760
- /**
2761
- * optional string phone = 3;
2762
- * @return {string}
2763
- */
2764
- proto.Platform.LocalAccountProto.prototype.getPhone = function() {
2765
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2766
- };
2767
-
2768
-
2769
- /**
2770
- * @param {string} value
2771
- * @return {!proto.Platform.LocalAccountProto} returns this
2772
- */
2773
- proto.Platform.LocalAccountProto.prototype.setPhone = function(value) {
2774
- return jspb.Message.setProto3StringField(this, 3, value);
2775
- };
2776
-
2777
-
2778
- /**
2779
- * optional string last_name = 4;
2780
- * @return {string}
2781
- */
2782
- proto.Platform.LocalAccountProto.prototype.getLastName = function() {
2783
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2784
- };
2785
-
2786
-
2787
- /**
2788
- * @param {string} value
2789
- * @return {!proto.Platform.LocalAccountProto} returns this
2790
- */
2791
- proto.Platform.LocalAccountProto.prototype.setLastName = function(value) {
2792
- return jspb.Message.setProto3StringField(this, 4, value);
2793
- };
2794
-
2795
-
2796
- /**
2797
- * optional string first_name = 5;
2798
- * @return {string}
2799
- */
2800
- proto.Platform.LocalAccountProto.prototype.getFirstName = function() {
2801
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2802
- };
2803
-
2804
-
2805
- /**
2806
- * @param {string} value
2807
- * @return {!proto.Platform.LocalAccountProto} returns this
2808
- */
2809
- proto.Platform.LocalAccountProto.prototype.setFirstName = function(value) {
2810
- return jspb.Message.setProto3StringField(this, 5, value);
2811
- };
2812
-
2813
-
2814
- /**
2815
- * optional string locale = 6;
2816
- * @return {string}
2817
- */
2818
- proto.Platform.LocalAccountProto.prototype.getLocale = function() {
2819
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2820
- };
2821
-
2822
-
2823
- /**
2824
- * @param {string} value
2825
- * @return {!proto.Platform.LocalAccountProto} returns this
2826
- */
2827
- proto.Platform.LocalAccountProto.prototype.setLocale = function(value) {
2828
- return jspb.Message.setProto3StringField(this, 6, value);
2829
- };
2830
-
2831
-
2832
- /**
2833
- * optional string company = 7;
2834
- * @return {string}
2835
- */
2836
- proto.Platform.LocalAccountProto.prototype.getCompany = function() {
2837
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2838
- };
2839
-
2840
-
2841
- /**
2842
- * @param {string} value
2843
- * @return {!proto.Platform.LocalAccountProto} returns this
2844
- */
2845
- proto.Platform.LocalAccountProto.prototype.setCompany = function(value) {
2846
- return jspb.Message.setProto3StringField(this, 7, value);
2847
- };
2848
-
2849
-
2850
- /**
2851
- * optional string group_id = 8;
2852
- * @return {string}
2853
- */
2854
- proto.Platform.LocalAccountProto.prototype.getGroupId = function() {
2855
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2856
- };
2857
-
2858
-
2859
- /**
2860
- * @param {string} value
2861
- * @return {!proto.Platform.LocalAccountProto} returns this
2862
- */
2863
- proto.Platform.LocalAccountProto.prototype.setGroupId = function(value) {
2864
- return jspb.Message.setProto3StringField(this, 8, value);
2865
- };
2866
-
2867
-
2868
- /**
2869
- * optional bool enabled = 9;
2870
- * @return {boolean}
2871
- */
2872
- proto.Platform.LocalAccountProto.prototype.getEnabled = function() {
2873
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
2874
- };
2875
-
2876
-
2877
- /**
2878
- * @param {boolean} value
2879
- * @return {!proto.Platform.LocalAccountProto} returns this
2880
- */
2881
- proto.Platform.LocalAccountProto.prototype.setEnabled = function(value) {
2882
- return jspb.Message.setProto3BooleanField(this, 9, value);
2883
- };
2884
-
2885
-
2886
- /**
2887
- * optional google.protobuf.Timestamp expired_at = 10;
2888
- * @return {?proto.google.protobuf.Timestamp}
2889
- */
2890
- proto.Platform.LocalAccountProto.prototype.getExpiredAt = function() {
2891
- return /** @type{?proto.google.protobuf.Timestamp} */ (
2892
- jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
2893
- };
2894
-
2895
-
2896
- /**
2897
- * @param {?proto.google.protobuf.Timestamp|undefined} value
2898
- * @return {!proto.Platform.LocalAccountProto} returns this
2899
- */
2900
- proto.Platform.LocalAccountProto.prototype.setExpiredAt = function(value) {
2901
- return jspb.Message.setWrapperField(this, 10, value);
2902
- };
2903
-
2904
-
2905
- /**
2906
- * Clears the message field making it undefined.
2907
- * @return {!proto.Platform.LocalAccountProto} returns this
2908
- */
2909
- proto.Platform.LocalAccountProto.prototype.clearExpiredAt = function() {
2910
- return this.setExpiredAt(undefined);
2911
- };
2912
-
2913
-
2914
- /**
2915
- * Returns whether this field is set.
2916
- * @return {boolean}
2917
- */
2918
- proto.Platform.LocalAccountProto.prototype.hasExpiredAt = function() {
2919
- return jspb.Message.getField(this, 10) != null;
2920
- };
2921
-
2922
-
2923
- /**
2924
- * repeated Auth.AccountProto.Roles client_roles = 11;
2925
- * @return {!Array<!proto.Auth.AccountProto.Roles>}
2926
- */
2927
- proto.Platform.LocalAccountProto.prototype.getClientRolesList = function() {
2928
- return /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (jspb.Message.getRepeatedField(this, 11));
2929
- };
2930
-
2931
-
2932
- /**
2933
- * @param {!Array<!proto.Auth.AccountProto.Roles>} value
2934
- * @return {!proto.Platform.LocalAccountProto} returns this
2935
- */
2936
- proto.Platform.LocalAccountProto.prototype.setClientRolesList = function(value) {
2937
- return jspb.Message.setField(this, 11, value || []);
2938
- };
2939
-
2940
-
2941
- /**
2942
- * @param {!proto.Auth.AccountProto.Roles} value
2943
- * @param {number=} opt_index
2944
- * @return {!proto.Platform.LocalAccountProto} returns this
2945
- */
2946
- proto.Platform.LocalAccountProto.prototype.addClientRoles = function(value, opt_index) {
2947
- return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
2948
- };
2949
-
2950
-
2951
- /**
2952
- * Clears the list making it empty but non-null.
2953
- * @return {!proto.Platform.LocalAccountProto} returns this
2954
- */
2955
- proto.Platform.LocalAccountProto.prototype.clearClientRolesList = function() {
2956
- return this.setClientRolesList([]);
2957
- };
2958
-
2959
-
2960
- /**
2961
- * optional Auth.AccountProto.ActivationStatuses status = 12;
2962
- * @return {!proto.Auth.AccountProto.ActivationStatuses}
2963
- */
2964
- proto.Platform.LocalAccountProto.prototype.getStatus = function() {
2965
- return /** @type {!proto.Auth.AccountProto.ActivationStatuses} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
2966
- };
2967
-
2968
-
2969
- /**
2970
- * @param {!proto.Auth.AccountProto.ActivationStatuses} value
2971
- * @return {!proto.Platform.LocalAccountProto} returns this
2972
- */
2973
- proto.Platform.LocalAccountProto.prototype.setStatus = function(value) {
2974
- return jspb.Message.setProto3EnumField(this, 12, value);
2975
- };
2976
-
2977
-
2978
- /**
2979
- * optional bool deleted = 13;
2980
- * @return {boolean}
2981
- */
2982
- proto.Platform.LocalAccountProto.prototype.getDeleted = function() {
2983
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
2984
- };
2985
-
2986
-
2987
- /**
2988
- * @param {boolean} value
2989
- * @return {!proto.Platform.LocalAccountProto} returns this
2990
- */
2991
- proto.Platform.LocalAccountProto.prototype.setDeleted = function(value) {
2992
- return jspb.Message.setProto3BooleanField(this, 13, value);
2993
- };
2994
-
2995
-
2996
- /**
2997
- * optional int64 client_id = 14;
2998
- * @return {number}
2999
- */
3000
- proto.Platform.LocalAccountProto.prototype.getClientId = function() {
3001
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
3002
- };
3003
-
3004
-
3005
- /**
3006
- * @param {number} value
3007
- * @return {!proto.Platform.LocalAccountProto} returns this
3008
- */
3009
- proto.Platform.LocalAccountProto.prototype.setClientId = function(value) {
3010
- return jspb.Message.setProto3IntField(this, 14, value);
3011
- };
3012
-
3013
-
3014
- /**
3015
- * optional AccountTypes type = 15;
3016
- * @return {!proto.Platform.LocalAccountProto.AccountTypes}
3017
- */
3018
- proto.Platform.LocalAccountProto.prototype.getType = function() {
3019
- return /** @type {!proto.Platform.LocalAccountProto.AccountTypes} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
3020
- };
3021
-
3022
-
3023
- /**
3024
- * @param {!proto.Platform.LocalAccountProto.AccountTypes} value
3025
- * @return {!proto.Platform.LocalAccountProto} returns this
3026
- */
3027
- proto.Platform.LocalAccountProto.prototype.setType = function(value) {
3028
- return jspb.Message.setProto3EnumField(this, 15, value);
3029
- };
3030
-
3031
-
3032
- goog.object.extend(exports, proto.Platform);