core-3nweb-client-lib 0.53.19 → 0.53.21

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.
@@ -33158,6 +33158,312 @@ $root.fs = (function() {
33158
33158
  return CopyFolderRequestBody;
33159
33159
  })();
33160
33160
 
33161
+ fs.CopyXAttrsRequestBody = (function() {
33162
+
33163
+ /**
33164
+ * Properties of a CopyXAttrsRequestBody.
33165
+ * @memberof fs
33166
+ * @interface ICopyXAttrsRequestBody
33167
+ * @property {string|null} [src] CopyXAttrsRequestBody src
33168
+ * @property {string|null} [dst] CopyXAttrsRequestBody dst
33169
+ * @property {Array.<string>|null} [filter] CopyXAttrsRequestBody filter
33170
+ */
33171
+
33172
+ /**
33173
+ * Constructs a new CopyXAttrsRequestBody.
33174
+ * @memberof fs
33175
+ * @classdesc Represents a CopyXAttrsRequestBody.
33176
+ * @implements ICopyXAttrsRequestBody
33177
+ * @constructor
33178
+ * @param {fs.ICopyXAttrsRequestBody=} [properties] Properties to set
33179
+ */
33180
+ function CopyXAttrsRequestBody(properties) {
33181
+ this.filter = [];
33182
+ if (properties)
33183
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
33184
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
33185
+ this[keys[i]] = properties[keys[i]];
33186
+ }
33187
+
33188
+ /**
33189
+ * CopyXAttrsRequestBody src.
33190
+ * @member {string} src
33191
+ * @memberof fs.CopyXAttrsRequestBody
33192
+ * @instance
33193
+ */
33194
+ CopyXAttrsRequestBody.prototype.src = "";
33195
+
33196
+ /**
33197
+ * CopyXAttrsRequestBody dst.
33198
+ * @member {string} dst
33199
+ * @memberof fs.CopyXAttrsRequestBody
33200
+ * @instance
33201
+ */
33202
+ CopyXAttrsRequestBody.prototype.dst = "";
33203
+
33204
+ /**
33205
+ * CopyXAttrsRequestBody filter.
33206
+ * @member {Array.<string>} filter
33207
+ * @memberof fs.CopyXAttrsRequestBody
33208
+ * @instance
33209
+ */
33210
+ CopyXAttrsRequestBody.prototype.filter = $util.emptyArray;
33211
+
33212
+ /**
33213
+ * Creates a new CopyXAttrsRequestBody instance using the specified properties.
33214
+ * @function create
33215
+ * @memberof fs.CopyXAttrsRequestBody
33216
+ * @static
33217
+ * @param {fs.ICopyXAttrsRequestBody=} [properties] Properties to set
33218
+ * @returns {fs.CopyXAttrsRequestBody} CopyXAttrsRequestBody instance
33219
+ */
33220
+ CopyXAttrsRequestBody.create = function create(properties) {
33221
+ return new CopyXAttrsRequestBody(properties);
33222
+ };
33223
+
33224
+ /**
33225
+ * Encodes the specified CopyXAttrsRequestBody message. Does not implicitly {@link fs.CopyXAttrsRequestBody.verify|verify} messages.
33226
+ * @function encode
33227
+ * @memberof fs.CopyXAttrsRequestBody
33228
+ * @static
33229
+ * @param {fs.ICopyXAttrsRequestBody} message CopyXAttrsRequestBody message or plain object to encode
33230
+ * @param {$protobuf.Writer} [writer] Writer to encode to
33231
+ * @returns {$protobuf.Writer} Writer
33232
+ */
33233
+ CopyXAttrsRequestBody.encode = function encode(message, writer, q) {
33234
+ if (!writer)
33235
+ writer = $Writer.create();
33236
+ if (q === undefined)
33237
+ q = 0;
33238
+ if (q > $util.recursionLimit)
33239
+ throw Error("max depth exceeded");
33240
+ if (message.src != null && Object.hasOwnProperty.call(message, "src"))
33241
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.src);
33242
+ if (message.dst != null && Object.hasOwnProperty.call(message, "dst"))
33243
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.dst);
33244
+ if (message.filter != null && message.filter.length)
33245
+ for (var i = 0; i < message.filter.length; ++i)
33246
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter[i]);
33247
+ return writer;
33248
+ };
33249
+
33250
+ /**
33251
+ * Encodes the specified CopyXAttrsRequestBody message, length delimited. Does not implicitly {@link fs.CopyXAttrsRequestBody.verify|verify} messages.
33252
+ * @function encodeDelimited
33253
+ * @memberof fs.CopyXAttrsRequestBody
33254
+ * @static
33255
+ * @param {fs.ICopyXAttrsRequestBody} message CopyXAttrsRequestBody message or plain object to encode
33256
+ * @param {$protobuf.Writer} [writer] Writer to encode to
33257
+ * @returns {$protobuf.Writer} Writer
33258
+ */
33259
+ CopyXAttrsRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
33260
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
33261
+ };
33262
+
33263
+ /**
33264
+ * Decodes a CopyXAttrsRequestBody message from the specified reader or buffer.
33265
+ * @function decode
33266
+ * @memberof fs.CopyXAttrsRequestBody
33267
+ * @static
33268
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
33269
+ * @param {number} [length] Message length if known beforehand
33270
+ * @returns {fs.CopyXAttrsRequestBody} CopyXAttrsRequestBody
33271
+ * @throws {Error} If the payload is not a reader or valid buffer
33272
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33273
+ */
33274
+ CopyXAttrsRequestBody.decode = function decode(reader, length, error, long) {
33275
+ if (!(reader instanceof $Reader))
33276
+ reader = $Reader.create(reader);
33277
+ if (long === undefined)
33278
+ long = 0;
33279
+ if (long > $Reader.recursionLimit)
33280
+ throw Error("maximum nesting depth exceeded");
33281
+ var end, message;
33282
+ if (length === undefined)
33283
+ end = reader.len;
33284
+ else {
33285
+ end = reader.pos + length;
33286
+ if (end > reader.len)
33287
+ throw RangeError("index out of range");
33288
+ length = reader.len;
33289
+ reader.len = end;
33290
+ }
33291
+ message = new $root.fs.CopyXAttrsRequestBody();
33292
+ while (reader.pos < end) {
33293
+ var tag = reader.uint32();
33294
+ if (tag === error)
33295
+ break;
33296
+ switch (tag >>> 3) {
33297
+ case 1: {
33298
+ message.src = reader.string();
33299
+ break;
33300
+ }
33301
+ case 2: {
33302
+ message.dst = reader.string();
33303
+ break;
33304
+ }
33305
+ case 3: {
33306
+ if (!(message.filter && message.filter.length))
33307
+ message.filter = [];
33308
+ message.filter.push(reader.string());
33309
+ break;
33310
+ }
33311
+ default:
33312
+ reader.skipType(tag & 7, long);
33313
+ break;
33314
+ }
33315
+ }
33316
+ if (length !== undefined) {
33317
+ if (reader.pos !== end)
33318
+ throw RangeError("index out of range");
33319
+ reader.len = length;
33320
+ }
33321
+ return message;
33322
+ };
33323
+
33324
+ /**
33325
+ * Decodes a CopyXAttrsRequestBody message from the specified reader or buffer, length delimited.
33326
+ * @function decodeDelimited
33327
+ * @memberof fs.CopyXAttrsRequestBody
33328
+ * @static
33329
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
33330
+ * @returns {fs.CopyXAttrsRequestBody} CopyXAttrsRequestBody
33331
+ * @throws {Error} If the payload is not a reader or valid buffer
33332
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33333
+ */
33334
+ CopyXAttrsRequestBody.decodeDelimited = function decodeDelimited(reader) {
33335
+ if (!(reader instanceof $Reader))
33336
+ reader = new $Reader(reader);
33337
+ return this.decode(reader, reader.uint32());
33338
+ };
33339
+
33340
+ /**
33341
+ * Verifies a CopyXAttrsRequestBody message.
33342
+ * @function verify
33343
+ * @memberof fs.CopyXAttrsRequestBody
33344
+ * @static
33345
+ * @param {Object.<string,*>} message Plain object to verify
33346
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
33347
+ */
33348
+ CopyXAttrsRequestBody.verify = function verify(message, long) {
33349
+ if (typeof message !== "object" || message === null)
33350
+ return "object expected";
33351
+ if (long === undefined)
33352
+ long = 0;
33353
+ if (long > $util.recursionLimit)
33354
+ return "maximum nesting depth exceeded";
33355
+ if (message.src != null && Object.hasOwnProperty.call(message, "src"))
33356
+ if (!$util.isString(message.src))
33357
+ return "src: string expected";
33358
+ if (message.dst != null && Object.hasOwnProperty.call(message, "dst"))
33359
+ if (!$util.isString(message.dst))
33360
+ return "dst: string expected";
33361
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) {
33362
+ if (!Array.isArray(message.filter))
33363
+ return "filter: array expected";
33364
+ for (var i = 0; i < message.filter.length; ++i)
33365
+ if (!$util.isString(message.filter[i]))
33366
+ return "filter: string[] expected";
33367
+ }
33368
+ return null;
33369
+ };
33370
+
33371
+ /**
33372
+ * Creates a CopyXAttrsRequestBody message from a plain object. Also converts values to their respective internal types.
33373
+ * @function fromObject
33374
+ * @memberof fs.CopyXAttrsRequestBody
33375
+ * @static
33376
+ * @param {Object.<string,*>} object Plain object
33377
+ * @returns {fs.CopyXAttrsRequestBody} CopyXAttrsRequestBody
33378
+ */
33379
+ CopyXAttrsRequestBody.fromObject = function fromObject(object, long) {
33380
+ if (object instanceof $root.fs.CopyXAttrsRequestBody)
33381
+ return object;
33382
+ if (!$util.isObject(object))
33383
+ throw TypeError(".fs.CopyXAttrsRequestBody: object expected");
33384
+ if (long === undefined)
33385
+ long = 0;
33386
+ if (long > $util.recursionLimit)
33387
+ throw Error("maximum nesting depth exceeded");
33388
+ var message = new $root.fs.CopyXAttrsRequestBody();
33389
+ if (object.src != null)
33390
+ message.src = String(object.src);
33391
+ if (object.dst != null)
33392
+ message.dst = String(object.dst);
33393
+ if (object.filter) {
33394
+ if (!Array.isArray(object.filter))
33395
+ throw TypeError(".fs.CopyXAttrsRequestBody.filter: array expected");
33396
+ message.filter = [];
33397
+ for (var i = 0; i < object.filter.length; ++i)
33398
+ message.filter[i] = String(object.filter[i]);
33399
+ }
33400
+ return message;
33401
+ };
33402
+
33403
+ /**
33404
+ * Creates a plain object from a CopyXAttrsRequestBody message. Also converts values to other types if specified.
33405
+ * @function toObject
33406
+ * @memberof fs.CopyXAttrsRequestBody
33407
+ * @static
33408
+ * @param {fs.CopyXAttrsRequestBody} message CopyXAttrsRequestBody
33409
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
33410
+ * @returns {Object.<string,*>} Plain object
33411
+ */
33412
+ CopyXAttrsRequestBody.toObject = function toObject(message, options, q) {
33413
+ if (!options)
33414
+ options = {};
33415
+ if (q === undefined)
33416
+ q = 0;
33417
+ if (q > $util.recursionLimit)
33418
+ throw Error("max depth exceeded");
33419
+ var object = {};
33420
+ if (options.arrays || options.defaults)
33421
+ object.filter = [];
33422
+ if (options.defaults) {
33423
+ object.src = "";
33424
+ object.dst = "";
33425
+ }
33426
+ if (message.src != null && Object.hasOwnProperty.call(message, "src"))
33427
+ object.src = message.src;
33428
+ if (message.dst != null && Object.hasOwnProperty.call(message, "dst"))
33429
+ object.dst = message.dst;
33430
+ if (message.filter && message.filter.length) {
33431
+ object.filter = [];
33432
+ for (var j = 0; j < message.filter.length; ++j)
33433
+ object.filter[j] = message.filter[j];
33434
+ }
33435
+ return object;
33436
+ };
33437
+
33438
+ /**
33439
+ * Converts this CopyXAttrsRequestBody to JSON.
33440
+ * @function toJSON
33441
+ * @memberof fs.CopyXAttrsRequestBody
33442
+ * @instance
33443
+ * @returns {Object.<string,*>} JSON object
33444
+ */
33445
+ CopyXAttrsRequestBody.prototype.toJSON = function toJSON() {
33446
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
33447
+ };
33448
+
33449
+ /**
33450
+ * Gets the default type url for CopyXAttrsRequestBody
33451
+ * @function getTypeUrl
33452
+ * @memberof fs.CopyXAttrsRequestBody
33453
+ * @static
33454
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
33455
+ * @returns {string} The default type url
33456
+ */
33457
+ CopyXAttrsRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
33458
+ if (typeUrlPrefix === undefined) {
33459
+ typeUrlPrefix = "type.googleapis.com";
33460
+ }
33461
+ return typeUrlPrefix + "/fs.CopyXAttrsRequestBody";
33462
+ };
33463
+
33464
+ return CopyXAttrsRequestBody;
33465
+ })();
33466
+
33161
33467
  fs.SaveFileRequestBody = (function() {
33162
33468
 
33163
33469
  /**
@@ -9058,6 +9058,312 @@ $root.fs = (function() {
9058
9058
  return CopyFolderRequestBody;
9059
9059
  })();
9060
9060
 
9061
+ fs.CopyXAttrsRequestBody = (function() {
9062
+
9063
+ /**
9064
+ * Properties of a CopyXAttrsRequestBody.
9065
+ * @memberof fs
9066
+ * @interface ICopyXAttrsRequestBody
9067
+ * @property {string|null} [src] CopyXAttrsRequestBody src
9068
+ * @property {string|null} [dst] CopyXAttrsRequestBody dst
9069
+ * @property {Array.<string>|null} [filter] CopyXAttrsRequestBody filter
9070
+ */
9071
+
9072
+ /**
9073
+ * Constructs a new CopyXAttrsRequestBody.
9074
+ * @memberof fs
9075
+ * @classdesc Represents a CopyXAttrsRequestBody.
9076
+ * @implements ICopyXAttrsRequestBody
9077
+ * @constructor
9078
+ * @param {fs.ICopyXAttrsRequestBody=} [properties] Properties to set
9079
+ */
9080
+ function CopyXAttrsRequestBody(properties) {
9081
+ this.filter = [];
9082
+ if (properties)
9083
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9084
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
9085
+ this[keys[i]] = properties[keys[i]];
9086
+ }
9087
+
9088
+ /**
9089
+ * CopyXAttrsRequestBody src.
9090
+ * @member {string} src
9091
+ * @memberof fs.CopyXAttrsRequestBody
9092
+ * @instance
9093
+ */
9094
+ CopyXAttrsRequestBody.prototype.src = "";
9095
+
9096
+ /**
9097
+ * CopyXAttrsRequestBody dst.
9098
+ * @member {string} dst
9099
+ * @memberof fs.CopyXAttrsRequestBody
9100
+ * @instance
9101
+ */
9102
+ CopyXAttrsRequestBody.prototype.dst = "";
9103
+
9104
+ /**
9105
+ * CopyXAttrsRequestBody filter.
9106
+ * @member {Array.<string>} filter
9107
+ * @memberof fs.CopyXAttrsRequestBody
9108
+ * @instance
9109
+ */
9110
+ CopyXAttrsRequestBody.prototype.filter = $util.emptyArray;
9111
+
9112
+ /**
9113
+ * Creates a new CopyXAttrsRequestBody instance using the specified properties.
9114
+ * @function create
9115
+ * @memberof fs.CopyXAttrsRequestBody
9116
+ * @static
9117
+ * @param {fs.ICopyXAttrsRequestBody=} [properties] Properties to set
9118
+ * @returns {fs.CopyXAttrsRequestBody} CopyXAttrsRequestBody instance
9119
+ */
9120
+ CopyXAttrsRequestBody.create = function create(properties) {
9121
+ return new CopyXAttrsRequestBody(properties);
9122
+ };
9123
+
9124
+ /**
9125
+ * Encodes the specified CopyXAttrsRequestBody message. Does not implicitly {@link fs.CopyXAttrsRequestBody.verify|verify} messages.
9126
+ * @function encode
9127
+ * @memberof fs.CopyXAttrsRequestBody
9128
+ * @static
9129
+ * @param {fs.ICopyXAttrsRequestBody} message CopyXAttrsRequestBody message or plain object to encode
9130
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9131
+ * @returns {$protobuf.Writer} Writer
9132
+ */
9133
+ CopyXAttrsRequestBody.encode = function encode(message, writer, q) {
9134
+ if (!writer)
9135
+ writer = $Writer.create();
9136
+ if (q === undefined)
9137
+ q = 0;
9138
+ if (q > $util.recursionLimit)
9139
+ throw Error("max depth exceeded");
9140
+ if (message.src != null && Object.hasOwnProperty.call(message, "src"))
9141
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.src);
9142
+ if (message.dst != null && Object.hasOwnProperty.call(message, "dst"))
9143
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.dst);
9144
+ if (message.filter != null && message.filter.length)
9145
+ for (var i = 0; i < message.filter.length; ++i)
9146
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter[i]);
9147
+ return writer;
9148
+ };
9149
+
9150
+ /**
9151
+ * Encodes the specified CopyXAttrsRequestBody message, length delimited. Does not implicitly {@link fs.CopyXAttrsRequestBody.verify|verify} messages.
9152
+ * @function encodeDelimited
9153
+ * @memberof fs.CopyXAttrsRequestBody
9154
+ * @static
9155
+ * @param {fs.ICopyXAttrsRequestBody} message CopyXAttrsRequestBody message or plain object to encode
9156
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9157
+ * @returns {$protobuf.Writer} Writer
9158
+ */
9159
+ CopyXAttrsRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
9160
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
9161
+ };
9162
+
9163
+ /**
9164
+ * Decodes a CopyXAttrsRequestBody message from the specified reader or buffer.
9165
+ * @function decode
9166
+ * @memberof fs.CopyXAttrsRequestBody
9167
+ * @static
9168
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9169
+ * @param {number} [length] Message length if known beforehand
9170
+ * @returns {fs.CopyXAttrsRequestBody} CopyXAttrsRequestBody
9171
+ * @throws {Error} If the payload is not a reader or valid buffer
9172
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9173
+ */
9174
+ CopyXAttrsRequestBody.decode = function decode(reader, length, error, long) {
9175
+ if (!(reader instanceof $Reader))
9176
+ reader = $Reader.create(reader);
9177
+ if (long === undefined)
9178
+ long = 0;
9179
+ if (long > $Reader.recursionLimit)
9180
+ throw Error("maximum nesting depth exceeded");
9181
+ var end, message;
9182
+ if (length === undefined)
9183
+ end = reader.len;
9184
+ else {
9185
+ end = reader.pos + length;
9186
+ if (end > reader.len)
9187
+ throw RangeError("index out of range");
9188
+ length = reader.len;
9189
+ reader.len = end;
9190
+ }
9191
+ message = new $root.fs.CopyXAttrsRequestBody();
9192
+ while (reader.pos < end) {
9193
+ var tag = reader.uint32();
9194
+ if (tag === error)
9195
+ break;
9196
+ switch (tag >>> 3) {
9197
+ case 1: {
9198
+ message.src = reader.string();
9199
+ break;
9200
+ }
9201
+ case 2: {
9202
+ message.dst = reader.string();
9203
+ break;
9204
+ }
9205
+ case 3: {
9206
+ if (!(message.filter && message.filter.length))
9207
+ message.filter = [];
9208
+ message.filter.push(reader.string());
9209
+ break;
9210
+ }
9211
+ default:
9212
+ reader.skipType(tag & 7, long);
9213
+ break;
9214
+ }
9215
+ }
9216
+ if (length !== undefined) {
9217
+ if (reader.pos !== end)
9218
+ throw RangeError("index out of range");
9219
+ reader.len = length;
9220
+ }
9221
+ return message;
9222
+ };
9223
+
9224
+ /**
9225
+ * Decodes a CopyXAttrsRequestBody message from the specified reader or buffer, length delimited.
9226
+ * @function decodeDelimited
9227
+ * @memberof fs.CopyXAttrsRequestBody
9228
+ * @static
9229
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9230
+ * @returns {fs.CopyXAttrsRequestBody} CopyXAttrsRequestBody
9231
+ * @throws {Error} If the payload is not a reader or valid buffer
9232
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9233
+ */
9234
+ CopyXAttrsRequestBody.decodeDelimited = function decodeDelimited(reader) {
9235
+ if (!(reader instanceof $Reader))
9236
+ reader = new $Reader(reader);
9237
+ return this.decode(reader, reader.uint32());
9238
+ };
9239
+
9240
+ /**
9241
+ * Verifies a CopyXAttrsRequestBody message.
9242
+ * @function verify
9243
+ * @memberof fs.CopyXAttrsRequestBody
9244
+ * @static
9245
+ * @param {Object.<string,*>} message Plain object to verify
9246
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9247
+ */
9248
+ CopyXAttrsRequestBody.verify = function verify(message, long) {
9249
+ if (typeof message !== "object" || message === null)
9250
+ return "object expected";
9251
+ if (long === undefined)
9252
+ long = 0;
9253
+ if (long > $util.recursionLimit)
9254
+ return "maximum nesting depth exceeded";
9255
+ if (message.src != null && Object.hasOwnProperty.call(message, "src"))
9256
+ if (!$util.isString(message.src))
9257
+ return "src: string expected";
9258
+ if (message.dst != null && Object.hasOwnProperty.call(message, "dst"))
9259
+ if (!$util.isString(message.dst))
9260
+ return "dst: string expected";
9261
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) {
9262
+ if (!Array.isArray(message.filter))
9263
+ return "filter: array expected";
9264
+ for (var i = 0; i < message.filter.length; ++i)
9265
+ if (!$util.isString(message.filter[i]))
9266
+ return "filter: string[] expected";
9267
+ }
9268
+ return null;
9269
+ };
9270
+
9271
+ /**
9272
+ * Creates a CopyXAttrsRequestBody message from a plain object. Also converts values to their respective internal types.
9273
+ * @function fromObject
9274
+ * @memberof fs.CopyXAttrsRequestBody
9275
+ * @static
9276
+ * @param {Object.<string,*>} object Plain object
9277
+ * @returns {fs.CopyXAttrsRequestBody} CopyXAttrsRequestBody
9278
+ */
9279
+ CopyXAttrsRequestBody.fromObject = function fromObject(object, long) {
9280
+ if (object instanceof $root.fs.CopyXAttrsRequestBody)
9281
+ return object;
9282
+ if (!$util.isObject(object))
9283
+ throw TypeError(".fs.CopyXAttrsRequestBody: object expected");
9284
+ if (long === undefined)
9285
+ long = 0;
9286
+ if (long > $util.recursionLimit)
9287
+ throw Error("maximum nesting depth exceeded");
9288
+ var message = new $root.fs.CopyXAttrsRequestBody();
9289
+ if (object.src != null)
9290
+ message.src = String(object.src);
9291
+ if (object.dst != null)
9292
+ message.dst = String(object.dst);
9293
+ if (object.filter) {
9294
+ if (!Array.isArray(object.filter))
9295
+ throw TypeError(".fs.CopyXAttrsRequestBody.filter: array expected");
9296
+ message.filter = [];
9297
+ for (var i = 0; i < object.filter.length; ++i)
9298
+ message.filter[i] = String(object.filter[i]);
9299
+ }
9300
+ return message;
9301
+ };
9302
+
9303
+ /**
9304
+ * Creates a plain object from a CopyXAttrsRequestBody message. Also converts values to other types if specified.
9305
+ * @function toObject
9306
+ * @memberof fs.CopyXAttrsRequestBody
9307
+ * @static
9308
+ * @param {fs.CopyXAttrsRequestBody} message CopyXAttrsRequestBody
9309
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9310
+ * @returns {Object.<string,*>} Plain object
9311
+ */
9312
+ CopyXAttrsRequestBody.toObject = function toObject(message, options, q) {
9313
+ if (!options)
9314
+ options = {};
9315
+ if (q === undefined)
9316
+ q = 0;
9317
+ if (q > $util.recursionLimit)
9318
+ throw Error("max depth exceeded");
9319
+ var object = {};
9320
+ if (options.arrays || options.defaults)
9321
+ object.filter = [];
9322
+ if (options.defaults) {
9323
+ object.src = "";
9324
+ object.dst = "";
9325
+ }
9326
+ if (message.src != null && Object.hasOwnProperty.call(message, "src"))
9327
+ object.src = message.src;
9328
+ if (message.dst != null && Object.hasOwnProperty.call(message, "dst"))
9329
+ object.dst = message.dst;
9330
+ if (message.filter && message.filter.length) {
9331
+ object.filter = [];
9332
+ for (var j = 0; j < message.filter.length; ++j)
9333
+ object.filter[j] = message.filter[j];
9334
+ }
9335
+ return object;
9336
+ };
9337
+
9338
+ /**
9339
+ * Converts this CopyXAttrsRequestBody to JSON.
9340
+ * @function toJSON
9341
+ * @memberof fs.CopyXAttrsRequestBody
9342
+ * @instance
9343
+ * @returns {Object.<string,*>} JSON object
9344
+ */
9345
+ CopyXAttrsRequestBody.prototype.toJSON = function toJSON() {
9346
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9347
+ };
9348
+
9349
+ /**
9350
+ * Gets the default type url for CopyXAttrsRequestBody
9351
+ * @function getTypeUrl
9352
+ * @memberof fs.CopyXAttrsRequestBody
9353
+ * @static
9354
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9355
+ * @returns {string} The default type url
9356
+ */
9357
+ CopyXAttrsRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9358
+ if (typeUrlPrefix === undefined) {
9359
+ typeUrlPrefix = "type.googleapis.com";
9360
+ }
9361
+ return typeUrlPrefix + "/fs.CopyXAttrsRequestBody";
9362
+ };
9363
+
9364
+ return CopyXAttrsRequestBody;
9365
+ })();
9366
+
9061
9367
  fs.SaveFileRequestBody = (function() {
9062
9368
 
9063
9369
  /**
@@ -0,0 +1,2 @@
1
+ import { SpecDescribe } from '../../../libs-for-tests/spec-module';
2
+ export declare const specs: SpecDescribe;