-
Notifications
You must be signed in to change notification settings - Fork 2
/
createocmcoresharerequest.js
611 lines (523 loc) · 19.3 KB
/
createocmcoresharerequest.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
// source: cs3/ocm/core/v1beta1/ocm_core_api.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
goog.provide('proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest');
goog.require('jspb.BinaryReader');
goog.require('jspb.BinaryWriter');
goog.require('jspb.Message');
goog.require('proto.cs3.identity.user.v1beta1.UserId');
goog.require('proto.cs3.sharing.ocm.v1beta1.Protocol');
goog.require('proto.cs3.types.v1beta1.Opaque');
goog.require('proto.cs3.types.v1beta1.Timestamp');
goog.forwardDeclare('proto.cs3.sharing.ocm.v1beta1.ShareType');
goog.forwardDeclare('proto.cs3.storage.provider.v1beta1.ResourceType');
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.repeatedFields_, null);
};
goog.inherits(proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.displayName = 'proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.repeatedFields_ = [11];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.toObject = function(opt_includeInstance) {
return proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.toObject = function(includeInstance, msg) {
var f, obj = {
opaque: (f = msg.getOpaque()) && proto.cs3.types.v1beta1.Opaque.toObject(includeInstance, f),
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
resourceId: jspb.Message.getFieldWithDefault(msg, 4, ""),
owner: (f = msg.getOwner()) && proto.cs3.identity.user.v1beta1.UserId.toObject(includeInstance, f),
sender: (f = msg.getSender()) && proto.cs3.identity.user.v1beta1.UserId.toObject(includeInstance, f),
shareWith: (f = msg.getShareWith()) && proto.cs3.identity.user.v1beta1.UserId.toObject(includeInstance, f),
resourceType: jspb.Message.getFieldWithDefault(msg, 8, 0),
shareType: jspb.Message.getFieldWithDefault(msg, 9, 0),
expiration: (f = msg.getExpiration()) && proto.cs3.types.v1beta1.Timestamp.toObject(includeInstance, f),
protocolsList: jspb.Message.toObjectList(msg.getProtocolsList(),
proto.cs3.sharing.ocm.v1beta1.Protocol.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest;
return proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.cs3.types.v1beta1.Opaque;
reader.readMessage(value,proto.cs3.types.v1beta1.Opaque.deserializeBinaryFromReader);
msg.setOpaque(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setDescription(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setResourceId(value);
break;
case 5:
var value = new proto.cs3.identity.user.v1beta1.UserId;
reader.readMessage(value,proto.cs3.identity.user.v1beta1.UserId.deserializeBinaryFromReader);
msg.setOwner(value);
break;
case 6:
var value = new proto.cs3.identity.user.v1beta1.UserId;
reader.readMessage(value,proto.cs3.identity.user.v1beta1.UserId.deserializeBinaryFromReader);
msg.setSender(value);
break;
case 7:
var value = new proto.cs3.identity.user.v1beta1.UserId;
reader.readMessage(value,proto.cs3.identity.user.v1beta1.UserId.deserializeBinaryFromReader);
msg.setShareWith(value);
break;
case 8:
var value = /** @type {!proto.cs3.storage.provider.v1beta1.ResourceType} */ (reader.readEnum());
msg.setResourceType(value);
break;
case 9:
var value = /** @type {!proto.cs3.sharing.ocm.v1beta1.ShareType} */ (reader.readEnum());
msg.setShareType(value);
break;
case 10:
var value = new proto.cs3.types.v1beta1.Timestamp;
reader.readMessage(value,proto.cs3.types.v1beta1.Timestamp.deserializeBinaryFromReader);
msg.setExpiration(value);
break;
case 11:
var value = new proto.cs3.sharing.ocm.v1beta1.Protocol;
reader.readMessage(value,proto.cs3.sharing.ocm.v1beta1.Protocol.deserializeBinaryFromReader);
msg.addProtocols(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getOpaque();
if (f != null) {
writer.writeMessage(
1,
f,
proto.cs3.types.v1beta1.Opaque.serializeBinaryToWriter
);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getName();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getResourceId();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getOwner();
if (f != null) {
writer.writeMessage(
5,
f,
proto.cs3.identity.user.v1beta1.UserId.serializeBinaryToWriter
);
}
f = message.getSender();
if (f != null) {
writer.writeMessage(
6,
f,
proto.cs3.identity.user.v1beta1.UserId.serializeBinaryToWriter
);
}
f = message.getShareWith();
if (f != null) {
writer.writeMessage(
7,
f,
proto.cs3.identity.user.v1beta1.UserId.serializeBinaryToWriter
);
}
f = message.getResourceType();
if (f !== 0.0) {
writer.writeEnum(
8,
f
);
}
f = message.getShareType();
if (f !== 0.0) {
writer.writeEnum(
9,
f
);
}
f = message.getExpiration();
if (f != null) {
writer.writeMessage(
10,
f,
proto.cs3.types.v1beta1.Timestamp.serializeBinaryToWriter
);
}
f = message.getProtocolsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
11,
f,
proto.cs3.sharing.ocm.v1beta1.Protocol.serializeBinaryToWriter
);
}
};
/**
* optional cs3.types.v1beta1.Opaque opaque = 1;
* @return {?proto.cs3.types.v1beta1.Opaque}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.getOpaque = function() {
return /** @type{?proto.cs3.types.v1beta1.Opaque} */ (
jspb.Message.getWrapperField(this, proto.cs3.types.v1beta1.Opaque, 1));
};
/**
* @param {?proto.cs3.types.v1beta1.Opaque|undefined} value
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.setOpaque = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.clearOpaque = function() {
return this.setOpaque(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.hasOpaque = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional string description = 2;
* @return {string}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.setDescription = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string name = 3;
* @return {string}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string resource_id = 4;
* @return {string}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.getResourceId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.setResourceId = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional cs3.identity.user.v1beta1.UserId owner = 5;
* @return {?proto.cs3.identity.user.v1beta1.UserId}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.getOwner = function() {
return /** @type{?proto.cs3.identity.user.v1beta1.UserId} */ (
jspb.Message.getWrapperField(this, proto.cs3.identity.user.v1beta1.UserId, 5));
};
/**
* @param {?proto.cs3.identity.user.v1beta1.UserId|undefined} value
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.setOwner = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.clearOwner = function() {
return this.setOwner(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.hasOwner = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional cs3.identity.user.v1beta1.UserId sender = 6;
* @return {?proto.cs3.identity.user.v1beta1.UserId}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.getSender = function() {
return /** @type{?proto.cs3.identity.user.v1beta1.UserId} */ (
jspb.Message.getWrapperField(this, proto.cs3.identity.user.v1beta1.UserId, 6));
};
/**
* @param {?proto.cs3.identity.user.v1beta1.UserId|undefined} value
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.setSender = function(value) {
return jspb.Message.setWrapperField(this, 6, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.clearSender = function() {
return this.setSender(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.hasSender = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional cs3.identity.user.v1beta1.UserId share_with = 7;
* @return {?proto.cs3.identity.user.v1beta1.UserId}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.getShareWith = function() {
return /** @type{?proto.cs3.identity.user.v1beta1.UserId} */ (
jspb.Message.getWrapperField(this, proto.cs3.identity.user.v1beta1.UserId, 7));
};
/**
* @param {?proto.cs3.identity.user.v1beta1.UserId|undefined} value
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.setShareWith = function(value) {
return jspb.Message.setWrapperField(this, 7, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.clearShareWith = function() {
return this.setShareWith(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.hasShareWith = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* optional cs3.storage.provider.v1beta1.ResourceType resource_type = 8;
* @return {!proto.cs3.storage.provider.v1beta1.ResourceType}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.getResourceType = function() {
return /** @type {!proto.cs3.storage.provider.v1beta1.ResourceType} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
};
/**
* @param {!proto.cs3.storage.provider.v1beta1.ResourceType} value
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.setResourceType = function(value) {
return jspb.Message.setProto3EnumField(this, 8, value);
};
/**
* optional cs3.sharing.ocm.v1beta1.ShareType share_type = 9;
* @return {!proto.cs3.sharing.ocm.v1beta1.ShareType}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.getShareType = function() {
return /** @type {!proto.cs3.sharing.ocm.v1beta1.ShareType} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};
/**
* @param {!proto.cs3.sharing.ocm.v1beta1.ShareType} value
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.setShareType = function(value) {
return jspb.Message.setProto3EnumField(this, 9, value);
};
/**
* optional cs3.types.v1beta1.Timestamp expiration = 10;
* @return {?proto.cs3.types.v1beta1.Timestamp}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.getExpiration = function() {
return /** @type{?proto.cs3.types.v1beta1.Timestamp} */ (
jspb.Message.getWrapperField(this, proto.cs3.types.v1beta1.Timestamp, 10));
};
/**
* @param {?proto.cs3.types.v1beta1.Timestamp|undefined} value
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.setExpiration = function(value) {
return jspb.Message.setWrapperField(this, 10, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.clearExpiration = function() {
return this.setExpiration(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.hasExpiration = function() {
return jspb.Message.getField(this, 10) != null;
};
/**
* repeated cs3.sharing.ocm.v1beta1.Protocol protocols = 11;
* @return {!Array<!proto.cs3.sharing.ocm.v1beta1.Protocol>}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.getProtocolsList = function() {
return /** @type{!Array<!proto.cs3.sharing.ocm.v1beta1.Protocol>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.cs3.sharing.ocm.v1beta1.Protocol, 11));
};
/**
* @param {!Array<!proto.cs3.sharing.ocm.v1beta1.Protocol>} value
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.setProtocolsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 11, value);
};
/**
* @param {!proto.cs3.sharing.ocm.v1beta1.Protocol=} opt_value
* @param {number=} opt_index
* @return {!proto.cs3.sharing.ocm.v1beta1.Protocol}
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.addProtocols = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.cs3.sharing.ocm.v1beta1.Protocol, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest} returns this
*/
proto.cs3.ocm.core.v1beta1.CreateOCMCoreShareRequest.prototype.clearProtocolsList = function() {
return this.setProtocolsList([]);
};