protobuf-platform 1.2.59 → 1.2.60

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.
@@ -104,10 +104,12 @@ message CommonCountriesResponse {
104
104
  }
105
105
  //File Uploads
106
106
  message R2FileRequest {
107
- bytes file = 1;
108
- string type = 2;
109
- optional string name = 3;
110
- optional string folder = 4;
107
+ string environment = 1;
108
+ string customer = 2;
109
+ bytes file = 3;
110
+ string type = 4;
111
+ optional string name = 5;
112
+ optional string folder = 6;
111
113
  }
112
114
  message R2FileResponse {
113
115
  string key = 1;
@@ -3790,10 +3790,12 @@ proto.config.R2FileRequest.prototype.toObject = function(opt_includeInstance) {
3790
3790
  */
3791
3791
  proto.config.R2FileRequest.toObject = function(includeInstance, msg) {
3792
3792
  var f, obj = {
3793
+ environment: jspb.Message.getFieldWithDefault(msg, 1, ""),
3794
+ customer: jspb.Message.getFieldWithDefault(msg, 2, ""),
3793
3795
  file: msg.getFile_asB64(),
3794
- type: jspb.Message.getFieldWithDefault(msg, 2, ""),
3795
- name: jspb.Message.getFieldWithDefault(msg, 3, ""),
3796
- folder: jspb.Message.getFieldWithDefault(msg, 4, "")
3796
+ type: jspb.Message.getFieldWithDefault(msg, 4, ""),
3797
+ name: jspb.Message.getFieldWithDefault(msg, 5, ""),
3798
+ folder: jspb.Message.getFieldWithDefault(msg, 6, "")
3797
3799
  };
3798
3800
 
3799
3801
  if (includeInstance) {
@@ -3831,18 +3833,26 @@ proto.config.R2FileRequest.deserializeBinaryFromReader = function(msg, reader) {
3831
3833
  var field = reader.getFieldNumber();
3832
3834
  switch (field) {
3833
3835
  case 1:
3836
+ var value = /** @type {string} */ (reader.readString());
3837
+ msg.setEnvironment(value);
3838
+ break;
3839
+ case 2:
3840
+ var value = /** @type {string} */ (reader.readString());
3841
+ msg.setCustomer(value);
3842
+ break;
3843
+ case 3:
3834
3844
  var value = /** @type {!Uint8Array} */ (reader.readBytes());
3835
3845
  msg.setFile(value);
3836
3846
  break;
3837
- case 2:
3847
+ case 4:
3838
3848
  var value = /** @type {string} */ (reader.readString());
3839
3849
  msg.setType(value);
3840
3850
  break;
3841
- case 3:
3851
+ case 5:
3842
3852
  var value = /** @type {string} */ (reader.readString());
3843
3853
  msg.setName(value);
3844
3854
  break;
3845
- case 4:
3855
+ case 6:
3846
3856
  var value = /** @type {string} */ (reader.readString());
3847
3857
  msg.setFolder(value);
3848
3858
  break;
@@ -3875,31 +3885,45 @@ proto.config.R2FileRequest.prototype.serializeBinary = function() {
3875
3885
  */
3876
3886
  proto.config.R2FileRequest.serializeBinaryToWriter = function(message, writer) {
3877
3887
  var f = undefined;
3888
+ f = message.getEnvironment();
3889
+ if (f.length > 0) {
3890
+ writer.writeString(
3891
+ 1,
3892
+ f
3893
+ );
3894
+ }
3895
+ f = message.getCustomer();
3896
+ if (f.length > 0) {
3897
+ writer.writeString(
3898
+ 2,
3899
+ f
3900
+ );
3901
+ }
3878
3902
  f = message.getFile_asU8();
3879
3903
  if (f.length > 0) {
3880
3904
  writer.writeBytes(
3881
- 1,
3905
+ 3,
3882
3906
  f
3883
3907
  );
3884
3908
  }
3885
3909
  f = message.getType();
3886
3910
  if (f.length > 0) {
3887
3911
  writer.writeString(
3888
- 2,
3912
+ 4,
3889
3913
  f
3890
3914
  );
3891
3915
  }
3892
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
3916
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
3893
3917
  if (f != null) {
3894
3918
  writer.writeString(
3895
- 3,
3919
+ 5,
3896
3920
  f
3897
3921
  );
3898
3922
  }
3899
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
3923
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
3900
3924
  if (f != null) {
3901
3925
  writer.writeString(
3902
- 4,
3926
+ 6,
3903
3927
  f
3904
3928
  );
3905
3929
  }
@@ -3907,16 +3931,52 @@ proto.config.R2FileRequest.serializeBinaryToWriter = function(message, writer) {
3907
3931
 
3908
3932
 
3909
3933
  /**
3910
- * optional bytes file = 1;
3934
+ * optional string environment = 1;
3935
+ * @return {string}
3936
+ */
3937
+ proto.config.R2FileRequest.prototype.getEnvironment = function() {
3938
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3939
+ };
3940
+
3941
+
3942
+ /**
3943
+ * @param {string} value
3944
+ * @return {!proto.config.R2FileRequest} returns this
3945
+ */
3946
+ proto.config.R2FileRequest.prototype.setEnvironment = function(value) {
3947
+ return jspb.Message.setProto3StringField(this, 1, value);
3948
+ };
3949
+
3950
+
3951
+ /**
3952
+ * optional string customer = 2;
3953
+ * @return {string}
3954
+ */
3955
+ proto.config.R2FileRequest.prototype.getCustomer = function() {
3956
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3957
+ };
3958
+
3959
+
3960
+ /**
3961
+ * @param {string} value
3962
+ * @return {!proto.config.R2FileRequest} returns this
3963
+ */
3964
+ proto.config.R2FileRequest.prototype.setCustomer = function(value) {
3965
+ return jspb.Message.setProto3StringField(this, 2, value);
3966
+ };
3967
+
3968
+
3969
+ /**
3970
+ * optional bytes file = 3;
3911
3971
  * @return {!(string|Uint8Array)}
3912
3972
  */
3913
3973
  proto.config.R2FileRequest.prototype.getFile = function() {
3914
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3974
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3915
3975
  };
3916
3976
 
3917
3977
 
3918
3978
  /**
3919
- * optional bytes file = 1;
3979
+ * optional bytes file = 3;
3920
3980
  * This is a type-conversion wrapper around `getFile()`
3921
3981
  * @return {string}
3922
3982
  */
@@ -3927,7 +3987,7 @@ proto.config.R2FileRequest.prototype.getFile_asB64 = function() {
3927
3987
 
3928
3988
 
3929
3989
  /**
3930
- * optional bytes file = 1;
3990
+ * optional bytes file = 3;
3931
3991
  * Note that Uint8Array is not supported on all browsers.
3932
3992
  * @see http://caniuse.com/Uint8Array
3933
3993
  * This is a type-conversion wrapper around `getFile()`
@@ -3944,16 +4004,16 @@ proto.config.R2FileRequest.prototype.getFile_asU8 = function() {
3944
4004
  * @return {!proto.config.R2FileRequest} returns this
3945
4005
  */
3946
4006
  proto.config.R2FileRequest.prototype.setFile = function(value) {
3947
- return jspb.Message.setProto3BytesField(this, 1, value);
4007
+ return jspb.Message.setProto3BytesField(this, 3, value);
3948
4008
  };
3949
4009
 
3950
4010
 
3951
4011
  /**
3952
- * optional string type = 2;
4012
+ * optional string type = 4;
3953
4013
  * @return {string}
3954
4014
  */
3955
4015
  proto.config.R2FileRequest.prototype.getType = function() {
3956
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4016
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3957
4017
  };
3958
4018
 
3959
4019
 
@@ -3962,16 +4022,16 @@ proto.config.R2FileRequest.prototype.getType = function() {
3962
4022
  * @return {!proto.config.R2FileRequest} returns this
3963
4023
  */
3964
4024
  proto.config.R2FileRequest.prototype.setType = function(value) {
3965
- return jspb.Message.setProto3StringField(this, 2, value);
4025
+ return jspb.Message.setProto3StringField(this, 4, value);
3966
4026
  };
3967
4027
 
3968
4028
 
3969
4029
  /**
3970
- * optional string name = 3;
4030
+ * optional string name = 5;
3971
4031
  * @return {string}
3972
4032
  */
3973
4033
  proto.config.R2FileRequest.prototype.getName = function() {
3974
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4034
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3975
4035
  };
3976
4036
 
3977
4037
 
@@ -3980,7 +4040,7 @@ proto.config.R2FileRequest.prototype.getName = function() {
3980
4040
  * @return {!proto.config.R2FileRequest} returns this
3981
4041
  */
3982
4042
  proto.config.R2FileRequest.prototype.setName = function(value) {
3983
- return jspb.Message.setField(this, 3, value);
4043
+ return jspb.Message.setField(this, 5, value);
3984
4044
  };
3985
4045
 
3986
4046
 
@@ -3989,7 +4049,7 @@ proto.config.R2FileRequest.prototype.setName = function(value) {
3989
4049
  * @return {!proto.config.R2FileRequest} returns this
3990
4050
  */
3991
4051
  proto.config.R2FileRequest.prototype.clearName = function() {
3992
- return jspb.Message.setField(this, 3, undefined);
4052
+ return jspb.Message.setField(this, 5, undefined);
3993
4053
  };
3994
4054
 
3995
4055
 
@@ -3998,16 +4058,16 @@ proto.config.R2FileRequest.prototype.clearName = function() {
3998
4058
  * @return {boolean}
3999
4059
  */
4000
4060
  proto.config.R2FileRequest.prototype.hasName = function() {
4001
- return jspb.Message.getField(this, 3) != null;
4061
+ return jspb.Message.getField(this, 5) != null;
4002
4062
  };
4003
4063
 
4004
4064
 
4005
4065
  /**
4006
- * optional string folder = 4;
4066
+ * optional string folder = 6;
4007
4067
  * @return {string}
4008
4068
  */
4009
4069
  proto.config.R2FileRequest.prototype.getFolder = function() {
4010
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4070
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
4011
4071
  };
4012
4072
 
4013
4073
 
@@ -4016,7 +4076,7 @@ proto.config.R2FileRequest.prototype.getFolder = function() {
4016
4076
  * @return {!proto.config.R2FileRequest} returns this
4017
4077
  */
4018
4078
  proto.config.R2FileRequest.prototype.setFolder = function(value) {
4019
- return jspb.Message.setField(this, 4, value);
4079
+ return jspb.Message.setField(this, 6, value);
4020
4080
  };
4021
4081
 
4022
4082
 
@@ -4025,7 +4085,7 @@ proto.config.R2FileRequest.prototype.setFolder = function(value) {
4025
4085
  * @return {!proto.config.R2FileRequest} returns this
4026
4086
  */
4027
4087
  proto.config.R2FileRequest.prototype.clearFolder = function() {
4028
- return jspb.Message.setField(this, 4, undefined);
4088
+ return jspb.Message.setField(this, 6, undefined);
4029
4089
  };
4030
4090
 
4031
4091
 
@@ -4034,7 +4094,7 @@ proto.config.R2FileRequest.prototype.clearFolder = function() {
4034
4094
  * @return {boolean}
4035
4095
  */
4036
4096
  proto.config.R2FileRequest.prototype.hasFolder = function() {
4037
- return jspb.Message.getField(this, 4) != null;
4097
+ return jspb.Message.getField(this, 6) != null;
4038
4098
  };
4039
4099
 
4040
4100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.59",
3
+ "version": "1.2.60",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {