@meshtrade/api-old 1.40.0 → 1.42.0

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 (30) hide show
  1. package/dist/meshtrade/compliance/client/v1/service_grpc_web_client_meshts.d.ts +7 -1
  2. package/dist/meshtrade/compliance/client/v1/service_grpc_web_client_meshts.js +8 -0
  3. package/dist/meshtrade/compliance/client/v1/service_grpc_web_pb.d.ts +12 -0
  4. package/dist/meshtrade/compliance/client/v1/service_grpc_web_pb.js +61 -0
  5. package/dist/meshtrade/compliance/client/v1/service_pb.d.ts +18 -0
  6. package/dist/meshtrade/compliance/client/v1/service_pb.js +152 -0
  7. package/dist/meshtrade/iam/role/v1/role.js +2 -0
  8. package/dist/meshtrade/iam/role/v1/role_pb.d.ts +2 -0
  9. package/dist/meshtrade/iam/role/v1/role_pb.js +2 -0
  10. package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.d.ts +1 -7
  11. package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.js +0 -8
  12. package/dist/meshtrade/iam/user/v1/service_grpc_web_pb.d.ts +0 -12
  13. package/dist/meshtrade/iam/user/v1/service_grpc_web_pb.js +0 -61
  14. package/dist/meshtrade/iam/user/v1/service_pb.d.ts +0 -67
  15. package/dist/meshtrade/iam/user/v1/service_pb.js +0 -567
  16. package/dist/meshtrade/iam/user/v1/user_pb.d.ts +32 -0
  17. package/dist/meshtrade/iam/user/v1/user_pb.js +270 -7
  18. package/dist/meshtrade/iam/user_profile/v1/index.d.ts +4 -0
  19. package/dist/meshtrade/iam/user_profile/v1/index.js +45 -0
  20. package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_client_meshts.d.ts +53 -0
  21. package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_client_meshts.js +96 -0
  22. package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_pb.d.ts +68 -0
  23. package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_pb.js +331 -0
  24. package/dist/meshtrade/iam/user_profile/v1/service_pb.d.ts +97 -0
  25. package/dist/meshtrade/iam/user_profile/v1/service_pb.js +812 -0
  26. package/dist/meshtrade/iam/user_profile/v1/user_profile_pb.d.ts +62 -0
  27. package/dist/meshtrade/iam/user_profile/v1/user_profile_pb.js +488 -0
  28. package/dist/meshtrade/option/method_options/v1/method_options_pb.d.ts +8 -0
  29. package/dist/meshtrade/option/method_options/v1/method_options_pb.js +40 -1
  30. package/package.json +1 -1
@@ -0,0 +1,812 @@
1
+ // source: meshtrade/iam/user_profile/v1/service.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 buf_validate_validate_pb = require('../../../../buf/validate/validate_pb.js');
25
+ goog.object.extend(proto, buf_validate_validate_pb);
26
+ var meshtrade_iam_user_profile_v1_user_profile_pb = require('../../../../meshtrade/iam/user_profile/v1/user_profile_pb.js');
27
+ goog.object.extend(proto, meshtrade_iam_user_profile_v1_user_profile_pb);
28
+ var meshtrade_option_method_options_v1_method_options_pb = require('../../../../meshtrade/option/method_options/v1/method_options_pb.js');
29
+ goog.object.extend(proto, meshtrade_option_method_options_v1_method_options_pb);
30
+ goog.exportSymbol('proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest', null, global);
31
+ goog.exportSymbol('proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest', null, global);
32
+ goog.exportSymbol('proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest', null, global);
33
+ goog.exportSymbol('proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse', null, global);
34
+ goog.exportSymbol('proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest', null, global);
35
+ /**
36
+ * Generated by JsPbCodeGenerator.
37
+ * @param {Array=} opt_data Optional initial data array, typically from a
38
+ * server response, or constructed directly in Javascript. The array is used
39
+ * in place and becomes part of the constructed object. It is not cloned.
40
+ * If no data is provided, the constructed object will be empty, but still
41
+ * valid.
42
+ * @extends {jspb.Message}
43
+ * @constructor
44
+ */
45
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest = function(opt_data) {
46
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
47
+ };
48
+ goog.inherits(proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest, jspb.Message);
49
+ if (goog.DEBUG && !COMPILED) {
50
+ /**
51
+ * @public
52
+ * @override
53
+ */
54
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest.displayName = 'proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest';
55
+ }
56
+ /**
57
+ * Generated by JsPbCodeGenerator.
58
+ * @param {Array=} opt_data Optional initial data array, typically from a
59
+ * server response, or constructed directly in Javascript. The array is used
60
+ * in place and becomes part of the constructed object. It is not cloned.
61
+ * If no data is provided, the constructed object will be empty, but still
62
+ * valid.
63
+ * @extends {jspb.Message}
64
+ * @constructor
65
+ */
66
+ proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest = function(opt_data) {
67
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
68
+ };
69
+ goog.inherits(proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest, jspb.Message);
70
+ if (goog.DEBUG && !COMPILED) {
71
+ /**
72
+ * @public
73
+ * @override
74
+ */
75
+ proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest.displayName = 'proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest';
76
+ }
77
+ /**
78
+ * Generated by JsPbCodeGenerator.
79
+ * @param {Array=} opt_data Optional initial data array, typically from a
80
+ * server response, or constructed directly in Javascript. The array is used
81
+ * in place and becomes part of the constructed object. It is not cloned.
82
+ * If no data is provided, the constructed object will be empty, but still
83
+ * valid.
84
+ * @extends {jspb.Message}
85
+ * @constructor
86
+ */
87
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest = function(opt_data) {
88
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
89
+ };
90
+ goog.inherits(proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest, jspb.Message);
91
+ if (goog.DEBUG && !COMPILED) {
92
+ /**
93
+ * @public
94
+ * @override
95
+ */
96
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest.displayName = 'proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest';
97
+ }
98
+ /**
99
+ * Generated by JsPbCodeGenerator.
100
+ * @param {Array=} opt_data Optional initial data array, typically from a
101
+ * server response, or constructed directly in Javascript. The array is used
102
+ * in place and becomes part of the constructed object. It is not cloned.
103
+ * If no data is provided, the constructed object will be empty, but still
104
+ * valid.
105
+ * @extends {jspb.Message}
106
+ * @constructor
107
+ */
108
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest = function(opt_data) {
109
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
110
+ };
111
+ goog.inherits(proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest, jspb.Message);
112
+ if (goog.DEBUG && !COMPILED) {
113
+ /**
114
+ * @public
115
+ * @override
116
+ */
117
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest.displayName = 'proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest';
118
+ }
119
+ /**
120
+ * Generated by JsPbCodeGenerator.
121
+ * @param {Array=} opt_data Optional initial data array, typically from a
122
+ * server response, or constructed directly in Javascript. The array is used
123
+ * in place and becomes part of the constructed object. It is not cloned.
124
+ * If no data is provided, the constructed object will be empty, but still
125
+ * valid.
126
+ * @extends {jspb.Message}
127
+ * @constructor
128
+ */
129
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse = function(opt_data) {
130
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.repeatedFields_, null);
131
+ };
132
+ goog.inherits(proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse, jspb.Message);
133
+ if (goog.DEBUG && !COMPILED) {
134
+ /**
135
+ * @public
136
+ * @override
137
+ */
138
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.displayName = 'proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse';
139
+ }
140
+
141
+
142
+
143
+ if (jspb.Message.GENERATE_TO_OBJECT) {
144
+ /**
145
+ * Creates an object representation of this proto.
146
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
147
+ * Optional fields that are not set will be set to undefined.
148
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
149
+ * For the list of reserved names please see:
150
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
151
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
152
+ * JSPB instance for transitional soy proto support:
153
+ * http://goto/soy-param-migration
154
+ * @return {!Object}
155
+ */
156
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest.prototype.toObject = function(opt_includeInstance) {
157
+ return proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest.toObject(opt_includeInstance, this);
158
+ };
159
+
160
+
161
+ /**
162
+ * Static version of the {@see toObject} method.
163
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
164
+ * the JSPB instance for transitional soy proto support:
165
+ * http://goto/soy-param-migration
166
+ * @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest} msg The msg instance to transform.
167
+ * @return {!Object}
168
+ * @suppress {unusedLocalVariables} f is only used for nested messages
169
+ */
170
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest.toObject = function(includeInstance, msg) {
171
+ var f, obj = {
172
+ user: jspb.Message.getFieldWithDefault(msg, 1, "")
173
+ };
174
+
175
+ if (includeInstance) {
176
+ obj.$jspbMessageInstance = msg;
177
+ }
178
+ return obj;
179
+ };
180
+ }
181
+
182
+
183
+ /**
184
+ * Deserializes binary data (in protobuf wire format).
185
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
186
+ * @return {!proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest}
187
+ */
188
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest.deserializeBinary = function(bytes) {
189
+ var reader = new jspb.BinaryReader(bytes);
190
+ var msg = new proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest;
191
+ return proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest.deserializeBinaryFromReader(msg, reader);
192
+ };
193
+
194
+
195
+ /**
196
+ * Deserializes binary data (in protobuf wire format) from the
197
+ * given reader into the given message object.
198
+ * @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest} msg The message object to deserialize into.
199
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
200
+ * @return {!proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest}
201
+ */
202
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest.deserializeBinaryFromReader = function(msg, reader) {
203
+ while (reader.nextField()) {
204
+ if (reader.isEndGroup()) {
205
+ break;
206
+ }
207
+ var field = reader.getFieldNumber();
208
+ switch (field) {
209
+ case 1:
210
+ var value = /** @type {string} */ (reader.readString());
211
+ msg.setUser(value);
212
+ break;
213
+ default:
214
+ reader.skipField();
215
+ break;
216
+ }
217
+ }
218
+ return msg;
219
+ };
220
+
221
+
222
+ /**
223
+ * Serializes the message to binary data (in protobuf wire format).
224
+ * @return {!Uint8Array}
225
+ */
226
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest.prototype.serializeBinary = function() {
227
+ var writer = new jspb.BinaryWriter();
228
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest.serializeBinaryToWriter(this, writer);
229
+ return writer.getResultBuffer();
230
+ };
231
+
232
+
233
+ /**
234
+ * Serializes the given message to binary data (in protobuf wire
235
+ * format), writing to the given BinaryWriter.
236
+ * @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest} message
237
+ * @param {!jspb.BinaryWriter} writer
238
+ * @suppress {unusedLocalVariables} f is only used for nested messages
239
+ */
240
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest.serializeBinaryToWriter = function(message, writer) {
241
+ var f = undefined;
242
+ f = message.getUser();
243
+ if (f.length > 0) {
244
+ writer.writeString(
245
+ 1,
246
+ f
247
+ );
248
+ }
249
+ };
250
+
251
+
252
+ /**
253
+ * optional string user = 1;
254
+ * @return {string}
255
+ */
256
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest.prototype.getUser = function() {
257
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
258
+ };
259
+
260
+
261
+ /**
262
+ * @param {string} value
263
+ * @return {!proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest} returns this
264
+ */
265
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest.prototype.setUser = function(value) {
266
+ return jspb.Message.setProto3StringField(this, 1, value);
267
+ };
268
+
269
+
270
+
271
+
272
+
273
+ if (jspb.Message.GENERATE_TO_OBJECT) {
274
+ /**
275
+ * Creates an object representation of this proto.
276
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
277
+ * Optional fields that are not set will be set to undefined.
278
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
279
+ * For the list of reserved names please see:
280
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
281
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
282
+ * JSPB instance for transitional soy proto support:
283
+ * http://goto/soy-param-migration
284
+ * @return {!Object}
285
+ */
286
+ proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest.prototype.toObject = function(opt_includeInstance) {
287
+ return proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest.toObject(opt_includeInstance, this);
288
+ };
289
+
290
+
291
+ /**
292
+ * Static version of the {@see toObject} method.
293
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
294
+ * the JSPB instance for transitional soy proto support:
295
+ * http://goto/soy-param-migration
296
+ * @param {!proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest} msg The msg instance to transform.
297
+ * @return {!Object}
298
+ * @suppress {unusedLocalVariables} f is only used for nested messages
299
+ */
300
+ proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest.toObject = function(includeInstance, msg) {
301
+ var f, obj = {
302
+ userProfile: (f = msg.getUserProfile()) && meshtrade_iam_user_profile_v1_user_profile_pb.UserProfile.toObject(includeInstance, f)
303
+ };
304
+
305
+ if (includeInstance) {
306
+ obj.$jspbMessageInstance = msg;
307
+ }
308
+ return obj;
309
+ };
310
+ }
311
+
312
+
313
+ /**
314
+ * Deserializes binary data (in protobuf wire format).
315
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
316
+ * @return {!proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest}
317
+ */
318
+ proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest.deserializeBinary = function(bytes) {
319
+ var reader = new jspb.BinaryReader(bytes);
320
+ var msg = new proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest;
321
+ return proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest.deserializeBinaryFromReader(msg, reader);
322
+ };
323
+
324
+
325
+ /**
326
+ * Deserializes binary data (in protobuf wire format) from the
327
+ * given reader into the given message object.
328
+ * @param {!proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest} msg The message object to deserialize into.
329
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
330
+ * @return {!proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest}
331
+ */
332
+ proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest.deserializeBinaryFromReader = function(msg, reader) {
333
+ while (reader.nextField()) {
334
+ if (reader.isEndGroup()) {
335
+ break;
336
+ }
337
+ var field = reader.getFieldNumber();
338
+ switch (field) {
339
+ case 1:
340
+ var value = new meshtrade_iam_user_profile_v1_user_profile_pb.UserProfile;
341
+ reader.readMessage(value,meshtrade_iam_user_profile_v1_user_profile_pb.UserProfile.deserializeBinaryFromReader);
342
+ msg.setUserProfile(value);
343
+ break;
344
+ default:
345
+ reader.skipField();
346
+ break;
347
+ }
348
+ }
349
+ return msg;
350
+ };
351
+
352
+
353
+ /**
354
+ * Serializes the message to binary data (in protobuf wire format).
355
+ * @return {!Uint8Array}
356
+ */
357
+ proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest.prototype.serializeBinary = function() {
358
+ var writer = new jspb.BinaryWriter();
359
+ proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest.serializeBinaryToWriter(this, writer);
360
+ return writer.getResultBuffer();
361
+ };
362
+
363
+
364
+ /**
365
+ * Serializes the given message to binary data (in protobuf wire
366
+ * format), writing to the given BinaryWriter.
367
+ * @param {!proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest} message
368
+ * @param {!jspb.BinaryWriter} writer
369
+ * @suppress {unusedLocalVariables} f is only used for nested messages
370
+ */
371
+ proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest.serializeBinaryToWriter = function(message, writer) {
372
+ var f = undefined;
373
+ f = message.getUserProfile();
374
+ if (f != null) {
375
+ writer.writeMessage(
376
+ 1,
377
+ f,
378
+ meshtrade_iam_user_profile_v1_user_profile_pb.UserProfile.serializeBinaryToWriter
379
+ );
380
+ }
381
+ };
382
+
383
+
384
+ /**
385
+ * optional UserProfile user_profile = 1;
386
+ * @return {?proto.meshtrade.iam.user_profile.v1.UserProfile}
387
+ */
388
+ proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest.prototype.getUserProfile = function() {
389
+ return /** @type{?proto.meshtrade.iam.user_profile.v1.UserProfile} */ (
390
+ jspb.Message.getWrapperField(this, meshtrade_iam_user_profile_v1_user_profile_pb.UserProfile, 1));
391
+ };
392
+
393
+
394
+ /**
395
+ * @param {?proto.meshtrade.iam.user_profile.v1.UserProfile|undefined} value
396
+ * @return {!proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest} returns this
397
+ */
398
+ proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest.prototype.setUserProfile = function(value) {
399
+ return jspb.Message.setWrapperField(this, 1, value);
400
+ };
401
+
402
+
403
+ /**
404
+ * Clears the message field making it undefined.
405
+ * @return {!proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest} returns this
406
+ */
407
+ proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest.prototype.clearUserProfile = function() {
408
+ return this.setUserProfile(undefined);
409
+ };
410
+
411
+
412
+ /**
413
+ * Returns whether this field is set.
414
+ * @return {boolean}
415
+ */
416
+ proto.meshtrade.iam.user_profile.v1.UpdateUserProfileRequest.prototype.hasUserProfile = function() {
417
+ return jspb.Message.getField(this, 1) != null;
418
+ };
419
+
420
+
421
+
422
+
423
+
424
+ if (jspb.Message.GENERATE_TO_OBJECT) {
425
+ /**
426
+ * Creates an object representation of this proto.
427
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
428
+ * Optional fields that are not set will be set to undefined.
429
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
430
+ * For the list of reserved names please see:
431
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
432
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
433
+ * JSPB instance for transitional soy proto support:
434
+ * http://goto/soy-param-migration
435
+ * @return {!Object}
436
+ */
437
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest.prototype.toObject = function(opt_includeInstance) {
438
+ return proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest.toObject(opt_includeInstance, this);
439
+ };
440
+
441
+
442
+ /**
443
+ * Static version of the {@see toObject} method.
444
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
445
+ * the JSPB instance for transitional soy proto support:
446
+ * http://goto/soy-param-migration
447
+ * @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest} msg The msg instance to transform.
448
+ * @return {!Object}
449
+ * @suppress {unusedLocalVariables} f is only used for nested messages
450
+ */
451
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest.toObject = function(includeInstance, msg) {
452
+ var f, obj = {
453
+ name: jspb.Message.getFieldWithDefault(msg, 1, "")
454
+ };
455
+
456
+ if (includeInstance) {
457
+ obj.$jspbMessageInstance = msg;
458
+ }
459
+ return obj;
460
+ };
461
+ }
462
+
463
+
464
+ /**
465
+ * Deserializes binary data (in protobuf wire format).
466
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
467
+ * @return {!proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest}
468
+ */
469
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest.deserializeBinary = function(bytes) {
470
+ var reader = new jspb.BinaryReader(bytes);
471
+ var msg = new proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest;
472
+ return proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest.deserializeBinaryFromReader(msg, reader);
473
+ };
474
+
475
+
476
+ /**
477
+ * Deserializes binary data (in protobuf wire format) from the
478
+ * given reader into the given message object.
479
+ * @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest} msg The message object to deserialize into.
480
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
481
+ * @return {!proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest}
482
+ */
483
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest.deserializeBinaryFromReader = function(msg, reader) {
484
+ while (reader.nextField()) {
485
+ if (reader.isEndGroup()) {
486
+ break;
487
+ }
488
+ var field = reader.getFieldNumber();
489
+ switch (field) {
490
+ case 1:
491
+ var value = /** @type {string} */ (reader.readString());
492
+ msg.setName(value);
493
+ break;
494
+ default:
495
+ reader.skipField();
496
+ break;
497
+ }
498
+ }
499
+ return msg;
500
+ };
501
+
502
+
503
+ /**
504
+ * Serializes the message to binary data (in protobuf wire format).
505
+ * @return {!Uint8Array}
506
+ */
507
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest.prototype.serializeBinary = function() {
508
+ var writer = new jspb.BinaryWriter();
509
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest.serializeBinaryToWriter(this, writer);
510
+ return writer.getResultBuffer();
511
+ };
512
+
513
+
514
+ /**
515
+ * Serializes the given message to binary data (in protobuf wire
516
+ * format), writing to the given BinaryWriter.
517
+ * @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest} message
518
+ * @param {!jspb.BinaryWriter} writer
519
+ * @suppress {unusedLocalVariables} f is only used for nested messages
520
+ */
521
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest.serializeBinaryToWriter = function(message, writer) {
522
+ var f = undefined;
523
+ f = message.getName();
524
+ if (f.length > 0) {
525
+ writer.writeString(
526
+ 1,
527
+ f
528
+ );
529
+ }
530
+ };
531
+
532
+
533
+ /**
534
+ * optional string name = 1;
535
+ * @return {string}
536
+ */
537
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest.prototype.getName = function() {
538
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
539
+ };
540
+
541
+
542
+ /**
543
+ * @param {string} value
544
+ * @return {!proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest} returns this
545
+ */
546
+ proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest.prototype.setName = function(value) {
547
+ return jspb.Message.setProto3StringField(this, 1, value);
548
+ };
549
+
550
+
551
+
552
+
553
+
554
+ if (jspb.Message.GENERATE_TO_OBJECT) {
555
+ /**
556
+ * Creates an object representation of this proto.
557
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
558
+ * Optional fields that are not set will be set to undefined.
559
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
560
+ * For the list of reserved names please see:
561
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
562
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
563
+ * JSPB instance for transitional soy proto support:
564
+ * http://goto/soy-param-migration
565
+ * @return {!Object}
566
+ */
567
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest.prototype.toObject = function(opt_includeInstance) {
568
+ return proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest.toObject(opt_includeInstance, this);
569
+ };
570
+
571
+
572
+ /**
573
+ * Static version of the {@see toObject} method.
574
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
575
+ * the JSPB instance for transitional soy proto support:
576
+ * http://goto/soy-param-migration
577
+ * @param {!proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest} msg The msg instance to transform.
578
+ * @return {!Object}
579
+ * @suppress {unusedLocalVariables} f is only used for nested messages
580
+ */
581
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest.toObject = function(includeInstance, msg) {
582
+ var f, obj = {
583
+
584
+ };
585
+
586
+ if (includeInstance) {
587
+ obj.$jspbMessageInstance = msg;
588
+ }
589
+ return obj;
590
+ };
591
+ }
592
+
593
+
594
+ /**
595
+ * Deserializes binary data (in protobuf wire format).
596
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
597
+ * @return {!proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest}
598
+ */
599
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest.deserializeBinary = function(bytes) {
600
+ var reader = new jspb.BinaryReader(bytes);
601
+ var msg = new proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest;
602
+ return proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest.deserializeBinaryFromReader(msg, reader);
603
+ };
604
+
605
+
606
+ /**
607
+ * Deserializes binary data (in protobuf wire format) from the
608
+ * given reader into the given message object.
609
+ * @param {!proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest} msg The message object to deserialize into.
610
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
611
+ * @return {!proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest}
612
+ */
613
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest.deserializeBinaryFromReader = function(msg, reader) {
614
+ while (reader.nextField()) {
615
+ if (reader.isEndGroup()) {
616
+ break;
617
+ }
618
+ var field = reader.getFieldNumber();
619
+ switch (field) {
620
+ default:
621
+ reader.skipField();
622
+ break;
623
+ }
624
+ }
625
+ return msg;
626
+ };
627
+
628
+
629
+ /**
630
+ * Serializes the message to binary data (in protobuf wire format).
631
+ * @return {!Uint8Array}
632
+ */
633
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest.prototype.serializeBinary = function() {
634
+ var writer = new jspb.BinaryWriter();
635
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest.serializeBinaryToWriter(this, writer);
636
+ return writer.getResultBuffer();
637
+ };
638
+
639
+
640
+ /**
641
+ * Serializes the given message to binary data (in protobuf wire
642
+ * format), writing to the given BinaryWriter.
643
+ * @param {!proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest} message
644
+ * @param {!jspb.BinaryWriter} writer
645
+ * @suppress {unusedLocalVariables} f is only used for nested messages
646
+ */
647
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest.serializeBinaryToWriter = function(message, writer) {
648
+ var f = undefined;
649
+ };
650
+
651
+
652
+
653
+ /**
654
+ * List of repeated fields within this message type.
655
+ * @private {!Array<number>}
656
+ * @const
657
+ */
658
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.repeatedFields_ = [1];
659
+
660
+
661
+
662
+ if (jspb.Message.GENERATE_TO_OBJECT) {
663
+ /**
664
+ * Creates an object representation of this proto.
665
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
666
+ * Optional fields that are not set will be set to undefined.
667
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
668
+ * For the list of reserved names please see:
669
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
670
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
671
+ * JSPB instance for transitional soy proto support:
672
+ * http://goto/soy-param-migration
673
+ * @return {!Object}
674
+ */
675
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.prototype.toObject = function(opt_includeInstance) {
676
+ return proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.toObject(opt_includeInstance, this);
677
+ };
678
+
679
+
680
+ /**
681
+ * Static version of the {@see toObject} method.
682
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
683
+ * the JSPB instance for transitional soy proto support:
684
+ * http://goto/soy-param-migration
685
+ * @param {!proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse} msg The msg instance to transform.
686
+ * @return {!Object}
687
+ * @suppress {unusedLocalVariables} f is only used for nested messages
688
+ */
689
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.toObject = function(includeInstance, msg) {
690
+ var f, obj = {
691
+ userProfilesList: jspb.Message.toObjectList(msg.getUserProfilesList(),
692
+ meshtrade_iam_user_profile_v1_user_profile_pb.UserProfile.toObject, includeInstance)
693
+ };
694
+
695
+ if (includeInstance) {
696
+ obj.$jspbMessageInstance = msg;
697
+ }
698
+ return obj;
699
+ };
700
+ }
701
+
702
+
703
+ /**
704
+ * Deserializes binary data (in protobuf wire format).
705
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
706
+ * @return {!proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse}
707
+ */
708
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.deserializeBinary = function(bytes) {
709
+ var reader = new jspb.BinaryReader(bytes);
710
+ var msg = new proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse;
711
+ return proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.deserializeBinaryFromReader(msg, reader);
712
+ };
713
+
714
+
715
+ /**
716
+ * Deserializes binary data (in protobuf wire format) from the
717
+ * given reader into the given message object.
718
+ * @param {!proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse} msg The message object to deserialize into.
719
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
720
+ * @return {!proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse}
721
+ */
722
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.deserializeBinaryFromReader = function(msg, reader) {
723
+ while (reader.nextField()) {
724
+ if (reader.isEndGroup()) {
725
+ break;
726
+ }
727
+ var field = reader.getFieldNumber();
728
+ switch (field) {
729
+ case 1:
730
+ var value = new meshtrade_iam_user_profile_v1_user_profile_pb.UserProfile;
731
+ reader.readMessage(value,meshtrade_iam_user_profile_v1_user_profile_pb.UserProfile.deserializeBinaryFromReader);
732
+ msg.addUserProfiles(value);
733
+ break;
734
+ default:
735
+ reader.skipField();
736
+ break;
737
+ }
738
+ }
739
+ return msg;
740
+ };
741
+
742
+
743
+ /**
744
+ * Serializes the message to binary data (in protobuf wire format).
745
+ * @return {!Uint8Array}
746
+ */
747
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.prototype.serializeBinary = function() {
748
+ var writer = new jspb.BinaryWriter();
749
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.serializeBinaryToWriter(this, writer);
750
+ return writer.getResultBuffer();
751
+ };
752
+
753
+
754
+ /**
755
+ * Serializes the given message to binary data (in protobuf wire
756
+ * format), writing to the given BinaryWriter.
757
+ * @param {!proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse} message
758
+ * @param {!jspb.BinaryWriter} writer
759
+ * @suppress {unusedLocalVariables} f is only used for nested messages
760
+ */
761
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.serializeBinaryToWriter = function(message, writer) {
762
+ var f = undefined;
763
+ f = message.getUserProfilesList();
764
+ if (f.length > 0) {
765
+ writer.writeRepeatedMessage(
766
+ 1,
767
+ f,
768
+ meshtrade_iam_user_profile_v1_user_profile_pb.UserProfile.serializeBinaryToWriter
769
+ );
770
+ }
771
+ };
772
+
773
+
774
+ /**
775
+ * repeated UserProfile user_profiles = 1;
776
+ * @return {!Array<!proto.meshtrade.iam.user_profile.v1.UserProfile>}
777
+ */
778
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.prototype.getUserProfilesList = function() {
779
+ return /** @type{!Array<!proto.meshtrade.iam.user_profile.v1.UserProfile>} */ (
780
+ jspb.Message.getRepeatedWrapperField(this, meshtrade_iam_user_profile_v1_user_profile_pb.UserProfile, 1));
781
+ };
782
+
783
+
784
+ /**
785
+ * @param {!Array<!proto.meshtrade.iam.user_profile.v1.UserProfile>} value
786
+ * @return {!proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse} returns this
787
+ */
788
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.prototype.setUserProfilesList = function(value) {
789
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
790
+ };
791
+
792
+
793
+ /**
794
+ * @param {!proto.meshtrade.iam.user_profile.v1.UserProfile=} opt_value
795
+ * @param {number=} opt_index
796
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile}
797
+ */
798
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.prototype.addUserProfiles = function(opt_value, opt_index) {
799
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.meshtrade.iam.user_profile.v1.UserProfile, opt_index);
800
+ };
801
+
802
+
803
+ /**
804
+ * Clears the list making it empty but non-null.
805
+ * @return {!proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse} returns this
806
+ */
807
+ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.prototype.clearUserProfilesList = function() {
808
+ return this.setUserProfilesList([]);
809
+ };
810
+
811
+
812
+ goog.object.extend(exports, proto.meshtrade.iam.user_profile.v1);