protobuf-platform 1.2.321 → 1.2.323
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/config/config.proto +53 -0
- package/config/config_grpc_pb.js +100 -0
- package/config/config_pb.js +1974 -0
- package/package.json +1 -1
- package/user/user.proto +12 -0
- package/user/user_grpc_pb.js +22 -0
- package/user/user_pb.js +442 -0
package/config/config_pb.js
CHANGED
|
@@ -38,6 +38,8 @@ goog.exportSymbol('proto.config.CurrencyRateResponse', null, global);
|
|
|
38
38
|
goog.exportSymbol('proto.config.ErrorRequest', null, global);
|
|
39
39
|
goog.exportSymbol('proto.config.ErrorStatusResponse', null, global);
|
|
40
40
|
goog.exportSymbol('proto.config.GeneratedTextResponse', null, global);
|
|
41
|
+
goog.exportSymbol('proto.config.GetPrivateR2DownloadUrlRequest', null, global);
|
|
42
|
+
goog.exportSymbol('proto.config.GetPrivateR2DownloadUrlResponse', null, global);
|
|
41
43
|
goog.exportSymbol('proto.config.GetZoneRequest', null, global);
|
|
42
44
|
goog.exportSymbol('proto.config.GlobalDataRequest', null, global);
|
|
43
45
|
goog.exportSymbol('proto.config.MirrorCountriesRequest', null, global);
|
|
@@ -51,6 +53,8 @@ goog.exportSymbol('proto.config.ModifyMirrorRequest', null, global);
|
|
|
51
53
|
goog.exportSymbol('proto.config.PaginationRequest', null, global);
|
|
52
54
|
goog.exportSymbol('proto.config.PingRequest', null, global);
|
|
53
55
|
goog.exportSymbol('proto.config.PongResponse', null, global);
|
|
56
|
+
goog.exportSymbol('proto.config.PreparePrivateR2UploadRequest', null, global);
|
|
57
|
+
goog.exportSymbol('proto.config.PreparePrivateR2UploadResponse', null, global);
|
|
54
58
|
goog.exportSymbol('proto.config.PromptRequest', null, global);
|
|
55
59
|
goog.exportSymbol('proto.config.R2FileListRequest', null, global);
|
|
56
60
|
goog.exportSymbol('proto.config.R2FileListResponse', null, global);
|
|
@@ -58,6 +62,8 @@ goog.exportSymbol('proto.config.R2FileRequest', null, global);
|
|
|
58
62
|
goog.exportSymbol('proto.config.R2FileResponse', null, global);
|
|
59
63
|
goog.exportSymbol('proto.config.SettingsRequest', null, global);
|
|
60
64
|
goog.exportSymbol('proto.config.SettingsResponse', null, global);
|
|
65
|
+
goog.exportSymbol('proto.config.VerifyPrivateR2ObjectRequest', null, global);
|
|
66
|
+
goog.exportSymbol('proto.config.VerifyPrivateR2ObjectResponse', null, global);
|
|
61
67
|
goog.exportSymbol('proto.config.ZoneItem', null, global);
|
|
62
68
|
goog.exportSymbol('proto.config.ZoneItemResponse', null, global);
|
|
63
69
|
goog.exportSymbol('proto.config.ZoneStatusResponse', null, global);
|
|
@@ -671,6 +677,132 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
671
677
|
*/
|
|
672
678
|
proto.config.R2FileListResponse.displayName = 'proto.config.R2FileListResponse';
|
|
673
679
|
}
|
|
680
|
+
/**
|
|
681
|
+
* Generated by JsPbCodeGenerator.
|
|
682
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
683
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
684
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
685
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
686
|
+
* valid.
|
|
687
|
+
* @extends {jspb.Message}
|
|
688
|
+
* @constructor
|
|
689
|
+
*/
|
|
690
|
+
proto.config.PreparePrivateR2UploadRequest = function(opt_data) {
|
|
691
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
692
|
+
};
|
|
693
|
+
goog.inherits(proto.config.PreparePrivateR2UploadRequest, jspb.Message);
|
|
694
|
+
if (goog.DEBUG && !COMPILED) {
|
|
695
|
+
/**
|
|
696
|
+
* @public
|
|
697
|
+
* @override
|
|
698
|
+
*/
|
|
699
|
+
proto.config.PreparePrivateR2UploadRequest.displayName = 'proto.config.PreparePrivateR2UploadRequest';
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* Generated by JsPbCodeGenerator.
|
|
703
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
704
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
705
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
706
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
707
|
+
* valid.
|
|
708
|
+
* @extends {jspb.Message}
|
|
709
|
+
* @constructor
|
|
710
|
+
*/
|
|
711
|
+
proto.config.PreparePrivateR2UploadResponse = function(opt_data) {
|
|
712
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
713
|
+
};
|
|
714
|
+
goog.inherits(proto.config.PreparePrivateR2UploadResponse, jspb.Message);
|
|
715
|
+
if (goog.DEBUG && !COMPILED) {
|
|
716
|
+
/**
|
|
717
|
+
* @public
|
|
718
|
+
* @override
|
|
719
|
+
*/
|
|
720
|
+
proto.config.PreparePrivateR2UploadResponse.displayName = 'proto.config.PreparePrivateR2UploadResponse';
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* Generated by JsPbCodeGenerator.
|
|
724
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
725
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
726
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
727
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
728
|
+
* valid.
|
|
729
|
+
* @extends {jspb.Message}
|
|
730
|
+
* @constructor
|
|
731
|
+
*/
|
|
732
|
+
proto.config.VerifyPrivateR2ObjectRequest = function(opt_data) {
|
|
733
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
734
|
+
};
|
|
735
|
+
goog.inherits(proto.config.VerifyPrivateR2ObjectRequest, jspb.Message);
|
|
736
|
+
if (goog.DEBUG && !COMPILED) {
|
|
737
|
+
/**
|
|
738
|
+
* @public
|
|
739
|
+
* @override
|
|
740
|
+
*/
|
|
741
|
+
proto.config.VerifyPrivateR2ObjectRequest.displayName = 'proto.config.VerifyPrivateR2ObjectRequest';
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* Generated by JsPbCodeGenerator.
|
|
745
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
746
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
747
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
748
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
749
|
+
* valid.
|
|
750
|
+
* @extends {jspb.Message}
|
|
751
|
+
* @constructor
|
|
752
|
+
*/
|
|
753
|
+
proto.config.VerifyPrivateR2ObjectResponse = function(opt_data) {
|
|
754
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
755
|
+
};
|
|
756
|
+
goog.inherits(proto.config.VerifyPrivateR2ObjectResponse, jspb.Message);
|
|
757
|
+
if (goog.DEBUG && !COMPILED) {
|
|
758
|
+
/**
|
|
759
|
+
* @public
|
|
760
|
+
* @override
|
|
761
|
+
*/
|
|
762
|
+
proto.config.VerifyPrivateR2ObjectResponse.displayName = 'proto.config.VerifyPrivateR2ObjectResponse';
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* Generated by JsPbCodeGenerator.
|
|
766
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
767
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
768
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
769
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
770
|
+
* valid.
|
|
771
|
+
* @extends {jspb.Message}
|
|
772
|
+
* @constructor
|
|
773
|
+
*/
|
|
774
|
+
proto.config.GetPrivateR2DownloadUrlRequest = function(opt_data) {
|
|
775
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
776
|
+
};
|
|
777
|
+
goog.inherits(proto.config.GetPrivateR2DownloadUrlRequest, jspb.Message);
|
|
778
|
+
if (goog.DEBUG && !COMPILED) {
|
|
779
|
+
/**
|
|
780
|
+
* @public
|
|
781
|
+
* @override
|
|
782
|
+
*/
|
|
783
|
+
proto.config.GetPrivateR2DownloadUrlRequest.displayName = 'proto.config.GetPrivateR2DownloadUrlRequest';
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* Generated by JsPbCodeGenerator.
|
|
787
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
788
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
789
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
790
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
791
|
+
* valid.
|
|
792
|
+
* @extends {jspb.Message}
|
|
793
|
+
* @constructor
|
|
794
|
+
*/
|
|
795
|
+
proto.config.GetPrivateR2DownloadUrlResponse = function(opt_data) {
|
|
796
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
797
|
+
};
|
|
798
|
+
goog.inherits(proto.config.GetPrivateR2DownloadUrlResponse, jspb.Message);
|
|
799
|
+
if (goog.DEBUG && !COMPILED) {
|
|
800
|
+
/**
|
|
801
|
+
* @public
|
|
802
|
+
* @override
|
|
803
|
+
*/
|
|
804
|
+
proto.config.GetPrivateR2DownloadUrlResponse.displayName = 'proto.config.GetPrivateR2DownloadUrlResponse';
|
|
805
|
+
}
|
|
674
806
|
/**
|
|
675
807
|
* Generated by JsPbCodeGenerator.
|
|
676
808
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -7186,6 +7318,1848 @@ proto.config.R2FileListResponse.prototype.clearFilenameList = function() {
|
|
|
7186
7318
|
|
|
7187
7319
|
|
|
7188
7320
|
|
|
7321
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7322
|
+
/**
|
|
7323
|
+
* Creates an object representation of this proto.
|
|
7324
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7325
|
+
* Optional fields that are not set will be set to undefined.
|
|
7326
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7327
|
+
* For the list of reserved names please see:
|
|
7328
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7329
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7330
|
+
* JSPB instance for transitional soy proto support:
|
|
7331
|
+
* http://goto/soy-param-migration
|
|
7332
|
+
* @return {!Object}
|
|
7333
|
+
*/
|
|
7334
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.toObject = function(opt_includeInstance) {
|
|
7335
|
+
return proto.config.PreparePrivateR2UploadRequest.toObject(opt_includeInstance, this);
|
|
7336
|
+
};
|
|
7337
|
+
|
|
7338
|
+
|
|
7339
|
+
/**
|
|
7340
|
+
* Static version of the {@see toObject} method.
|
|
7341
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7342
|
+
* the JSPB instance for transitional soy proto support:
|
|
7343
|
+
* http://goto/soy-param-migration
|
|
7344
|
+
* @param {!proto.config.PreparePrivateR2UploadRequest} msg The msg instance to transform.
|
|
7345
|
+
* @return {!Object}
|
|
7346
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7347
|
+
*/
|
|
7348
|
+
proto.config.PreparePrivateR2UploadRequest.toObject = function(includeInstance, msg) {
|
|
7349
|
+
var f, obj = {
|
|
7350
|
+
environment: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7351
|
+
customer: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7352
|
+
scope: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
7353
|
+
ownerId: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
7354
|
+
fileName: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
7355
|
+
mimeType: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
7356
|
+
fileSize: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
7357
|
+
documentType: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
7358
|
+
documentSide: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
7359
|
+
};
|
|
7360
|
+
|
|
7361
|
+
if (includeInstance) {
|
|
7362
|
+
obj.$jspbMessageInstance = msg;
|
|
7363
|
+
}
|
|
7364
|
+
return obj;
|
|
7365
|
+
};
|
|
7366
|
+
}
|
|
7367
|
+
|
|
7368
|
+
|
|
7369
|
+
/**
|
|
7370
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7371
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7372
|
+
* @return {!proto.config.PreparePrivateR2UploadRequest}
|
|
7373
|
+
*/
|
|
7374
|
+
proto.config.PreparePrivateR2UploadRequest.deserializeBinary = function(bytes) {
|
|
7375
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7376
|
+
var msg = new proto.config.PreparePrivateR2UploadRequest;
|
|
7377
|
+
return proto.config.PreparePrivateR2UploadRequest.deserializeBinaryFromReader(msg, reader);
|
|
7378
|
+
};
|
|
7379
|
+
|
|
7380
|
+
|
|
7381
|
+
/**
|
|
7382
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7383
|
+
* given reader into the given message object.
|
|
7384
|
+
* @param {!proto.config.PreparePrivateR2UploadRequest} msg The message object to deserialize into.
|
|
7385
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7386
|
+
* @return {!proto.config.PreparePrivateR2UploadRequest}
|
|
7387
|
+
*/
|
|
7388
|
+
proto.config.PreparePrivateR2UploadRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
7389
|
+
while (reader.nextField()) {
|
|
7390
|
+
if (reader.isEndGroup()) {
|
|
7391
|
+
break;
|
|
7392
|
+
}
|
|
7393
|
+
var field = reader.getFieldNumber();
|
|
7394
|
+
switch (field) {
|
|
7395
|
+
case 1:
|
|
7396
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7397
|
+
msg.setEnvironment(value);
|
|
7398
|
+
break;
|
|
7399
|
+
case 2:
|
|
7400
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7401
|
+
msg.setCustomer(value);
|
|
7402
|
+
break;
|
|
7403
|
+
case 3:
|
|
7404
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7405
|
+
msg.setScope(value);
|
|
7406
|
+
break;
|
|
7407
|
+
case 4:
|
|
7408
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
7409
|
+
msg.setOwnerId(value);
|
|
7410
|
+
break;
|
|
7411
|
+
case 5:
|
|
7412
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7413
|
+
msg.setFileName(value);
|
|
7414
|
+
break;
|
|
7415
|
+
case 6:
|
|
7416
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7417
|
+
msg.setMimeType(value);
|
|
7418
|
+
break;
|
|
7419
|
+
case 7:
|
|
7420
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
7421
|
+
msg.setFileSize(value);
|
|
7422
|
+
break;
|
|
7423
|
+
case 8:
|
|
7424
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7425
|
+
msg.setDocumentType(value);
|
|
7426
|
+
break;
|
|
7427
|
+
case 9:
|
|
7428
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7429
|
+
msg.setDocumentSide(value);
|
|
7430
|
+
break;
|
|
7431
|
+
default:
|
|
7432
|
+
reader.skipField();
|
|
7433
|
+
break;
|
|
7434
|
+
}
|
|
7435
|
+
}
|
|
7436
|
+
return msg;
|
|
7437
|
+
};
|
|
7438
|
+
|
|
7439
|
+
|
|
7440
|
+
/**
|
|
7441
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7442
|
+
* @return {!Uint8Array}
|
|
7443
|
+
*/
|
|
7444
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.serializeBinary = function() {
|
|
7445
|
+
var writer = new jspb.BinaryWriter();
|
|
7446
|
+
proto.config.PreparePrivateR2UploadRequest.serializeBinaryToWriter(this, writer);
|
|
7447
|
+
return writer.getResultBuffer();
|
|
7448
|
+
};
|
|
7449
|
+
|
|
7450
|
+
|
|
7451
|
+
/**
|
|
7452
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7453
|
+
* format), writing to the given BinaryWriter.
|
|
7454
|
+
* @param {!proto.config.PreparePrivateR2UploadRequest} message
|
|
7455
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7456
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7457
|
+
*/
|
|
7458
|
+
proto.config.PreparePrivateR2UploadRequest.serializeBinaryToWriter = function(message, writer) {
|
|
7459
|
+
var f = undefined;
|
|
7460
|
+
f = message.getEnvironment();
|
|
7461
|
+
if (f.length > 0) {
|
|
7462
|
+
writer.writeString(
|
|
7463
|
+
1,
|
|
7464
|
+
f
|
|
7465
|
+
);
|
|
7466
|
+
}
|
|
7467
|
+
f = message.getCustomer();
|
|
7468
|
+
if (f.length > 0) {
|
|
7469
|
+
writer.writeString(
|
|
7470
|
+
2,
|
|
7471
|
+
f
|
|
7472
|
+
);
|
|
7473
|
+
}
|
|
7474
|
+
f = message.getScope();
|
|
7475
|
+
if (f.length > 0) {
|
|
7476
|
+
writer.writeString(
|
|
7477
|
+
3,
|
|
7478
|
+
f
|
|
7479
|
+
);
|
|
7480
|
+
}
|
|
7481
|
+
f = message.getOwnerId();
|
|
7482
|
+
if (f !== 0) {
|
|
7483
|
+
writer.writeInt32(
|
|
7484
|
+
4,
|
|
7485
|
+
f
|
|
7486
|
+
);
|
|
7487
|
+
}
|
|
7488
|
+
f = message.getFileName();
|
|
7489
|
+
if (f.length > 0) {
|
|
7490
|
+
writer.writeString(
|
|
7491
|
+
5,
|
|
7492
|
+
f
|
|
7493
|
+
);
|
|
7494
|
+
}
|
|
7495
|
+
f = message.getMimeType();
|
|
7496
|
+
if (f.length > 0) {
|
|
7497
|
+
writer.writeString(
|
|
7498
|
+
6,
|
|
7499
|
+
f
|
|
7500
|
+
);
|
|
7501
|
+
}
|
|
7502
|
+
f = message.getFileSize();
|
|
7503
|
+
if (f !== 0) {
|
|
7504
|
+
writer.writeInt64(
|
|
7505
|
+
7,
|
|
7506
|
+
f
|
|
7507
|
+
);
|
|
7508
|
+
}
|
|
7509
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 8));
|
|
7510
|
+
if (f != null) {
|
|
7511
|
+
writer.writeString(
|
|
7512
|
+
8,
|
|
7513
|
+
f
|
|
7514
|
+
);
|
|
7515
|
+
}
|
|
7516
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
|
7517
|
+
if (f != null) {
|
|
7518
|
+
writer.writeString(
|
|
7519
|
+
9,
|
|
7520
|
+
f
|
|
7521
|
+
);
|
|
7522
|
+
}
|
|
7523
|
+
};
|
|
7524
|
+
|
|
7525
|
+
|
|
7526
|
+
/**
|
|
7527
|
+
* optional string environment = 1;
|
|
7528
|
+
* @return {string}
|
|
7529
|
+
*/
|
|
7530
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.getEnvironment = function() {
|
|
7531
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7532
|
+
};
|
|
7533
|
+
|
|
7534
|
+
|
|
7535
|
+
/**
|
|
7536
|
+
* @param {string} value
|
|
7537
|
+
* @return {!proto.config.PreparePrivateR2UploadRequest} returns this
|
|
7538
|
+
*/
|
|
7539
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.setEnvironment = function(value) {
|
|
7540
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7541
|
+
};
|
|
7542
|
+
|
|
7543
|
+
|
|
7544
|
+
/**
|
|
7545
|
+
* optional string customer = 2;
|
|
7546
|
+
* @return {string}
|
|
7547
|
+
*/
|
|
7548
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.getCustomer = function() {
|
|
7549
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7550
|
+
};
|
|
7551
|
+
|
|
7552
|
+
|
|
7553
|
+
/**
|
|
7554
|
+
* @param {string} value
|
|
7555
|
+
* @return {!proto.config.PreparePrivateR2UploadRequest} returns this
|
|
7556
|
+
*/
|
|
7557
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.setCustomer = function(value) {
|
|
7558
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7559
|
+
};
|
|
7560
|
+
|
|
7561
|
+
|
|
7562
|
+
/**
|
|
7563
|
+
* optional string scope = 3;
|
|
7564
|
+
* @return {string}
|
|
7565
|
+
*/
|
|
7566
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.getScope = function() {
|
|
7567
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
7568
|
+
};
|
|
7569
|
+
|
|
7570
|
+
|
|
7571
|
+
/**
|
|
7572
|
+
* @param {string} value
|
|
7573
|
+
* @return {!proto.config.PreparePrivateR2UploadRequest} returns this
|
|
7574
|
+
*/
|
|
7575
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.setScope = function(value) {
|
|
7576
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
7577
|
+
};
|
|
7578
|
+
|
|
7579
|
+
|
|
7580
|
+
/**
|
|
7581
|
+
* optional int32 owner_id = 4;
|
|
7582
|
+
* @return {number}
|
|
7583
|
+
*/
|
|
7584
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.getOwnerId = function() {
|
|
7585
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
7586
|
+
};
|
|
7587
|
+
|
|
7588
|
+
|
|
7589
|
+
/**
|
|
7590
|
+
* @param {number} value
|
|
7591
|
+
* @return {!proto.config.PreparePrivateR2UploadRequest} returns this
|
|
7592
|
+
*/
|
|
7593
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.setOwnerId = function(value) {
|
|
7594
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
7595
|
+
};
|
|
7596
|
+
|
|
7597
|
+
|
|
7598
|
+
/**
|
|
7599
|
+
* optional string file_name = 5;
|
|
7600
|
+
* @return {string}
|
|
7601
|
+
*/
|
|
7602
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.getFileName = function() {
|
|
7603
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
7604
|
+
};
|
|
7605
|
+
|
|
7606
|
+
|
|
7607
|
+
/**
|
|
7608
|
+
* @param {string} value
|
|
7609
|
+
* @return {!proto.config.PreparePrivateR2UploadRequest} returns this
|
|
7610
|
+
*/
|
|
7611
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.setFileName = function(value) {
|
|
7612
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
7613
|
+
};
|
|
7614
|
+
|
|
7615
|
+
|
|
7616
|
+
/**
|
|
7617
|
+
* optional string mime_type = 6;
|
|
7618
|
+
* @return {string}
|
|
7619
|
+
*/
|
|
7620
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.getMimeType = function() {
|
|
7621
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
7622
|
+
};
|
|
7623
|
+
|
|
7624
|
+
|
|
7625
|
+
/**
|
|
7626
|
+
* @param {string} value
|
|
7627
|
+
* @return {!proto.config.PreparePrivateR2UploadRequest} returns this
|
|
7628
|
+
*/
|
|
7629
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.setMimeType = function(value) {
|
|
7630
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
7631
|
+
};
|
|
7632
|
+
|
|
7633
|
+
|
|
7634
|
+
/**
|
|
7635
|
+
* optional int64 file_size = 7;
|
|
7636
|
+
* @return {number}
|
|
7637
|
+
*/
|
|
7638
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.getFileSize = function() {
|
|
7639
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
7640
|
+
};
|
|
7641
|
+
|
|
7642
|
+
|
|
7643
|
+
/**
|
|
7644
|
+
* @param {number} value
|
|
7645
|
+
* @return {!proto.config.PreparePrivateR2UploadRequest} returns this
|
|
7646
|
+
*/
|
|
7647
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.setFileSize = function(value) {
|
|
7648
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
7649
|
+
};
|
|
7650
|
+
|
|
7651
|
+
|
|
7652
|
+
/**
|
|
7653
|
+
* optional string document_type = 8;
|
|
7654
|
+
* @return {string}
|
|
7655
|
+
*/
|
|
7656
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.getDocumentType = function() {
|
|
7657
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
7658
|
+
};
|
|
7659
|
+
|
|
7660
|
+
|
|
7661
|
+
/**
|
|
7662
|
+
* @param {string} value
|
|
7663
|
+
* @return {!proto.config.PreparePrivateR2UploadRequest} returns this
|
|
7664
|
+
*/
|
|
7665
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.setDocumentType = function(value) {
|
|
7666
|
+
return jspb.Message.setField(this, 8, value);
|
|
7667
|
+
};
|
|
7668
|
+
|
|
7669
|
+
|
|
7670
|
+
/**
|
|
7671
|
+
* Clears the field making it undefined.
|
|
7672
|
+
* @return {!proto.config.PreparePrivateR2UploadRequest} returns this
|
|
7673
|
+
*/
|
|
7674
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.clearDocumentType = function() {
|
|
7675
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
7676
|
+
};
|
|
7677
|
+
|
|
7678
|
+
|
|
7679
|
+
/**
|
|
7680
|
+
* Returns whether this field is set.
|
|
7681
|
+
* @return {boolean}
|
|
7682
|
+
*/
|
|
7683
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.hasDocumentType = function() {
|
|
7684
|
+
return jspb.Message.getField(this, 8) != null;
|
|
7685
|
+
};
|
|
7686
|
+
|
|
7687
|
+
|
|
7688
|
+
/**
|
|
7689
|
+
* optional string document_side = 9;
|
|
7690
|
+
* @return {string}
|
|
7691
|
+
*/
|
|
7692
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.getDocumentSide = function() {
|
|
7693
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
7694
|
+
};
|
|
7695
|
+
|
|
7696
|
+
|
|
7697
|
+
/**
|
|
7698
|
+
* @param {string} value
|
|
7699
|
+
* @return {!proto.config.PreparePrivateR2UploadRequest} returns this
|
|
7700
|
+
*/
|
|
7701
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.setDocumentSide = function(value) {
|
|
7702
|
+
return jspb.Message.setField(this, 9, value);
|
|
7703
|
+
};
|
|
7704
|
+
|
|
7705
|
+
|
|
7706
|
+
/**
|
|
7707
|
+
* Clears the field making it undefined.
|
|
7708
|
+
* @return {!proto.config.PreparePrivateR2UploadRequest} returns this
|
|
7709
|
+
*/
|
|
7710
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.clearDocumentSide = function() {
|
|
7711
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
7712
|
+
};
|
|
7713
|
+
|
|
7714
|
+
|
|
7715
|
+
/**
|
|
7716
|
+
* Returns whether this field is set.
|
|
7717
|
+
* @return {boolean}
|
|
7718
|
+
*/
|
|
7719
|
+
proto.config.PreparePrivateR2UploadRequest.prototype.hasDocumentSide = function() {
|
|
7720
|
+
return jspb.Message.getField(this, 9) != null;
|
|
7721
|
+
};
|
|
7722
|
+
|
|
7723
|
+
|
|
7724
|
+
|
|
7725
|
+
|
|
7726
|
+
|
|
7727
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7728
|
+
/**
|
|
7729
|
+
* Creates an object representation of this proto.
|
|
7730
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7731
|
+
* Optional fields that are not set will be set to undefined.
|
|
7732
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7733
|
+
* For the list of reserved names please see:
|
|
7734
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7735
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7736
|
+
* JSPB instance for transitional soy proto support:
|
|
7737
|
+
* http://goto/soy-param-migration
|
|
7738
|
+
* @return {!Object}
|
|
7739
|
+
*/
|
|
7740
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.toObject = function(opt_includeInstance) {
|
|
7741
|
+
return proto.config.PreparePrivateR2UploadResponse.toObject(opt_includeInstance, this);
|
|
7742
|
+
};
|
|
7743
|
+
|
|
7744
|
+
|
|
7745
|
+
/**
|
|
7746
|
+
* Static version of the {@see toObject} method.
|
|
7747
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7748
|
+
* the JSPB instance for transitional soy proto support:
|
|
7749
|
+
* http://goto/soy-param-migration
|
|
7750
|
+
* @param {!proto.config.PreparePrivateR2UploadResponse} msg The msg instance to transform.
|
|
7751
|
+
* @return {!Object}
|
|
7752
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7753
|
+
*/
|
|
7754
|
+
proto.config.PreparePrivateR2UploadResponse.toObject = function(includeInstance, msg) {
|
|
7755
|
+
var f, obj = {
|
|
7756
|
+
storageProvider: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7757
|
+
storageRef: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7758
|
+
uploadUrl: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
7759
|
+
method: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
7760
|
+
expiresInSeconds: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
7761
|
+
expiresAt: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
7762
|
+
};
|
|
7763
|
+
|
|
7764
|
+
if (includeInstance) {
|
|
7765
|
+
obj.$jspbMessageInstance = msg;
|
|
7766
|
+
}
|
|
7767
|
+
return obj;
|
|
7768
|
+
};
|
|
7769
|
+
}
|
|
7770
|
+
|
|
7771
|
+
|
|
7772
|
+
/**
|
|
7773
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7774
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7775
|
+
* @return {!proto.config.PreparePrivateR2UploadResponse}
|
|
7776
|
+
*/
|
|
7777
|
+
proto.config.PreparePrivateR2UploadResponse.deserializeBinary = function(bytes) {
|
|
7778
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7779
|
+
var msg = new proto.config.PreparePrivateR2UploadResponse;
|
|
7780
|
+
return proto.config.PreparePrivateR2UploadResponse.deserializeBinaryFromReader(msg, reader);
|
|
7781
|
+
};
|
|
7782
|
+
|
|
7783
|
+
|
|
7784
|
+
/**
|
|
7785
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7786
|
+
* given reader into the given message object.
|
|
7787
|
+
* @param {!proto.config.PreparePrivateR2UploadResponse} msg The message object to deserialize into.
|
|
7788
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7789
|
+
* @return {!proto.config.PreparePrivateR2UploadResponse}
|
|
7790
|
+
*/
|
|
7791
|
+
proto.config.PreparePrivateR2UploadResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
7792
|
+
while (reader.nextField()) {
|
|
7793
|
+
if (reader.isEndGroup()) {
|
|
7794
|
+
break;
|
|
7795
|
+
}
|
|
7796
|
+
var field = reader.getFieldNumber();
|
|
7797
|
+
switch (field) {
|
|
7798
|
+
case 1:
|
|
7799
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7800
|
+
msg.setStorageProvider(value);
|
|
7801
|
+
break;
|
|
7802
|
+
case 2:
|
|
7803
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7804
|
+
msg.setStorageRef(value);
|
|
7805
|
+
break;
|
|
7806
|
+
case 3:
|
|
7807
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7808
|
+
msg.setUploadUrl(value);
|
|
7809
|
+
break;
|
|
7810
|
+
case 4:
|
|
7811
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7812
|
+
msg.setMethod(value);
|
|
7813
|
+
break;
|
|
7814
|
+
case 5:
|
|
7815
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
7816
|
+
msg.setExpiresInSeconds(value);
|
|
7817
|
+
break;
|
|
7818
|
+
case 6:
|
|
7819
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7820
|
+
msg.setExpiresAt(value);
|
|
7821
|
+
break;
|
|
7822
|
+
default:
|
|
7823
|
+
reader.skipField();
|
|
7824
|
+
break;
|
|
7825
|
+
}
|
|
7826
|
+
}
|
|
7827
|
+
return msg;
|
|
7828
|
+
};
|
|
7829
|
+
|
|
7830
|
+
|
|
7831
|
+
/**
|
|
7832
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7833
|
+
* @return {!Uint8Array}
|
|
7834
|
+
*/
|
|
7835
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.serializeBinary = function() {
|
|
7836
|
+
var writer = new jspb.BinaryWriter();
|
|
7837
|
+
proto.config.PreparePrivateR2UploadResponse.serializeBinaryToWriter(this, writer);
|
|
7838
|
+
return writer.getResultBuffer();
|
|
7839
|
+
};
|
|
7840
|
+
|
|
7841
|
+
|
|
7842
|
+
/**
|
|
7843
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7844
|
+
* format), writing to the given BinaryWriter.
|
|
7845
|
+
* @param {!proto.config.PreparePrivateR2UploadResponse} message
|
|
7846
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7847
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7848
|
+
*/
|
|
7849
|
+
proto.config.PreparePrivateR2UploadResponse.serializeBinaryToWriter = function(message, writer) {
|
|
7850
|
+
var f = undefined;
|
|
7851
|
+
f = message.getStorageProvider();
|
|
7852
|
+
if (f.length > 0) {
|
|
7853
|
+
writer.writeString(
|
|
7854
|
+
1,
|
|
7855
|
+
f
|
|
7856
|
+
);
|
|
7857
|
+
}
|
|
7858
|
+
f = message.getStorageRef();
|
|
7859
|
+
if (f.length > 0) {
|
|
7860
|
+
writer.writeString(
|
|
7861
|
+
2,
|
|
7862
|
+
f
|
|
7863
|
+
);
|
|
7864
|
+
}
|
|
7865
|
+
f = message.getUploadUrl();
|
|
7866
|
+
if (f.length > 0) {
|
|
7867
|
+
writer.writeString(
|
|
7868
|
+
3,
|
|
7869
|
+
f
|
|
7870
|
+
);
|
|
7871
|
+
}
|
|
7872
|
+
f = message.getMethod();
|
|
7873
|
+
if (f.length > 0) {
|
|
7874
|
+
writer.writeString(
|
|
7875
|
+
4,
|
|
7876
|
+
f
|
|
7877
|
+
);
|
|
7878
|
+
}
|
|
7879
|
+
f = message.getExpiresInSeconds();
|
|
7880
|
+
if (f !== 0) {
|
|
7881
|
+
writer.writeInt32(
|
|
7882
|
+
5,
|
|
7883
|
+
f
|
|
7884
|
+
);
|
|
7885
|
+
}
|
|
7886
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
7887
|
+
if (f != null) {
|
|
7888
|
+
writer.writeString(
|
|
7889
|
+
6,
|
|
7890
|
+
f
|
|
7891
|
+
);
|
|
7892
|
+
}
|
|
7893
|
+
};
|
|
7894
|
+
|
|
7895
|
+
|
|
7896
|
+
/**
|
|
7897
|
+
* optional string storage_provider = 1;
|
|
7898
|
+
* @return {string}
|
|
7899
|
+
*/
|
|
7900
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.getStorageProvider = function() {
|
|
7901
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7902
|
+
};
|
|
7903
|
+
|
|
7904
|
+
|
|
7905
|
+
/**
|
|
7906
|
+
* @param {string} value
|
|
7907
|
+
* @return {!proto.config.PreparePrivateR2UploadResponse} returns this
|
|
7908
|
+
*/
|
|
7909
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.setStorageProvider = function(value) {
|
|
7910
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7911
|
+
};
|
|
7912
|
+
|
|
7913
|
+
|
|
7914
|
+
/**
|
|
7915
|
+
* optional string storage_ref = 2;
|
|
7916
|
+
* @return {string}
|
|
7917
|
+
*/
|
|
7918
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.getStorageRef = function() {
|
|
7919
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7920
|
+
};
|
|
7921
|
+
|
|
7922
|
+
|
|
7923
|
+
/**
|
|
7924
|
+
* @param {string} value
|
|
7925
|
+
* @return {!proto.config.PreparePrivateR2UploadResponse} returns this
|
|
7926
|
+
*/
|
|
7927
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.setStorageRef = function(value) {
|
|
7928
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7929
|
+
};
|
|
7930
|
+
|
|
7931
|
+
|
|
7932
|
+
/**
|
|
7933
|
+
* optional string upload_url = 3;
|
|
7934
|
+
* @return {string}
|
|
7935
|
+
*/
|
|
7936
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.getUploadUrl = function() {
|
|
7937
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
7938
|
+
};
|
|
7939
|
+
|
|
7940
|
+
|
|
7941
|
+
/**
|
|
7942
|
+
* @param {string} value
|
|
7943
|
+
* @return {!proto.config.PreparePrivateR2UploadResponse} returns this
|
|
7944
|
+
*/
|
|
7945
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.setUploadUrl = function(value) {
|
|
7946
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
7947
|
+
};
|
|
7948
|
+
|
|
7949
|
+
|
|
7950
|
+
/**
|
|
7951
|
+
* optional string method = 4;
|
|
7952
|
+
* @return {string}
|
|
7953
|
+
*/
|
|
7954
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.getMethod = function() {
|
|
7955
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
7956
|
+
};
|
|
7957
|
+
|
|
7958
|
+
|
|
7959
|
+
/**
|
|
7960
|
+
* @param {string} value
|
|
7961
|
+
* @return {!proto.config.PreparePrivateR2UploadResponse} returns this
|
|
7962
|
+
*/
|
|
7963
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.setMethod = function(value) {
|
|
7964
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
7965
|
+
};
|
|
7966
|
+
|
|
7967
|
+
|
|
7968
|
+
/**
|
|
7969
|
+
* optional int32 expires_in_seconds = 5;
|
|
7970
|
+
* @return {number}
|
|
7971
|
+
*/
|
|
7972
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.getExpiresInSeconds = function() {
|
|
7973
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
7974
|
+
};
|
|
7975
|
+
|
|
7976
|
+
|
|
7977
|
+
/**
|
|
7978
|
+
* @param {number} value
|
|
7979
|
+
* @return {!proto.config.PreparePrivateR2UploadResponse} returns this
|
|
7980
|
+
*/
|
|
7981
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.setExpiresInSeconds = function(value) {
|
|
7982
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
7983
|
+
};
|
|
7984
|
+
|
|
7985
|
+
|
|
7986
|
+
/**
|
|
7987
|
+
* optional string expires_at = 6;
|
|
7988
|
+
* @return {string}
|
|
7989
|
+
*/
|
|
7990
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.getExpiresAt = function() {
|
|
7991
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
7992
|
+
};
|
|
7993
|
+
|
|
7994
|
+
|
|
7995
|
+
/**
|
|
7996
|
+
* @param {string} value
|
|
7997
|
+
* @return {!proto.config.PreparePrivateR2UploadResponse} returns this
|
|
7998
|
+
*/
|
|
7999
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.setExpiresAt = function(value) {
|
|
8000
|
+
return jspb.Message.setField(this, 6, value);
|
|
8001
|
+
};
|
|
8002
|
+
|
|
8003
|
+
|
|
8004
|
+
/**
|
|
8005
|
+
* Clears the field making it undefined.
|
|
8006
|
+
* @return {!proto.config.PreparePrivateR2UploadResponse} returns this
|
|
8007
|
+
*/
|
|
8008
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.clearExpiresAt = function() {
|
|
8009
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
8010
|
+
};
|
|
8011
|
+
|
|
8012
|
+
|
|
8013
|
+
/**
|
|
8014
|
+
* Returns whether this field is set.
|
|
8015
|
+
* @return {boolean}
|
|
8016
|
+
*/
|
|
8017
|
+
proto.config.PreparePrivateR2UploadResponse.prototype.hasExpiresAt = function() {
|
|
8018
|
+
return jspb.Message.getField(this, 6) != null;
|
|
8019
|
+
};
|
|
8020
|
+
|
|
8021
|
+
|
|
8022
|
+
|
|
8023
|
+
|
|
8024
|
+
|
|
8025
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8026
|
+
/**
|
|
8027
|
+
* Creates an object representation of this proto.
|
|
8028
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8029
|
+
* Optional fields that are not set will be set to undefined.
|
|
8030
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8031
|
+
* For the list of reserved names please see:
|
|
8032
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8033
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8034
|
+
* JSPB instance for transitional soy proto support:
|
|
8035
|
+
* http://goto/soy-param-migration
|
|
8036
|
+
* @return {!Object}
|
|
8037
|
+
*/
|
|
8038
|
+
proto.config.VerifyPrivateR2ObjectRequest.prototype.toObject = function(opt_includeInstance) {
|
|
8039
|
+
return proto.config.VerifyPrivateR2ObjectRequest.toObject(opt_includeInstance, this);
|
|
8040
|
+
};
|
|
8041
|
+
|
|
8042
|
+
|
|
8043
|
+
/**
|
|
8044
|
+
* Static version of the {@see toObject} method.
|
|
8045
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8046
|
+
* the JSPB instance for transitional soy proto support:
|
|
8047
|
+
* http://goto/soy-param-migration
|
|
8048
|
+
* @param {!proto.config.VerifyPrivateR2ObjectRequest} msg The msg instance to transform.
|
|
8049
|
+
* @return {!Object}
|
|
8050
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8051
|
+
*/
|
|
8052
|
+
proto.config.VerifyPrivateR2ObjectRequest.toObject = function(includeInstance, msg) {
|
|
8053
|
+
var f, obj = {
|
|
8054
|
+
environment: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8055
|
+
customer: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8056
|
+
storageProvider: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
8057
|
+
storageRef: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
8058
|
+
expectedMimeType: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
8059
|
+
expectedFileSize: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
|
8060
|
+
};
|
|
8061
|
+
|
|
8062
|
+
if (includeInstance) {
|
|
8063
|
+
obj.$jspbMessageInstance = msg;
|
|
8064
|
+
}
|
|
8065
|
+
return obj;
|
|
8066
|
+
};
|
|
8067
|
+
}
|
|
8068
|
+
|
|
8069
|
+
|
|
8070
|
+
/**
|
|
8071
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8072
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8073
|
+
* @return {!proto.config.VerifyPrivateR2ObjectRequest}
|
|
8074
|
+
*/
|
|
8075
|
+
proto.config.VerifyPrivateR2ObjectRequest.deserializeBinary = function(bytes) {
|
|
8076
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8077
|
+
var msg = new proto.config.VerifyPrivateR2ObjectRequest;
|
|
8078
|
+
return proto.config.VerifyPrivateR2ObjectRequest.deserializeBinaryFromReader(msg, reader);
|
|
8079
|
+
};
|
|
8080
|
+
|
|
8081
|
+
|
|
8082
|
+
/**
|
|
8083
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8084
|
+
* given reader into the given message object.
|
|
8085
|
+
* @param {!proto.config.VerifyPrivateR2ObjectRequest} msg The message object to deserialize into.
|
|
8086
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8087
|
+
* @return {!proto.config.VerifyPrivateR2ObjectRequest}
|
|
8088
|
+
*/
|
|
8089
|
+
proto.config.VerifyPrivateR2ObjectRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
8090
|
+
while (reader.nextField()) {
|
|
8091
|
+
if (reader.isEndGroup()) {
|
|
8092
|
+
break;
|
|
8093
|
+
}
|
|
8094
|
+
var field = reader.getFieldNumber();
|
|
8095
|
+
switch (field) {
|
|
8096
|
+
case 1:
|
|
8097
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8098
|
+
msg.setEnvironment(value);
|
|
8099
|
+
break;
|
|
8100
|
+
case 2:
|
|
8101
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8102
|
+
msg.setCustomer(value);
|
|
8103
|
+
break;
|
|
8104
|
+
case 3:
|
|
8105
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8106
|
+
msg.setStorageProvider(value);
|
|
8107
|
+
break;
|
|
8108
|
+
case 4:
|
|
8109
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8110
|
+
msg.setStorageRef(value);
|
|
8111
|
+
break;
|
|
8112
|
+
case 5:
|
|
8113
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8114
|
+
msg.setExpectedMimeType(value);
|
|
8115
|
+
break;
|
|
8116
|
+
case 6:
|
|
8117
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
8118
|
+
msg.setExpectedFileSize(value);
|
|
8119
|
+
break;
|
|
8120
|
+
default:
|
|
8121
|
+
reader.skipField();
|
|
8122
|
+
break;
|
|
8123
|
+
}
|
|
8124
|
+
}
|
|
8125
|
+
return msg;
|
|
8126
|
+
};
|
|
8127
|
+
|
|
8128
|
+
|
|
8129
|
+
/**
|
|
8130
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8131
|
+
* @return {!Uint8Array}
|
|
8132
|
+
*/
|
|
8133
|
+
proto.config.VerifyPrivateR2ObjectRequest.prototype.serializeBinary = function() {
|
|
8134
|
+
var writer = new jspb.BinaryWriter();
|
|
8135
|
+
proto.config.VerifyPrivateR2ObjectRequest.serializeBinaryToWriter(this, writer);
|
|
8136
|
+
return writer.getResultBuffer();
|
|
8137
|
+
};
|
|
8138
|
+
|
|
8139
|
+
|
|
8140
|
+
/**
|
|
8141
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8142
|
+
* format), writing to the given BinaryWriter.
|
|
8143
|
+
* @param {!proto.config.VerifyPrivateR2ObjectRequest} message
|
|
8144
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8145
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8146
|
+
*/
|
|
8147
|
+
proto.config.VerifyPrivateR2ObjectRequest.serializeBinaryToWriter = function(message, writer) {
|
|
8148
|
+
var f = undefined;
|
|
8149
|
+
f = message.getEnvironment();
|
|
8150
|
+
if (f.length > 0) {
|
|
8151
|
+
writer.writeString(
|
|
8152
|
+
1,
|
|
8153
|
+
f
|
|
8154
|
+
);
|
|
8155
|
+
}
|
|
8156
|
+
f = message.getCustomer();
|
|
8157
|
+
if (f.length > 0) {
|
|
8158
|
+
writer.writeString(
|
|
8159
|
+
2,
|
|
8160
|
+
f
|
|
8161
|
+
);
|
|
8162
|
+
}
|
|
8163
|
+
f = message.getStorageProvider();
|
|
8164
|
+
if (f.length > 0) {
|
|
8165
|
+
writer.writeString(
|
|
8166
|
+
3,
|
|
8167
|
+
f
|
|
8168
|
+
);
|
|
8169
|
+
}
|
|
8170
|
+
f = message.getStorageRef();
|
|
8171
|
+
if (f.length > 0) {
|
|
8172
|
+
writer.writeString(
|
|
8173
|
+
4,
|
|
8174
|
+
f
|
|
8175
|
+
);
|
|
8176
|
+
}
|
|
8177
|
+
f = message.getExpectedMimeType();
|
|
8178
|
+
if (f.length > 0) {
|
|
8179
|
+
writer.writeString(
|
|
8180
|
+
5,
|
|
8181
|
+
f
|
|
8182
|
+
);
|
|
8183
|
+
}
|
|
8184
|
+
f = message.getExpectedFileSize();
|
|
8185
|
+
if (f !== 0) {
|
|
8186
|
+
writer.writeInt64(
|
|
8187
|
+
6,
|
|
8188
|
+
f
|
|
8189
|
+
);
|
|
8190
|
+
}
|
|
8191
|
+
};
|
|
8192
|
+
|
|
8193
|
+
|
|
8194
|
+
/**
|
|
8195
|
+
* optional string environment = 1;
|
|
8196
|
+
* @return {string}
|
|
8197
|
+
*/
|
|
8198
|
+
proto.config.VerifyPrivateR2ObjectRequest.prototype.getEnvironment = function() {
|
|
8199
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8200
|
+
};
|
|
8201
|
+
|
|
8202
|
+
|
|
8203
|
+
/**
|
|
8204
|
+
* @param {string} value
|
|
8205
|
+
* @return {!proto.config.VerifyPrivateR2ObjectRequest} returns this
|
|
8206
|
+
*/
|
|
8207
|
+
proto.config.VerifyPrivateR2ObjectRequest.prototype.setEnvironment = function(value) {
|
|
8208
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8209
|
+
};
|
|
8210
|
+
|
|
8211
|
+
|
|
8212
|
+
/**
|
|
8213
|
+
* optional string customer = 2;
|
|
8214
|
+
* @return {string}
|
|
8215
|
+
*/
|
|
8216
|
+
proto.config.VerifyPrivateR2ObjectRequest.prototype.getCustomer = function() {
|
|
8217
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8218
|
+
};
|
|
8219
|
+
|
|
8220
|
+
|
|
8221
|
+
/**
|
|
8222
|
+
* @param {string} value
|
|
8223
|
+
* @return {!proto.config.VerifyPrivateR2ObjectRequest} returns this
|
|
8224
|
+
*/
|
|
8225
|
+
proto.config.VerifyPrivateR2ObjectRequest.prototype.setCustomer = function(value) {
|
|
8226
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8227
|
+
};
|
|
8228
|
+
|
|
8229
|
+
|
|
8230
|
+
/**
|
|
8231
|
+
* optional string storage_provider = 3;
|
|
8232
|
+
* @return {string}
|
|
8233
|
+
*/
|
|
8234
|
+
proto.config.VerifyPrivateR2ObjectRequest.prototype.getStorageProvider = function() {
|
|
8235
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
8236
|
+
};
|
|
8237
|
+
|
|
8238
|
+
|
|
8239
|
+
/**
|
|
8240
|
+
* @param {string} value
|
|
8241
|
+
* @return {!proto.config.VerifyPrivateR2ObjectRequest} returns this
|
|
8242
|
+
*/
|
|
8243
|
+
proto.config.VerifyPrivateR2ObjectRequest.prototype.setStorageProvider = function(value) {
|
|
8244
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
8245
|
+
};
|
|
8246
|
+
|
|
8247
|
+
|
|
8248
|
+
/**
|
|
8249
|
+
* optional string storage_ref = 4;
|
|
8250
|
+
* @return {string}
|
|
8251
|
+
*/
|
|
8252
|
+
proto.config.VerifyPrivateR2ObjectRequest.prototype.getStorageRef = function() {
|
|
8253
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
8254
|
+
};
|
|
8255
|
+
|
|
8256
|
+
|
|
8257
|
+
/**
|
|
8258
|
+
* @param {string} value
|
|
8259
|
+
* @return {!proto.config.VerifyPrivateR2ObjectRequest} returns this
|
|
8260
|
+
*/
|
|
8261
|
+
proto.config.VerifyPrivateR2ObjectRequest.prototype.setStorageRef = function(value) {
|
|
8262
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
8263
|
+
};
|
|
8264
|
+
|
|
8265
|
+
|
|
8266
|
+
/**
|
|
8267
|
+
* optional string expected_mime_type = 5;
|
|
8268
|
+
* @return {string}
|
|
8269
|
+
*/
|
|
8270
|
+
proto.config.VerifyPrivateR2ObjectRequest.prototype.getExpectedMimeType = function() {
|
|
8271
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
8272
|
+
};
|
|
8273
|
+
|
|
8274
|
+
|
|
8275
|
+
/**
|
|
8276
|
+
* @param {string} value
|
|
8277
|
+
* @return {!proto.config.VerifyPrivateR2ObjectRequest} returns this
|
|
8278
|
+
*/
|
|
8279
|
+
proto.config.VerifyPrivateR2ObjectRequest.prototype.setExpectedMimeType = function(value) {
|
|
8280
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
8281
|
+
};
|
|
8282
|
+
|
|
8283
|
+
|
|
8284
|
+
/**
|
|
8285
|
+
* optional int64 expected_file_size = 6;
|
|
8286
|
+
* @return {number}
|
|
8287
|
+
*/
|
|
8288
|
+
proto.config.VerifyPrivateR2ObjectRequest.prototype.getExpectedFileSize = function() {
|
|
8289
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
8290
|
+
};
|
|
8291
|
+
|
|
8292
|
+
|
|
8293
|
+
/**
|
|
8294
|
+
* @param {number} value
|
|
8295
|
+
* @return {!proto.config.VerifyPrivateR2ObjectRequest} returns this
|
|
8296
|
+
*/
|
|
8297
|
+
proto.config.VerifyPrivateR2ObjectRequest.prototype.setExpectedFileSize = function(value) {
|
|
8298
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
8299
|
+
};
|
|
8300
|
+
|
|
8301
|
+
|
|
8302
|
+
|
|
8303
|
+
|
|
8304
|
+
|
|
8305
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8306
|
+
/**
|
|
8307
|
+
* Creates an object representation of this proto.
|
|
8308
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8309
|
+
* Optional fields that are not set will be set to undefined.
|
|
8310
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8311
|
+
* For the list of reserved names please see:
|
|
8312
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8313
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8314
|
+
* JSPB instance for transitional soy proto support:
|
|
8315
|
+
* http://goto/soy-param-migration
|
|
8316
|
+
* @return {!Object}
|
|
8317
|
+
*/
|
|
8318
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.toObject = function(opt_includeInstance) {
|
|
8319
|
+
return proto.config.VerifyPrivateR2ObjectResponse.toObject(opt_includeInstance, this);
|
|
8320
|
+
};
|
|
8321
|
+
|
|
8322
|
+
|
|
8323
|
+
/**
|
|
8324
|
+
* Static version of the {@see toObject} method.
|
|
8325
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8326
|
+
* the JSPB instance for transitional soy proto support:
|
|
8327
|
+
* http://goto/soy-param-migration
|
|
8328
|
+
* @param {!proto.config.VerifyPrivateR2ObjectResponse} msg The msg instance to transform.
|
|
8329
|
+
* @return {!Object}
|
|
8330
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8331
|
+
*/
|
|
8332
|
+
proto.config.VerifyPrivateR2ObjectResponse.toObject = function(includeInstance, msg) {
|
|
8333
|
+
var f, obj = {
|
|
8334
|
+
exists: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
8335
|
+
storageProvider: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8336
|
+
storageRef: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
8337
|
+
mimeType: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
8338
|
+
fileSize: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
8339
|
+
etag: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
8340
|
+
};
|
|
8341
|
+
|
|
8342
|
+
if (includeInstance) {
|
|
8343
|
+
obj.$jspbMessageInstance = msg;
|
|
8344
|
+
}
|
|
8345
|
+
return obj;
|
|
8346
|
+
};
|
|
8347
|
+
}
|
|
8348
|
+
|
|
8349
|
+
|
|
8350
|
+
/**
|
|
8351
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8352
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8353
|
+
* @return {!proto.config.VerifyPrivateR2ObjectResponse}
|
|
8354
|
+
*/
|
|
8355
|
+
proto.config.VerifyPrivateR2ObjectResponse.deserializeBinary = function(bytes) {
|
|
8356
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8357
|
+
var msg = new proto.config.VerifyPrivateR2ObjectResponse;
|
|
8358
|
+
return proto.config.VerifyPrivateR2ObjectResponse.deserializeBinaryFromReader(msg, reader);
|
|
8359
|
+
};
|
|
8360
|
+
|
|
8361
|
+
|
|
8362
|
+
/**
|
|
8363
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8364
|
+
* given reader into the given message object.
|
|
8365
|
+
* @param {!proto.config.VerifyPrivateR2ObjectResponse} msg The message object to deserialize into.
|
|
8366
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8367
|
+
* @return {!proto.config.VerifyPrivateR2ObjectResponse}
|
|
8368
|
+
*/
|
|
8369
|
+
proto.config.VerifyPrivateR2ObjectResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
8370
|
+
while (reader.nextField()) {
|
|
8371
|
+
if (reader.isEndGroup()) {
|
|
8372
|
+
break;
|
|
8373
|
+
}
|
|
8374
|
+
var field = reader.getFieldNumber();
|
|
8375
|
+
switch (field) {
|
|
8376
|
+
case 1:
|
|
8377
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
8378
|
+
msg.setExists(value);
|
|
8379
|
+
break;
|
|
8380
|
+
case 2:
|
|
8381
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8382
|
+
msg.setStorageProvider(value);
|
|
8383
|
+
break;
|
|
8384
|
+
case 3:
|
|
8385
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8386
|
+
msg.setStorageRef(value);
|
|
8387
|
+
break;
|
|
8388
|
+
case 4:
|
|
8389
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8390
|
+
msg.setMimeType(value);
|
|
8391
|
+
break;
|
|
8392
|
+
case 5:
|
|
8393
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
8394
|
+
msg.setFileSize(value);
|
|
8395
|
+
break;
|
|
8396
|
+
case 6:
|
|
8397
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8398
|
+
msg.setEtag(value);
|
|
8399
|
+
break;
|
|
8400
|
+
default:
|
|
8401
|
+
reader.skipField();
|
|
8402
|
+
break;
|
|
8403
|
+
}
|
|
8404
|
+
}
|
|
8405
|
+
return msg;
|
|
8406
|
+
};
|
|
8407
|
+
|
|
8408
|
+
|
|
8409
|
+
/**
|
|
8410
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8411
|
+
* @return {!Uint8Array}
|
|
8412
|
+
*/
|
|
8413
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.serializeBinary = function() {
|
|
8414
|
+
var writer = new jspb.BinaryWriter();
|
|
8415
|
+
proto.config.VerifyPrivateR2ObjectResponse.serializeBinaryToWriter(this, writer);
|
|
8416
|
+
return writer.getResultBuffer();
|
|
8417
|
+
};
|
|
8418
|
+
|
|
8419
|
+
|
|
8420
|
+
/**
|
|
8421
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8422
|
+
* format), writing to the given BinaryWriter.
|
|
8423
|
+
* @param {!proto.config.VerifyPrivateR2ObjectResponse} message
|
|
8424
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8425
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8426
|
+
*/
|
|
8427
|
+
proto.config.VerifyPrivateR2ObjectResponse.serializeBinaryToWriter = function(message, writer) {
|
|
8428
|
+
var f = undefined;
|
|
8429
|
+
f = message.getExists();
|
|
8430
|
+
if (f) {
|
|
8431
|
+
writer.writeBool(
|
|
8432
|
+
1,
|
|
8433
|
+
f
|
|
8434
|
+
);
|
|
8435
|
+
}
|
|
8436
|
+
f = message.getStorageProvider();
|
|
8437
|
+
if (f.length > 0) {
|
|
8438
|
+
writer.writeString(
|
|
8439
|
+
2,
|
|
8440
|
+
f
|
|
8441
|
+
);
|
|
8442
|
+
}
|
|
8443
|
+
f = message.getStorageRef();
|
|
8444
|
+
if (f.length > 0) {
|
|
8445
|
+
writer.writeString(
|
|
8446
|
+
3,
|
|
8447
|
+
f
|
|
8448
|
+
);
|
|
8449
|
+
}
|
|
8450
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
8451
|
+
if (f != null) {
|
|
8452
|
+
writer.writeString(
|
|
8453
|
+
4,
|
|
8454
|
+
f
|
|
8455
|
+
);
|
|
8456
|
+
}
|
|
8457
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
8458
|
+
if (f != null) {
|
|
8459
|
+
writer.writeInt64(
|
|
8460
|
+
5,
|
|
8461
|
+
f
|
|
8462
|
+
);
|
|
8463
|
+
}
|
|
8464
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
8465
|
+
if (f != null) {
|
|
8466
|
+
writer.writeString(
|
|
8467
|
+
6,
|
|
8468
|
+
f
|
|
8469
|
+
);
|
|
8470
|
+
}
|
|
8471
|
+
};
|
|
8472
|
+
|
|
8473
|
+
|
|
8474
|
+
/**
|
|
8475
|
+
* optional bool exists = 1;
|
|
8476
|
+
* @return {boolean}
|
|
8477
|
+
*/
|
|
8478
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.getExists = function() {
|
|
8479
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
8480
|
+
};
|
|
8481
|
+
|
|
8482
|
+
|
|
8483
|
+
/**
|
|
8484
|
+
* @param {boolean} value
|
|
8485
|
+
* @return {!proto.config.VerifyPrivateR2ObjectResponse} returns this
|
|
8486
|
+
*/
|
|
8487
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.setExists = function(value) {
|
|
8488
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
8489
|
+
};
|
|
8490
|
+
|
|
8491
|
+
|
|
8492
|
+
/**
|
|
8493
|
+
* optional string storage_provider = 2;
|
|
8494
|
+
* @return {string}
|
|
8495
|
+
*/
|
|
8496
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.getStorageProvider = function() {
|
|
8497
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8498
|
+
};
|
|
8499
|
+
|
|
8500
|
+
|
|
8501
|
+
/**
|
|
8502
|
+
* @param {string} value
|
|
8503
|
+
* @return {!proto.config.VerifyPrivateR2ObjectResponse} returns this
|
|
8504
|
+
*/
|
|
8505
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.setStorageProvider = function(value) {
|
|
8506
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8507
|
+
};
|
|
8508
|
+
|
|
8509
|
+
|
|
8510
|
+
/**
|
|
8511
|
+
* optional string storage_ref = 3;
|
|
8512
|
+
* @return {string}
|
|
8513
|
+
*/
|
|
8514
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.getStorageRef = function() {
|
|
8515
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
8516
|
+
};
|
|
8517
|
+
|
|
8518
|
+
|
|
8519
|
+
/**
|
|
8520
|
+
* @param {string} value
|
|
8521
|
+
* @return {!proto.config.VerifyPrivateR2ObjectResponse} returns this
|
|
8522
|
+
*/
|
|
8523
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.setStorageRef = function(value) {
|
|
8524
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
8525
|
+
};
|
|
8526
|
+
|
|
8527
|
+
|
|
8528
|
+
/**
|
|
8529
|
+
* optional string mime_type = 4;
|
|
8530
|
+
* @return {string}
|
|
8531
|
+
*/
|
|
8532
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.getMimeType = function() {
|
|
8533
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
8534
|
+
};
|
|
8535
|
+
|
|
8536
|
+
|
|
8537
|
+
/**
|
|
8538
|
+
* @param {string} value
|
|
8539
|
+
* @return {!proto.config.VerifyPrivateR2ObjectResponse} returns this
|
|
8540
|
+
*/
|
|
8541
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.setMimeType = function(value) {
|
|
8542
|
+
return jspb.Message.setField(this, 4, value);
|
|
8543
|
+
};
|
|
8544
|
+
|
|
8545
|
+
|
|
8546
|
+
/**
|
|
8547
|
+
* Clears the field making it undefined.
|
|
8548
|
+
* @return {!proto.config.VerifyPrivateR2ObjectResponse} returns this
|
|
8549
|
+
*/
|
|
8550
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.clearMimeType = function() {
|
|
8551
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
8552
|
+
};
|
|
8553
|
+
|
|
8554
|
+
|
|
8555
|
+
/**
|
|
8556
|
+
* Returns whether this field is set.
|
|
8557
|
+
* @return {boolean}
|
|
8558
|
+
*/
|
|
8559
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.hasMimeType = function() {
|
|
8560
|
+
return jspb.Message.getField(this, 4) != null;
|
|
8561
|
+
};
|
|
8562
|
+
|
|
8563
|
+
|
|
8564
|
+
/**
|
|
8565
|
+
* optional int64 file_size = 5;
|
|
8566
|
+
* @return {number}
|
|
8567
|
+
*/
|
|
8568
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.getFileSize = function() {
|
|
8569
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
8570
|
+
};
|
|
8571
|
+
|
|
8572
|
+
|
|
8573
|
+
/**
|
|
8574
|
+
* @param {number} value
|
|
8575
|
+
* @return {!proto.config.VerifyPrivateR2ObjectResponse} returns this
|
|
8576
|
+
*/
|
|
8577
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.setFileSize = function(value) {
|
|
8578
|
+
return jspb.Message.setField(this, 5, value);
|
|
8579
|
+
};
|
|
8580
|
+
|
|
8581
|
+
|
|
8582
|
+
/**
|
|
8583
|
+
* Clears the field making it undefined.
|
|
8584
|
+
* @return {!proto.config.VerifyPrivateR2ObjectResponse} returns this
|
|
8585
|
+
*/
|
|
8586
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.clearFileSize = function() {
|
|
8587
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
8588
|
+
};
|
|
8589
|
+
|
|
8590
|
+
|
|
8591
|
+
/**
|
|
8592
|
+
* Returns whether this field is set.
|
|
8593
|
+
* @return {boolean}
|
|
8594
|
+
*/
|
|
8595
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.hasFileSize = function() {
|
|
8596
|
+
return jspb.Message.getField(this, 5) != null;
|
|
8597
|
+
};
|
|
8598
|
+
|
|
8599
|
+
|
|
8600
|
+
/**
|
|
8601
|
+
* optional string etag = 6;
|
|
8602
|
+
* @return {string}
|
|
8603
|
+
*/
|
|
8604
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.getEtag = function() {
|
|
8605
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
8606
|
+
};
|
|
8607
|
+
|
|
8608
|
+
|
|
8609
|
+
/**
|
|
8610
|
+
* @param {string} value
|
|
8611
|
+
* @return {!proto.config.VerifyPrivateR2ObjectResponse} returns this
|
|
8612
|
+
*/
|
|
8613
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.setEtag = function(value) {
|
|
8614
|
+
return jspb.Message.setField(this, 6, value);
|
|
8615
|
+
};
|
|
8616
|
+
|
|
8617
|
+
|
|
8618
|
+
/**
|
|
8619
|
+
* Clears the field making it undefined.
|
|
8620
|
+
* @return {!proto.config.VerifyPrivateR2ObjectResponse} returns this
|
|
8621
|
+
*/
|
|
8622
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.clearEtag = function() {
|
|
8623
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
8624
|
+
};
|
|
8625
|
+
|
|
8626
|
+
|
|
8627
|
+
/**
|
|
8628
|
+
* Returns whether this field is set.
|
|
8629
|
+
* @return {boolean}
|
|
8630
|
+
*/
|
|
8631
|
+
proto.config.VerifyPrivateR2ObjectResponse.prototype.hasEtag = function() {
|
|
8632
|
+
return jspb.Message.getField(this, 6) != null;
|
|
8633
|
+
};
|
|
8634
|
+
|
|
8635
|
+
|
|
8636
|
+
|
|
8637
|
+
|
|
8638
|
+
|
|
8639
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8640
|
+
/**
|
|
8641
|
+
* Creates an object representation of this proto.
|
|
8642
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8643
|
+
* Optional fields that are not set will be set to undefined.
|
|
8644
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8645
|
+
* For the list of reserved names please see:
|
|
8646
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8647
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8648
|
+
* JSPB instance for transitional soy proto support:
|
|
8649
|
+
* http://goto/soy-param-migration
|
|
8650
|
+
* @return {!Object}
|
|
8651
|
+
*/
|
|
8652
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.toObject = function(opt_includeInstance) {
|
|
8653
|
+
return proto.config.GetPrivateR2DownloadUrlRequest.toObject(opt_includeInstance, this);
|
|
8654
|
+
};
|
|
8655
|
+
|
|
8656
|
+
|
|
8657
|
+
/**
|
|
8658
|
+
* Static version of the {@see toObject} method.
|
|
8659
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8660
|
+
* the JSPB instance for transitional soy proto support:
|
|
8661
|
+
* http://goto/soy-param-migration
|
|
8662
|
+
* @param {!proto.config.GetPrivateR2DownloadUrlRequest} msg The msg instance to transform.
|
|
8663
|
+
* @return {!Object}
|
|
8664
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8665
|
+
*/
|
|
8666
|
+
proto.config.GetPrivateR2DownloadUrlRequest.toObject = function(includeInstance, msg) {
|
|
8667
|
+
var f, obj = {
|
|
8668
|
+
environment: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8669
|
+
customer: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8670
|
+
storageProvider: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
8671
|
+
storageRef: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
8672
|
+
fileName: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
8673
|
+
disposition: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
8674
|
+
};
|
|
8675
|
+
|
|
8676
|
+
if (includeInstance) {
|
|
8677
|
+
obj.$jspbMessageInstance = msg;
|
|
8678
|
+
}
|
|
8679
|
+
return obj;
|
|
8680
|
+
};
|
|
8681
|
+
}
|
|
8682
|
+
|
|
8683
|
+
|
|
8684
|
+
/**
|
|
8685
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8686
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8687
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlRequest}
|
|
8688
|
+
*/
|
|
8689
|
+
proto.config.GetPrivateR2DownloadUrlRequest.deserializeBinary = function(bytes) {
|
|
8690
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8691
|
+
var msg = new proto.config.GetPrivateR2DownloadUrlRequest;
|
|
8692
|
+
return proto.config.GetPrivateR2DownloadUrlRequest.deserializeBinaryFromReader(msg, reader);
|
|
8693
|
+
};
|
|
8694
|
+
|
|
8695
|
+
|
|
8696
|
+
/**
|
|
8697
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8698
|
+
* given reader into the given message object.
|
|
8699
|
+
* @param {!proto.config.GetPrivateR2DownloadUrlRequest} msg The message object to deserialize into.
|
|
8700
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8701
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlRequest}
|
|
8702
|
+
*/
|
|
8703
|
+
proto.config.GetPrivateR2DownloadUrlRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
8704
|
+
while (reader.nextField()) {
|
|
8705
|
+
if (reader.isEndGroup()) {
|
|
8706
|
+
break;
|
|
8707
|
+
}
|
|
8708
|
+
var field = reader.getFieldNumber();
|
|
8709
|
+
switch (field) {
|
|
8710
|
+
case 1:
|
|
8711
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8712
|
+
msg.setEnvironment(value);
|
|
8713
|
+
break;
|
|
8714
|
+
case 2:
|
|
8715
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8716
|
+
msg.setCustomer(value);
|
|
8717
|
+
break;
|
|
8718
|
+
case 3:
|
|
8719
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8720
|
+
msg.setStorageProvider(value);
|
|
8721
|
+
break;
|
|
8722
|
+
case 4:
|
|
8723
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8724
|
+
msg.setStorageRef(value);
|
|
8725
|
+
break;
|
|
8726
|
+
case 5:
|
|
8727
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8728
|
+
msg.setFileName(value);
|
|
8729
|
+
break;
|
|
8730
|
+
case 6:
|
|
8731
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8732
|
+
msg.setDisposition(value);
|
|
8733
|
+
break;
|
|
8734
|
+
default:
|
|
8735
|
+
reader.skipField();
|
|
8736
|
+
break;
|
|
8737
|
+
}
|
|
8738
|
+
}
|
|
8739
|
+
return msg;
|
|
8740
|
+
};
|
|
8741
|
+
|
|
8742
|
+
|
|
8743
|
+
/**
|
|
8744
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8745
|
+
* @return {!Uint8Array}
|
|
8746
|
+
*/
|
|
8747
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.serializeBinary = function() {
|
|
8748
|
+
var writer = new jspb.BinaryWriter();
|
|
8749
|
+
proto.config.GetPrivateR2DownloadUrlRequest.serializeBinaryToWriter(this, writer);
|
|
8750
|
+
return writer.getResultBuffer();
|
|
8751
|
+
};
|
|
8752
|
+
|
|
8753
|
+
|
|
8754
|
+
/**
|
|
8755
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8756
|
+
* format), writing to the given BinaryWriter.
|
|
8757
|
+
* @param {!proto.config.GetPrivateR2DownloadUrlRequest} message
|
|
8758
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8759
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8760
|
+
*/
|
|
8761
|
+
proto.config.GetPrivateR2DownloadUrlRequest.serializeBinaryToWriter = function(message, writer) {
|
|
8762
|
+
var f = undefined;
|
|
8763
|
+
f = message.getEnvironment();
|
|
8764
|
+
if (f.length > 0) {
|
|
8765
|
+
writer.writeString(
|
|
8766
|
+
1,
|
|
8767
|
+
f
|
|
8768
|
+
);
|
|
8769
|
+
}
|
|
8770
|
+
f = message.getCustomer();
|
|
8771
|
+
if (f.length > 0) {
|
|
8772
|
+
writer.writeString(
|
|
8773
|
+
2,
|
|
8774
|
+
f
|
|
8775
|
+
);
|
|
8776
|
+
}
|
|
8777
|
+
f = message.getStorageProvider();
|
|
8778
|
+
if (f.length > 0) {
|
|
8779
|
+
writer.writeString(
|
|
8780
|
+
3,
|
|
8781
|
+
f
|
|
8782
|
+
);
|
|
8783
|
+
}
|
|
8784
|
+
f = message.getStorageRef();
|
|
8785
|
+
if (f.length > 0) {
|
|
8786
|
+
writer.writeString(
|
|
8787
|
+
4,
|
|
8788
|
+
f
|
|
8789
|
+
);
|
|
8790
|
+
}
|
|
8791
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
8792
|
+
if (f != null) {
|
|
8793
|
+
writer.writeString(
|
|
8794
|
+
5,
|
|
8795
|
+
f
|
|
8796
|
+
);
|
|
8797
|
+
}
|
|
8798
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
8799
|
+
if (f != null) {
|
|
8800
|
+
writer.writeString(
|
|
8801
|
+
6,
|
|
8802
|
+
f
|
|
8803
|
+
);
|
|
8804
|
+
}
|
|
8805
|
+
};
|
|
8806
|
+
|
|
8807
|
+
|
|
8808
|
+
/**
|
|
8809
|
+
* optional string environment = 1;
|
|
8810
|
+
* @return {string}
|
|
8811
|
+
*/
|
|
8812
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.getEnvironment = function() {
|
|
8813
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8814
|
+
};
|
|
8815
|
+
|
|
8816
|
+
|
|
8817
|
+
/**
|
|
8818
|
+
* @param {string} value
|
|
8819
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlRequest} returns this
|
|
8820
|
+
*/
|
|
8821
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.setEnvironment = function(value) {
|
|
8822
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8823
|
+
};
|
|
8824
|
+
|
|
8825
|
+
|
|
8826
|
+
/**
|
|
8827
|
+
* optional string customer = 2;
|
|
8828
|
+
* @return {string}
|
|
8829
|
+
*/
|
|
8830
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.getCustomer = function() {
|
|
8831
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8832
|
+
};
|
|
8833
|
+
|
|
8834
|
+
|
|
8835
|
+
/**
|
|
8836
|
+
* @param {string} value
|
|
8837
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlRequest} returns this
|
|
8838
|
+
*/
|
|
8839
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.setCustomer = function(value) {
|
|
8840
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8841
|
+
};
|
|
8842
|
+
|
|
8843
|
+
|
|
8844
|
+
/**
|
|
8845
|
+
* optional string storage_provider = 3;
|
|
8846
|
+
* @return {string}
|
|
8847
|
+
*/
|
|
8848
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.getStorageProvider = function() {
|
|
8849
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
8850
|
+
};
|
|
8851
|
+
|
|
8852
|
+
|
|
8853
|
+
/**
|
|
8854
|
+
* @param {string} value
|
|
8855
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlRequest} returns this
|
|
8856
|
+
*/
|
|
8857
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.setStorageProvider = function(value) {
|
|
8858
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
8859
|
+
};
|
|
8860
|
+
|
|
8861
|
+
|
|
8862
|
+
/**
|
|
8863
|
+
* optional string storage_ref = 4;
|
|
8864
|
+
* @return {string}
|
|
8865
|
+
*/
|
|
8866
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.getStorageRef = function() {
|
|
8867
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
8868
|
+
};
|
|
8869
|
+
|
|
8870
|
+
|
|
8871
|
+
/**
|
|
8872
|
+
* @param {string} value
|
|
8873
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlRequest} returns this
|
|
8874
|
+
*/
|
|
8875
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.setStorageRef = function(value) {
|
|
8876
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
8877
|
+
};
|
|
8878
|
+
|
|
8879
|
+
|
|
8880
|
+
/**
|
|
8881
|
+
* optional string file_name = 5;
|
|
8882
|
+
* @return {string}
|
|
8883
|
+
*/
|
|
8884
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.getFileName = function() {
|
|
8885
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
8886
|
+
};
|
|
8887
|
+
|
|
8888
|
+
|
|
8889
|
+
/**
|
|
8890
|
+
* @param {string} value
|
|
8891
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlRequest} returns this
|
|
8892
|
+
*/
|
|
8893
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.setFileName = function(value) {
|
|
8894
|
+
return jspb.Message.setField(this, 5, value);
|
|
8895
|
+
};
|
|
8896
|
+
|
|
8897
|
+
|
|
8898
|
+
/**
|
|
8899
|
+
* Clears the field making it undefined.
|
|
8900
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlRequest} returns this
|
|
8901
|
+
*/
|
|
8902
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.clearFileName = function() {
|
|
8903
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
8904
|
+
};
|
|
8905
|
+
|
|
8906
|
+
|
|
8907
|
+
/**
|
|
8908
|
+
* Returns whether this field is set.
|
|
8909
|
+
* @return {boolean}
|
|
8910
|
+
*/
|
|
8911
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.hasFileName = function() {
|
|
8912
|
+
return jspb.Message.getField(this, 5) != null;
|
|
8913
|
+
};
|
|
8914
|
+
|
|
8915
|
+
|
|
8916
|
+
/**
|
|
8917
|
+
* optional string disposition = 6;
|
|
8918
|
+
* @return {string}
|
|
8919
|
+
*/
|
|
8920
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.getDisposition = function() {
|
|
8921
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
8922
|
+
};
|
|
8923
|
+
|
|
8924
|
+
|
|
8925
|
+
/**
|
|
8926
|
+
* @param {string} value
|
|
8927
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlRequest} returns this
|
|
8928
|
+
*/
|
|
8929
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.setDisposition = function(value) {
|
|
8930
|
+
return jspb.Message.setField(this, 6, value);
|
|
8931
|
+
};
|
|
8932
|
+
|
|
8933
|
+
|
|
8934
|
+
/**
|
|
8935
|
+
* Clears the field making it undefined.
|
|
8936
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlRequest} returns this
|
|
8937
|
+
*/
|
|
8938
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.clearDisposition = function() {
|
|
8939
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
8940
|
+
};
|
|
8941
|
+
|
|
8942
|
+
|
|
8943
|
+
/**
|
|
8944
|
+
* Returns whether this field is set.
|
|
8945
|
+
* @return {boolean}
|
|
8946
|
+
*/
|
|
8947
|
+
proto.config.GetPrivateR2DownloadUrlRequest.prototype.hasDisposition = function() {
|
|
8948
|
+
return jspb.Message.getField(this, 6) != null;
|
|
8949
|
+
};
|
|
8950
|
+
|
|
8951
|
+
|
|
8952
|
+
|
|
8953
|
+
|
|
8954
|
+
|
|
8955
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8956
|
+
/**
|
|
8957
|
+
* Creates an object representation of this proto.
|
|
8958
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8959
|
+
* Optional fields that are not set will be set to undefined.
|
|
8960
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8961
|
+
* For the list of reserved names please see:
|
|
8962
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8963
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8964
|
+
* JSPB instance for transitional soy proto support:
|
|
8965
|
+
* http://goto/soy-param-migration
|
|
8966
|
+
* @return {!Object}
|
|
8967
|
+
*/
|
|
8968
|
+
proto.config.GetPrivateR2DownloadUrlResponse.prototype.toObject = function(opt_includeInstance) {
|
|
8969
|
+
return proto.config.GetPrivateR2DownloadUrlResponse.toObject(opt_includeInstance, this);
|
|
8970
|
+
};
|
|
8971
|
+
|
|
8972
|
+
|
|
8973
|
+
/**
|
|
8974
|
+
* Static version of the {@see toObject} method.
|
|
8975
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8976
|
+
* the JSPB instance for transitional soy proto support:
|
|
8977
|
+
* http://goto/soy-param-migration
|
|
8978
|
+
* @param {!proto.config.GetPrivateR2DownloadUrlResponse} msg The msg instance to transform.
|
|
8979
|
+
* @return {!Object}
|
|
8980
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8981
|
+
*/
|
|
8982
|
+
proto.config.GetPrivateR2DownloadUrlResponse.toObject = function(includeInstance, msg) {
|
|
8983
|
+
var f, obj = {
|
|
8984
|
+
url: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8985
|
+
expiresInSeconds: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
8986
|
+
expiresAt: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
8987
|
+
};
|
|
8988
|
+
|
|
8989
|
+
if (includeInstance) {
|
|
8990
|
+
obj.$jspbMessageInstance = msg;
|
|
8991
|
+
}
|
|
8992
|
+
return obj;
|
|
8993
|
+
};
|
|
8994
|
+
}
|
|
8995
|
+
|
|
8996
|
+
|
|
8997
|
+
/**
|
|
8998
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8999
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
9000
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlResponse}
|
|
9001
|
+
*/
|
|
9002
|
+
proto.config.GetPrivateR2DownloadUrlResponse.deserializeBinary = function(bytes) {
|
|
9003
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
9004
|
+
var msg = new proto.config.GetPrivateR2DownloadUrlResponse;
|
|
9005
|
+
return proto.config.GetPrivateR2DownloadUrlResponse.deserializeBinaryFromReader(msg, reader);
|
|
9006
|
+
};
|
|
9007
|
+
|
|
9008
|
+
|
|
9009
|
+
/**
|
|
9010
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
9011
|
+
* given reader into the given message object.
|
|
9012
|
+
* @param {!proto.config.GetPrivateR2DownloadUrlResponse} msg The message object to deserialize into.
|
|
9013
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
9014
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlResponse}
|
|
9015
|
+
*/
|
|
9016
|
+
proto.config.GetPrivateR2DownloadUrlResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
9017
|
+
while (reader.nextField()) {
|
|
9018
|
+
if (reader.isEndGroup()) {
|
|
9019
|
+
break;
|
|
9020
|
+
}
|
|
9021
|
+
var field = reader.getFieldNumber();
|
|
9022
|
+
switch (field) {
|
|
9023
|
+
case 1:
|
|
9024
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9025
|
+
msg.setUrl(value);
|
|
9026
|
+
break;
|
|
9027
|
+
case 2:
|
|
9028
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
9029
|
+
msg.setExpiresInSeconds(value);
|
|
9030
|
+
break;
|
|
9031
|
+
case 3:
|
|
9032
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9033
|
+
msg.setExpiresAt(value);
|
|
9034
|
+
break;
|
|
9035
|
+
default:
|
|
9036
|
+
reader.skipField();
|
|
9037
|
+
break;
|
|
9038
|
+
}
|
|
9039
|
+
}
|
|
9040
|
+
return msg;
|
|
9041
|
+
};
|
|
9042
|
+
|
|
9043
|
+
|
|
9044
|
+
/**
|
|
9045
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
9046
|
+
* @return {!Uint8Array}
|
|
9047
|
+
*/
|
|
9048
|
+
proto.config.GetPrivateR2DownloadUrlResponse.prototype.serializeBinary = function() {
|
|
9049
|
+
var writer = new jspb.BinaryWriter();
|
|
9050
|
+
proto.config.GetPrivateR2DownloadUrlResponse.serializeBinaryToWriter(this, writer);
|
|
9051
|
+
return writer.getResultBuffer();
|
|
9052
|
+
};
|
|
9053
|
+
|
|
9054
|
+
|
|
9055
|
+
/**
|
|
9056
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
9057
|
+
* format), writing to the given BinaryWriter.
|
|
9058
|
+
* @param {!proto.config.GetPrivateR2DownloadUrlResponse} message
|
|
9059
|
+
* @param {!jspb.BinaryWriter} writer
|
|
9060
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9061
|
+
*/
|
|
9062
|
+
proto.config.GetPrivateR2DownloadUrlResponse.serializeBinaryToWriter = function(message, writer) {
|
|
9063
|
+
var f = undefined;
|
|
9064
|
+
f = message.getUrl();
|
|
9065
|
+
if (f.length > 0) {
|
|
9066
|
+
writer.writeString(
|
|
9067
|
+
1,
|
|
9068
|
+
f
|
|
9069
|
+
);
|
|
9070
|
+
}
|
|
9071
|
+
f = message.getExpiresInSeconds();
|
|
9072
|
+
if (f !== 0) {
|
|
9073
|
+
writer.writeInt32(
|
|
9074
|
+
2,
|
|
9075
|
+
f
|
|
9076
|
+
);
|
|
9077
|
+
}
|
|
9078
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
9079
|
+
if (f != null) {
|
|
9080
|
+
writer.writeString(
|
|
9081
|
+
3,
|
|
9082
|
+
f
|
|
9083
|
+
);
|
|
9084
|
+
}
|
|
9085
|
+
};
|
|
9086
|
+
|
|
9087
|
+
|
|
9088
|
+
/**
|
|
9089
|
+
* optional string url = 1;
|
|
9090
|
+
* @return {string}
|
|
9091
|
+
*/
|
|
9092
|
+
proto.config.GetPrivateR2DownloadUrlResponse.prototype.getUrl = function() {
|
|
9093
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
9094
|
+
};
|
|
9095
|
+
|
|
9096
|
+
|
|
9097
|
+
/**
|
|
9098
|
+
* @param {string} value
|
|
9099
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlResponse} returns this
|
|
9100
|
+
*/
|
|
9101
|
+
proto.config.GetPrivateR2DownloadUrlResponse.prototype.setUrl = function(value) {
|
|
9102
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
9103
|
+
};
|
|
9104
|
+
|
|
9105
|
+
|
|
9106
|
+
/**
|
|
9107
|
+
* optional int32 expires_in_seconds = 2;
|
|
9108
|
+
* @return {number}
|
|
9109
|
+
*/
|
|
9110
|
+
proto.config.GetPrivateR2DownloadUrlResponse.prototype.getExpiresInSeconds = function() {
|
|
9111
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
9112
|
+
};
|
|
9113
|
+
|
|
9114
|
+
|
|
9115
|
+
/**
|
|
9116
|
+
* @param {number} value
|
|
9117
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlResponse} returns this
|
|
9118
|
+
*/
|
|
9119
|
+
proto.config.GetPrivateR2DownloadUrlResponse.prototype.setExpiresInSeconds = function(value) {
|
|
9120
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
9121
|
+
};
|
|
9122
|
+
|
|
9123
|
+
|
|
9124
|
+
/**
|
|
9125
|
+
* optional string expires_at = 3;
|
|
9126
|
+
* @return {string}
|
|
9127
|
+
*/
|
|
9128
|
+
proto.config.GetPrivateR2DownloadUrlResponse.prototype.getExpiresAt = function() {
|
|
9129
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
9130
|
+
};
|
|
9131
|
+
|
|
9132
|
+
|
|
9133
|
+
/**
|
|
9134
|
+
* @param {string} value
|
|
9135
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlResponse} returns this
|
|
9136
|
+
*/
|
|
9137
|
+
proto.config.GetPrivateR2DownloadUrlResponse.prototype.setExpiresAt = function(value) {
|
|
9138
|
+
return jspb.Message.setField(this, 3, value);
|
|
9139
|
+
};
|
|
9140
|
+
|
|
9141
|
+
|
|
9142
|
+
/**
|
|
9143
|
+
* Clears the field making it undefined.
|
|
9144
|
+
* @return {!proto.config.GetPrivateR2DownloadUrlResponse} returns this
|
|
9145
|
+
*/
|
|
9146
|
+
proto.config.GetPrivateR2DownloadUrlResponse.prototype.clearExpiresAt = function() {
|
|
9147
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
9148
|
+
};
|
|
9149
|
+
|
|
9150
|
+
|
|
9151
|
+
/**
|
|
9152
|
+
* Returns whether this field is set.
|
|
9153
|
+
* @return {boolean}
|
|
9154
|
+
*/
|
|
9155
|
+
proto.config.GetPrivateR2DownloadUrlResponse.prototype.hasExpiresAt = function() {
|
|
9156
|
+
return jspb.Message.getField(this, 3) != null;
|
|
9157
|
+
};
|
|
9158
|
+
|
|
9159
|
+
|
|
9160
|
+
|
|
9161
|
+
|
|
9162
|
+
|
|
7189
9163
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7190
9164
|
/**
|
|
7191
9165
|
* Creates an object representation of this proto.
|