Skip to content

Commit f0beec3

Browse files
generated as per #9
1 parent 4b880de commit f0beec3

32 files changed

+1650
-2400
lines changed

cs3/admin/group/v1beta1/group_api_grpc_pb.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// or submit itself to any jurisdiction.
2121
//
2222
'use strict';
23-
var grpc = require('grpc');
23+
var grpc = require('@grpc/grpc-js');
2424
var cs3_admin_group_v1beta1_group_api_pb = require('../../../../cs3/admin/group/v1beta1/group_api_pb.js');
2525
var cs3_identity_group_v1beta1_resources_pb = require('../../../../cs3/identity/group/v1beta1/resources_pb.js');
2626
var cs3_identity_user_v1beta1_resources_pb = require('../../../../cs3/identity/user/v1beta1/resources_pb.js');

cs3/admin/user/v1beta1/user_api_grpc_pb.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// or submit itself to any jurisdiction.
2121
//
2222
'use strict';
23-
var grpc = require('grpc');
23+
var grpc = require('@grpc/grpc-js');
2424
var cs3_admin_user_v1beta1_user_api_pb = require('../../../../cs3/admin/user/v1beta1/user_api_pb.js');
2525
var cs3_identity_user_v1beta1_resources_pb = require('../../../../cs3/identity/user/v1beta1/resources_pb.js');
2626
var cs3_rpc_v1beta1_status_pb = require('../../../../cs3/rpc/v1beta1/status_pb.js');

cs3/app/provider/v1beta1/provider_api_grpc_pb.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
// or submit itself to any jurisdiction.
2121
//
2222
'use strict';
23-
var grpc = require('grpc');
23+
var grpc = require('@grpc/grpc-js');
2424
var cs3_app_provider_v1beta1_provider_api_pb = require('../../../../cs3/app/provider/v1beta1/provider_api_pb.js');
25+
var cs3_app_provider_v1beta1_resources_pb = require('../../../../cs3/app/provider/v1beta1/resources_pb.js');
2526
var cs3_rpc_v1beta1_status_pb = require('../../../../cs3/rpc/v1beta1/status_pb.js');
2627
var cs3_storage_provider_v1beta1_resources_pb = require('../../../../cs3/storage/provider/v1beta1/resources_pb.js');
2728
var cs3_types_v1beta1_types_pb = require('../../../../cs3/types/v1beta1/types_pb.js');
@@ -69,7 +70,7 @@ function deserialize_cs3_app_provider_v1beta1_OpenInAppResponse(buffer_arg) {
6970
// Any method MAY return UNKNOWN.
7071
// Any method MAY return UNAUTHENTICATED.
7172
var ProviderAPIService = exports.ProviderAPIService = {
72-
// Returns the App provider URL
73+
// Returns the App URL and all necessary info to open a resource in an online editor.
7374
// MUST return CODE_NOT_FOUND if the resource does not exist.
7475
openInApp: {
7576
path: '/cs3.app.provider.v1beta1.ProviderAPI/OpenInApp',

cs3/app/provider/v1beta1/provider_api_pb.js

+34-11
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
1515
var goog = jspb;
1616
var global = Function('return this')();
1717

18+
var cs3_app_provider_v1beta1_resources_pb = require('../../../../cs3/app/provider/v1beta1/resources_pb.js');
19+
goog.object.extend(proto, cs3_app_provider_v1beta1_resources_pb);
1820
var cs3_rpc_v1beta1_status_pb = require('../../../../cs3/rpc/v1beta1/status_pb.js');
1921
goog.object.extend(proto, cs3_rpc_v1beta1_status_pb);
2022
var cs3_storage_provider_v1beta1_resources_pb = require('../../../../cs3/storage/provider/v1beta1/resources_pb.js');
@@ -372,7 +374,7 @@ proto.cs3.app.provider.v1beta1.OpenInAppResponse.toObject = function(includeInst
372374
var f, obj = {
373375
status: (f = msg.getStatus()) && cs3_rpc_v1beta1_status_pb.Status.toObject(includeInstance, f),
374376
opaque: (f = msg.getOpaque()) && cs3_types_v1beta1_types_pb.Opaque.toObject(includeInstance, f),
375-
appUrl: jspb.Message.getFieldWithDefault(msg, 3, "")
377+
appUrl: (f = msg.getAppUrl()) && cs3_app_provider_v1beta1_resources_pb.OpenInAppURL.toObject(includeInstance, f)
376378
};
377379

378380
if (includeInstance) {
@@ -420,7 +422,8 @@ proto.cs3.app.provider.v1beta1.OpenInAppResponse.deserializeBinaryFromReader = f
420422
msg.setOpaque(value);
421423
break;
422424
case 3:
423-
var value = /** @type {string} */ (reader.readString());
425+
var value = new cs3_app_provider_v1beta1_resources_pb.OpenInAppURL;
426+
reader.readMessage(value,cs3_app_provider_v1beta1_resources_pb.OpenInAppURL.deserializeBinaryFromReader);
424427
msg.setAppUrl(value);
425428
break;
426429
default:
@@ -469,10 +472,11 @@ proto.cs3.app.provider.v1beta1.OpenInAppResponse.serializeBinaryToWriter = funct
469472
);
470473
}
471474
f = message.getAppUrl();
472-
if (f.length > 0) {
473-
writer.writeString(
475+
if (f != null) {
476+
writer.writeMessage(
474477
3,
475-
f
478+
f,
479+
cs3_app_provider_v1beta1_resources_pb.OpenInAppURL.serializeBinaryToWriter
476480
);
477481
}
478482
};
@@ -553,20 +557,39 @@ proto.cs3.app.provider.v1beta1.OpenInAppResponse.prototype.hasOpaque = function(
553557

554558

555559
/**
556-
* optional string app_url = 3;
557-
* @return {string}
560+
* optional OpenInAppURL app_url = 3;
561+
* @return {?proto.cs3.app.provider.v1beta1.OpenInAppURL}
558562
*/
559563
proto.cs3.app.provider.v1beta1.OpenInAppResponse.prototype.getAppUrl = function() {
560-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
564+
return /** @type{?proto.cs3.app.provider.v1beta1.OpenInAppURL} */ (
565+
jspb.Message.getWrapperField(this, cs3_app_provider_v1beta1_resources_pb.OpenInAppURL, 3));
561566
};
562567

563568

564569
/**
565-
* @param {string} value
570+
* @param {?proto.cs3.app.provider.v1beta1.OpenInAppURL|undefined} value
566571
* @return {!proto.cs3.app.provider.v1beta1.OpenInAppResponse} returns this
567-
*/
572+
*/
568573
proto.cs3.app.provider.v1beta1.OpenInAppResponse.prototype.setAppUrl = function(value) {
569-
return jspb.Message.setProto3StringField(this, 3, value);
574+
return jspb.Message.setWrapperField(this, 3, value);
575+
};
576+
577+
578+
/**
579+
* Clears the message field making it undefined.
580+
* @return {!proto.cs3.app.provider.v1beta1.OpenInAppResponse} returns this
581+
*/
582+
proto.cs3.app.provider.v1beta1.OpenInAppResponse.prototype.clearAppUrl = function() {
583+
return this.setAppUrl(undefined);
584+
};
585+
586+
587+
/**
588+
* Returns whether this field is set.
589+
* @return {boolean}
590+
*/
591+
proto.cs3.app.provider.v1beta1.OpenInAppResponse.prototype.hasAppUrl = function() {
592+
return jspb.Message.getField(this, 3) != null;
570593
};
571594

572595

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// GENERATED CODE -- NO SERVICES IN PROTO
+266
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,266 @@
1+
// source: cs3/app/provider/v1beta1/resources.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 = Function('return this')();
17+
18+
goog.exportSymbol('proto.cs3.app.provider.v1beta1.OpenInAppURL', null, global);
19+
/**
20+
* Generated by JsPbCodeGenerator.
21+
* @param {Array=} opt_data Optional initial data array, typically from a
22+
* server response, or constructed directly in Javascript. The array is used
23+
* in place and becomes part of the constructed object. It is not cloned.
24+
* If no data is provided, the constructed object will be empty, but still
25+
* valid.
26+
* @extends {jspb.Message}
27+
* @constructor
28+
*/
29+
proto.cs3.app.provider.v1beta1.OpenInAppURL = function(opt_data) {
30+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
31+
};
32+
goog.inherits(proto.cs3.app.provider.v1beta1.OpenInAppURL, jspb.Message);
33+
if (goog.DEBUG && !COMPILED) {
34+
/**
35+
* @public
36+
* @override
37+
*/
38+
proto.cs3.app.provider.v1beta1.OpenInAppURL.displayName = 'proto.cs3.app.provider.v1beta1.OpenInAppURL';
39+
}
40+
41+
42+
43+
if (jspb.Message.GENERATE_TO_OBJECT) {
44+
/**
45+
* Creates an object representation of this proto.
46+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
47+
* Optional fields that are not set will be set to undefined.
48+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
49+
* For the list of reserved names please see:
50+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
51+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
52+
* JSPB instance for transitional soy proto support:
53+
* http://goto/soy-param-migration
54+
* @return {!Object}
55+
*/
56+
proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.toObject = function(opt_includeInstance) {
57+
return proto.cs3.app.provider.v1beta1.OpenInAppURL.toObject(opt_includeInstance, this);
58+
};
59+
60+
61+
/**
62+
* Static version of the {@see toObject} method.
63+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
64+
* the JSPB instance for transitional soy proto support:
65+
* http://goto/soy-param-migration
66+
* @param {!proto.cs3.app.provider.v1beta1.OpenInAppURL} msg The msg instance to transform.
67+
* @return {!Object}
68+
* @suppress {unusedLocalVariables} f is only used for nested messages
69+
*/
70+
proto.cs3.app.provider.v1beta1.OpenInAppURL.toObject = function(includeInstance, msg) {
71+
var f, obj = {
72+
appUrl: jspb.Message.getFieldWithDefault(msg, 1, ""),
73+
method: jspb.Message.getFieldWithDefault(msg, 2, ""),
74+
formParametersMap: (f = msg.getFormParametersMap()) ? f.toObject(includeInstance, undefined) : [],
75+
headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, undefined) : []
76+
};
77+
78+
if (includeInstance) {
79+
obj.$jspbMessageInstance = msg;
80+
}
81+
return obj;
82+
};
83+
}
84+
85+
86+
/**
87+
* Deserializes binary data (in protobuf wire format).
88+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
89+
* @return {!proto.cs3.app.provider.v1beta1.OpenInAppURL}
90+
*/
91+
proto.cs3.app.provider.v1beta1.OpenInAppURL.deserializeBinary = function(bytes) {
92+
var reader = new jspb.BinaryReader(bytes);
93+
var msg = new proto.cs3.app.provider.v1beta1.OpenInAppURL;
94+
return proto.cs3.app.provider.v1beta1.OpenInAppURL.deserializeBinaryFromReader(msg, reader);
95+
};
96+
97+
98+
/**
99+
* Deserializes binary data (in protobuf wire format) from the
100+
* given reader into the given message object.
101+
* @param {!proto.cs3.app.provider.v1beta1.OpenInAppURL} msg The message object to deserialize into.
102+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
103+
* @return {!proto.cs3.app.provider.v1beta1.OpenInAppURL}
104+
*/
105+
proto.cs3.app.provider.v1beta1.OpenInAppURL.deserializeBinaryFromReader = function(msg, reader) {
106+
while (reader.nextField()) {
107+
if (reader.isEndGroup()) {
108+
break;
109+
}
110+
var field = reader.getFieldNumber();
111+
switch (field) {
112+
case 1:
113+
var value = /** @type {string} */ (reader.readString());
114+
msg.setAppUrl(value);
115+
break;
116+
case 2:
117+
var value = /** @type {string} */ (reader.readString());
118+
msg.setMethod(value);
119+
break;
120+
case 3:
121+
var value = msg.getFormParametersMap();
122+
reader.readMessage(value, function(message, reader) {
123+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
124+
});
125+
break;
126+
case 4:
127+
var value = msg.getHeadersMap();
128+
reader.readMessage(value, function(message, reader) {
129+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
130+
});
131+
break;
132+
default:
133+
reader.skipField();
134+
break;
135+
}
136+
}
137+
return msg;
138+
};
139+
140+
141+
/**
142+
* Serializes the message to binary data (in protobuf wire format).
143+
* @return {!Uint8Array}
144+
*/
145+
proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.serializeBinary = function() {
146+
var writer = new jspb.BinaryWriter();
147+
proto.cs3.app.provider.v1beta1.OpenInAppURL.serializeBinaryToWriter(this, writer);
148+
return writer.getResultBuffer();
149+
};
150+
151+
152+
/**
153+
* Serializes the given message to binary data (in protobuf wire
154+
* format), writing to the given BinaryWriter.
155+
* @param {!proto.cs3.app.provider.v1beta1.OpenInAppURL} message
156+
* @param {!jspb.BinaryWriter} writer
157+
* @suppress {unusedLocalVariables} f is only used for nested messages
158+
*/
159+
proto.cs3.app.provider.v1beta1.OpenInAppURL.serializeBinaryToWriter = function(message, writer) {
160+
var f = undefined;
161+
f = message.getAppUrl();
162+
if (f.length > 0) {
163+
writer.writeString(
164+
1,
165+
f
166+
);
167+
}
168+
f = message.getMethod();
169+
if (f.length > 0) {
170+
writer.writeString(
171+
2,
172+
f
173+
);
174+
}
175+
f = message.getFormParametersMap(true);
176+
if (f && f.getLength() > 0) {
177+
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
178+
}
179+
f = message.getHeadersMap(true);
180+
if (f && f.getLength() > 0) {
181+
f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
182+
}
183+
};
184+
185+
186+
/**
187+
* optional string app_url = 1;
188+
* @return {string}
189+
*/
190+
proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.getAppUrl = function() {
191+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
192+
};
193+
194+
195+
/**
196+
* @param {string} value
197+
* @return {!proto.cs3.app.provider.v1beta1.OpenInAppURL} returns this
198+
*/
199+
proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.setAppUrl = function(value) {
200+
return jspb.Message.setProto3StringField(this, 1, value);
201+
};
202+
203+
204+
/**
205+
* optional string method = 2;
206+
* @return {string}
207+
*/
208+
proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.getMethod = function() {
209+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
210+
};
211+
212+
213+
/**
214+
* @param {string} value
215+
* @return {!proto.cs3.app.provider.v1beta1.OpenInAppURL} returns this
216+
*/
217+
proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.setMethod = function(value) {
218+
return jspb.Message.setProto3StringField(this, 2, value);
219+
};
220+
221+
222+
/**
223+
* map<string, string> form_parameters = 3;
224+
* @param {boolean=} opt_noLazyCreate Do not create the map if
225+
* empty, instead returning `undefined`
226+
* @return {!jspb.Map<string,string>}
227+
*/
228+
proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.getFormParametersMap = function(opt_noLazyCreate) {
229+
return /** @type {!jspb.Map<string,string>} */ (
230+
jspb.Message.getMapField(this, 3, opt_noLazyCreate,
231+
null));
232+
};
233+
234+
235+
/**
236+
* Clears values from the map. The map will be non-null.
237+
* @return {!proto.cs3.app.provider.v1beta1.OpenInAppURL} returns this
238+
*/
239+
proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.clearFormParametersMap = function() {
240+
this.getFormParametersMap().clear();
241+
return this;};
242+
243+
244+
/**
245+
* map<string, string> headers = 4;
246+
* @param {boolean=} opt_noLazyCreate Do not create the map if
247+
* empty, instead returning `undefined`
248+
* @return {!jspb.Map<string,string>}
249+
*/
250+
proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.getHeadersMap = function(opt_noLazyCreate) {
251+
return /** @type {!jspb.Map<string,string>} */ (
252+
jspb.Message.getMapField(this, 4, opt_noLazyCreate,
253+
null));
254+
};
255+
256+
257+
/**
258+
* Clears values from the map. The map will be non-null.
259+
* @return {!proto.cs3.app.provider.v1beta1.OpenInAppURL} returns this
260+
*/
261+
proto.cs3.app.provider.v1beta1.OpenInAppURL.prototype.clearHeadersMap = function() {
262+
this.getHeadersMap().clear();
263+
return this;};
264+
265+
266+
goog.object.extend(exports, proto.cs3.app.provider.v1beta1);

0 commit comments

Comments
 (0)