@aceplus/smartace-api 1.3.0-alpha.124 → 1.3.0-alpha.125

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