@meshtrade/api-old 1.48.0 → 1.50.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.
- package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_client_meshts.d.ts +7 -1
- package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_client_meshts.js +8 -0
- package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_pb.d.ts +12 -0
- package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_pb.js +63 -0
- package/dist/meshtrade/iam/user_profile/v1/service_pb.d.ts +43 -0
- package/dist/meshtrade/iam/user_profile/v1/service_pb.js +357 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetUserProfileByUserRequest, GetUserProfileRequest, ListUserProfilesRequest, ListUserProfilesResponse, UpdateUserProfileRequest } from "./service_pb";
|
|
1
|
+
import { GetUserProfileByUserRequest, GetUserProfilePictureUploadUrlRequest, GetUserProfilePictureUploadUrlResponse, GetUserProfileRequest, ListUserProfilesRequest, ListUserProfilesResponse, UpdateUserProfileRequest } from "./service_pb";
|
|
2
2
|
import { UserProfile } from "./user_profile_pb";
|
|
3
3
|
import { UnaryInterceptor } from "grpc-web";
|
|
4
4
|
import { ConfigOpts } from "../../../common/config";
|
|
@@ -50,4 +50,10 @@ export declare class UserProfileServiceGrpcWebClientV1 {
|
|
|
50
50
|
* @returns {Promise<ListUserProfilesResponse>} A promise that resolves with the list of user profiles.
|
|
51
51
|
*/
|
|
52
52
|
listUserProfiles(request: ListUserProfilesRequest): Promise<ListUserProfilesResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves an user profile.
|
|
55
|
+
* @param {GetUserProfilePictureUploadUrlRequest} request - The request object for getuserprofilepictureuploadurl.
|
|
56
|
+
* @returns {Promise<GetUserProfilePictureUploadUrlResponse>} A promise that resolves with the user profile.
|
|
57
|
+
*/
|
|
58
|
+
getUserProfilePictureUploadUrl(request: GetUserProfilePictureUploadUrlRequest): Promise<GetUserProfilePictureUploadUrlResponse>;
|
|
53
59
|
}
|
|
@@ -92,5 +92,13 @@ class UserProfileServiceGrpcWebClientV1 {
|
|
|
92
92
|
listUserProfiles(request) {
|
|
93
93
|
return this._service.listUserProfiles(request);
|
|
94
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* Retrieves an user profile.
|
|
97
|
+
* @param {GetUserProfilePictureUploadUrlRequest} request - The request object for getuserprofilepictureuploadurl.
|
|
98
|
+
* @returns {Promise<GetUserProfilePictureUploadUrlResponse>} A promise that resolves with the user profile.
|
|
99
|
+
*/
|
|
100
|
+
getUserProfilePictureUploadUrl(request) {
|
|
101
|
+
return this._service.getUserProfilePictureUploadUrl(request);
|
|
102
|
+
}
|
|
95
103
|
}
|
|
96
104
|
exports.UserProfileServiceGrpcWebClientV1 = UserProfileServiceGrpcWebClientV1;
|
|
@@ -37,6 +37,13 @@ export class UserProfileServiceClient {
|
|
|
37
37
|
response: meshtrade_iam_user_profile_v1_service_pb.ListUserProfilesResponse) => void
|
|
38
38
|
): grpcWeb.ClientReadableStream<meshtrade_iam_user_profile_v1_service_pb.ListUserProfilesResponse>;
|
|
39
39
|
|
|
40
|
+
getUserProfilePictureUploadUrl(
|
|
41
|
+
request: meshtrade_iam_user_profile_v1_service_pb.GetUserProfilePictureUploadUrlRequest,
|
|
42
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
43
|
+
callback: (err: grpcWeb.RpcError,
|
|
44
|
+
response: meshtrade_iam_user_profile_v1_service_pb.GetUserProfilePictureUploadUrlResponse) => void
|
|
45
|
+
): grpcWeb.ClientReadableStream<meshtrade_iam_user_profile_v1_service_pb.GetUserProfilePictureUploadUrlResponse>;
|
|
46
|
+
|
|
40
47
|
}
|
|
41
48
|
|
|
42
49
|
export class UserProfileServicePromiseClient {
|
|
@@ -64,5 +71,10 @@ export class UserProfileServicePromiseClient {
|
|
|
64
71
|
metadata?: grpcWeb.Metadata
|
|
65
72
|
): Promise<meshtrade_iam_user_profile_v1_service_pb.ListUserProfilesResponse>;
|
|
66
73
|
|
|
74
|
+
getUserProfilePictureUploadUrl(
|
|
75
|
+
request: meshtrade_iam_user_profile_v1_service_pb.GetUserProfilePictureUploadUrlRequest,
|
|
76
|
+
metadata?: grpcWeb.Metadata
|
|
77
|
+
): Promise<meshtrade_iam_user_profile_v1_service_pb.GetUserProfilePictureUploadUrlResponse>;
|
|
78
|
+
|
|
67
79
|
}
|
|
68
80
|
|
|
@@ -22,6 +22,8 @@ grpc.web = require('grpc-web');
|
|
|
22
22
|
|
|
23
23
|
var buf_validate_validate_pb = require('../../../../buf/validate/validate_pb.js')
|
|
24
24
|
|
|
25
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
|
|
26
|
+
|
|
25
27
|
var meshtrade_iam_user_profile_v1_user_profile_pb = require('../../../../meshtrade/iam/user_profile/v1/user_profile_pb.js')
|
|
26
28
|
|
|
27
29
|
var meshtrade_option_method_options_v1_method_options_pb = require('../../../../meshtrade/option/method_options/v1/method_options_pb.js')
|
|
@@ -327,5 +329,66 @@ proto.meshtrade.iam.user_profile.v1.UserProfileServicePromiseClient.prototype.li
|
|
|
327
329
|
};
|
|
328
330
|
|
|
329
331
|
|
|
332
|
+
/**
|
|
333
|
+
* @const
|
|
334
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
335
|
+
* !proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest,
|
|
336
|
+
* !proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse>}
|
|
337
|
+
*/
|
|
338
|
+
const methodDescriptor_UserProfileService_GetUserProfilePictureUploadUrl = new grpc.web.MethodDescriptor(
|
|
339
|
+
'/meshtrade.iam.user_profile.v1.UserProfileService/GetUserProfilePictureUploadUrl',
|
|
340
|
+
grpc.web.MethodType.UNARY,
|
|
341
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest,
|
|
342
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse,
|
|
343
|
+
/**
|
|
344
|
+
* @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest} request
|
|
345
|
+
* @return {!Uint8Array}
|
|
346
|
+
*/
|
|
347
|
+
function(request) {
|
|
348
|
+
return request.serializeBinary();
|
|
349
|
+
},
|
|
350
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.deserializeBinary
|
|
351
|
+
);
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest} request The
|
|
356
|
+
* request proto
|
|
357
|
+
* @param {?Object<string, string>} metadata User defined
|
|
358
|
+
* call metadata
|
|
359
|
+
* @param {function(?grpc.web.RpcError, ?proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse)}
|
|
360
|
+
* callback The callback function(error, response)
|
|
361
|
+
* @return {!grpc.web.ClientReadableStream<!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse>|undefined}
|
|
362
|
+
* The XHR Node Readable Stream
|
|
363
|
+
*/
|
|
364
|
+
proto.meshtrade.iam.user_profile.v1.UserProfileServiceClient.prototype.getUserProfilePictureUploadUrl =
|
|
365
|
+
function(request, metadata, callback) {
|
|
366
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
367
|
+
'/meshtrade.iam.user_profile.v1.UserProfileService/GetUserProfilePictureUploadUrl',
|
|
368
|
+
request,
|
|
369
|
+
metadata || {},
|
|
370
|
+
methodDescriptor_UserProfileService_GetUserProfilePictureUploadUrl,
|
|
371
|
+
callback);
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest} request The
|
|
377
|
+
* request proto
|
|
378
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
379
|
+
* call metadata
|
|
380
|
+
* @return {!Promise<!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse>}
|
|
381
|
+
* Promise that resolves to the response
|
|
382
|
+
*/
|
|
383
|
+
proto.meshtrade.iam.user_profile.v1.UserProfileServicePromiseClient.prototype.getUserProfilePictureUploadUrl =
|
|
384
|
+
function(request, metadata) {
|
|
385
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
386
|
+
'/meshtrade.iam.user_profile.v1.UserProfileService/GetUserProfilePictureUploadUrl',
|
|
387
|
+
request,
|
|
388
|
+
metadata || {},
|
|
389
|
+
methodDescriptor_UserProfileService_GetUserProfilePictureUploadUrl);
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
|
|
330
393
|
module.exports = proto.meshtrade.iam.user_profile.v1;
|
|
331
394
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as jspb from 'google-protobuf'
|
|
2
2
|
|
|
3
3
|
import * as buf_validate_validate_pb from '../../../../buf/validate/validate_pb'; // proto import: "buf/validate/validate.proto"
|
|
4
|
+
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto"
|
|
4
5
|
import * as meshtrade_iam_user_profile_v1_user_profile_pb from '../../../../meshtrade/iam/user_profile/v1/user_profile_pb'; // proto import: "meshtrade/iam/user_profile/v1/user_profile.proto"
|
|
5
6
|
import * as meshtrade_option_method_options_v1_method_options_pb from '../../../../meshtrade/option/method_options/v1/method_options_pb'; // proto import: "meshtrade/option/method_options/v1/method_options.proto"
|
|
6
7
|
|
|
@@ -95,3 +96,45 @@ export namespace ListUserProfilesResponse {
|
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
|
|
99
|
+
export class GetUserProfilePictureUploadUrlRequest extends jspb.Message {
|
|
100
|
+
getName(): string;
|
|
101
|
+
setName(value: string): GetUserProfilePictureUploadUrlRequest;
|
|
102
|
+
|
|
103
|
+
serializeBinary(): Uint8Array;
|
|
104
|
+
toObject(includeInstance?: boolean): GetUserProfilePictureUploadUrlRequest.AsObject;
|
|
105
|
+
static toObject(includeInstance: boolean, msg: GetUserProfilePictureUploadUrlRequest): GetUserProfilePictureUploadUrlRequest.AsObject;
|
|
106
|
+
static serializeBinaryToWriter(message: GetUserProfilePictureUploadUrlRequest, writer: jspb.BinaryWriter): void;
|
|
107
|
+
static deserializeBinary(bytes: Uint8Array): GetUserProfilePictureUploadUrlRequest;
|
|
108
|
+
static deserializeBinaryFromReader(message: GetUserProfilePictureUploadUrlRequest, reader: jspb.BinaryReader): GetUserProfilePictureUploadUrlRequest;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export namespace GetUserProfilePictureUploadUrlRequest {
|
|
112
|
+
export type AsObject = {
|
|
113
|
+
name: string,
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export class GetUserProfilePictureUploadUrlResponse extends jspb.Message {
|
|
118
|
+
getUploadUrl(): string;
|
|
119
|
+
setUploadUrl(value: string): GetUserProfilePictureUploadUrlResponse;
|
|
120
|
+
|
|
121
|
+
getExpiresAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
122
|
+
setExpiresAt(value?: google_protobuf_timestamp_pb.Timestamp): GetUserProfilePictureUploadUrlResponse;
|
|
123
|
+
hasExpiresAt(): boolean;
|
|
124
|
+
clearExpiresAt(): GetUserProfilePictureUploadUrlResponse;
|
|
125
|
+
|
|
126
|
+
serializeBinary(): Uint8Array;
|
|
127
|
+
toObject(includeInstance?: boolean): GetUserProfilePictureUploadUrlResponse.AsObject;
|
|
128
|
+
static toObject(includeInstance: boolean, msg: GetUserProfilePictureUploadUrlResponse): GetUserProfilePictureUploadUrlResponse.AsObject;
|
|
129
|
+
static serializeBinaryToWriter(message: GetUserProfilePictureUploadUrlResponse, writer: jspb.BinaryWriter): void;
|
|
130
|
+
static deserializeBinary(bytes: Uint8Array): GetUserProfilePictureUploadUrlResponse;
|
|
131
|
+
static deserializeBinaryFromReader(message: GetUserProfilePictureUploadUrlResponse, reader: jspb.BinaryReader): GetUserProfilePictureUploadUrlResponse;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export namespace GetUserProfilePictureUploadUrlResponse {
|
|
135
|
+
export type AsObject = {
|
|
136
|
+
uploadUrl: string,
|
|
137
|
+
expiresAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
@@ -23,11 +23,15 @@ var global =
|
|
|
23
23
|
|
|
24
24
|
var buf_validate_validate_pb = require('../../../../buf/validate/validate_pb.js');
|
|
25
25
|
goog.object.extend(proto, buf_validate_validate_pb);
|
|
26
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
27
|
+
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
26
28
|
var meshtrade_iam_user_profile_v1_user_profile_pb = require('../../../../meshtrade/iam/user_profile/v1/user_profile_pb.js');
|
|
27
29
|
goog.object.extend(proto, meshtrade_iam_user_profile_v1_user_profile_pb);
|
|
28
30
|
var meshtrade_option_method_options_v1_method_options_pb = require('../../../../meshtrade/option/method_options/v1/method_options_pb.js');
|
|
29
31
|
goog.object.extend(proto, meshtrade_option_method_options_v1_method_options_pb);
|
|
30
32
|
goog.exportSymbol('proto.meshtrade.iam.user_profile.v1.GetUserProfileByUserRequest', null, global);
|
|
33
|
+
goog.exportSymbol('proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest', null, global);
|
|
34
|
+
goog.exportSymbol('proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse', null, global);
|
|
31
35
|
goog.exportSymbol('proto.meshtrade.iam.user_profile.v1.GetUserProfileRequest', null, global);
|
|
32
36
|
goog.exportSymbol('proto.meshtrade.iam.user_profile.v1.ListUserProfilesRequest', null, global);
|
|
33
37
|
goog.exportSymbol('proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse', null, global);
|
|
@@ -137,6 +141,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
137
141
|
*/
|
|
138
142
|
proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.displayName = 'proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse';
|
|
139
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* Generated by JsPbCodeGenerator.
|
|
146
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
147
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
148
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
149
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
150
|
+
* valid.
|
|
151
|
+
* @extends {jspb.Message}
|
|
152
|
+
* @constructor
|
|
153
|
+
*/
|
|
154
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest = function(opt_data) {
|
|
155
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
156
|
+
};
|
|
157
|
+
goog.inherits(proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest, jspb.Message);
|
|
158
|
+
if (goog.DEBUG && !COMPILED) {
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
* @override
|
|
162
|
+
*/
|
|
163
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest.displayName = 'proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest';
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Generated by JsPbCodeGenerator.
|
|
167
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
168
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
169
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
170
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
171
|
+
* valid.
|
|
172
|
+
* @extends {jspb.Message}
|
|
173
|
+
* @constructor
|
|
174
|
+
*/
|
|
175
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse = function(opt_data) {
|
|
176
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
177
|
+
};
|
|
178
|
+
goog.inherits(proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse, jspb.Message);
|
|
179
|
+
if (goog.DEBUG && !COMPILED) {
|
|
180
|
+
/**
|
|
181
|
+
* @public
|
|
182
|
+
* @override
|
|
183
|
+
*/
|
|
184
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.displayName = 'proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse';
|
|
185
|
+
}
|
|
140
186
|
|
|
141
187
|
|
|
142
188
|
|
|
@@ -809,4 +855,315 @@ proto.meshtrade.iam.user_profile.v1.ListUserProfilesResponse.prototype.clearUser
|
|
|
809
855
|
};
|
|
810
856
|
|
|
811
857
|
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
862
|
+
/**
|
|
863
|
+
* Creates an object representation of this proto.
|
|
864
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
865
|
+
* Optional fields that are not set will be set to undefined.
|
|
866
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
867
|
+
* For the list of reserved names please see:
|
|
868
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
869
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
870
|
+
* JSPB instance for transitional soy proto support:
|
|
871
|
+
* http://goto/soy-param-migration
|
|
872
|
+
* @return {!Object}
|
|
873
|
+
*/
|
|
874
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest.prototype.toObject = function(opt_includeInstance) {
|
|
875
|
+
return proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest.toObject(opt_includeInstance, this);
|
|
876
|
+
};
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Static version of the {@see toObject} method.
|
|
881
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
882
|
+
* the JSPB instance for transitional soy proto support:
|
|
883
|
+
* http://goto/soy-param-migration
|
|
884
|
+
* @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest} msg The msg instance to transform.
|
|
885
|
+
* @return {!Object}
|
|
886
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
887
|
+
*/
|
|
888
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest.toObject = function(includeInstance, msg) {
|
|
889
|
+
var f, obj = {
|
|
890
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
891
|
+
};
|
|
892
|
+
|
|
893
|
+
if (includeInstance) {
|
|
894
|
+
obj.$jspbMessageInstance = msg;
|
|
895
|
+
}
|
|
896
|
+
return obj;
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Deserializes binary data (in protobuf wire format).
|
|
903
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
904
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest}
|
|
905
|
+
*/
|
|
906
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest.deserializeBinary = function(bytes) {
|
|
907
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
908
|
+
var msg = new proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest;
|
|
909
|
+
return proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest.deserializeBinaryFromReader(msg, reader);
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
915
|
+
* given reader into the given message object.
|
|
916
|
+
* @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest} msg The message object to deserialize into.
|
|
917
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
918
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest}
|
|
919
|
+
*/
|
|
920
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
921
|
+
while (reader.nextField()) {
|
|
922
|
+
if (reader.isEndGroup()) {
|
|
923
|
+
break;
|
|
924
|
+
}
|
|
925
|
+
var field = reader.getFieldNumber();
|
|
926
|
+
switch (field) {
|
|
927
|
+
case 1:
|
|
928
|
+
var value = /** @type {string} */ (reader.readString());
|
|
929
|
+
msg.setName(value);
|
|
930
|
+
break;
|
|
931
|
+
default:
|
|
932
|
+
reader.skipField();
|
|
933
|
+
break;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
return msg;
|
|
937
|
+
};
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
942
|
+
* @return {!Uint8Array}
|
|
943
|
+
*/
|
|
944
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest.prototype.serializeBinary = function() {
|
|
945
|
+
var writer = new jspb.BinaryWriter();
|
|
946
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest.serializeBinaryToWriter(this, writer);
|
|
947
|
+
return writer.getResultBuffer();
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
953
|
+
* format), writing to the given BinaryWriter.
|
|
954
|
+
* @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest} message
|
|
955
|
+
* @param {!jspb.BinaryWriter} writer
|
|
956
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
957
|
+
*/
|
|
958
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest.serializeBinaryToWriter = function(message, writer) {
|
|
959
|
+
var f = undefined;
|
|
960
|
+
f = message.getName();
|
|
961
|
+
if (f.length > 0) {
|
|
962
|
+
writer.writeString(
|
|
963
|
+
1,
|
|
964
|
+
f
|
|
965
|
+
);
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* optional string name = 1;
|
|
972
|
+
* @return {string}
|
|
973
|
+
*/
|
|
974
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest.prototype.getName = function() {
|
|
975
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
976
|
+
};
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* @param {string} value
|
|
981
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest} returns this
|
|
982
|
+
*/
|
|
983
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlRequest.prototype.setName = function(value) {
|
|
984
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
985
|
+
};
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
992
|
+
/**
|
|
993
|
+
* Creates an object representation of this proto.
|
|
994
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
995
|
+
* Optional fields that are not set will be set to undefined.
|
|
996
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
997
|
+
* For the list of reserved names please see:
|
|
998
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
999
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1000
|
+
* JSPB instance for transitional soy proto support:
|
|
1001
|
+
* http://goto/soy-param-migration
|
|
1002
|
+
* @return {!Object}
|
|
1003
|
+
*/
|
|
1004
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1005
|
+
return proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.toObject(opt_includeInstance, this);
|
|
1006
|
+
};
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* Static version of the {@see toObject} method.
|
|
1011
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1012
|
+
* the JSPB instance for transitional soy proto support:
|
|
1013
|
+
* http://goto/soy-param-migration
|
|
1014
|
+
* @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse} msg The msg instance to transform.
|
|
1015
|
+
* @return {!Object}
|
|
1016
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1017
|
+
*/
|
|
1018
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.toObject = function(includeInstance, msg) {
|
|
1019
|
+
var f, obj = {
|
|
1020
|
+
uploadUrl: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1021
|
+
expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
if (includeInstance) {
|
|
1025
|
+
obj.$jspbMessageInstance = msg;
|
|
1026
|
+
}
|
|
1027
|
+
return obj;
|
|
1028
|
+
};
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1034
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1035
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse}
|
|
1036
|
+
*/
|
|
1037
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.deserializeBinary = function(bytes) {
|
|
1038
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1039
|
+
var msg = new proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse;
|
|
1040
|
+
return proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.deserializeBinaryFromReader(msg, reader);
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1046
|
+
* given reader into the given message object.
|
|
1047
|
+
* @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse} msg The message object to deserialize into.
|
|
1048
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1049
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse}
|
|
1050
|
+
*/
|
|
1051
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1052
|
+
while (reader.nextField()) {
|
|
1053
|
+
if (reader.isEndGroup()) {
|
|
1054
|
+
break;
|
|
1055
|
+
}
|
|
1056
|
+
var field = reader.getFieldNumber();
|
|
1057
|
+
switch (field) {
|
|
1058
|
+
case 1:
|
|
1059
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1060
|
+
msg.setUploadUrl(value);
|
|
1061
|
+
break;
|
|
1062
|
+
case 2:
|
|
1063
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
1064
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
1065
|
+
msg.setExpiresAt(value);
|
|
1066
|
+
break;
|
|
1067
|
+
default:
|
|
1068
|
+
reader.skipField();
|
|
1069
|
+
break;
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
return msg;
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1078
|
+
* @return {!Uint8Array}
|
|
1079
|
+
*/
|
|
1080
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.prototype.serializeBinary = function() {
|
|
1081
|
+
var writer = new jspb.BinaryWriter();
|
|
1082
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.serializeBinaryToWriter(this, writer);
|
|
1083
|
+
return writer.getResultBuffer();
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1089
|
+
* format), writing to the given BinaryWriter.
|
|
1090
|
+
* @param {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse} message
|
|
1091
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1092
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1093
|
+
*/
|
|
1094
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1095
|
+
var f = undefined;
|
|
1096
|
+
f = message.getUploadUrl();
|
|
1097
|
+
if (f.length > 0) {
|
|
1098
|
+
writer.writeString(
|
|
1099
|
+
1,
|
|
1100
|
+
f
|
|
1101
|
+
);
|
|
1102
|
+
}
|
|
1103
|
+
f = message.getExpiresAt();
|
|
1104
|
+
if (f != null) {
|
|
1105
|
+
writer.writeMessage(
|
|
1106
|
+
2,
|
|
1107
|
+
f,
|
|
1108
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1109
|
+
);
|
|
1110
|
+
}
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* optional string upload_url = 1;
|
|
1116
|
+
* @return {string}
|
|
1117
|
+
*/
|
|
1118
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.prototype.getUploadUrl = function() {
|
|
1119
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1120
|
+
};
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* @param {string} value
|
|
1125
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse} returns this
|
|
1126
|
+
*/
|
|
1127
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.prototype.setUploadUrl = function(value) {
|
|
1128
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1129
|
+
};
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* optional google.protobuf.Timestamp expires_at = 2;
|
|
1134
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1135
|
+
*/
|
|
1136
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.prototype.getExpiresAt = function() {
|
|
1137
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1138
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1144
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse} returns this
|
|
1145
|
+
*/
|
|
1146
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.prototype.setExpiresAt = function(value) {
|
|
1147
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1148
|
+
};
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* Clears the message field making it undefined.
|
|
1153
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse} returns this
|
|
1154
|
+
*/
|
|
1155
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.prototype.clearExpiresAt = function() {
|
|
1156
|
+
return this.setExpiresAt(undefined);
|
|
1157
|
+
};
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Returns whether this field is set.
|
|
1162
|
+
* @return {boolean}
|
|
1163
|
+
*/
|
|
1164
|
+
proto.meshtrade.iam.user_profile.v1.GetUserProfilePictureUploadUrlResponse.prototype.hasExpiresAt = function() {
|
|
1165
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1166
|
+
};
|
|
1167
|
+
|
|
1168
|
+
|
|
812
1169
|
goog.object.extend(exports, proto.meshtrade.iam.user_profile.v1);
|