ord-schema 0.3.68 → 0.3.69

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.
@@ -87,8 +87,6 @@ goog.exportSymbol('proto.ord.PressureConditions.PressureControl.PressureControlT
87
87
  goog.exportSymbol('proto.ord.PressureConditions.PressureMeasurement', null, global);
88
88
  goog.exportSymbol('proto.ord.PressureConditions.PressureMeasurement.PressureMeasurementType', null, global);
89
89
  goog.exportSymbol('proto.ord.ProductCompound', null, global);
90
- goog.exportSymbol('proto.ord.ProductCompound.Texture', null, global);
91
- goog.exportSymbol('proto.ord.ProductCompound.Texture.TextureType', null, global);
92
90
  goog.exportSymbol('proto.ord.ProductMeasurement', null, global);
93
91
  goog.exportSymbol('proto.ord.ProductMeasurement.MassSpecMeasurementDetails', null, global);
94
92
  goog.exportSymbol('proto.ord.ProductMeasurement.MassSpecMeasurementDetails.MassSpecMeasurementType', null, global);
@@ -128,6 +126,8 @@ goog.exportSymbol('proto.ord.TemperatureConditions.TemperatureControl', null, gl
128
126
  goog.exportSymbol('proto.ord.TemperatureConditions.TemperatureControl.TemperatureControlType', null, global);
129
127
  goog.exportSymbol('proto.ord.TemperatureConditions.TemperatureMeasurement', null, global);
130
128
  goog.exportSymbol('proto.ord.TemperatureConditions.TemperatureMeasurement.TemperatureMeasurementType', null, global);
129
+ goog.exportSymbol('proto.ord.Texture', null, global);
130
+ goog.exportSymbol('proto.ord.Texture.TextureType', null, global);
131
131
  goog.exportSymbol('proto.ord.Time', null, global);
132
132
  goog.exportSymbol('proto.ord.Time.TimeUnit', null, global);
133
133
  goog.exportSymbol('proto.ord.UnmeasuredAmount', null, global);
@@ -293,6 +293,27 @@ if (goog.DEBUG && !COMPILED) {
293
293
  */
294
294
  proto.ord.UnmeasuredAmount.displayName = 'proto.ord.UnmeasuredAmount';
295
295
  }
296
+ /**
297
+ * Generated by JsPbCodeGenerator.
298
+ * @param {Array=} opt_data Optional initial data array, typically from a
299
+ * server response, or constructed directly in Javascript. The array is used
300
+ * in place and becomes part of the constructed object. It is not cloned.
301
+ * If no data is provided, the constructed object will be empty, but still
302
+ * valid.
303
+ * @extends {jspb.Message}
304
+ * @constructor
305
+ */
306
+ proto.ord.Texture = function(opt_data) {
307
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
308
+ };
309
+ goog.inherits(proto.ord.Texture, jspb.Message);
310
+ if (goog.DEBUG && !COMPILED) {
311
+ /**
312
+ * @public
313
+ * @override
314
+ */
315
+ proto.ord.Texture.displayName = 'proto.ord.Texture';
316
+ }
296
317
  /**
297
318
  * Generated by JsPbCodeGenerator.
298
319
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -986,27 +1007,6 @@ if (goog.DEBUG && !COMPILED) {
986
1007
  */
987
1008
  proto.ord.ProductCompound.displayName = 'proto.ord.ProductCompound';
988
1009
  }
989
- /**
990
- * Generated by JsPbCodeGenerator.
991
- * @param {Array=} opt_data Optional initial data array, typically from a
992
- * server response, or constructed directly in Javascript. The array is used
993
- * in place and becomes part of the constructed object. It is not cloned.
994
- * If no data is provided, the constructed object will be empty, but still
995
- * valid.
996
- * @extends {jspb.Message}
997
- * @constructor
998
- */
999
- proto.ord.ProductCompound.Texture = function(opt_data) {
1000
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1001
- };
1002
- goog.inherits(proto.ord.ProductCompound.Texture, jspb.Message);
1003
- if (goog.DEBUG && !COMPILED) {
1004
- /**
1005
- * @public
1006
- * @override
1007
- */
1008
- proto.ord.ProductCompound.Texture.displayName = 'proto.ord.ProductCompound.Texture';
1009
- }
1010
1010
  /**
1011
1011
  * Generated by JsPbCodeGenerator.
1012
1012
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2377,7 +2377,8 @@ proto.ord.ReactionInput.toObject = function(includeInstance, msg) {
2377
2377
  additionDuration: (f = msg.getAdditionDuration()) && proto.ord.Time.toObject(includeInstance, f),
2378
2378
  flowRate: (f = msg.getFlowRate()) && proto.ord.FlowRate.toObject(includeInstance, f),
2379
2379
  additionDevice: (f = msg.getAdditionDevice()) && proto.ord.ReactionInput.AdditionDevice.toObject(includeInstance, f),
2380
- additionTemperature: (f = msg.getAdditionTemperature()) && proto.ord.Temperature.toObject(includeInstance, f)
2380
+ additionTemperature: (f = msg.getAdditionTemperature()) && proto.ord.Temperature.toObject(includeInstance, f),
2381
+ texture: (f = msg.getTexture()) && proto.ord.Texture.toObject(includeInstance, f)
2381
2382
  };
2382
2383
 
2383
2384
  if (includeInstance) {
@@ -2458,6 +2459,11 @@ proto.ord.ReactionInput.deserializeBinaryFromReader = function(msg, reader) {
2458
2459
  reader.readMessage(value,proto.ord.Temperature.deserializeBinaryFromReader);
2459
2460
  msg.setAdditionTemperature(value);
2460
2461
  break;
2462
+ case 10:
2463
+ var value = new proto.ord.Texture;
2464
+ reader.readMessage(value,proto.ord.Texture.deserializeBinaryFromReader);
2465
+ msg.setTexture(value);
2466
+ break;
2461
2467
  default:
2462
2468
  reader.skipField();
2463
2469
  break;
@@ -2558,6 +2564,14 @@ proto.ord.ReactionInput.serializeBinaryToWriter = function(message, writer) {
2558
2564
  proto.ord.Temperature.serializeBinaryToWriter
2559
2565
  );
2560
2566
  }
2567
+ f = message.getTexture();
2568
+ if (f != null) {
2569
+ writer.writeMessage(
2570
+ 10,
2571
+ f,
2572
+ proto.ord.Texture.serializeBinaryToWriter
2573
+ );
2574
+ }
2561
2575
  };
2562
2576
 
2563
2577
 
@@ -3222,6 +3236,43 @@ proto.ord.ReactionInput.prototype.hasAdditionTemperature = function() {
3222
3236
  };
3223
3237
 
3224
3238
 
3239
+ /**
3240
+ * optional Texture texture = 10;
3241
+ * @return {?proto.ord.Texture}
3242
+ */
3243
+ proto.ord.ReactionInput.prototype.getTexture = function() {
3244
+ return /** @type{?proto.ord.Texture} */ (
3245
+ jspb.Message.getWrapperField(this, proto.ord.Texture, 10));
3246
+ };
3247
+
3248
+
3249
+ /**
3250
+ * @param {?proto.ord.Texture|undefined} value
3251
+ * @return {!proto.ord.ReactionInput} returns this
3252
+ */
3253
+ proto.ord.ReactionInput.prototype.setTexture = function(value) {
3254
+ return jspb.Message.setWrapperField(this, 10, value);
3255
+ };
3256
+
3257
+
3258
+ /**
3259
+ * Clears the message field making it undefined.
3260
+ * @return {!proto.ord.ReactionInput} returns this
3261
+ */
3262
+ proto.ord.ReactionInput.prototype.clearTexture = function() {
3263
+ return this.setTexture(undefined);
3264
+ };
3265
+
3266
+
3267
+ /**
3268
+ * Returns whether this field is set.
3269
+ * @return {boolean}
3270
+ */
3271
+ proto.ord.ReactionInput.prototype.hasTexture = function() {
3272
+ return jspb.Message.getField(this, 10) != null;
3273
+ };
3274
+
3275
+
3225
3276
 
3226
3277
  /**
3227
3278
  * Oneof group definitions for this message. Each group defines the field
@@ -3776,6 +3827,184 @@ proto.ord.UnmeasuredAmount.prototype.setDetails = function(value) {
3776
3827
 
3777
3828
 
3778
3829
 
3830
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3831
+ /**
3832
+ * Creates an object representation of this proto.
3833
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3834
+ * Optional fields that are not set will be set to undefined.
3835
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3836
+ * For the list of reserved names please see:
3837
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3838
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3839
+ * JSPB instance for transitional soy proto support:
3840
+ * http://goto/soy-param-migration
3841
+ * @return {!Object}
3842
+ */
3843
+ proto.ord.Texture.prototype.toObject = function(opt_includeInstance) {
3844
+ return proto.ord.Texture.toObject(opt_includeInstance, this);
3845
+ };
3846
+
3847
+
3848
+ /**
3849
+ * Static version of the {@see toObject} method.
3850
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3851
+ * the JSPB instance for transitional soy proto support:
3852
+ * http://goto/soy-param-migration
3853
+ * @param {!proto.ord.Texture} msg The msg instance to transform.
3854
+ * @return {!Object}
3855
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3856
+ */
3857
+ proto.ord.Texture.toObject = function(includeInstance, msg) {
3858
+ var f, obj = {
3859
+ type: jspb.Message.getFieldWithDefault(msg, 1, 0),
3860
+ details: jspb.Message.getFieldWithDefault(msg, 2, "")
3861
+ };
3862
+
3863
+ if (includeInstance) {
3864
+ obj.$jspbMessageInstance = msg;
3865
+ }
3866
+ return obj;
3867
+ };
3868
+ }
3869
+
3870
+
3871
+ /**
3872
+ * Deserializes binary data (in protobuf wire format).
3873
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3874
+ * @return {!proto.ord.Texture}
3875
+ */
3876
+ proto.ord.Texture.deserializeBinary = function(bytes) {
3877
+ var reader = new jspb.BinaryReader(bytes);
3878
+ var msg = new proto.ord.Texture;
3879
+ return proto.ord.Texture.deserializeBinaryFromReader(msg, reader);
3880
+ };
3881
+
3882
+
3883
+ /**
3884
+ * Deserializes binary data (in protobuf wire format) from the
3885
+ * given reader into the given message object.
3886
+ * @param {!proto.ord.Texture} msg The message object to deserialize into.
3887
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3888
+ * @return {!proto.ord.Texture}
3889
+ */
3890
+ proto.ord.Texture.deserializeBinaryFromReader = function(msg, reader) {
3891
+ while (reader.nextField()) {
3892
+ if (reader.isEndGroup()) {
3893
+ break;
3894
+ }
3895
+ var field = reader.getFieldNumber();
3896
+ switch (field) {
3897
+ case 1:
3898
+ var value = /** @type {!proto.ord.Texture.TextureType} */ (reader.readEnum());
3899
+ msg.setType(value);
3900
+ break;
3901
+ case 2:
3902
+ var value = /** @type {string} */ (reader.readString());
3903
+ msg.setDetails(value);
3904
+ break;
3905
+ default:
3906
+ reader.skipField();
3907
+ break;
3908
+ }
3909
+ }
3910
+ return msg;
3911
+ };
3912
+
3913
+
3914
+ /**
3915
+ * Serializes the message to binary data (in protobuf wire format).
3916
+ * @return {!Uint8Array}
3917
+ */
3918
+ proto.ord.Texture.prototype.serializeBinary = function() {
3919
+ var writer = new jspb.BinaryWriter();
3920
+ proto.ord.Texture.serializeBinaryToWriter(this, writer);
3921
+ return writer.getResultBuffer();
3922
+ };
3923
+
3924
+
3925
+ /**
3926
+ * Serializes the given message to binary data (in protobuf wire
3927
+ * format), writing to the given BinaryWriter.
3928
+ * @param {!proto.ord.Texture} message
3929
+ * @param {!jspb.BinaryWriter} writer
3930
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3931
+ */
3932
+ proto.ord.Texture.serializeBinaryToWriter = function(message, writer) {
3933
+ var f = undefined;
3934
+ f = message.getType();
3935
+ if (f !== 0.0) {
3936
+ writer.writeEnum(
3937
+ 1,
3938
+ f
3939
+ );
3940
+ }
3941
+ f = message.getDetails();
3942
+ if (f.length > 0) {
3943
+ writer.writeString(
3944
+ 2,
3945
+ f
3946
+ );
3947
+ }
3948
+ };
3949
+
3950
+
3951
+ /**
3952
+ * @enum {number}
3953
+ */
3954
+ proto.ord.Texture.TextureType = {
3955
+ UNSPECIFIED: 0,
3956
+ CUSTOM: 1,
3957
+ POWDER: 2,
3958
+ CRYSTAL: 3,
3959
+ OIL: 4,
3960
+ AMORPHOUS_SOLID: 5,
3961
+ FOAM: 6,
3962
+ WAX: 7,
3963
+ SEMI_SOLID: 8,
3964
+ SOLID: 9,
3965
+ LIQUID: 10,
3966
+ GAS: 11
3967
+ };
3968
+
3969
+ /**
3970
+ * optional TextureType type = 1;
3971
+ * @return {!proto.ord.Texture.TextureType}
3972
+ */
3973
+ proto.ord.Texture.prototype.getType = function() {
3974
+ return /** @type {!proto.ord.Texture.TextureType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3975
+ };
3976
+
3977
+
3978
+ /**
3979
+ * @param {!proto.ord.Texture.TextureType} value
3980
+ * @return {!proto.ord.Texture} returns this
3981
+ */
3982
+ proto.ord.Texture.prototype.setType = function(value) {
3983
+ return jspb.Message.setProto3EnumField(this, 1, value);
3984
+ };
3985
+
3986
+
3987
+ /**
3988
+ * optional string details = 2;
3989
+ * @return {string}
3990
+ */
3991
+ proto.ord.Texture.prototype.getDetails = function() {
3992
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3993
+ };
3994
+
3995
+
3996
+ /**
3997
+ * @param {string} value
3998
+ * @return {!proto.ord.Texture} returns this
3999
+ */
4000
+ proto.ord.Texture.prototype.setDetails = function(value) {
4001
+ return jspb.Message.setProto3StringField(this, 2, value);
4002
+ };
4003
+
4004
+
4005
+
4006
+
4007
+
3779
4008
  if (jspb.Message.GENERATE_TO_OBJECT) {
3780
4009
  /**
3781
4010
  * Creates an object representation of this proto.
@@ -3808,7 +4037,8 @@ proto.ord.CrudeComponent.toObject = function(includeInstance, msg) {
3808
4037
  reactionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3809
4038
  includesWorkup: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
3810
4039
  hasDerivedAmount: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
3811
- amount: (f = msg.getAmount()) && proto.ord.Amount.toObject(includeInstance, f)
4040
+ amount: (f = msg.getAmount()) && proto.ord.Amount.toObject(includeInstance, f),
4041
+ texture: (f = msg.getTexture()) && proto.ord.Texture.toObject(includeInstance, f)
3812
4042
  };
3813
4043
 
3814
4044
  if (includeInstance) {
@@ -3862,6 +4092,11 @@ proto.ord.CrudeComponent.deserializeBinaryFromReader = function(msg, reader) {
3862
4092
  reader.readMessage(value,proto.ord.Amount.deserializeBinaryFromReader);
3863
4093
  msg.setAmount(value);
3864
4094
  break;
4095
+ case 5:
4096
+ var value = new proto.ord.Texture;
4097
+ reader.readMessage(value,proto.ord.Texture.deserializeBinaryFromReader);
4098
+ msg.setTexture(value);
4099
+ break;
3865
4100
  default:
3866
4101
  reader.skipField();
3867
4102
  break;
@@ -3920,6 +4155,14 @@ proto.ord.CrudeComponent.serializeBinaryToWriter = function(message, writer) {
3920
4155
  proto.ord.Amount.serializeBinaryToWriter
3921
4156
  );
3922
4157
  }
4158
+ f = message.getTexture();
4159
+ if (f != null) {
4160
+ writer.writeMessage(
4161
+ 5,
4162
+ f,
4163
+ proto.ord.Texture.serializeBinaryToWriter
4164
+ );
4165
+ }
3923
4166
  };
3924
4167
 
3925
4168
 
@@ -4050,6 +4293,43 @@ proto.ord.CrudeComponent.prototype.hasAmount = function() {
4050
4293
  };
4051
4294
 
4052
4295
 
4296
+ /**
4297
+ * optional Texture texture = 5;
4298
+ * @return {?proto.ord.Texture}
4299
+ */
4300
+ proto.ord.CrudeComponent.prototype.getTexture = function() {
4301
+ return /** @type{?proto.ord.Texture} */ (
4302
+ jspb.Message.getWrapperField(this, proto.ord.Texture, 5));
4303
+ };
4304
+
4305
+
4306
+ /**
4307
+ * @param {?proto.ord.Texture|undefined} value
4308
+ * @return {!proto.ord.CrudeComponent} returns this
4309
+ */
4310
+ proto.ord.CrudeComponent.prototype.setTexture = function(value) {
4311
+ return jspb.Message.setWrapperField(this, 5, value);
4312
+ };
4313
+
4314
+
4315
+ /**
4316
+ * Clears the message field making it undefined.
4317
+ * @return {!proto.ord.CrudeComponent} returns this
4318
+ */
4319
+ proto.ord.CrudeComponent.prototype.clearTexture = function() {
4320
+ return this.setTexture(undefined);
4321
+ };
4322
+
4323
+
4324
+ /**
4325
+ * Returns whether this field is set.
4326
+ * @return {boolean}
4327
+ */
4328
+ proto.ord.CrudeComponent.prototype.hasTexture = function() {
4329
+ return jspb.Message.getField(this, 5) != null;
4330
+ };
4331
+
4332
+
4053
4333
 
4054
4334
  /**
4055
4335
  * List of repeated fields within this message type.
@@ -4098,7 +4378,8 @@ proto.ord.Compound.toObject = function(includeInstance, msg) {
4098
4378
  proto.ord.CompoundPreparation.toObject, includeInstance),
4099
4379
  source: (f = msg.getSource()) && proto.ord.Compound.Source.toObject(includeInstance, f),
4100
4380
  featuresMap: (f = msg.getFeaturesMap()) ? f.toObject(includeInstance, proto.ord.Data.toObject) : [],
4101
- analysesMap: (f = msg.getAnalysesMap()) ? f.toObject(includeInstance, proto.ord.Analysis.toObject) : []
4381
+ analysesMap: (f = msg.getAnalysesMap()) ? f.toObject(includeInstance, proto.ord.Analysis.toObject) : [],
4382
+ texture: (f = msg.getTexture()) && proto.ord.Texture.toObject(includeInstance, f)
4102
4383
  };
4103
4384
 
4104
4385
  if (includeInstance) {
@@ -4175,6 +4456,11 @@ proto.ord.Compound.deserializeBinaryFromReader = function(msg, reader) {
4175
4456
  jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.ord.Analysis.deserializeBinaryFromReader, "", new proto.ord.Analysis());
4176
4457
  });
4177
4458
  break;
4459
+ case 9:
4460
+ var value = new proto.ord.Texture;
4461
+ reader.readMessage(value,proto.ord.Texture.deserializeBinaryFromReader);
4462
+ msg.setTexture(value);
4463
+ break;
4178
4464
  default:
4179
4465
  reader.skipField();
4180
4466
  break;
@@ -4258,6 +4544,14 @@ proto.ord.Compound.serializeBinaryToWriter = function(message, writer) {
4258
4544
  if (f && f.getLength() > 0) {
4259
4545
  f.serializeBinary(8, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.ord.Analysis.serializeBinaryToWriter);
4260
4546
  }
4547
+ f = message.getTexture();
4548
+ if (f != null) {
4549
+ writer.writeMessage(
4550
+ 9,
4551
+ f,
4552
+ proto.ord.Texture.serializeBinaryToWriter
4553
+ );
4554
+ }
4261
4555
  };
4262
4556
 
4263
4557
 
@@ -4701,6 +4995,43 @@ proto.ord.Compound.prototype.clearAnalysesMap = function() {
4701
4995
  };
4702
4996
 
4703
4997
 
4998
+ /**
4999
+ * optional Texture texture = 9;
5000
+ * @return {?proto.ord.Texture}
5001
+ */
5002
+ proto.ord.Compound.prototype.getTexture = function() {
5003
+ return /** @type{?proto.ord.Texture} */ (
5004
+ jspb.Message.getWrapperField(this, proto.ord.Texture, 9));
5005
+ };
5006
+
5007
+
5008
+ /**
5009
+ * @param {?proto.ord.Texture|undefined} value
5010
+ * @return {!proto.ord.Compound} returns this
5011
+ */
5012
+ proto.ord.Compound.prototype.setTexture = function(value) {
5013
+ return jspb.Message.setWrapperField(this, 9, value);
5014
+ };
5015
+
5016
+
5017
+ /**
5018
+ * Clears the message field making it undefined.
5019
+ * @return {!proto.ord.Compound} returns this
5020
+ */
5021
+ proto.ord.Compound.prototype.clearTexture = function() {
5022
+ return this.setTexture(undefined);
5023
+ };
5024
+
5025
+
5026
+ /**
5027
+ * Returns whether this field is set.
5028
+ * @return {boolean}
5029
+ */
5030
+ proto.ord.Compound.prototype.hasTexture = function() {
5031
+ return jspb.Message.getField(this, 9) != null;
5032
+ };
5033
+
5034
+
4704
5035
 
4705
5036
 
4706
5037
 
@@ -12759,7 +13090,7 @@ proto.ord.ProductCompound.toObject = function(includeInstance, msg) {
12759
13090
  measurementsList: jspb.Message.toObjectList(msg.getMeasurementsList(),
12760
13091
  proto.ord.ProductMeasurement.toObject, includeInstance),
12761
13092
  isolatedColor: jspb.Message.getFieldWithDefault(msg, 4, ""),
12762
- texture: (f = msg.getTexture()) && proto.ord.ProductCompound.Texture.toObject(includeInstance, f),
13093
+ texture: (f = msg.getTexture()) && proto.ord.Texture.toObject(includeInstance, f),
12763
13094
  featuresMap: (f = msg.getFeaturesMap()) ? f.toObject(includeInstance, proto.ord.Data.toObject) : [],
12764
13095
  reactionRole: jspb.Message.getFieldWithDefault(msg, 7, 0)
12765
13096
  };
@@ -12817,8 +13148,8 @@ proto.ord.ProductCompound.deserializeBinaryFromReader = function(msg, reader) {
12817
13148
  msg.setIsolatedColor(value);
12818
13149
  break;
12819
13150
  case 5:
12820
- var value = new proto.ord.ProductCompound.Texture;
12821
- reader.readMessage(value,proto.ord.ProductCompound.Texture.deserializeBinaryFromReader);
13151
+ var value = new proto.ord.Texture;
13152
+ reader.readMessage(value,proto.ord.Texture.deserializeBinaryFromReader);
12822
13153
  msg.setTexture(value);
12823
13154
  break;
12824
13155
  case 6:
@@ -12895,7 +13226,7 @@ proto.ord.ProductCompound.serializeBinaryToWriter = function(message, writer) {
12895
13226
  writer.writeMessage(
12896
13227
  5,
12897
13228
  f,
12898
- proto.ord.ProductCompound.Texture.serializeBinaryToWriter
13229
+ proto.ord.Texture.serializeBinaryToWriter
12899
13230
  );
12900
13231
  }
12901
13232
  f = message.getFeaturesMap(true);
@@ -12912,183 +13243,6 @@ proto.ord.ProductCompound.serializeBinaryToWriter = function(message, writer) {
12912
13243
  };
12913
13244
 
12914
13245
 
12915
-
12916
-
12917
-
12918
- if (jspb.Message.GENERATE_TO_OBJECT) {
12919
- /**
12920
- * Creates an object representation of this proto.
12921
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
12922
- * Optional fields that are not set will be set to undefined.
12923
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12924
- * For the list of reserved names please see:
12925
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12926
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12927
- * JSPB instance for transitional soy proto support:
12928
- * http://goto/soy-param-migration
12929
- * @return {!Object}
12930
- */
12931
- proto.ord.ProductCompound.Texture.prototype.toObject = function(opt_includeInstance) {
12932
- return proto.ord.ProductCompound.Texture.toObject(opt_includeInstance, this);
12933
- };
12934
-
12935
-
12936
- /**
12937
- * Static version of the {@see toObject} method.
12938
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12939
- * the JSPB instance for transitional soy proto support:
12940
- * http://goto/soy-param-migration
12941
- * @param {!proto.ord.ProductCompound.Texture} msg The msg instance to transform.
12942
- * @return {!Object}
12943
- * @suppress {unusedLocalVariables} f is only used for nested messages
12944
- */
12945
- proto.ord.ProductCompound.Texture.toObject = function(includeInstance, msg) {
12946
- var f, obj = {
12947
- type: jspb.Message.getFieldWithDefault(msg, 1, 0),
12948
- details: jspb.Message.getFieldWithDefault(msg, 2, "")
12949
- };
12950
-
12951
- if (includeInstance) {
12952
- obj.$jspbMessageInstance = msg;
12953
- }
12954
- return obj;
12955
- };
12956
- }
12957
-
12958
-
12959
- /**
12960
- * Deserializes binary data (in protobuf wire format).
12961
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
12962
- * @return {!proto.ord.ProductCompound.Texture}
12963
- */
12964
- proto.ord.ProductCompound.Texture.deserializeBinary = function(bytes) {
12965
- var reader = new jspb.BinaryReader(bytes);
12966
- var msg = new proto.ord.ProductCompound.Texture;
12967
- return proto.ord.ProductCompound.Texture.deserializeBinaryFromReader(msg, reader);
12968
- };
12969
-
12970
-
12971
- /**
12972
- * Deserializes binary data (in protobuf wire format) from the
12973
- * given reader into the given message object.
12974
- * @param {!proto.ord.ProductCompound.Texture} msg The message object to deserialize into.
12975
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12976
- * @return {!proto.ord.ProductCompound.Texture}
12977
- */
12978
- proto.ord.ProductCompound.Texture.deserializeBinaryFromReader = function(msg, reader) {
12979
- while (reader.nextField()) {
12980
- if (reader.isEndGroup()) {
12981
- break;
12982
- }
12983
- var field = reader.getFieldNumber();
12984
- switch (field) {
12985
- case 1:
12986
- var value = /** @type {!proto.ord.ProductCompound.Texture.TextureType} */ (reader.readEnum());
12987
- msg.setType(value);
12988
- break;
12989
- case 2:
12990
- var value = /** @type {string} */ (reader.readString());
12991
- msg.setDetails(value);
12992
- break;
12993
- default:
12994
- reader.skipField();
12995
- break;
12996
- }
12997
- }
12998
- return msg;
12999
- };
13000
-
13001
-
13002
- /**
13003
- * Serializes the message to binary data (in protobuf wire format).
13004
- * @return {!Uint8Array}
13005
- */
13006
- proto.ord.ProductCompound.Texture.prototype.serializeBinary = function() {
13007
- var writer = new jspb.BinaryWriter();
13008
- proto.ord.ProductCompound.Texture.serializeBinaryToWriter(this, writer);
13009
- return writer.getResultBuffer();
13010
- };
13011
-
13012
-
13013
- /**
13014
- * Serializes the given message to binary data (in protobuf wire
13015
- * format), writing to the given BinaryWriter.
13016
- * @param {!proto.ord.ProductCompound.Texture} message
13017
- * @param {!jspb.BinaryWriter} writer
13018
- * @suppress {unusedLocalVariables} f is only used for nested messages
13019
- */
13020
- proto.ord.ProductCompound.Texture.serializeBinaryToWriter = function(message, writer) {
13021
- var f = undefined;
13022
- f = message.getType();
13023
- if (f !== 0.0) {
13024
- writer.writeEnum(
13025
- 1,
13026
- f
13027
- );
13028
- }
13029
- f = message.getDetails();
13030
- if (f.length > 0) {
13031
- writer.writeString(
13032
- 2,
13033
- f
13034
- );
13035
- }
13036
- };
13037
-
13038
-
13039
- /**
13040
- * @enum {number}
13041
- */
13042
- proto.ord.ProductCompound.Texture.TextureType = {
13043
- UNSPECIFIED: 0,
13044
- CUSTOM: 1,
13045
- POWDER: 2,
13046
- CRYSTAL: 3,
13047
- OIL: 4,
13048
- AMORPHOUS_SOLID: 5,
13049
- FOAM: 6,
13050
- WAX: 7,
13051
- SEMI_SOLID: 8,
13052
- SOLID: 9,
13053
- LIQUID: 10
13054
- };
13055
-
13056
- /**
13057
- * optional TextureType type = 1;
13058
- * @return {!proto.ord.ProductCompound.Texture.TextureType}
13059
- */
13060
- proto.ord.ProductCompound.Texture.prototype.getType = function() {
13061
- return /** @type {!proto.ord.ProductCompound.Texture.TextureType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
13062
- };
13063
-
13064
-
13065
- /**
13066
- * @param {!proto.ord.ProductCompound.Texture.TextureType} value
13067
- * @return {!proto.ord.ProductCompound.Texture} returns this
13068
- */
13069
- proto.ord.ProductCompound.Texture.prototype.setType = function(value) {
13070
- return jspb.Message.setProto3EnumField(this, 1, value);
13071
- };
13072
-
13073
-
13074
- /**
13075
- * optional string details = 2;
13076
- * @return {string}
13077
- */
13078
- proto.ord.ProductCompound.Texture.prototype.getDetails = function() {
13079
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
13080
- };
13081
-
13082
-
13083
- /**
13084
- * @param {string} value
13085
- * @return {!proto.ord.ProductCompound.Texture} returns this
13086
- */
13087
- proto.ord.ProductCompound.Texture.prototype.setDetails = function(value) {
13088
- return jspb.Message.setProto3StringField(this, 2, value);
13089
- };
13090
-
13091
-
13092
13246
  /**
13093
13247
  * repeated CompoundIdentifier identifiers = 1;
13094
13248
  * @return {!Array<!proto.ord.CompoundIdentifier>}
@@ -13221,16 +13375,16 @@ proto.ord.ProductCompound.prototype.setIsolatedColor = function(value) {
13221
13375
 
13222
13376
  /**
13223
13377
  * optional Texture texture = 5;
13224
- * @return {?proto.ord.ProductCompound.Texture}
13378
+ * @return {?proto.ord.Texture}
13225
13379
  */
13226
13380
  proto.ord.ProductCompound.prototype.getTexture = function() {
13227
- return /** @type{?proto.ord.ProductCompound.Texture} */ (
13228
- jspb.Message.getWrapperField(this, proto.ord.ProductCompound.Texture, 5));
13381
+ return /** @type{?proto.ord.Texture} */ (
13382
+ jspb.Message.getWrapperField(this, proto.ord.Texture, 5));
13229
13383
  };
13230
13384
 
13231
13385
 
13232
13386
  /**
13233
- * @param {?proto.ord.ProductCompound.Texture|undefined} value
13387
+ * @param {?proto.ord.Texture|undefined} value
13234
13388
  * @return {!proto.ord.ProductCompound} returns this
13235
13389
  */
13236
13390
  proto.ord.ProductCompound.prototype.setTexture = function(value) {