string sampleCode = 1;
- * @return The sampleCode.
- */
- String getSampleCode();
- /**
- * string sampleCode = 1;
- * @return The bytes for sampleCode.
- */
- com.google.protobuf.ByteString
- getSampleCodeBytes();
-
- /**
- * string qcObject = 2;
- * @return The qcObject.
- */
- String getQcObject();
- /**
- * string qcObject = 2;
- * @return The bytes for qcObject.
- */
- com.google.protobuf.ByteString
- getQcObjectBytes();
-
- /**
- * string sampleTime = 3;
- * @return The sampleTime.
- */
- String getSampleTime();
- /**
- * string sampleTime = 3;
- * @return The bytes for sampleTime.
- */
- com.google.protobuf.ByteString
- getSampleTimeBytes();
-
- /**
- * string batchCode = 4;
- * @return The batchCode.
- */
- String getBatchCode();
- /**
- * string batchCode = 4;
- * @return The bytes for batchCode.
- */
- com.google.protobuf.ByteString
- getBatchCodeBytes();
- }
- /**
- * Protobuf type {@code com.ktg.print.protocol.IQCPrintMessage}
- */
- public static final class IQCPrintMessage extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:com.ktg.print.protocol.IQCPrintMessage)
- IQCPrintMessageOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use IQCPrintMessage.newBuilder() to construct.
- private IQCPrintMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private IQCPrintMessage() {
- sampleCode_ = "";
- qcObject_ = "";
- sampleTime_ = "";
- batchCode_ = "";
+ private PrintMessageProto() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
}
- @Override
- @SuppressWarnings({"unused"})
- protected Object newInstance(
- UnusedPrivateParameter unused) {
- return new IQCPrintMessage();
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
}
+ public interface PrinterOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Printer)
+ com.google.protobuf.MessageOrBuilder {
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return PrintMessageProto.internal_static_com_ktg_print_protocol_IQCPrintMessage_descriptor;
- }
+ /**
+ * + *用data_type来识别哪个枚举类型(DataType是People的第一个属性,属性名是data_type) + *+ * + *
.Printer.DataType data_type = 1;
+ * @return The enum numeric value on the wire for dataType.
+ */
+ int getDataTypeValue();
+ /**
+ * + *用data_type来识别哪个枚举类型(DataType是People的第一个属性,属性名是data_type) + *+ * + *
.Printer.DataType data_type = 1;
+ * @return The dataType.
+ */
+ PrintMessageProto.Printer.DataType getDataType();
- @Override
- protected FieldAccessorTable
- internalGetFieldAccessorTable() {
- return PrintMessageProto.internal_static_com_ktg_print_protocol_IQCPrintMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- IQCPrintMessage.class, Builder.class);
- }
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ * @return Whether the printInfo field is set.
+ */
+ boolean hasPrintInfo();
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ * @return The printInfo.
+ */
+ PrintMessageProto.Printer.PrintInfo getPrintInfo();
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ */
+ PrintMessageProto.Printer.PrintInfoOrBuilder getPrintInfoOrBuilder();
- public static final int SAMPLECODE_FIELD_NUMBER = 1;
- private volatile Object sampleCode_;
- /**
- * string sampleCode = 1;
- * @return The sampleCode.
- */
- @Override
- public String getSampleCode() {
- Object ref = sampleCode_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sampleCode_ = s;
- return s;
- }
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ * @return Whether the iqcPrintMessage field is set.
+ */
+ boolean hasIqcPrintMessage();
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ * @return The iqcPrintMessage.
+ */
+ PrintMessageProto.Printer.IQCPrintMessage getIqcPrintMessage();
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ */
+ PrintMessageProto.Printer.IQCPrintMessageOrBuilder getIqcPrintMessageOrBuilder();
+
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ * @return Whether the pqcPrintMessage field is set.
+ */
+ boolean hasPqcPrintMessage();
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ * @return The pqcPrintMessage.
+ */
+ PrintMessageProto.Printer.PQCPrintMessage getPqcPrintMessage();
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ */
+ PrintMessageProto.Printer.PQCPrintMessageOrBuilder getPqcPrintMessageOrBuilder();
+
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ * @return Whether the oqPrintMessage field is set.
+ */
+ boolean hasOqPrintMessage();
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ * @return The oqPrintMessage.
+ */
+ PrintMessageProto.Printer.OQCPrintMessage getOqPrintMessage();
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ */
+ PrintMessageProto.Printer.OQCPrintMessageOrBuilder getOqPrintMessageOrBuilder();
+
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ * @return Whether the printClientInfoMessage field is set.
+ */
+ boolean hasPrintClientInfoMessage();
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ * @return The printClientInfoMessage.
+ */
+ PrintMessageProto.Printer.PrintClientInfoMessage getPrintClientInfoMessage();
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ */
+ PrintMessageProto.Printer.PrintClientInfoMessageOrBuilder getPrintClientInfoMessageOrBuilder();
+
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ * @return Whether the printingOfCirculation field is set.
+ */
+ boolean hasPrintingOfCirculation();
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ * @return The printingOfCirculation.
+ */
+ PrintMessageProto.Printer.PrintingOfCirculation getPrintingOfCirculation();
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ */
+ PrintMessageProto.Printer.PrintingOfCirculationOrBuilder getPrintingOfCirculationOrBuilder();
+
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ * @return Whether the materialProducts field is set.
+ */
+ boolean hasMaterialProducts();
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ * @return The materialProducts.
+ */
+ PrintMessageProto.Printer.MaterialProducts getMaterialProducts();
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ */
+ PrintMessageProto.Printer.MaterialProductsOrBuilder getMaterialProductsOrBuilder();
+
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ * @return Whether the warehouse field is set.
+ */
+ boolean hasWarehouse();
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ * @return The warehouse.
+ */
+ PrintMessageProto.Printer.Warehouse getWarehouse();
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ */
+ PrintMessageProto.Printer.WarehouseOrBuilder getWarehouseOrBuilder();
+
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ * @return Whether the warehouseLocation field is set.
+ */
+ boolean hasWarehouseLocation();
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ * @return The warehouseLocation.
+ */
+ PrintMessageProto.Printer.WarehouseLocation getWarehouseLocation();
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ */
+ PrintMessageProto.Printer.WarehouseLocationOrBuilder getWarehouseLocationOrBuilder();
+
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ * @return Whether the warehouseArea field is set.
+ */
+ boolean hasWarehouseArea();
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ * @return The warehouseArea.
+ */
+ PrintMessageProto.Printer.WarehouseArea getWarehouseArea();
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ */
+ PrintMessageProto.Printer.WarehouseAreaOrBuilder getWarehouseAreaOrBuilder();
+
+ /**
+ * .Printer.Equipment equipment = 11;
+ * @return Whether the equipment field is set.
+ */
+ boolean hasEquipment();
+ /**
+ * .Printer.Equipment equipment = 11;
+ * @return The equipment.
+ */
+ PrintMessageProto.Printer.Equipment getEquipment();
+ /**
+ * .Printer.Equipment equipment = 11;
+ */
+ PrintMessageProto.Printer.EquipmentOrBuilder getEquipmentOrBuilder();
+
+ /**
+ * .Printer.Workstation workstation = 12;
+ * @return Whether the workstation field is set.
+ */
+ boolean hasWorkstation();
+ /**
+ * .Printer.Workstation workstation = 12;
+ * @return The workstation.
+ */
+ PrintMessageProto.Printer.Workstation getWorkstation();
+ /**
+ * .Printer.Workstation workstation = 12;
+ */
+ PrintMessageProto.Printer.WorkstationOrBuilder getWorkstationOrBuilder();
+
+ public PrintMessageProto.Printer.DataBodyCase getDataBodyCase();
}
/**
- * string sampleCode = 1;
- * @return The bytes for sampleCode.
+ * Protobuf type {@code Printer}
*/
- @Override
- public com.google.protobuf.ByteString
- getSampleCodeBytes() {
- Object ref = sampleCode_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sampleCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int QCOBJECT_FIELD_NUMBER = 2;
- private volatile Object qcObject_;
- /**
- * string qcObject = 2;
- * @return The qcObject.
- */
- @Override
- public String getQcObject() {
- Object ref = qcObject_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- qcObject_ = s;
- return s;
- }
- }
- /**
- * string qcObject = 2;
- * @return The bytes for qcObject.
- */
- @Override
- public com.google.protobuf.ByteString
- getQcObjectBytes() {
- Object ref = qcObject_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- qcObject_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SAMPLETIME_FIELD_NUMBER = 3;
- private volatile Object sampleTime_;
- /**
- * string sampleTime = 3;
- * @return The sampleTime.
- */
- @Override
- public String getSampleTime() {
- Object ref = sampleTime_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sampleTime_ = s;
- return s;
- }
- }
- /**
- * string sampleTime = 3;
- * @return The bytes for sampleTime.
- */
- @Override
- public com.google.protobuf.ByteString
- getSampleTimeBytes() {
- Object ref = sampleTime_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sampleTime_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int BATCHCODE_FIELD_NUMBER = 4;
- private volatile Object batchCode_;
- /**
- * string batchCode = 4;
- * @return The batchCode.
- */
- @Override
- public String getBatchCode() {
- Object ref = batchCode_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- batchCode_ = s;
- return s;
- }
- }
- /**
- * string batchCode = 4;
- * @return The bytes for batchCode.
- */
- @Override
- public com.google.protobuf.ByteString
- getBatchCodeBytes() {
- Object ref = batchCode_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- batchCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleCode_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sampleCode_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(qcObject_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, qcObject_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleTime_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sampleTime_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchCode_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, batchCode_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleCode_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sampleCode_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(qcObject_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, qcObject_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleTime_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sampleTime_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchCode_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, batchCode_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof IQCPrintMessage)) {
- return super.equals(obj);
- }
- IQCPrintMessage other = (IQCPrintMessage) obj;
-
- if (!getSampleCode()
- .equals(other.getSampleCode())) return false;
- if (!getQcObject()
- .equals(other.getQcObject())) return false;
- if (!getSampleTime()
- .equals(other.getSampleTime())) return false;
- if (!getBatchCode()
- .equals(other.getBatchCode())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + SAMPLECODE_FIELD_NUMBER;
- hash = (53 * hash) + getSampleCode().hashCode();
- hash = (37 * hash) + QCOBJECT_FIELD_NUMBER;
- hash = (53 * hash) + getQcObject().hashCode();
- hash = (37 * hash) + SAMPLETIME_FIELD_NUMBER;
- hash = (53 * hash) + getSampleTime().hashCode();
- hash = (37 * hash) + BATCHCODE_FIELD_NUMBER;
- hash = (53 * hash) + getBatchCode().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static IQCPrintMessage parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static IQCPrintMessage parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static IQCPrintMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static IQCPrintMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static IQCPrintMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static IQCPrintMessage parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static IQCPrintMessage parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static IQCPrintMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static IQCPrintMessage parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static IQCPrintMessage parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static IQCPrintMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static IQCPrintMessage parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(IQCPrintMessage prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code com.ktg.print.protocol.IQCPrintMessage}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builderstring sampleCode = 1;
- * @return The sampleCode.
- */
- public String getSampleCode() {
- Object ref = sampleCode_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sampleCode_ = s;
- return s;
- } else {
- return (String) ref;
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
}
- }
- /**
- * string sampleCode = 1;
- * @return The bytes for sampleCode.
- */
- public com.google.protobuf.ByteString
- getSampleCodeBytes() {
- Object ref = sampleCode_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sampleCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string sampleCode = 1;
- * @param value The sampleCode to set.
- * @return This builder for chaining.
- */
- public Builder setSampleCode(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- sampleCode_ = value;
- onChanged();
- return this;
- }
- /**
- * string sampleCode = 1;
- * @return This builder for chaining.
- */
- public Builder clearSampleCode() {
-
- sampleCode_ = getDefaultInstance().getSampleCode();
- onChanged();
- return this;
- }
- /**
- * string sampleCode = 1;
- * @param value The bytes for sampleCode to set.
- * @return This builder for chaining.
- */
- public Builder setSampleCodeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- sampleCode_ = value;
- onChanged();
- return this;
- }
-
- private Object qcObject_ = "";
- /**
- * string qcObject = 2;
- * @return The qcObject.
- */
- public String getQcObject() {
- Object ref = qcObject_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- qcObject_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string qcObject = 2;
- * @return The bytes for qcObject.
- */
- public com.google.protobuf.ByteString
- getQcObjectBytes() {
- Object ref = qcObject_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- qcObject_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string qcObject = 2;
- * @param value The qcObject to set.
- * @return This builder for chaining.
- */
- public Builder setQcObject(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- qcObject_ = value;
- onChanged();
- return this;
- }
- /**
- * string qcObject = 2;
- * @return This builder for chaining.
- */
- public Builder clearQcObject() {
-
- qcObject_ = getDefaultInstance().getQcObject();
- onChanged();
- return this;
- }
- /**
- * string qcObject = 2;
- * @param value The bytes for qcObject to set.
- * @return This builder for chaining.
- */
- public Builder setQcObjectBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- qcObject_ = value;
- onChanged();
- return this;
- }
-
- private Object sampleTime_ = "";
- /**
- * string sampleTime = 3;
- * @return The sampleTime.
- */
- public String getSampleTime() {
- Object ref = sampleTime_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sampleTime_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string sampleTime = 3;
- * @return The bytes for sampleTime.
- */
- public com.google.protobuf.ByteString
- getSampleTimeBytes() {
- Object ref = sampleTime_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sampleTime_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string sampleTime = 3;
- * @param value The sampleTime to set.
- * @return This builder for chaining.
- */
- public Builder setSampleTime(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- sampleTime_ = value;
- onChanged();
- return this;
- }
- /**
- * string sampleTime = 3;
- * @return This builder for chaining.
- */
- public Builder clearSampleTime() {
-
- sampleTime_ = getDefaultInstance().getSampleTime();
- onChanged();
- return this;
- }
- /**
- * string sampleTime = 3;
- * @param value The bytes for sampleTime to set.
- * @return This builder for chaining.
- */
- public Builder setSampleTimeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- sampleTime_ = value;
- onChanged();
- return this;
- }
-
- private Object batchCode_ = "";
- /**
- * string batchCode = 4;
- * @return The batchCode.
- */
- public String getBatchCode() {
- Object ref = batchCode_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- batchCode_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string batchCode = 4;
- * @return The bytes for batchCode.
- */
- public com.google.protobuf.ByteString
- getBatchCodeBytes() {
- Object ref = batchCode_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- batchCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string batchCode = 4;
- * @param value The batchCode to set.
- * @return This builder for chaining.
- */
- public Builder setBatchCode(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- batchCode_ = value;
- onChanged();
- return this;
- }
- /**
- * string batchCode = 4;
- * @return This builder for chaining.
- */
- public Builder clearBatchCode() {
-
- batchCode_ = getDefaultInstance().getBatchCode();
- onChanged();
- return this;
- }
- /**
- * string batchCode = 4;
- * @param value The bytes for batchCode to set.
- * @return This builder for chaining.
- */
- public Builder setBatchCodeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- batchCode_ = value;
- onChanged();
- return this;
- }
- @Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:com.ktg.print.protocol.IQCPrintMessage)
- }
-
- // @@protoc_insertion_point(class_scope:com.ktg.print.protocol.IQCPrintMessage)
- private static final IQCPrintMessage DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new IQCPrintMessage();
- }
-
- public static IQCPrintMessage getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parserstring sampleCode = 1;
- * @return The sampleCode.
- */
- String getSampleCode();
- /**
- * string sampleCode = 1;
- * @return The bytes for sampleCode.
- */
- com.google.protobuf.ByteString
- getSampleCodeBytes();
-
- /**
- * string qcObject = 2;
- * @return The qcObject.
- */
- String getQcObject();
- /**
- * string qcObject = 2;
- * @return The bytes for qcObject.
- */
- com.google.protobuf.ByteString
- getQcObjectBytes();
-
- /**
- * string sampleTime = 3;
- * @return The sampleTime.
- */
- String getSampleTime();
- /**
- * string sampleTime = 3;
- * @return The bytes for sampleTime.
- */
- com.google.protobuf.ByteString
- getSampleTimeBytes();
-
- /**
- * string sampleLocation = 4;
- * @return The sampleLocation.
- */
- String getSampleLocation();
- /**
- * string sampleLocation = 4;
- * @return The bytes for sampleLocation.
- */
- com.google.protobuf.ByteString
- getSampleLocationBytes();
- }
- /**
- * Protobuf type {@code com.ktg.print.protocol.PQCPrintMessage}
- */
- public static final class PQCPrintMessage extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:com.ktg.print.protocol.PQCPrintMessage)
- PQCPrintMessageOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use PQCPrintMessage.newBuilder() to construct.
- private PQCPrintMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private PQCPrintMessage() {
- sampleCode_ = "";
- qcObject_ = "";
- sampleTime_ = "";
- sampleLocation_ = "";
- }
-
- @Override
- @SuppressWarnings({"unused"})
- protected Object newInstance(
- UnusedPrivateParameter unused) {
- return new PQCPrintMessage();
- }
-
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- public static final com.google.protobuf.Descriptors.Descriptor
+ public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return PrintMessageProto.internal_static_com_ktg_print_protocol_PQCPrintMessage_descriptor;
- }
+ return PrintMessageProto.internal_static_Printer_descriptor;
+ }
- @Override
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return PrintMessageProto.internal_static_com_ktg_print_protocol_PQCPrintMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- PQCPrintMessage.class, Builder.class);
- }
-
- public static final int SAMPLECODE_FIELD_NUMBER = 1;
- private volatile Object sampleCode_;
- /**
- * string sampleCode = 1;
- * @return The sampleCode.
- */
- @Override
- public String getSampleCode() {
- Object ref = sampleCode_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sampleCode_ = s;
- return s;
- }
- }
- /**
- * string sampleCode = 1;
- * @return The bytes for sampleCode.
- */
- @Override
- public com.google.protobuf.ByteString
- getSampleCodeBytes() {
- Object ref = sampleCode_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sampleCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int QCOBJECT_FIELD_NUMBER = 2;
- private volatile Object qcObject_;
- /**
- * string qcObject = 2;
- * @return The qcObject.
- */
- @Override
- public String getQcObject() {
- Object ref = qcObject_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- qcObject_ = s;
- return s;
- }
- }
- /**
- * string qcObject = 2;
- * @return The bytes for qcObject.
- */
- @Override
- public com.google.protobuf.ByteString
- getQcObjectBytes() {
- Object ref = qcObject_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- qcObject_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SAMPLETIME_FIELD_NUMBER = 3;
- private volatile Object sampleTime_;
- /**
- * string sampleTime = 3;
- * @return The sampleTime.
- */
- @Override
- public String getSampleTime() {
- Object ref = sampleTime_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sampleTime_ = s;
- return s;
- }
- }
- /**
- * string sampleTime = 3;
- * @return The bytes for sampleTime.
- */
- @Override
- public com.google.protobuf.ByteString
- getSampleTimeBytes() {
- Object ref = sampleTime_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sampleTime_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SAMPLELOCATION_FIELD_NUMBER = 4;
- private volatile Object sampleLocation_;
- /**
- * string sampleLocation = 4;
- * @return The sampleLocation.
- */
- @Override
- public String getSampleLocation() {
- Object ref = sampleLocation_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sampleLocation_ = s;
- return s;
- }
- }
- /**
- * string sampleLocation = 4;
- * @return The bytes for sampleLocation.
- */
- @Override
- public com.google.protobuf.ByteString
- getSampleLocationBytes() {
- Object ref = sampleLocation_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sampleLocation_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleCode_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sampleCode_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(qcObject_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, qcObject_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleTime_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sampleTime_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleLocation_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sampleLocation_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleCode_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sampleCode_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(qcObject_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, qcObject_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleTime_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sampleTime_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleLocation_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sampleLocation_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof PQCPrintMessage)) {
- return super.equals(obj);
- }
- PQCPrintMessage other = (PQCPrintMessage) obj;
-
- if (!getSampleCode()
- .equals(other.getSampleCode())) return false;
- if (!getQcObject()
- .equals(other.getQcObject())) return false;
- if (!getSampleTime()
- .equals(other.getSampleTime())) return false;
- if (!getSampleLocation()
- .equals(other.getSampleLocation())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + SAMPLECODE_FIELD_NUMBER;
- hash = (53 * hash) + getSampleCode().hashCode();
- hash = (37 * hash) + QCOBJECT_FIELD_NUMBER;
- hash = (53 * hash) + getQcObject().hashCode();
- hash = (37 * hash) + SAMPLETIME_FIELD_NUMBER;
- hash = (53 * hash) + getSampleTime().hashCode();
- hash = (37 * hash) + SAMPLELOCATION_FIELD_NUMBER;
- hash = (53 * hash) + getSampleLocation().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static PQCPrintMessage parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static PQCPrintMessage parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static PQCPrintMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static PQCPrintMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static PQCPrintMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static PQCPrintMessage parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static PQCPrintMessage parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static PQCPrintMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static PQCPrintMessage parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static PQCPrintMessage parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static PQCPrintMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static PQCPrintMessage parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(PQCPrintMessage prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code com.ktg.print.protocol.PQCPrintMessage}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder+ *proto3枚举enum编号从0开始 + *+ * + *
IQC_PrintMessage = 0;
+ */
+ IQC_PrintMessage(0),
+ /**
+ * PQC_PrintMessage = 1;
+ */
+ PQC_PrintMessage(1),
+ /**
+ * OQC_PrintMessage = 2;
+ */
+ OQC_PrintMessage(2),
+ /**
+ * Print_ClientInfoMessage = 3;
+ */
+ Print_ClientInfoMessage(3),
+ /**
+ * Printing_OfCirculation = 4;
+ */
+ Printing_OfCirculation(4),
+ /**
+ * Material_Products = 5;
+ */
+ Material_Products(5),
+ /**
+ * Warehouse_ = 6;
+ */
+ Warehouse_(6),
+ /**
+ * Warehouse_Location = 7;
+ */
+ Warehouse_Location(7),
+ /**
+ * Warehouse_Area = 8;
+ */
+ Warehouse_Area(8),
+ /**
+ * Equipment_ = 9;
+ */
+ Equipment_(9),
+ /**
+ * Workstation_ = 10;
+ */
+ Workstation_(10),
+ UNRECOGNIZED(-1),
+ ;
- @Override
- public Builder clone() {
- return super.clone();
- }
- @Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
- return super.setField(field, value);
- }
- @Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
- @Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
- @Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, Object value) {
- return super.setRepeatedField(field, index, value);
- }
- @Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- Object value) {
- return super.addRepeatedField(field, value);
- }
- @Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof PQCPrintMessage) {
- return mergeFrom((PQCPrintMessage)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
+ /**
+ * + *proto3枚举enum编号从0开始 + *+ * + *
IQC_PrintMessage = 0;
+ */
+ public static final int IQC_PrintMessage_VALUE = 0;
+ /**
+ * PQC_PrintMessage = 1;
+ */
+ public static final int PQC_PrintMessage_VALUE = 1;
+ /**
+ * OQC_PrintMessage = 2;
+ */
+ public static final int OQC_PrintMessage_VALUE = 2;
+ /**
+ * Print_ClientInfoMessage = 3;
+ */
+ public static final int Print_ClientInfoMessage_VALUE = 3;
+ /**
+ * Printing_OfCirculation = 4;
+ */
+ public static final int Printing_OfCirculation_VALUE = 4;
+ /**
+ * Material_Products = 5;
+ */
+ public static final int Material_Products_VALUE = 5;
+ /**
+ * Warehouse_ = 6;
+ */
+ public static final int Warehouse__VALUE = 6;
+ /**
+ * Warehouse_Location = 7;
+ */
+ public static final int Warehouse_Location_VALUE = 7;
+ /**
+ * Warehouse_Area = 8;
+ */
+ public static final int Warehouse_Area_VALUE = 8;
+ /**
+ * Equipment_ = 9;
+ */
+ public static final int Equipment__VALUE = 9;
+ /**
+ * Workstation_ = 10;
+ */
+ public static final int Workstation__VALUE = 10;
- public Builder mergeFrom(PQCPrintMessage other) {
- if (other == PQCPrintMessage.getDefaultInstance()) return this;
- if (!other.getSampleCode().isEmpty()) {
- sampleCode_ = other.sampleCode_;
- onChanged();
- }
- if (!other.getQcObject().isEmpty()) {
- qcObject_ = other.qcObject_;
- onChanged();
- }
- if (!other.getSampleTime().isEmpty()) {
- sampleTime_ = other.sampleTime_;
- onChanged();
- }
- if (!other.getSampleLocation().isEmpty()) {
- sampleLocation_ = other.sampleLocation_;
- onChanged();
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
- @Override
- public final boolean isInitialized() {
- return true;
- }
-
- @Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- sampleCode_ = input.readStringRequireUtf8();
-
- break;
- } // case 10
- case 18: {
- qcObject_ = input.readStringRequireUtf8();
-
- break;
- } // case 18
- case 26: {
- sampleTime_ = input.readStringRequireUtf8();
-
- break;
- } // case 26
- case 34: {
- sampleLocation_ = input.readStringRequireUtf8();
-
- break;
- } // case 34
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
}
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
+ return value;
+ }
- private Object sampleCode_ = "";
- /**
- * string sampleCode = 1;
- * @return The sampleCode.
- */
- public String getSampleCode() {
- Object ref = sampleCode_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sampleCode_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string sampleCode = 1;
- * @return The bytes for sampleCode.
- */
- public com.google.protobuf.ByteString
- getSampleCodeBytes() {
- Object ref = sampleCode_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sampleCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string sampleCode = 1;
- * @param value The sampleCode to set.
- * @return This builder for chaining.
- */
- public Builder setSampleCode(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- sampleCode_ = value;
- onChanged();
- return this;
- }
- /**
- * string sampleCode = 1;
- * @return This builder for chaining.
- */
- public Builder clearSampleCode() {
-
- sampleCode_ = getDefaultInstance().getSampleCode();
- onChanged();
- return this;
- }
- /**
- * string sampleCode = 1;
- * @param value The bytes for sampleCode to set.
- * @return This builder for chaining.
- */
- public Builder setSampleCodeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- sampleCode_ = value;
- onChanged();
- return this;
- }
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static DataType valueOf(int value) {
+ return forNumber(value);
+ }
- private Object qcObject_ = "";
- /**
- * string qcObject = 2;
- * @return The qcObject.
- */
- public String getQcObject() {
- Object ref = qcObject_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- qcObject_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string qcObject = 2;
- * @return The bytes for qcObject.
- */
- public com.google.protobuf.ByteString
- getQcObjectBytes() {
- Object ref = qcObject_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- qcObject_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string qcObject = 2;
- * @param value The qcObject to set.
- * @return This builder for chaining.
- */
- public Builder setQcObject(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- qcObject_ = value;
- onChanged();
- return this;
- }
- /**
- * string qcObject = 2;
- * @return This builder for chaining.
- */
- public Builder clearQcObject() {
-
- qcObject_ = getDefaultInstance().getQcObject();
- onChanged();
- return this;
- }
- /**
- * string qcObject = 2;
- * @param value The bytes for qcObject to set.
- * @return This builder for chaining.
- */
- public Builder setQcObjectBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- qcObject_ = value;
- onChanged();
- return this;
- }
-
- private Object sampleTime_ = "";
- /**
- * string sampleTime = 3;
- * @return The sampleTime.
- */
- public String getSampleTime() {
- Object ref = sampleTime_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sampleTime_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string sampleTime = 3;
- * @return The bytes for sampleTime.
- */
- public com.google.protobuf.ByteString
- getSampleTimeBytes() {
- Object ref = sampleTime_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sampleTime_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string sampleTime = 3;
- * @param value The sampleTime to set.
- * @return This builder for chaining.
- */
- public Builder setSampleTime(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- sampleTime_ = value;
- onChanged();
- return this;
- }
- /**
- * string sampleTime = 3;
- * @return This builder for chaining.
- */
- public Builder clearSampleTime() {
-
- sampleTime_ = getDefaultInstance().getSampleTime();
- onChanged();
- return this;
- }
- /**
- * string sampleTime = 3;
- * @param value The bytes for sampleTime to set.
- * @return This builder for chaining.
- */
- public Builder setSampleTimeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- sampleTime_ = value;
- onChanged();
- return this;
- }
-
- private Object sampleLocation_ = "";
- /**
- * string sampleLocation = 4;
- * @return The sampleLocation.
- */
- public String getSampleLocation() {
- Object ref = sampleLocation_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sampleLocation_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string sampleLocation = 4;
- * @return The bytes for sampleLocation.
- */
- public com.google.protobuf.ByteString
- getSampleLocationBytes() {
- Object ref = sampleLocation_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sampleLocation_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string sampleLocation = 4;
- * @param value The sampleLocation to set.
- * @return This builder for chaining.
- */
- public Builder setSampleLocation(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- sampleLocation_ = value;
- onChanged();
- return this;
- }
- /**
- * string sampleLocation = 4;
- * @return This builder for chaining.
- */
- public Builder clearSampleLocation() {
-
- sampleLocation_ = getDefaultInstance().getSampleLocation();
- onChanged();
- return this;
- }
- /**
- * string sampleLocation = 4;
- * @param value The bytes for sampleLocation to set.
- * @return This builder for chaining.
- */
- public Builder setSampleLocationBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- sampleLocation_ = value;
- onChanged();
- return this;
- }
- @Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:com.ktg.print.protocol.PQCPrintMessage)
- }
-
- // @@protoc_insertion_point(class_scope:com.ktg.print.protocol.PQCPrintMessage)
- private static final PQCPrintMessage DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new PQCPrintMessage();
- }
-
- public static PQCPrintMessage getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parserstring sampleCode = 1;
- * @return The sampleCode.
- */
- String getSampleCode();
- /**
- * string sampleCode = 1;
- * @return The bytes for sampleCode.
- */
- com.google.protobuf.ByteString
- getSampleCodeBytes();
-
- /**
- * string qcObject = 2;
- * @return The qcObject.
- */
- String getQcObject();
- /**
- * string qcObject = 2;
- * @return The bytes for qcObject.
- */
- com.google.protobuf.ByteString
- getQcObjectBytes();
-
- /**
- * string sampleTime = 3;
- * @return The sampleTime.
- */
- String getSampleTime();
- /**
- * string sampleTime = 3;
- * @return The bytes for sampleTime.
- */
- com.google.protobuf.ByteString
- getSampleTimeBytes();
-
- /**
- * string batchCode = 4;
- * @return The batchCode.
- */
- String getBatchCode();
- /**
- * string batchCode = 4;
- * @return The bytes for batchCode.
- */
- com.google.protobuf.ByteString
- getBatchCodeBytes();
-
- /**
- * string packageType = 5;
- * @return The packageType.
- */
- String getPackageType();
- /**
- * string packageType = 5;
- * @return The bytes for packageType.
- */
- com.google.protobuf.ByteString
- getPackageTypeBytes();
- }
- /**
- * Protobuf type {@code com.ktg.print.protocol.OQCPrintMessage}
- */
- public static final class OQCPrintMessage extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:com.ktg.print.protocol.OQCPrintMessage)
- OQCPrintMessageOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use OQCPrintMessage.newBuilder() to construct.
- private OQCPrintMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private OQCPrintMessage() {
- sampleCode_ = "";
- qcObject_ = "";
- sampleTime_ = "";
- batchCode_ = "";
- packageType_ = "";
- }
-
- @Override
- @SuppressWarnings({"unused"})
- protected Object newInstance(
- UnusedPrivateParameter unused) {
- return new OQCPrintMessage();
- }
-
- @Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return PrintMessageProto.internal_static_com_ktg_print_protocol_OQCPrintMessage_descriptor;
- }
-
- @Override
- protected FieldAccessorTable
- internalGetFieldAccessorTable() {
- return PrintMessageProto.internal_static_com_ktg_print_protocol_OQCPrintMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- OQCPrintMessage.class, Builder.class);
- }
-
- public static final int SAMPLECODE_FIELD_NUMBER = 1;
- private volatile Object sampleCode_;
- /**
- * string sampleCode = 1;
- * @return The sampleCode.
- */
- @Override
- public String getSampleCode() {
- Object ref = sampleCode_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sampleCode_ = s;
- return s;
- }
- }
- /**
- * string sampleCode = 1;
- * @return The bytes for sampleCode.
- */
- @Override
- public com.google.protobuf.ByteString
- getSampleCodeBytes() {
- Object ref = sampleCode_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sampleCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int QCOBJECT_FIELD_NUMBER = 2;
- private volatile Object qcObject_;
- /**
- * string qcObject = 2;
- * @return The qcObject.
- */
- @Override
- public String getQcObject() {
- Object ref = qcObject_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- qcObject_ = s;
- return s;
- }
- }
- /**
- * string qcObject = 2;
- * @return The bytes for qcObject.
- */
- @Override
- public com.google.protobuf.ByteString
- getQcObjectBytes() {
- Object ref = qcObject_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- qcObject_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SAMPLETIME_FIELD_NUMBER = 3;
- private volatile Object sampleTime_;
- /**
- * string sampleTime = 3;
- * @return The sampleTime.
- */
- @Override
- public String getSampleTime() {
- Object ref = sampleTime_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sampleTime_ = s;
- return s;
- }
- }
- /**
- * string sampleTime = 3;
- * @return The bytes for sampleTime.
- */
- @Override
- public com.google.protobuf.ByteString
- getSampleTimeBytes() {
- Object ref = sampleTime_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sampleTime_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int BATCHCODE_FIELD_NUMBER = 4;
- private volatile Object batchCode_;
- /**
- * string batchCode = 4;
- * @return The batchCode.
- */
- @Override
- public String getBatchCode() {
- Object ref = batchCode_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- batchCode_ = s;
- return s;
- }
- }
- /**
- * string batchCode = 4;
- * @return The bytes for batchCode.
- */
- @Override
- public com.google.protobuf.ByteString
- getBatchCodeBytes() {
- Object ref = batchCode_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- batchCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int PACKAGETYPE_FIELD_NUMBER = 5;
- private volatile Object packageType_;
- /**
- * string packageType = 5;
- * @return The packageType.
- */
- @Override
- public String getPackageType() {
- Object ref = packageType_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- packageType_ = s;
- return s;
- }
- }
- /**
- * string packageType = 5;
- * @return The bytes for packageType.
- */
- @Override
- public com.google.protobuf.ByteString
- getPackageTypeBytes() {
- Object ref = packageType_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- packageType_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleCode_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sampleCode_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(qcObject_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, qcObject_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleTime_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sampleTime_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchCode_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, batchCode_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageType_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 5, packageType_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleCode_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sampleCode_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(qcObject_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, qcObject_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleTime_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sampleTime_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchCode_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, batchCode_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageType_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, packageType_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof OQCPrintMessage)) {
- return super.equals(obj);
- }
- OQCPrintMessage other = (OQCPrintMessage) obj;
-
- if (!getSampleCode()
- .equals(other.getSampleCode())) return false;
- if (!getQcObject()
- .equals(other.getQcObject())) return false;
- if (!getSampleTime()
- .equals(other.getSampleTime())) return false;
- if (!getBatchCode()
- .equals(other.getBatchCode())) return false;
- if (!getPackageType()
- .equals(other.getPackageType())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + SAMPLECODE_FIELD_NUMBER;
- hash = (53 * hash) + getSampleCode().hashCode();
- hash = (37 * hash) + QCOBJECT_FIELD_NUMBER;
- hash = (53 * hash) + getQcObject().hashCode();
- hash = (37 * hash) + SAMPLETIME_FIELD_NUMBER;
- hash = (53 * hash) + getSampleTime().hashCode();
- hash = (37 * hash) + BATCHCODE_FIELD_NUMBER;
- hash = (53 * hash) + getBatchCode().hashCode();
- hash = (37 * hash) + PACKAGETYPE_FIELD_NUMBER;
- hash = (53 * hash) + getPackageType().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static OQCPrintMessage parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static OQCPrintMessage parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static OQCPrintMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static OQCPrintMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static OQCPrintMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static OQCPrintMessage parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static OQCPrintMessage parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static OQCPrintMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static OQCPrintMessage parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static OQCPrintMessage parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static OQCPrintMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static OQCPrintMessage parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(OQCPrintMessage prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code com.ktg.print.protocol.OQCPrintMessage}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builderstring sampleCode = 1;
- * @return The sampleCode.
- */
- public String getSampleCode() {
- Object ref = sampleCode_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sampleCode_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string sampleCode = 1;
- * @return The bytes for sampleCode.
- */
- public com.google.protobuf.ByteString
- getSampleCodeBytes() {
- Object ref = sampleCode_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sampleCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string sampleCode = 1;
- * @param value The sampleCode to set.
- * @return This builder for chaining.
- */
- public Builder setSampleCode(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- sampleCode_ = value;
- onChanged();
- return this;
- }
- /**
- * string sampleCode = 1;
- * @return This builder for chaining.
- */
- public Builder clearSampleCode() {
-
- sampleCode_ = getDefaultInstance().getSampleCode();
- onChanged();
- return this;
- }
- /**
- * string sampleCode = 1;
- * @param value The bytes for sampleCode to set.
- * @return This builder for chaining.
- */
- public Builder setSampleCodeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- sampleCode_ = value;
- onChanged();
- return this;
- }
+ public static com.google.protobuf.Internal.EnumLiteMapstring qcObject = 2;
- * @return The qcObject.
- */
- public String getQcObject() {
- Object ref = qcObject_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- qcObject_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string qcObject = 2;
- * @return The bytes for qcObject.
- */
- public com.google.protobuf.ByteString
- getQcObjectBytes() {
- Object ref = qcObject_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- qcObject_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string qcObject = 2;
- * @param value The qcObject to set.
- * @return This builder for chaining.
- */
- public Builder setQcObject(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- qcObject_ = value;
- onChanged();
- return this;
- }
- /**
- * string qcObject = 2;
- * @return This builder for chaining.
- */
- public Builder clearQcObject() {
-
- qcObject_ = getDefaultInstance().getQcObject();
- onChanged();
- return this;
- }
- /**
- * string qcObject = 2;
- * @param value The bytes for qcObject to set.
- * @return This builder for chaining.
- */
- public Builder setQcObjectBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- qcObject_ = value;
- onChanged();
- return this;
- }
-
- private Object sampleTime_ = "";
- /**
- * string sampleTime = 3;
- * @return The sampleTime.
- */
- public String getSampleTime() {
- Object ref = sampleTime_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sampleTime_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string sampleTime = 3;
- * @return The bytes for sampleTime.
- */
- public com.google.protobuf.ByteString
- getSampleTimeBytes() {
- Object ref = sampleTime_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sampleTime_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string sampleTime = 3;
- * @param value The sampleTime to set.
- * @return This builder for chaining.
- */
- public Builder setSampleTime(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- sampleTime_ = value;
- onChanged();
- return this;
- }
- /**
- * string sampleTime = 3;
- * @return This builder for chaining.
- */
- public Builder clearSampleTime() {
-
- sampleTime_ = getDefaultInstance().getSampleTime();
- onChanged();
- return this;
- }
- /**
- * string sampleTime = 3;
- * @param value The bytes for sampleTime to set.
- * @return This builder for chaining.
- */
- public Builder setSampleTimeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- sampleTime_ = value;
- onChanged();
- return this;
- }
-
- private Object batchCode_ = "";
- /**
- * string batchCode = 4;
- * @return The batchCode.
- */
- public String getBatchCode() {
- Object ref = batchCode_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- batchCode_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string batchCode = 4;
- * @return The bytes for batchCode.
- */
- public com.google.protobuf.ByteString
- getBatchCodeBytes() {
- Object ref = batchCode_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- batchCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string batchCode = 4;
- * @param value The batchCode to set.
- * @return This builder for chaining.
- */
- public Builder setBatchCode(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- batchCode_ = value;
- onChanged();
- return this;
- }
- /**
- * string batchCode = 4;
- * @return This builder for chaining.
- */
- public Builder clearBatchCode() {
-
- batchCode_ = getDefaultInstance().getBatchCode();
- onChanged();
- return this;
- }
- /**
- * string batchCode = 4;
- * @param value The bytes for batchCode to set.
- * @return This builder for chaining.
- */
- public Builder setBatchCodeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- batchCode_ = value;
- onChanged();
- return this;
- }
-
- private Object packageType_ = "";
- /**
- * string packageType = 5;
- * @return The packageType.
- */
- public String getPackageType() {
- Object ref = packageType_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- packageType_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string packageType = 5;
- * @return The bytes for packageType.
- */
- public com.google.protobuf.ByteString
- getPackageTypeBytes() {
- Object ref = packageType_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- packageType_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string packageType = 5;
- * @param value The packageType to set.
- * @return This builder for chaining.
- */
- public Builder setPackageType(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- packageType_ = value;
- onChanged();
- return this;
- }
- /**
- * string packageType = 5;
- * @return This builder for chaining.
- */
- public Builder clearPackageType() {
-
- packageType_ = getDefaultInstance().getPackageType();
- onChanged();
- return this;
- }
- /**
- * string packageType = 5;
- * @param value The bytes for packageType to set.
- * @return This builder for chaining.
- */
- public Builder setPackageTypeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- packageType_ = value;
- onChanged();
- return this;
- }
- @Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:com.ktg.print.protocol.OQCPrintMessage)
- }
-
- // @@protoc_insertion_point(class_scope:com.ktg.print.protocol.OQCPrintMessage)
- private static final OQCPrintMessage DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new OQCPrintMessage();
- }
-
- public static OQCPrintMessage getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parserstring ip = 1;
- * @return The ip.
- */
- String getIp();
- /**
- * string ip = 1;
- * @return The bytes for ip.
- */
- com.google.protobuf.ByteString
- getIpBytes();
-
- /**
- * string location = 2;
- * @return The location.
- */
- String getLocation();
- /**
- * string location = 2;
- * @return The bytes for location.
- */
- com.google.protobuf.ByteString
- getLocationBytes();
-
- /**
- * string sid = 3;
- * @return The sid.
- */
- String getSid();
- /**
- * string sid = 3;
- * @return The bytes for sid.
- */
- com.google.protobuf.ByteString
- getSidBytes();
- }
- /**
- * - *客户端信息 - *- * - * Protobuf type {@code com.ktg.print.protocol.PrintClientInfoMessage} - */ - public static final class PrintClientInfoMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:com.ktg.print.protocol.PrintClientInfoMessage) - PrintClientInfoMessageOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrintClientInfoMessage.newBuilder() to construct. - private PrintClientInfoMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private PrintClientInfoMessage() { - ip_ = ""; - location_ = ""; - sid_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new PrintClientInfoMessage(); - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return PrintMessageProto.internal_static_com_ktg_print_protocol_PrintClientInfoMessage_descriptor; - } - - @Override - protected FieldAccessorTable - internalGetFieldAccessorTable() { - return PrintMessageProto.internal_static_com_ktg_print_protocol_PrintClientInfoMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - PrintClientInfoMessage.class, Builder.class); - } - - public static final int IP_FIELD_NUMBER = 1; - private volatile Object ip_; - /** - *
string ip = 1;
- * @return The ip.
- */
- @Override
- public String getIp() {
- Object ref = ip_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- ip_ = s;
- return s;
- }
- }
- /**
- * string ip = 1;
- * @return The bytes for ip.
- */
- @Override
- public com.google.protobuf.ByteString
- getIpBytes() {
- Object ref = ip_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- ip_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int LOCATION_FIELD_NUMBER = 2;
- private volatile Object location_;
- /**
- * string location = 2;
- * @return The location.
- */
- @Override
- public String getLocation() {
- Object ref = location_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- location_ = s;
- return s;
- }
- }
- /**
- * string location = 2;
- * @return The bytes for location.
- */
- @Override
- public com.google.protobuf.ByteString
- getLocationBytes() {
- Object ref = location_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- location_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SID_FIELD_NUMBER = 3;
- private volatile Object sid_;
- /**
- * string sid = 3;
- * @return The sid.
- */
- @Override
- public String getSid() {
- Object ref = sid_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sid_ = s;
- return s;
- }
- }
- /**
- * string sid = 3;
- * @return The bytes for sid.
- */
- @Override
- public com.google.protobuf.ByteString
- getSidBytes() {
- Object ref = sid_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sid_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sid_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ip_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sid_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sid_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof PrintClientInfoMessage)) {
- return super.equals(obj);
- }
- PrintClientInfoMessage other = (PrintClientInfoMessage) obj;
-
- if (!getIp()
- .equals(other.getIp())) return false;
- if (!getLocation()
- .equals(other.getLocation())) return false;
- if (!getSid()
- .equals(other.getSid())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + IP_FIELD_NUMBER;
- hash = (53 * hash) + getIp().hashCode();
- hash = (37 * hash) + LOCATION_FIELD_NUMBER;
- hash = (53 * hash) + getLocation().hashCode();
- hash = (37 * hash) + SID_FIELD_NUMBER;
- hash = (53 * hash) + getSid().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static PrintClientInfoMessage parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static PrintClientInfoMessage parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static PrintClientInfoMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static PrintClientInfoMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static PrintClientInfoMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static PrintClientInfoMessage parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static PrintClientInfoMessage parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static PrintClientInfoMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static PrintClientInfoMessage parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static PrintClientInfoMessage parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static PrintClientInfoMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static PrintClientInfoMessage parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(PrintClientInfoMessage prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @Override
- protected Builder newBuilderForType(
- BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - *客户端信息 - *- * - * Protobuf type {@code com.ktg.print.protocol.PrintClientInfoMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
string ip = 1;
- * @return The ip.
- */
- public String getIp() {
- Object ref = ip_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- ip_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string ip = 1;
- * @return The bytes for ip.
- */
- public com.google.protobuf.ByteString
- getIpBytes() {
- Object ref = ip_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- ip_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string ip = 1;
- * @param value The ip to set.
- * @return This builder for chaining.
- */
- public Builder setIp(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- ip_ = value;
- onChanged();
- return this;
- }
- /**
- * string ip = 1;
- * @return This builder for chaining.
- */
- public Builder clearIp() {
-
- ip_ = getDefaultInstance().getIp();
- onChanged();
- return this;
- }
- /**
- * string ip = 1;
- * @param value The bytes for ip to set.
- * @return This builder for chaining.
- */
- public Builder setIpBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- ip_ = value;
- onChanged();
- return this;
- }
+ private static final DataType[] VALUES = values();
- private Object location_ = "";
- /**
- * string location = 2;
- * @return The location.
- */
- public String getLocation() {
- Object ref = location_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- location_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string location = 2;
- * @return The bytes for location.
- */
- public com.google.protobuf.ByteString
- getLocationBytes() {
- Object ref = location_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- location_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string location = 2;
- * @param value The location to set.
- * @return This builder for chaining.
- */
- public Builder setLocation(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- location_ = value;
- onChanged();
- return this;
- }
- /**
- * string location = 2;
- * @return This builder for chaining.
- */
- public Builder clearLocation() {
-
- location_ = getDefaultInstance().getLocation();
- onChanged();
- return this;
- }
- /**
- * string location = 2;
- * @param value The bytes for location to set.
- * @return This builder for chaining.
- */
- public Builder setLocationBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- location_ = value;
- onChanged();
- return this;
- }
+ public static DataType valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
- private Object sid_ = "";
- /**
- * string sid = 3;
- * @return The sid.
- */
- public String getSid() {
- Object ref = sid_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- sid_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * string sid = 3;
- * @return The bytes for sid.
- */
- public com.google.protobuf.ByteString
- getSidBytes() {
- Object ref = sid_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- sid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string sid = 3;
- * @param value The sid to set.
- * @return This builder for chaining.
- */
- public Builder setSid(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- sid_ = value;
- onChanged();
- return this;
- }
- /**
- * string sid = 3;
- * @return This builder for chaining.
- */
- public Builder clearSid() {
-
- sid_ = getDefaultInstance().getSid();
- onChanged();
- return this;
- }
- /**
- * string sid = 3;
- * @param value The bytes for sid to set.
- * @return This builder for chaining.
- */
- public Builder setSidBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- sid_ = value;
- onChanged();
- return this;
- }
- @Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
+ private final int value;
- @Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
+ private DataType(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:Printer.DataType)
+ }
+
+ public interface IQCPrintMessageOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Printer.IQCPrintMessage)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string sampleCode = 1;
+ * @return The sampleCode.
+ */
+ java.lang.String getSampleCode();
+ /**
+ * string sampleCode = 1;
+ * @return The bytes for sampleCode.
+ */
+ com.google.protobuf.ByteString
+ getSampleCodeBytes();
+
+ /**
+ * string qcObject = 2;
+ * @return The qcObject.
+ */
+ java.lang.String getQcObject();
+ /**
+ * string qcObject = 2;
+ * @return The bytes for qcObject.
+ */
+ com.google.protobuf.ByteString
+ getQcObjectBytes();
+
+ /**
+ * string sampleTime = 3;
+ * @return The sampleTime.
+ */
+ java.lang.String getSampleTime();
+ /**
+ * string sampleTime = 3;
+ * @return The bytes for sampleTime.
+ */
+ com.google.protobuf.ByteString
+ getSampleTimeBytes();
+
+ /**
+ * string batchCode = 4;
+ * @return The batchCode.
+ */
+ java.lang.String getBatchCode();
+ /**
+ * string batchCode = 4;
+ * @return The bytes for batchCode.
+ */
+ com.google.protobuf.ByteString
+ getBatchCodeBytes();
+ }
+ /**
+ * Protobuf type {@code Printer.IQCPrintMessage}
+ */
+ public static final class IQCPrintMessage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Printer.IQCPrintMessage)
+ IQCPrintMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use IQCPrintMessage.newBuilder() to construct.
+ private IQCPrintMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private IQCPrintMessage() {
+ sampleCode_ = "";
+ qcObject_ = "";
+ sampleTime_ = "";
+ batchCode_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new IQCPrintMessage();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private IQCPrintMessage(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sampleCode_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ qcObject_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sampleTime_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ batchCode_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return PrintMessageProto.internal_static_Printer_IQCPrintMessage_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return PrintMessageProto.internal_static_Printer_IQCPrintMessage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ PrintMessageProto.Printer.IQCPrintMessage.class, PrintMessageProto.Printer.IQCPrintMessage.Builder.class);
+ }
+
+ public static final int SAMPLECODE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object sampleCode_;
+ /**
+ * string sampleCode = 1;
+ * @return The sampleCode.
+ */
+ @java.lang.Override
+ public java.lang.String getSampleCode() {
+ java.lang.Object ref = sampleCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sampleCode_ = s;
+ return s;
+ }
+ }
+ /**
+ * string sampleCode = 1;
+ * @return The bytes for sampleCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSampleCodeBytes() {
+ java.lang.Object ref = sampleCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sampleCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int QCOBJECT_FIELD_NUMBER = 2;
+ private volatile java.lang.Object qcObject_;
+ /**
+ * string qcObject = 2;
+ * @return The qcObject.
+ */
+ @java.lang.Override
+ public java.lang.String getQcObject() {
+ java.lang.Object ref = qcObject_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ qcObject_ = s;
+ return s;
+ }
+ }
+ /**
+ * string qcObject = 2;
+ * @return The bytes for qcObject.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getQcObjectBytes() {
+ java.lang.Object ref = qcObject_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ qcObject_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SAMPLETIME_FIELD_NUMBER = 3;
+ private volatile java.lang.Object sampleTime_;
+ /**
+ * string sampleTime = 3;
+ * @return The sampleTime.
+ */
+ @java.lang.Override
+ public java.lang.String getSampleTime() {
+ java.lang.Object ref = sampleTime_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sampleTime_ = s;
+ return s;
+ }
+ }
+ /**
+ * string sampleTime = 3;
+ * @return The bytes for sampleTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSampleTimeBytes() {
+ java.lang.Object ref = sampleTime_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sampleTime_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BATCHCODE_FIELD_NUMBER = 4;
+ private volatile java.lang.Object batchCode_;
+ /**
+ * string batchCode = 4;
+ * @return The batchCode.
+ */
+ @java.lang.Override
+ public java.lang.String getBatchCode() {
+ java.lang.Object ref = batchCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ batchCode_ = s;
+ return s;
+ }
+ }
+ /**
+ * string batchCode = 4;
+ * @return The bytes for batchCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getBatchCodeBytes() {
+ java.lang.Object ref = batchCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ batchCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sampleCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(qcObject_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, qcObject_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleTime_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sampleTime_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, batchCode_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sampleCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(qcObject_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, qcObject_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleTime_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sampleTime_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, batchCode_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof PrintMessageProto.Printer.IQCPrintMessage)) {
+ return super.equals(obj);
+ }
+ PrintMessageProto.Printer.IQCPrintMessage other = (PrintMessageProto.Printer.IQCPrintMessage) obj;
+
+ if (!getSampleCode()
+ .equals(other.getSampleCode())) return false;
+ if (!getQcObject()
+ .equals(other.getQcObject())) return false;
+ if (!getSampleTime()
+ .equals(other.getSampleTime())) return false;
+ if (!getBatchCode()
+ .equals(other.getBatchCode())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SAMPLECODE_FIELD_NUMBER;
+ hash = (53 * hash) + getSampleCode().hashCode();
+ hash = (37 * hash) + QCOBJECT_FIELD_NUMBER;
+ hash = (53 * hash) + getQcObject().hashCode();
+ hash = (37 * hash) + SAMPLETIME_FIELD_NUMBER;
+ hash = (53 * hash) + getSampleTime().hashCode();
+ hash = (37 * hash) + BATCHCODE_FIELD_NUMBER;
+ hash = (53 * hash) + getBatchCode().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static PrintMessageProto.Printer.IQCPrintMessage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.IQCPrintMessage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.IQCPrintMessage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.IQCPrintMessage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.IQCPrintMessage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.IQCPrintMessage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.IQCPrintMessage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.IQCPrintMessage parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.IQCPrintMessage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.IQCPrintMessage parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.IQCPrintMessage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.IQCPrintMessage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(PrintMessageProto.Printer.IQCPrintMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Printer.IQCPrintMessage}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring sampleCode = 1;
+ * @return The sampleCode.
+ */
+ public java.lang.String getSampleCode() {
+ java.lang.Object ref = sampleCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sampleCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string sampleCode = 1;
+ * @return The bytes for sampleCode.
+ */
+ public com.google.protobuf.ByteString
+ getSampleCodeBytes() {
+ java.lang.Object ref = sampleCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sampleCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string sampleCode = 1;
+ * @param value The sampleCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSampleCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sampleCode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string sampleCode = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearSampleCode() {
+
+ sampleCode_ = getDefaultInstance().getSampleCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string sampleCode = 1;
+ * @param value The bytes for sampleCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSampleCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sampleCode_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object qcObject_ = "";
+ /**
+ * string qcObject = 2;
+ * @return The qcObject.
+ */
+ public java.lang.String getQcObject() {
+ java.lang.Object ref = qcObject_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ qcObject_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string qcObject = 2;
+ * @return The bytes for qcObject.
+ */
+ public com.google.protobuf.ByteString
+ getQcObjectBytes() {
+ java.lang.Object ref = qcObject_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ qcObject_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string qcObject = 2;
+ * @param value The qcObject to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQcObject(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ qcObject_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string qcObject = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearQcObject() {
+
+ qcObject_ = getDefaultInstance().getQcObject();
+ onChanged();
+ return this;
+ }
+ /**
+ * string qcObject = 2;
+ * @param value The bytes for qcObject to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQcObjectBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ qcObject_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sampleTime_ = "";
+ /**
+ * string sampleTime = 3;
+ * @return The sampleTime.
+ */
+ public java.lang.String getSampleTime() {
+ java.lang.Object ref = sampleTime_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sampleTime_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string sampleTime = 3;
+ * @return The bytes for sampleTime.
+ */
+ public com.google.protobuf.ByteString
+ getSampleTimeBytes() {
+ java.lang.Object ref = sampleTime_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sampleTime_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string sampleTime = 3;
+ * @param value The sampleTime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSampleTime(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sampleTime_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string sampleTime = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearSampleTime() {
+
+ sampleTime_ = getDefaultInstance().getSampleTime();
+ onChanged();
+ return this;
+ }
+ /**
+ * string sampleTime = 3;
+ * @param value The bytes for sampleTime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSampleTimeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sampleTime_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object batchCode_ = "";
+ /**
+ * string batchCode = 4;
+ * @return The batchCode.
+ */
+ public java.lang.String getBatchCode() {
+ java.lang.Object ref = batchCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ batchCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string batchCode = 4;
+ * @return The bytes for batchCode.
+ */
+ public com.google.protobuf.ByteString
+ getBatchCodeBytes() {
+ java.lang.Object ref = batchCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ batchCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string batchCode = 4;
+ * @param value The batchCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBatchCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ batchCode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string batchCode = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearBatchCode() {
+
+ batchCode_ = getDefaultInstance().getBatchCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string batchCode = 4;
+ * @param value The bytes for batchCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBatchCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ batchCode_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
- // @@protoc_insertion_point(builder_scope:com.ktg.print.protocol.PrintClientInfoMessage)
+ // @@protoc_insertion_point(builder_scope:Printer.IQCPrintMessage)
+ }
+
+ // @@protoc_insertion_point(class_scope:Printer.IQCPrintMessage)
+ private static final PrintMessageProto.Printer.IQCPrintMessage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new PrintMessageProto.Printer.IQCPrintMessage();
+ }
+
+ public static PrintMessageProto.Printer.IQCPrintMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring sampleCode = 1;
+ * @return The sampleCode.
+ */
+ java.lang.String getSampleCode();
+ /**
+ * string sampleCode = 1;
+ * @return The bytes for sampleCode.
+ */
+ com.google.protobuf.ByteString
+ getSampleCodeBytes();
+
+ /**
+ * string qcObject = 2;
+ * @return The qcObject.
+ */
+ java.lang.String getQcObject();
+ /**
+ * string qcObject = 2;
+ * @return The bytes for qcObject.
+ */
+ com.google.protobuf.ByteString
+ getQcObjectBytes();
+
+ /**
+ * string sampleTime = 3;
+ * @return The sampleTime.
+ */
+ java.lang.String getSampleTime();
+ /**
+ * string sampleTime = 3;
+ * @return The bytes for sampleTime.
+ */
+ com.google.protobuf.ByteString
+ getSampleTimeBytes();
+
+ /**
+ * string sampleLocation = 4;
+ * @return The sampleLocation.
+ */
+ java.lang.String getSampleLocation();
+ /**
+ * string sampleLocation = 4;
+ * @return The bytes for sampleLocation.
+ */
+ com.google.protobuf.ByteString
+ getSampleLocationBytes();
+ }
+ /**
+ * Protobuf type {@code Printer.PQCPrintMessage}
+ */
+ public static final class PQCPrintMessage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Printer.PQCPrintMessage)
+ PQCPrintMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PQCPrintMessage.newBuilder() to construct.
+ private PQCPrintMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private PQCPrintMessage() {
+ sampleCode_ = "";
+ qcObject_ = "";
+ sampleTime_ = "";
+ sampleLocation_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new PQCPrintMessage();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private PQCPrintMessage(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sampleCode_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ qcObject_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sampleTime_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sampleLocation_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return PrintMessageProto.internal_static_Printer_PQCPrintMessage_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return PrintMessageProto.internal_static_Printer_PQCPrintMessage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ PrintMessageProto.Printer.PQCPrintMessage.class, PrintMessageProto.Printer.PQCPrintMessage.Builder.class);
+ }
+
+ public static final int SAMPLECODE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object sampleCode_;
+ /**
+ * string sampleCode = 1;
+ * @return The sampleCode.
+ */
+ @java.lang.Override
+ public java.lang.String getSampleCode() {
+ java.lang.Object ref = sampleCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sampleCode_ = s;
+ return s;
+ }
+ }
+ /**
+ * string sampleCode = 1;
+ * @return The bytes for sampleCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSampleCodeBytes() {
+ java.lang.Object ref = sampleCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sampleCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int QCOBJECT_FIELD_NUMBER = 2;
+ private volatile java.lang.Object qcObject_;
+ /**
+ * string qcObject = 2;
+ * @return The qcObject.
+ */
+ @java.lang.Override
+ public java.lang.String getQcObject() {
+ java.lang.Object ref = qcObject_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ qcObject_ = s;
+ return s;
+ }
+ }
+ /**
+ * string qcObject = 2;
+ * @return The bytes for qcObject.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getQcObjectBytes() {
+ java.lang.Object ref = qcObject_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ qcObject_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SAMPLETIME_FIELD_NUMBER = 3;
+ private volatile java.lang.Object sampleTime_;
+ /**
+ * string sampleTime = 3;
+ * @return The sampleTime.
+ */
+ @java.lang.Override
+ public java.lang.String getSampleTime() {
+ java.lang.Object ref = sampleTime_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sampleTime_ = s;
+ return s;
+ }
+ }
+ /**
+ * string sampleTime = 3;
+ * @return The bytes for sampleTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSampleTimeBytes() {
+ java.lang.Object ref = sampleTime_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sampleTime_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SAMPLELOCATION_FIELD_NUMBER = 4;
+ private volatile java.lang.Object sampleLocation_;
+ /**
+ * string sampleLocation = 4;
+ * @return The sampleLocation.
+ */
+ @java.lang.Override
+ public java.lang.String getSampleLocation() {
+ java.lang.Object ref = sampleLocation_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sampleLocation_ = s;
+ return s;
+ }
+ }
+ /**
+ * string sampleLocation = 4;
+ * @return The bytes for sampleLocation.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSampleLocationBytes() {
+ java.lang.Object ref = sampleLocation_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sampleLocation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sampleCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(qcObject_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, qcObject_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleTime_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sampleTime_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleLocation_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sampleLocation_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sampleCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(qcObject_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, qcObject_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleTime_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sampleTime_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleLocation_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sampleLocation_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof PrintMessageProto.Printer.PQCPrintMessage)) {
+ return super.equals(obj);
+ }
+ PrintMessageProto.Printer.PQCPrintMessage other = (PrintMessageProto.Printer.PQCPrintMessage) obj;
+
+ if (!getSampleCode()
+ .equals(other.getSampleCode())) return false;
+ if (!getQcObject()
+ .equals(other.getQcObject())) return false;
+ if (!getSampleTime()
+ .equals(other.getSampleTime())) return false;
+ if (!getSampleLocation()
+ .equals(other.getSampleLocation())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SAMPLECODE_FIELD_NUMBER;
+ hash = (53 * hash) + getSampleCode().hashCode();
+ hash = (37 * hash) + QCOBJECT_FIELD_NUMBER;
+ hash = (53 * hash) + getQcObject().hashCode();
+ hash = (37 * hash) + SAMPLETIME_FIELD_NUMBER;
+ hash = (53 * hash) + getSampleTime().hashCode();
+ hash = (37 * hash) + SAMPLELOCATION_FIELD_NUMBER;
+ hash = (53 * hash) + getSampleLocation().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static PrintMessageProto.Printer.PQCPrintMessage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.PQCPrintMessage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PQCPrintMessage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.PQCPrintMessage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PQCPrintMessage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.PQCPrintMessage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PQCPrintMessage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.PQCPrintMessage parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PQCPrintMessage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.PQCPrintMessage parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PQCPrintMessage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.PQCPrintMessage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(PrintMessageProto.Printer.PQCPrintMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Printer.PQCPrintMessage}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring sampleCode = 1;
+ * @return The sampleCode.
+ */
+ public java.lang.String getSampleCode() {
+ java.lang.Object ref = sampleCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sampleCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string sampleCode = 1;
+ * @return The bytes for sampleCode.
+ */
+ public com.google.protobuf.ByteString
+ getSampleCodeBytes() {
+ java.lang.Object ref = sampleCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sampleCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string sampleCode = 1;
+ * @param value The sampleCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSampleCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sampleCode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string sampleCode = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearSampleCode() {
+
+ sampleCode_ = getDefaultInstance().getSampleCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string sampleCode = 1;
+ * @param value The bytes for sampleCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSampleCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sampleCode_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object qcObject_ = "";
+ /**
+ * string qcObject = 2;
+ * @return The qcObject.
+ */
+ public java.lang.String getQcObject() {
+ java.lang.Object ref = qcObject_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ qcObject_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string qcObject = 2;
+ * @return The bytes for qcObject.
+ */
+ public com.google.protobuf.ByteString
+ getQcObjectBytes() {
+ java.lang.Object ref = qcObject_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ qcObject_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string qcObject = 2;
+ * @param value The qcObject to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQcObject(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ qcObject_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string qcObject = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearQcObject() {
+
+ qcObject_ = getDefaultInstance().getQcObject();
+ onChanged();
+ return this;
+ }
+ /**
+ * string qcObject = 2;
+ * @param value The bytes for qcObject to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQcObjectBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ qcObject_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sampleTime_ = "";
+ /**
+ * string sampleTime = 3;
+ * @return The sampleTime.
+ */
+ public java.lang.String getSampleTime() {
+ java.lang.Object ref = sampleTime_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sampleTime_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string sampleTime = 3;
+ * @return The bytes for sampleTime.
+ */
+ public com.google.protobuf.ByteString
+ getSampleTimeBytes() {
+ java.lang.Object ref = sampleTime_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sampleTime_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string sampleTime = 3;
+ * @param value The sampleTime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSampleTime(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sampleTime_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string sampleTime = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearSampleTime() {
+
+ sampleTime_ = getDefaultInstance().getSampleTime();
+ onChanged();
+ return this;
+ }
+ /**
+ * string sampleTime = 3;
+ * @param value The bytes for sampleTime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSampleTimeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sampleTime_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sampleLocation_ = "";
+ /**
+ * string sampleLocation = 4;
+ * @return The sampleLocation.
+ */
+ public java.lang.String getSampleLocation() {
+ java.lang.Object ref = sampleLocation_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sampleLocation_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string sampleLocation = 4;
+ * @return The bytes for sampleLocation.
+ */
+ public com.google.protobuf.ByteString
+ getSampleLocationBytes() {
+ java.lang.Object ref = sampleLocation_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sampleLocation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string sampleLocation = 4;
+ * @param value The sampleLocation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSampleLocation(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sampleLocation_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string sampleLocation = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearSampleLocation() {
+
+ sampleLocation_ = getDefaultInstance().getSampleLocation();
+ onChanged();
+ return this;
+ }
+ /**
+ * string sampleLocation = 4;
+ * @param value The bytes for sampleLocation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSampleLocationBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sampleLocation_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Printer.PQCPrintMessage)
+ }
+
+ // @@protoc_insertion_point(class_scope:Printer.PQCPrintMessage)
+ private static final PrintMessageProto.Printer.PQCPrintMessage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new PrintMessageProto.Printer.PQCPrintMessage();
+ }
+
+ public static PrintMessageProto.Printer.PQCPrintMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring sampleCode = 1;
+ * @return The sampleCode.
+ */
+ java.lang.String getSampleCode();
+ /**
+ * string sampleCode = 1;
+ * @return The bytes for sampleCode.
+ */
+ com.google.protobuf.ByteString
+ getSampleCodeBytes();
+
+ /**
+ * string qcObject = 2;
+ * @return The qcObject.
+ */
+ java.lang.String getQcObject();
+ /**
+ * string qcObject = 2;
+ * @return The bytes for qcObject.
+ */
+ com.google.protobuf.ByteString
+ getQcObjectBytes();
+
+ /**
+ * string sampleTime = 3;
+ * @return The sampleTime.
+ */
+ java.lang.String getSampleTime();
+ /**
+ * string sampleTime = 3;
+ * @return The bytes for sampleTime.
+ */
+ com.google.protobuf.ByteString
+ getSampleTimeBytes();
+
+ /**
+ * string batchCode = 4;
+ * @return The batchCode.
+ */
+ java.lang.String getBatchCode();
+ /**
+ * string batchCode = 4;
+ * @return The bytes for batchCode.
+ */
+ com.google.protobuf.ByteString
+ getBatchCodeBytes();
+
+ /**
+ * string packageType = 5;
+ * @return The packageType.
+ */
+ java.lang.String getPackageType();
+ /**
+ * string packageType = 5;
+ * @return The bytes for packageType.
+ */
+ com.google.protobuf.ByteString
+ getPackageTypeBytes();
+ }
+ /**
+ * Protobuf type {@code Printer.OQCPrintMessage}
+ */
+ public static final class OQCPrintMessage extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Printer.OQCPrintMessage)
+ OQCPrintMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use OQCPrintMessage.newBuilder() to construct.
+ private OQCPrintMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private OQCPrintMessage() {
+ sampleCode_ = "";
+ qcObject_ = "";
+ sampleTime_ = "";
+ batchCode_ = "";
+ packageType_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new OQCPrintMessage();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private OQCPrintMessage(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sampleCode_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ qcObject_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sampleTime_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ batchCode_ = s;
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ packageType_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return PrintMessageProto.internal_static_Printer_OQCPrintMessage_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return PrintMessageProto.internal_static_Printer_OQCPrintMessage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ PrintMessageProto.Printer.OQCPrintMessage.class, PrintMessageProto.Printer.OQCPrintMessage.Builder.class);
+ }
+
+ public static final int SAMPLECODE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object sampleCode_;
+ /**
+ * string sampleCode = 1;
+ * @return The sampleCode.
+ */
+ @java.lang.Override
+ public java.lang.String getSampleCode() {
+ java.lang.Object ref = sampleCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sampleCode_ = s;
+ return s;
+ }
+ }
+ /**
+ * string sampleCode = 1;
+ * @return The bytes for sampleCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSampleCodeBytes() {
+ java.lang.Object ref = sampleCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sampleCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int QCOBJECT_FIELD_NUMBER = 2;
+ private volatile java.lang.Object qcObject_;
+ /**
+ * string qcObject = 2;
+ * @return The qcObject.
+ */
+ @java.lang.Override
+ public java.lang.String getQcObject() {
+ java.lang.Object ref = qcObject_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ qcObject_ = s;
+ return s;
+ }
+ }
+ /**
+ * string qcObject = 2;
+ * @return The bytes for qcObject.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getQcObjectBytes() {
+ java.lang.Object ref = qcObject_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ qcObject_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SAMPLETIME_FIELD_NUMBER = 3;
+ private volatile java.lang.Object sampleTime_;
+ /**
+ * string sampleTime = 3;
+ * @return The sampleTime.
+ */
+ @java.lang.Override
+ public java.lang.String getSampleTime() {
+ java.lang.Object ref = sampleTime_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sampleTime_ = s;
+ return s;
+ }
+ }
+ /**
+ * string sampleTime = 3;
+ * @return The bytes for sampleTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSampleTimeBytes() {
+ java.lang.Object ref = sampleTime_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sampleTime_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BATCHCODE_FIELD_NUMBER = 4;
+ private volatile java.lang.Object batchCode_;
+ /**
+ * string batchCode = 4;
+ * @return The batchCode.
+ */
+ @java.lang.Override
+ public java.lang.String getBatchCode() {
+ java.lang.Object ref = batchCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ batchCode_ = s;
+ return s;
+ }
+ }
+ /**
+ * string batchCode = 4;
+ * @return The bytes for batchCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getBatchCodeBytes() {
+ java.lang.Object ref = batchCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ batchCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PACKAGETYPE_FIELD_NUMBER = 5;
+ private volatile java.lang.Object packageType_;
+ /**
+ * string packageType = 5;
+ * @return The packageType.
+ */
+ @java.lang.Override
+ public java.lang.String getPackageType() {
+ java.lang.Object ref = packageType_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ packageType_ = s;
+ return s;
+ }
+ }
+ /**
+ * string packageType = 5;
+ * @return The bytes for packageType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPackageTypeBytes() {
+ java.lang.Object ref = packageType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ packageType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sampleCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(qcObject_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, qcObject_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleTime_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sampleTime_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, batchCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageType_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, packageType_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sampleCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(qcObject_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, qcObject_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sampleTime_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sampleTime_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(batchCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, batchCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageType_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, packageType_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof PrintMessageProto.Printer.OQCPrintMessage)) {
+ return super.equals(obj);
+ }
+ PrintMessageProto.Printer.OQCPrintMessage other = (PrintMessageProto.Printer.OQCPrintMessage) obj;
+
+ if (!getSampleCode()
+ .equals(other.getSampleCode())) return false;
+ if (!getQcObject()
+ .equals(other.getQcObject())) return false;
+ if (!getSampleTime()
+ .equals(other.getSampleTime())) return false;
+ if (!getBatchCode()
+ .equals(other.getBatchCode())) return false;
+ if (!getPackageType()
+ .equals(other.getPackageType())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SAMPLECODE_FIELD_NUMBER;
+ hash = (53 * hash) + getSampleCode().hashCode();
+ hash = (37 * hash) + QCOBJECT_FIELD_NUMBER;
+ hash = (53 * hash) + getQcObject().hashCode();
+ hash = (37 * hash) + SAMPLETIME_FIELD_NUMBER;
+ hash = (53 * hash) + getSampleTime().hashCode();
+ hash = (37 * hash) + BATCHCODE_FIELD_NUMBER;
+ hash = (53 * hash) + getBatchCode().hashCode();
+ hash = (37 * hash) + PACKAGETYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getPackageType().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static PrintMessageProto.Printer.OQCPrintMessage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.OQCPrintMessage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.OQCPrintMessage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.OQCPrintMessage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.OQCPrintMessage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.OQCPrintMessage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.OQCPrintMessage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.OQCPrintMessage parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.OQCPrintMessage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.OQCPrintMessage parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.OQCPrintMessage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.OQCPrintMessage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(PrintMessageProto.Printer.OQCPrintMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Printer.OQCPrintMessage}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring sampleCode = 1;
+ * @return The sampleCode.
+ */
+ public java.lang.String getSampleCode() {
+ java.lang.Object ref = sampleCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sampleCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string sampleCode = 1;
+ * @return The bytes for sampleCode.
+ */
+ public com.google.protobuf.ByteString
+ getSampleCodeBytes() {
+ java.lang.Object ref = sampleCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sampleCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string sampleCode = 1;
+ * @param value The sampleCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSampleCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sampleCode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string sampleCode = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearSampleCode() {
+
+ sampleCode_ = getDefaultInstance().getSampleCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string sampleCode = 1;
+ * @param value The bytes for sampleCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSampleCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sampleCode_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object qcObject_ = "";
+ /**
+ * string qcObject = 2;
+ * @return The qcObject.
+ */
+ public java.lang.String getQcObject() {
+ java.lang.Object ref = qcObject_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ qcObject_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string qcObject = 2;
+ * @return The bytes for qcObject.
+ */
+ public com.google.protobuf.ByteString
+ getQcObjectBytes() {
+ java.lang.Object ref = qcObject_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ qcObject_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string qcObject = 2;
+ * @param value The qcObject to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQcObject(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ qcObject_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string qcObject = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearQcObject() {
+
+ qcObject_ = getDefaultInstance().getQcObject();
+ onChanged();
+ return this;
+ }
+ /**
+ * string qcObject = 2;
+ * @param value The bytes for qcObject to set.
+ * @return This builder for chaining.
+ */
+ public Builder setQcObjectBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ qcObject_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sampleTime_ = "";
+ /**
+ * string sampleTime = 3;
+ * @return The sampleTime.
+ */
+ public java.lang.String getSampleTime() {
+ java.lang.Object ref = sampleTime_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sampleTime_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string sampleTime = 3;
+ * @return The bytes for sampleTime.
+ */
+ public com.google.protobuf.ByteString
+ getSampleTimeBytes() {
+ java.lang.Object ref = sampleTime_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sampleTime_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string sampleTime = 3;
+ * @param value The sampleTime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSampleTime(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sampleTime_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string sampleTime = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearSampleTime() {
+
+ sampleTime_ = getDefaultInstance().getSampleTime();
+ onChanged();
+ return this;
+ }
+ /**
+ * string sampleTime = 3;
+ * @param value The bytes for sampleTime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSampleTimeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sampleTime_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object batchCode_ = "";
+ /**
+ * string batchCode = 4;
+ * @return The batchCode.
+ */
+ public java.lang.String getBatchCode() {
+ java.lang.Object ref = batchCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ batchCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string batchCode = 4;
+ * @return The bytes for batchCode.
+ */
+ public com.google.protobuf.ByteString
+ getBatchCodeBytes() {
+ java.lang.Object ref = batchCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ batchCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string batchCode = 4;
+ * @param value The batchCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBatchCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ batchCode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string batchCode = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearBatchCode() {
+
+ batchCode_ = getDefaultInstance().getBatchCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string batchCode = 4;
+ * @param value The bytes for batchCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBatchCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ batchCode_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object packageType_ = "";
+ /**
+ * string packageType = 5;
+ * @return The packageType.
+ */
+ public java.lang.String getPackageType() {
+ java.lang.Object ref = packageType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ packageType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string packageType = 5;
+ * @return The bytes for packageType.
+ */
+ public com.google.protobuf.ByteString
+ getPackageTypeBytes() {
+ java.lang.Object ref = packageType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ packageType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string packageType = 5;
+ * @param value The packageType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPackageType(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ packageType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string packageType = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearPackageType() {
+
+ packageType_ = getDefaultInstance().getPackageType();
+ onChanged();
+ return this;
+ }
+ /**
+ * string packageType = 5;
+ * @param value The bytes for packageType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPackageTypeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ packageType_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Printer.OQCPrintMessage)
+ }
+
+ // @@protoc_insertion_point(class_scope:Printer.OQCPrintMessage)
+ private static final PrintMessageProto.Printer.OQCPrintMessage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new PrintMessageProto.Printer.OQCPrintMessage();
+ }
+
+ public static PrintMessageProto.Printer.OQCPrintMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring ip = 1;
+ * @return The ip.
+ */
+ java.lang.String getIp();
+ /**
+ * string ip = 1;
+ * @return The bytes for ip.
+ */
+ com.google.protobuf.ByteString
+ getIpBytes();
+
+ /**
+ * string location = 2;
+ * @return The location.
+ */
+ java.lang.String getLocation();
+ /**
+ * string location = 2;
+ * @return The bytes for location.
+ */
+ com.google.protobuf.ByteString
+ getLocationBytes();
+
+ /**
+ * string sid = 3;
+ * @return The sid.
+ */
+ java.lang.String getSid();
+ /**
+ * string sid = 3;
+ * @return The bytes for sid.
+ */
+ com.google.protobuf.ByteString
+ getSidBytes();
+ }
+ /**
+ * + *客户端信息 + *+ * + * Protobuf type {@code Printer.PrintClientInfoMessage} + */ + public static final class PrintClientInfoMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Printer.PrintClientInfoMessage) + PrintClientInfoMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrintClientInfoMessage.newBuilder() to construct. + private PrintClientInfoMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private PrintClientInfoMessage() { + ip_ = ""; + location_ = ""; + sid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PrintClientInfoMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PrintClientInfoMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + ip_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + location_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + sid_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PrintMessageProto.internal_static_Printer_PrintClientInfoMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return PrintMessageProto.internal_static_Printer_PrintClientInfoMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PrintMessageProto.Printer.PrintClientInfoMessage.class, PrintMessageProto.Printer.PrintClientInfoMessage.Builder.class); + } + + public static final int IP_FIELD_NUMBER = 1; + private volatile java.lang.Object ip_; + /** + *
string ip = 1;
+ * @return The ip.
+ */
+ @java.lang.Override
+ public java.lang.String getIp() {
+ java.lang.Object ref = ip_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ ip_ = s;
+ return s;
+ }
+ }
+ /**
+ * string ip = 1;
+ * @return The bytes for ip.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getIpBytes() {
+ java.lang.Object ref = ip_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ ip_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LOCATION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object location_;
+ /**
+ * string location = 2;
+ * @return The location.
+ */
+ @java.lang.Override
+ public java.lang.String getLocation() {
+ java.lang.Object ref = location_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ location_ = s;
+ return s;
+ }
+ }
+ /**
+ * string location = 2;
+ * @return The bytes for location.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getLocationBytes() {
+ java.lang.Object ref = location_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ location_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SID_FIELD_NUMBER = 3;
+ private volatile java.lang.Object sid_;
+ /**
+ * string sid = 3;
+ * @return The sid.
+ */
+ @java.lang.Override
+ public java.lang.String getSid() {
+ java.lang.Object ref = sid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string sid = 3;
+ * @return The bytes for sid.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSidBytes() {
+ java.lang.Object ref = sid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, location_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sid_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sid_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ip_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, location_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sid_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sid_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof PrintMessageProto.Printer.PrintClientInfoMessage)) {
+ return super.equals(obj);
+ }
+ PrintMessageProto.Printer.PrintClientInfoMessage other = (PrintMessageProto.Printer.PrintClientInfoMessage) obj;
+
+ if (!getIp()
+ .equals(other.getIp())) return false;
+ if (!getLocation()
+ .equals(other.getLocation())) return false;
+ if (!getSid()
+ .equals(other.getSid())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + IP_FIELD_NUMBER;
+ hash = (53 * hash) + getIp().hashCode();
+ hash = (37 * hash) + LOCATION_FIELD_NUMBER;
+ hash = (53 * hash) + getLocation().hashCode();
+ hash = (37 * hash) + SID_FIELD_NUMBER;
+ hash = (53 * hash) + getSid().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static PrintMessageProto.Printer.PrintClientInfoMessage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.PrintClientInfoMessage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintClientInfoMessage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.PrintClientInfoMessage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintClientInfoMessage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.PrintClientInfoMessage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintClientInfoMessage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.PrintClientInfoMessage parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintClientInfoMessage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.PrintClientInfoMessage parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintClientInfoMessage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.PrintClientInfoMessage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(PrintMessageProto.Printer.PrintClientInfoMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + *客户端信息 + *+ * + * Protobuf type {@code Printer.PrintClientInfoMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
string ip = 1;
+ * @return The ip.
+ */
+ public java.lang.String getIp() {
+ java.lang.Object ref = ip_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ ip_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string ip = 1;
+ * @return The bytes for ip.
+ */
+ public com.google.protobuf.ByteString
+ getIpBytes() {
+ java.lang.Object ref = ip_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ ip_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string ip = 1;
+ * @param value The ip to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIp(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ ip_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string ip = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearIp() {
+
+ ip_ = getDefaultInstance().getIp();
+ onChanged();
+ return this;
+ }
+ /**
+ * string ip = 1;
+ * @param value The bytes for ip to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIpBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ ip_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object location_ = "";
+ /**
+ * string location = 2;
+ * @return The location.
+ */
+ public java.lang.String getLocation() {
+ java.lang.Object ref = location_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ location_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string location = 2;
+ * @return The bytes for location.
+ */
+ public com.google.protobuf.ByteString
+ getLocationBytes() {
+ java.lang.Object ref = location_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ location_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string location = 2;
+ * @param value The location to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLocation(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ location_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string location = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearLocation() {
+
+ location_ = getDefaultInstance().getLocation();
+ onChanged();
+ return this;
+ }
+ /**
+ * string location = 2;
+ * @param value The bytes for location to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLocationBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ location_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sid_ = "";
+ /**
+ * string sid = 3;
+ * @return The sid.
+ */
+ public java.lang.String getSid() {
+ java.lang.Object ref = sid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string sid = 3;
+ * @return The bytes for sid.
+ */
+ public com.google.protobuf.ByteString
+ getSidBytes() {
+ java.lang.Object ref = sid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string sid = 3;
+ * @param value The sid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string sid = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearSid() {
+
+ sid_ = getDefaultInstance().getSid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string sid = 3;
+ * @param value The bytes for sid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sid_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Printer.PrintClientInfoMessage)
+ }
+
+ // @@protoc_insertion_point(class_scope:Printer.PrintClientInfoMessage)
+ private static final PrintMessageProto.Printer.PrintClientInfoMessage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new PrintMessageProto.Printer.PrintClientInfoMessage();
+ }
+
+ public static PrintMessageProto.Printer.PrintClientInfoMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring workOrderNumber = 1;
+ * @return The workOrderNumber.
+ */
+ java.lang.String getWorkOrderNumber();
+ /**
+ * string workOrderNumber = 1;
+ * @return The bytes for workOrderNumber.
+ */
+ com.google.protobuf.ByteString
+ getWorkOrderNumberBytes();
+
+ /**
+ * string materialCode = 2;
+ * @return The materialCode.
+ */
+ java.lang.String getMaterialCode();
+ /**
+ * string materialCode = 2;
+ * @return The bytes for materialCode.
+ */
+ com.google.protobuf.ByteString
+ getMaterialCodeBytes();
+
+ /**
+ * string materialName = 3;
+ * @return The materialName.
+ */
+ java.lang.String getMaterialName();
+ /**
+ * string materialName = 3;
+ * @return The bytes for materialName.
+ */
+ com.google.protobuf.ByteString
+ getMaterialNameBytes();
+
+ /**
+ * string specificationAndModel = 4;
+ * @return The specificationAndModel.
+ */
+ java.lang.String getSpecificationAndModel();
+ /**
+ * string specificationAndModel = 4;
+ * @return The bytes for specificationAndModel.
+ */
+ com.google.protobuf.ByteString
+ getSpecificationAndModelBytes();
+
+ /**
+ * string processingProcedure = 5;
+ * @return The processingProcedure.
+ */
+ java.lang.String getProcessingProcedure();
+ /**
+ * string processingProcedure = 5;
+ * @return The bytes for processingProcedure.
+ */
+ com.google.protobuf.ByteString
+ getProcessingProcedureBytes();
+
+ /**
+ * string param = 6;
+ * @return The param.
+ */
+ java.lang.String getParam();
+ /**
+ * string param = 6;
+ * @return The bytes for param.
+ */
+ com.google.protobuf.ByteString
+ getParamBytes();
+ }
+ /**
+ * Protobuf type {@code Printer.PrintingOfCirculation}
+ */
+ public static final class PrintingOfCirculation extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Printer.PrintingOfCirculation)
+ PrintingOfCirculationOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use PrintingOfCirculation.newBuilder() to construct.
+ private PrintingOfCirculation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private PrintingOfCirculation() {
+ workOrderNumber_ = "";
+ materialCode_ = "";
+ materialName_ = "";
+ specificationAndModel_ = "";
+ processingProcedure_ = "";
+ param_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new PrintingOfCirculation();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private PrintingOfCirculation(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ workOrderNumber_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ materialCode_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ materialName_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ specificationAndModel_ = s;
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ processingProcedure_ = s;
+ break;
+ }
+ case 50: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ param_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return PrintMessageProto.internal_static_Printer_PrintingOfCirculation_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return PrintMessageProto.internal_static_Printer_PrintingOfCirculation_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ PrintMessageProto.Printer.PrintingOfCirculation.class, PrintMessageProto.Printer.PrintingOfCirculation.Builder.class);
+ }
+
+ public static final int WORKORDERNUMBER_FIELD_NUMBER = 1;
+ private volatile java.lang.Object workOrderNumber_;
+ /**
+ * string workOrderNumber = 1;
+ * @return The workOrderNumber.
+ */
+ @java.lang.Override
+ public java.lang.String getWorkOrderNumber() {
+ java.lang.Object ref = workOrderNumber_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ workOrderNumber_ = s;
+ return s;
+ }
+ }
+ /**
+ * string workOrderNumber = 1;
+ * @return The bytes for workOrderNumber.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getWorkOrderNumberBytes() {
+ java.lang.Object ref = workOrderNumber_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ workOrderNumber_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MATERIALCODE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object materialCode_;
+ /**
+ * string materialCode = 2;
+ * @return The materialCode.
+ */
+ @java.lang.Override
+ public java.lang.String getMaterialCode() {
+ java.lang.Object ref = materialCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ materialCode_ = s;
+ return s;
+ }
+ }
+ /**
+ * string materialCode = 2;
+ * @return The bytes for materialCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMaterialCodeBytes() {
+ java.lang.Object ref = materialCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ materialCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MATERIALNAME_FIELD_NUMBER = 3;
+ private volatile java.lang.Object materialName_;
+ /**
+ * string materialName = 3;
+ * @return The materialName.
+ */
+ @java.lang.Override
+ public java.lang.String getMaterialName() {
+ java.lang.Object ref = materialName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ materialName_ = s;
+ return s;
+ }
+ }
+ /**
+ * string materialName = 3;
+ * @return The bytes for materialName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMaterialNameBytes() {
+ java.lang.Object ref = materialName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ materialName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SPECIFICATIONANDMODEL_FIELD_NUMBER = 4;
+ private volatile java.lang.Object specificationAndModel_;
+ /**
+ * string specificationAndModel = 4;
+ * @return The specificationAndModel.
+ */
+ @java.lang.Override
+ public java.lang.String getSpecificationAndModel() {
+ java.lang.Object ref = specificationAndModel_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ specificationAndModel_ = s;
+ return s;
+ }
+ }
+ /**
+ * string specificationAndModel = 4;
+ * @return The bytes for specificationAndModel.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSpecificationAndModelBytes() {
+ java.lang.Object ref = specificationAndModel_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ specificationAndModel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROCESSINGPROCEDURE_FIELD_NUMBER = 5;
+ private volatile java.lang.Object processingProcedure_;
+ /**
+ * string processingProcedure = 5;
+ * @return The processingProcedure.
+ */
+ @java.lang.Override
+ public java.lang.String getProcessingProcedure() {
+ java.lang.Object ref = processingProcedure_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ processingProcedure_ = s;
+ return s;
+ }
+ }
+ /**
+ * string processingProcedure = 5;
+ * @return The bytes for processingProcedure.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getProcessingProcedureBytes() {
+ java.lang.Object ref = processingProcedure_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ processingProcedure_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARAM_FIELD_NUMBER = 6;
+ private volatile java.lang.Object param_;
+ /**
+ * string param = 6;
+ * @return The param.
+ */
+ @java.lang.Override
+ public java.lang.String getParam() {
+ java.lang.Object ref = param_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ param_ = s;
+ return s;
+ }
+ }
+ /**
+ * string param = 6;
+ * @return The bytes for param.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getParamBytes() {
+ java.lang.Object ref = param_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ param_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workOrderNumber_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workOrderNumber_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(materialCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, materialCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(materialName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, materialName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specificationAndModel_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, specificationAndModel_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processingProcedure_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, processingProcedure_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(param_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, param_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workOrderNumber_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workOrderNumber_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(materialCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, materialCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(materialName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, materialName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specificationAndModel_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, specificationAndModel_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(processingProcedure_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, processingProcedure_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(param_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, param_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof PrintMessageProto.Printer.PrintingOfCirculation)) {
+ return super.equals(obj);
+ }
+ PrintMessageProto.Printer.PrintingOfCirculation other = (PrintMessageProto.Printer.PrintingOfCirculation) obj;
+
+ if (!getWorkOrderNumber()
+ .equals(other.getWorkOrderNumber())) return false;
+ if (!getMaterialCode()
+ .equals(other.getMaterialCode())) return false;
+ if (!getMaterialName()
+ .equals(other.getMaterialName())) return false;
+ if (!getSpecificationAndModel()
+ .equals(other.getSpecificationAndModel())) return false;
+ if (!getProcessingProcedure()
+ .equals(other.getProcessingProcedure())) return false;
+ if (!getParam()
+ .equals(other.getParam())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + WORKORDERNUMBER_FIELD_NUMBER;
+ hash = (53 * hash) + getWorkOrderNumber().hashCode();
+ hash = (37 * hash) + MATERIALCODE_FIELD_NUMBER;
+ hash = (53 * hash) + getMaterialCode().hashCode();
+ hash = (37 * hash) + MATERIALNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getMaterialName().hashCode();
+ hash = (37 * hash) + SPECIFICATIONANDMODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getSpecificationAndModel().hashCode();
+ hash = (37 * hash) + PROCESSINGPROCEDURE_FIELD_NUMBER;
+ hash = (53 * hash) + getProcessingProcedure().hashCode();
+ hash = (37 * hash) + PARAM_FIELD_NUMBER;
+ hash = (53 * hash) + getParam().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static PrintMessageProto.Printer.PrintingOfCirculation parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.PrintingOfCirculation parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintingOfCirculation parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.PrintingOfCirculation parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintingOfCirculation parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.PrintingOfCirculation parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintingOfCirculation parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.PrintingOfCirculation parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintingOfCirculation parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.PrintingOfCirculation parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintingOfCirculation parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.PrintingOfCirculation parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(PrintMessageProto.Printer.PrintingOfCirculation prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Printer.PrintingOfCirculation}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring workOrderNumber = 1;
+ * @return The workOrderNumber.
+ */
+ public java.lang.String getWorkOrderNumber() {
+ java.lang.Object ref = workOrderNumber_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ workOrderNumber_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string workOrderNumber = 1;
+ * @return The bytes for workOrderNumber.
+ */
+ public com.google.protobuf.ByteString
+ getWorkOrderNumberBytes() {
+ java.lang.Object ref = workOrderNumber_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ workOrderNumber_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string workOrderNumber = 1;
+ * @param value The workOrderNumber to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWorkOrderNumber(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ workOrderNumber_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string workOrderNumber = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearWorkOrderNumber() {
+
+ workOrderNumber_ = getDefaultInstance().getWorkOrderNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * string workOrderNumber = 1;
+ * @param value The bytes for workOrderNumber to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWorkOrderNumberBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ workOrderNumber_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object materialCode_ = "";
+ /**
+ * string materialCode = 2;
+ * @return The materialCode.
+ */
+ public java.lang.String getMaterialCode() {
+ java.lang.Object ref = materialCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ materialCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string materialCode = 2;
+ * @return The bytes for materialCode.
+ */
+ public com.google.protobuf.ByteString
+ getMaterialCodeBytes() {
+ java.lang.Object ref = materialCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ materialCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string materialCode = 2;
+ * @param value The materialCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaterialCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ materialCode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string materialCode = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaterialCode() {
+
+ materialCode_ = getDefaultInstance().getMaterialCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string materialCode = 2;
+ * @param value The bytes for materialCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaterialCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ materialCode_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object materialName_ = "";
+ /**
+ * string materialName = 3;
+ * @return The materialName.
+ */
+ public java.lang.String getMaterialName() {
+ java.lang.Object ref = materialName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ materialName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string materialName = 3;
+ * @return The bytes for materialName.
+ */
+ public com.google.protobuf.ByteString
+ getMaterialNameBytes() {
+ java.lang.Object ref = materialName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ materialName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string materialName = 3;
+ * @param value The materialName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaterialName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ materialName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string materialName = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaterialName() {
+
+ materialName_ = getDefaultInstance().getMaterialName();
+ onChanged();
+ return this;
+ }
+ /**
+ * string materialName = 3;
+ * @param value The bytes for materialName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaterialNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ materialName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object specificationAndModel_ = "";
+ /**
+ * string specificationAndModel = 4;
+ * @return The specificationAndModel.
+ */
+ public java.lang.String getSpecificationAndModel() {
+ java.lang.Object ref = specificationAndModel_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ specificationAndModel_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string specificationAndModel = 4;
+ * @return The bytes for specificationAndModel.
+ */
+ public com.google.protobuf.ByteString
+ getSpecificationAndModelBytes() {
+ java.lang.Object ref = specificationAndModel_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ specificationAndModel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string specificationAndModel = 4;
+ * @param value The specificationAndModel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpecificationAndModel(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ specificationAndModel_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string specificationAndModel = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearSpecificationAndModel() {
+
+ specificationAndModel_ = getDefaultInstance().getSpecificationAndModel();
+ onChanged();
+ return this;
+ }
+ /**
+ * string specificationAndModel = 4;
+ * @param value The bytes for specificationAndModel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpecificationAndModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ specificationAndModel_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object processingProcedure_ = "";
+ /**
+ * string processingProcedure = 5;
+ * @return The processingProcedure.
+ */
+ public java.lang.String getProcessingProcedure() {
+ java.lang.Object ref = processingProcedure_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ processingProcedure_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string processingProcedure = 5;
+ * @return The bytes for processingProcedure.
+ */
+ public com.google.protobuf.ByteString
+ getProcessingProcedureBytes() {
+ java.lang.Object ref = processingProcedure_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ processingProcedure_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string processingProcedure = 5;
+ * @param value The processingProcedure to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProcessingProcedure(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ processingProcedure_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string processingProcedure = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearProcessingProcedure() {
+
+ processingProcedure_ = getDefaultInstance().getProcessingProcedure();
+ onChanged();
+ return this;
+ }
+ /**
+ * string processingProcedure = 5;
+ * @param value The bytes for processingProcedure to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProcessingProcedureBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ processingProcedure_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object param_ = "";
+ /**
+ * string param = 6;
+ * @return The param.
+ */
+ public java.lang.String getParam() {
+ java.lang.Object ref = param_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ param_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string param = 6;
+ * @return The bytes for param.
+ */
+ public com.google.protobuf.ByteString
+ getParamBytes() {
+ java.lang.Object ref = param_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ param_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string param = 6;
+ * @param value The param to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParam(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ param_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string param = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearParam() {
+
+ param_ = getDefaultInstance().getParam();
+ onChanged();
+ return this;
+ }
+ /**
+ * string param = 6;
+ * @param value The bytes for param to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParamBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ param_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Printer.PrintingOfCirculation)
+ }
+
+ // @@protoc_insertion_point(class_scope:Printer.PrintingOfCirculation)
+ private static final PrintMessageProto.Printer.PrintingOfCirculation DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new PrintMessageProto.Printer.PrintingOfCirculation();
+ }
+
+ public static PrintMessageProto.Printer.PrintingOfCirculation getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring materialCode = 1;
+ * @return The materialCode.
+ */
+ java.lang.String getMaterialCode();
+ /**
+ * string materialCode = 1;
+ * @return The bytes for materialCode.
+ */
+ com.google.protobuf.ByteString
+ getMaterialCodeBytes();
+
+ /**
+ * string materialName = 2;
+ * @return The materialName.
+ */
+ java.lang.String getMaterialName();
+ /**
+ * string materialName = 2;
+ * @return The bytes for materialName.
+ */
+ com.google.protobuf.ByteString
+ getMaterialNameBytes();
+
+ /**
+ * string specificationAndModel = 3;
+ * @return The specificationAndModel.
+ */
+ java.lang.String getSpecificationAndModel();
+ /**
+ * string specificationAndModel = 3;
+ * @return The bytes for specificationAndModel.
+ */
+ com.google.protobuf.ByteString
+ getSpecificationAndModelBytes();
+
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ java.lang.String getParam();
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ com.google.protobuf.ByteString
+ getParamBytes();
+ }
+ /**
+ * Protobuf type {@code Printer.MaterialProducts}
+ */
+ public static final class MaterialProducts extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Printer.MaterialProducts)
+ MaterialProductsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MaterialProducts.newBuilder() to construct.
+ private MaterialProducts(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MaterialProducts() {
+ materialCode_ = "";
+ materialName_ = "";
+ specificationAndModel_ = "";
+ param_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new MaterialProducts();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MaterialProducts(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ materialCode_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ materialName_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ specificationAndModel_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ param_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return PrintMessageProto.internal_static_Printer_MaterialProducts_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return PrintMessageProto.internal_static_Printer_MaterialProducts_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ PrintMessageProto.Printer.MaterialProducts.class, PrintMessageProto.Printer.MaterialProducts.Builder.class);
+ }
+
+ public static final int MATERIALCODE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object materialCode_;
+ /**
+ * string materialCode = 1;
+ * @return The materialCode.
+ */
+ @java.lang.Override
+ public java.lang.String getMaterialCode() {
+ java.lang.Object ref = materialCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ materialCode_ = s;
+ return s;
+ }
+ }
+ /**
+ * string materialCode = 1;
+ * @return The bytes for materialCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMaterialCodeBytes() {
+ java.lang.Object ref = materialCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ materialCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MATERIALNAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object materialName_;
+ /**
+ * string materialName = 2;
+ * @return The materialName.
+ */
+ @java.lang.Override
+ public java.lang.String getMaterialName() {
+ java.lang.Object ref = materialName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ materialName_ = s;
+ return s;
+ }
+ }
+ /**
+ * string materialName = 2;
+ * @return The bytes for materialName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMaterialNameBytes() {
+ java.lang.Object ref = materialName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ materialName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SPECIFICATIONANDMODEL_FIELD_NUMBER = 3;
+ private volatile java.lang.Object specificationAndModel_;
+ /**
+ * string specificationAndModel = 3;
+ * @return The specificationAndModel.
+ */
+ @java.lang.Override
+ public java.lang.String getSpecificationAndModel() {
+ java.lang.Object ref = specificationAndModel_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ specificationAndModel_ = s;
+ return s;
+ }
+ }
+ /**
+ * string specificationAndModel = 3;
+ * @return The bytes for specificationAndModel.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSpecificationAndModelBytes() {
+ java.lang.Object ref = specificationAndModel_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ specificationAndModel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARAM_FIELD_NUMBER = 4;
+ private volatile java.lang.Object param_;
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ @java.lang.Override
+ public java.lang.String getParam() {
+ java.lang.Object ref = param_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ param_ = s;
+ return s;
+ }
+ }
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getParamBytes() {
+ java.lang.Object ref = param_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ param_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(materialCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, materialCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(materialName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, materialName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specificationAndModel_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, specificationAndModel_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(param_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, param_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(materialCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, materialCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(materialName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, materialName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specificationAndModel_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, specificationAndModel_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(param_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, param_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof PrintMessageProto.Printer.MaterialProducts)) {
+ return super.equals(obj);
+ }
+ PrintMessageProto.Printer.MaterialProducts other = (PrintMessageProto.Printer.MaterialProducts) obj;
+
+ if (!getMaterialCode()
+ .equals(other.getMaterialCode())) return false;
+ if (!getMaterialName()
+ .equals(other.getMaterialName())) return false;
+ if (!getSpecificationAndModel()
+ .equals(other.getSpecificationAndModel())) return false;
+ if (!getParam()
+ .equals(other.getParam())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MATERIALCODE_FIELD_NUMBER;
+ hash = (53 * hash) + getMaterialCode().hashCode();
+ hash = (37 * hash) + MATERIALNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getMaterialName().hashCode();
+ hash = (37 * hash) + SPECIFICATIONANDMODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getSpecificationAndModel().hashCode();
+ hash = (37 * hash) + PARAM_FIELD_NUMBER;
+ hash = (53 * hash) + getParam().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static PrintMessageProto.Printer.MaterialProducts parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.MaterialProducts parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.MaterialProducts parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.MaterialProducts parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.MaterialProducts parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.MaterialProducts parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.MaterialProducts parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.MaterialProducts parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.MaterialProducts parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.MaterialProducts parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.MaterialProducts parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.MaterialProducts parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(PrintMessageProto.Printer.MaterialProducts prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Printer.MaterialProducts}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring materialCode = 1;
+ * @return The materialCode.
+ */
+ public java.lang.String getMaterialCode() {
+ java.lang.Object ref = materialCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ materialCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string materialCode = 1;
+ * @return The bytes for materialCode.
+ */
+ public com.google.protobuf.ByteString
+ getMaterialCodeBytes() {
+ java.lang.Object ref = materialCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ materialCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string materialCode = 1;
+ * @param value The materialCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaterialCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ materialCode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string materialCode = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaterialCode() {
+
+ materialCode_ = getDefaultInstance().getMaterialCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string materialCode = 1;
+ * @param value The bytes for materialCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaterialCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ materialCode_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object materialName_ = "";
+ /**
+ * string materialName = 2;
+ * @return The materialName.
+ */
+ public java.lang.String getMaterialName() {
+ java.lang.Object ref = materialName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ materialName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string materialName = 2;
+ * @return The bytes for materialName.
+ */
+ public com.google.protobuf.ByteString
+ getMaterialNameBytes() {
+ java.lang.Object ref = materialName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ materialName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string materialName = 2;
+ * @param value The materialName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaterialName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ materialName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string materialName = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaterialName() {
+
+ materialName_ = getDefaultInstance().getMaterialName();
+ onChanged();
+ return this;
+ }
+ /**
+ * string materialName = 2;
+ * @param value The bytes for materialName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaterialNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ materialName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object specificationAndModel_ = "";
+ /**
+ * string specificationAndModel = 3;
+ * @return The specificationAndModel.
+ */
+ public java.lang.String getSpecificationAndModel() {
+ java.lang.Object ref = specificationAndModel_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ specificationAndModel_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string specificationAndModel = 3;
+ * @return The bytes for specificationAndModel.
+ */
+ public com.google.protobuf.ByteString
+ getSpecificationAndModelBytes() {
+ java.lang.Object ref = specificationAndModel_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ specificationAndModel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string specificationAndModel = 3;
+ * @param value The specificationAndModel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpecificationAndModel(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ specificationAndModel_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string specificationAndModel = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearSpecificationAndModel() {
+
+ specificationAndModel_ = getDefaultInstance().getSpecificationAndModel();
+ onChanged();
+ return this;
+ }
+ /**
+ * string specificationAndModel = 3;
+ * @param value The bytes for specificationAndModel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpecificationAndModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ specificationAndModel_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object param_ = "";
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ public java.lang.String getParam() {
+ java.lang.Object ref = param_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ param_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ public com.google.protobuf.ByteString
+ getParamBytes() {
+ java.lang.Object ref = param_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ param_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string param = 4;
+ * @param value The param to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParam(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ param_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string param = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearParam() {
+
+ param_ = getDefaultInstance().getParam();
+ onChanged();
+ return this;
+ }
+ /**
+ * string param = 4;
+ * @param value The bytes for param to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParamBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ param_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Printer.MaterialProducts)
+ }
+
+ // @@protoc_insertion_point(class_scope:Printer.MaterialProducts)
+ private static final PrintMessageProto.Printer.MaterialProducts DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new PrintMessageProto.Printer.MaterialProducts();
+ }
+
+ public static PrintMessageProto.Printer.MaterialProducts getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring warehouseCode = 1;
+ * @return The warehouseCode.
+ */
+ java.lang.String getWarehouseCode();
+ /**
+ * string warehouseCode = 1;
+ * @return The bytes for warehouseCode.
+ */
+ com.google.protobuf.ByteString
+ getWarehouseCodeBytes();
+
+ /**
+ * string warehouseName = 2;
+ * @return The warehouseName.
+ */
+ java.lang.String getWarehouseName();
+ /**
+ * string warehouseName = 2;
+ * @return The bytes for warehouseName.
+ */
+ com.google.protobuf.ByteString
+ getWarehouseNameBytes();
+
+ /**
+ * string personInCharge = 3;
+ * @return The personInCharge.
+ */
+ java.lang.String getPersonInCharge();
+ /**
+ * string personInCharge = 3;
+ * @return The bytes for personInCharge.
+ */
+ com.google.protobuf.ByteString
+ getPersonInChargeBytes();
+
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ java.lang.String getParam();
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ com.google.protobuf.ByteString
+ getParamBytes();
+ }
+ /**
+ * Protobuf type {@code Printer.Warehouse}
+ */
+ public static final class Warehouse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Printer.Warehouse)
+ WarehouseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Warehouse.newBuilder() to construct.
+ private Warehouse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Warehouse() {
+ warehouseCode_ = "";
+ warehouseName_ = "";
+ personInCharge_ = "";
+ param_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Warehouse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Warehouse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ warehouseCode_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ warehouseName_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ personInCharge_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ param_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return PrintMessageProto.internal_static_Printer_Warehouse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return PrintMessageProto.internal_static_Printer_Warehouse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ PrintMessageProto.Printer.Warehouse.class, PrintMessageProto.Printer.Warehouse.Builder.class);
+ }
+
+ public static final int WAREHOUSECODE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object warehouseCode_;
+ /**
+ * string warehouseCode = 1;
+ * @return The warehouseCode.
+ */
+ @java.lang.Override
+ public java.lang.String getWarehouseCode() {
+ java.lang.Object ref = warehouseCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ warehouseCode_ = s;
+ return s;
+ }
+ }
+ /**
+ * string warehouseCode = 1;
+ * @return The bytes for warehouseCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getWarehouseCodeBytes() {
+ java.lang.Object ref = warehouseCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ warehouseCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int WAREHOUSENAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object warehouseName_;
+ /**
+ * string warehouseName = 2;
+ * @return The warehouseName.
+ */
+ @java.lang.Override
+ public java.lang.String getWarehouseName() {
+ java.lang.Object ref = warehouseName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ warehouseName_ = s;
+ return s;
+ }
+ }
+ /**
+ * string warehouseName = 2;
+ * @return The bytes for warehouseName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getWarehouseNameBytes() {
+ java.lang.Object ref = warehouseName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ warehouseName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PERSONINCHARGE_FIELD_NUMBER = 3;
+ private volatile java.lang.Object personInCharge_;
+ /**
+ * string personInCharge = 3;
+ * @return The personInCharge.
+ */
+ @java.lang.Override
+ public java.lang.String getPersonInCharge() {
+ java.lang.Object ref = personInCharge_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ personInCharge_ = s;
+ return s;
+ }
+ }
+ /**
+ * string personInCharge = 3;
+ * @return The bytes for personInCharge.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPersonInChargeBytes() {
+ java.lang.Object ref = personInCharge_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ personInCharge_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARAM_FIELD_NUMBER = 4;
+ private volatile java.lang.Object param_;
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ @java.lang.Override
+ public java.lang.String getParam() {
+ java.lang.Object ref = param_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ param_ = s;
+ return s;
+ }
+ }
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getParamBytes() {
+ java.lang.Object ref = param_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ param_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warehouseCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, warehouseCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warehouseName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, warehouseName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(personInCharge_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, personInCharge_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(param_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, param_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warehouseCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, warehouseCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warehouseName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, warehouseName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(personInCharge_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, personInCharge_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(param_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, param_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof PrintMessageProto.Printer.Warehouse)) {
+ return super.equals(obj);
+ }
+ PrintMessageProto.Printer.Warehouse other = (PrintMessageProto.Printer.Warehouse) obj;
+
+ if (!getWarehouseCode()
+ .equals(other.getWarehouseCode())) return false;
+ if (!getWarehouseName()
+ .equals(other.getWarehouseName())) return false;
+ if (!getPersonInCharge()
+ .equals(other.getPersonInCharge())) return false;
+ if (!getParam()
+ .equals(other.getParam())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + WAREHOUSECODE_FIELD_NUMBER;
+ hash = (53 * hash) + getWarehouseCode().hashCode();
+ hash = (37 * hash) + WAREHOUSENAME_FIELD_NUMBER;
+ hash = (53 * hash) + getWarehouseName().hashCode();
+ hash = (37 * hash) + PERSONINCHARGE_FIELD_NUMBER;
+ hash = (53 * hash) + getPersonInCharge().hashCode();
+ hash = (37 * hash) + PARAM_FIELD_NUMBER;
+ hash = (53 * hash) + getParam().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static PrintMessageProto.Printer.Warehouse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.Warehouse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Warehouse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.Warehouse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Warehouse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.Warehouse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Warehouse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.Warehouse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Warehouse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.Warehouse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Warehouse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.Warehouse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(PrintMessageProto.Printer.Warehouse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Printer.Warehouse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring warehouseCode = 1;
+ * @return The warehouseCode.
+ */
+ public java.lang.String getWarehouseCode() {
+ java.lang.Object ref = warehouseCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ warehouseCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string warehouseCode = 1;
+ * @return The bytes for warehouseCode.
+ */
+ public com.google.protobuf.ByteString
+ getWarehouseCodeBytes() {
+ java.lang.Object ref = warehouseCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ warehouseCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string warehouseCode = 1;
+ * @param value The warehouseCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWarehouseCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ warehouseCode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string warehouseCode = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearWarehouseCode() {
+
+ warehouseCode_ = getDefaultInstance().getWarehouseCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string warehouseCode = 1;
+ * @param value The bytes for warehouseCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWarehouseCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ warehouseCode_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object warehouseName_ = "";
+ /**
+ * string warehouseName = 2;
+ * @return The warehouseName.
+ */
+ public java.lang.String getWarehouseName() {
+ java.lang.Object ref = warehouseName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ warehouseName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string warehouseName = 2;
+ * @return The bytes for warehouseName.
+ */
+ public com.google.protobuf.ByteString
+ getWarehouseNameBytes() {
+ java.lang.Object ref = warehouseName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ warehouseName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string warehouseName = 2;
+ * @param value The warehouseName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWarehouseName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ warehouseName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string warehouseName = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearWarehouseName() {
+
+ warehouseName_ = getDefaultInstance().getWarehouseName();
+ onChanged();
+ return this;
+ }
+ /**
+ * string warehouseName = 2;
+ * @param value The bytes for warehouseName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWarehouseNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ warehouseName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object personInCharge_ = "";
+ /**
+ * string personInCharge = 3;
+ * @return The personInCharge.
+ */
+ public java.lang.String getPersonInCharge() {
+ java.lang.Object ref = personInCharge_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ personInCharge_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string personInCharge = 3;
+ * @return The bytes for personInCharge.
+ */
+ public com.google.protobuf.ByteString
+ getPersonInChargeBytes() {
+ java.lang.Object ref = personInCharge_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ personInCharge_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string personInCharge = 3;
+ * @param value The personInCharge to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPersonInCharge(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ personInCharge_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string personInCharge = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearPersonInCharge() {
+
+ personInCharge_ = getDefaultInstance().getPersonInCharge();
+ onChanged();
+ return this;
+ }
+ /**
+ * string personInCharge = 3;
+ * @param value The bytes for personInCharge to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPersonInChargeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ personInCharge_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object param_ = "";
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ public java.lang.String getParam() {
+ java.lang.Object ref = param_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ param_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ public com.google.protobuf.ByteString
+ getParamBytes() {
+ java.lang.Object ref = param_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ param_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string param = 4;
+ * @param value The param to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParam(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ param_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string param = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearParam() {
+
+ param_ = getDefaultInstance().getParam();
+ onChanged();
+ return this;
+ }
+ /**
+ * string param = 4;
+ * @param value The bytes for param to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParamBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ param_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Printer.Warehouse)
+ }
+
+ // @@protoc_insertion_point(class_scope:Printer.Warehouse)
+ private static final PrintMessageProto.Printer.Warehouse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new PrintMessageProto.Printer.Warehouse();
+ }
+
+ public static PrintMessageProto.Printer.Warehouse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring warehouseLocationCode = 1;
+ * @return The warehouseLocationCode.
+ */
+ java.lang.String getWarehouseLocationCode();
+ /**
+ * string warehouseLocationCode = 1;
+ * @return The bytes for warehouseLocationCode.
+ */
+ com.google.protobuf.ByteString
+ getWarehouseLocationCodeBytes();
+
+ /**
+ * string warehouseLocationName = 2;
+ * @return The warehouseLocationName.
+ */
+ java.lang.String getWarehouseLocationName();
+ /**
+ * string warehouseLocationName = 2;
+ * @return The bytes for warehouseLocationName.
+ */
+ com.google.protobuf.ByteString
+ getWarehouseLocationNameBytes();
+
+ /**
+ * string position = 3;
+ * @return The position.
+ */
+ java.lang.String getPosition();
+ /**
+ * string position = 3;
+ * @return The bytes for position.
+ */
+ com.google.protobuf.ByteString
+ getPositionBytes();
+
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ java.lang.String getParam();
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ com.google.protobuf.ByteString
+ getParamBytes();
+ }
+ /**
+ * Protobuf type {@code Printer.WarehouseLocation}
+ */
+ public static final class WarehouseLocation extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Printer.WarehouseLocation)
+ WarehouseLocationOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use WarehouseLocation.newBuilder() to construct.
+ private WarehouseLocation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private WarehouseLocation() {
+ warehouseLocationCode_ = "";
+ warehouseLocationName_ = "";
+ position_ = "";
+ param_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new WarehouseLocation();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private WarehouseLocation(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ warehouseLocationCode_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ warehouseLocationName_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ position_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ param_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return PrintMessageProto.internal_static_Printer_WarehouseLocation_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return PrintMessageProto.internal_static_Printer_WarehouseLocation_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ PrintMessageProto.Printer.WarehouseLocation.class, PrintMessageProto.Printer.WarehouseLocation.Builder.class);
+ }
+
+ public static final int WAREHOUSELOCATIONCODE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object warehouseLocationCode_;
+ /**
+ * string warehouseLocationCode = 1;
+ * @return The warehouseLocationCode.
+ */
+ @java.lang.Override
+ public java.lang.String getWarehouseLocationCode() {
+ java.lang.Object ref = warehouseLocationCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ warehouseLocationCode_ = s;
+ return s;
+ }
+ }
+ /**
+ * string warehouseLocationCode = 1;
+ * @return The bytes for warehouseLocationCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getWarehouseLocationCodeBytes() {
+ java.lang.Object ref = warehouseLocationCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ warehouseLocationCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int WAREHOUSELOCATIONNAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object warehouseLocationName_;
+ /**
+ * string warehouseLocationName = 2;
+ * @return The warehouseLocationName.
+ */
+ @java.lang.Override
+ public java.lang.String getWarehouseLocationName() {
+ java.lang.Object ref = warehouseLocationName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ warehouseLocationName_ = s;
+ return s;
+ }
+ }
+ /**
+ * string warehouseLocationName = 2;
+ * @return The bytes for warehouseLocationName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getWarehouseLocationNameBytes() {
+ java.lang.Object ref = warehouseLocationName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ warehouseLocationName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int POSITION_FIELD_NUMBER = 3;
+ private volatile java.lang.Object position_;
+ /**
+ * string position = 3;
+ * @return The position.
+ */
+ @java.lang.Override
+ public java.lang.String getPosition() {
+ java.lang.Object ref = position_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ position_ = s;
+ return s;
+ }
+ }
+ /**
+ * string position = 3;
+ * @return The bytes for position.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPositionBytes() {
+ java.lang.Object ref = position_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ position_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARAM_FIELD_NUMBER = 4;
+ private volatile java.lang.Object param_;
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ @java.lang.Override
+ public java.lang.String getParam() {
+ java.lang.Object ref = param_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ param_ = s;
+ return s;
+ }
+ }
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getParamBytes() {
+ java.lang.Object ref = param_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ param_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warehouseLocationCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, warehouseLocationCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warehouseLocationName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, warehouseLocationName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(position_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, position_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(param_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, param_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warehouseLocationCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, warehouseLocationCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warehouseLocationName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, warehouseLocationName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(position_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, position_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(param_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, param_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof PrintMessageProto.Printer.WarehouseLocation)) {
+ return super.equals(obj);
+ }
+ PrintMessageProto.Printer.WarehouseLocation other = (PrintMessageProto.Printer.WarehouseLocation) obj;
+
+ if (!getWarehouseLocationCode()
+ .equals(other.getWarehouseLocationCode())) return false;
+ if (!getWarehouseLocationName()
+ .equals(other.getWarehouseLocationName())) return false;
+ if (!getPosition()
+ .equals(other.getPosition())) return false;
+ if (!getParam()
+ .equals(other.getParam())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + WAREHOUSELOCATIONCODE_FIELD_NUMBER;
+ hash = (53 * hash) + getWarehouseLocationCode().hashCode();
+ hash = (37 * hash) + WAREHOUSELOCATIONNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getWarehouseLocationName().hashCode();
+ hash = (37 * hash) + POSITION_FIELD_NUMBER;
+ hash = (53 * hash) + getPosition().hashCode();
+ hash = (37 * hash) + PARAM_FIELD_NUMBER;
+ hash = (53 * hash) + getParam().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static PrintMessageProto.Printer.WarehouseLocation parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.WarehouseLocation parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.WarehouseLocation parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.WarehouseLocation parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.WarehouseLocation parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.WarehouseLocation parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.WarehouseLocation parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.WarehouseLocation parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.WarehouseLocation parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.WarehouseLocation parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.WarehouseLocation parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.WarehouseLocation parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(PrintMessageProto.Printer.WarehouseLocation prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Printer.WarehouseLocation}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring warehouseLocationCode = 1;
+ * @return The warehouseLocationCode.
+ */
+ public java.lang.String getWarehouseLocationCode() {
+ java.lang.Object ref = warehouseLocationCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ warehouseLocationCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string warehouseLocationCode = 1;
+ * @return The bytes for warehouseLocationCode.
+ */
+ public com.google.protobuf.ByteString
+ getWarehouseLocationCodeBytes() {
+ java.lang.Object ref = warehouseLocationCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ warehouseLocationCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string warehouseLocationCode = 1;
+ * @param value The warehouseLocationCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWarehouseLocationCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ warehouseLocationCode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string warehouseLocationCode = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearWarehouseLocationCode() {
+
+ warehouseLocationCode_ = getDefaultInstance().getWarehouseLocationCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string warehouseLocationCode = 1;
+ * @param value The bytes for warehouseLocationCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWarehouseLocationCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ warehouseLocationCode_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object warehouseLocationName_ = "";
+ /**
+ * string warehouseLocationName = 2;
+ * @return The warehouseLocationName.
+ */
+ public java.lang.String getWarehouseLocationName() {
+ java.lang.Object ref = warehouseLocationName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ warehouseLocationName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string warehouseLocationName = 2;
+ * @return The bytes for warehouseLocationName.
+ */
+ public com.google.protobuf.ByteString
+ getWarehouseLocationNameBytes() {
+ java.lang.Object ref = warehouseLocationName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ warehouseLocationName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string warehouseLocationName = 2;
+ * @param value The warehouseLocationName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWarehouseLocationName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ warehouseLocationName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string warehouseLocationName = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearWarehouseLocationName() {
+
+ warehouseLocationName_ = getDefaultInstance().getWarehouseLocationName();
+ onChanged();
+ return this;
+ }
+ /**
+ * string warehouseLocationName = 2;
+ * @param value The bytes for warehouseLocationName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWarehouseLocationNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ warehouseLocationName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object position_ = "";
+ /**
+ * string position = 3;
+ * @return The position.
+ */
+ public java.lang.String getPosition() {
+ java.lang.Object ref = position_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ position_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string position = 3;
+ * @return The bytes for position.
+ */
+ public com.google.protobuf.ByteString
+ getPositionBytes() {
+ java.lang.Object ref = position_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ position_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string position = 3;
+ * @param value The position to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPosition(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ position_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string position = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearPosition() {
+
+ position_ = getDefaultInstance().getPosition();
+ onChanged();
+ return this;
+ }
+ /**
+ * string position = 3;
+ * @param value The bytes for position to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPositionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ position_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object param_ = "";
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ public java.lang.String getParam() {
+ java.lang.Object ref = param_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ param_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ public com.google.protobuf.ByteString
+ getParamBytes() {
+ java.lang.Object ref = param_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ param_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string param = 4;
+ * @param value The param to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParam(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ param_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string param = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearParam() {
+
+ param_ = getDefaultInstance().getParam();
+ onChanged();
+ return this;
+ }
+ /**
+ * string param = 4;
+ * @param value The bytes for param to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParamBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ param_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Printer.WarehouseLocation)
+ }
+
+ // @@protoc_insertion_point(class_scope:Printer.WarehouseLocation)
+ private static final PrintMessageProto.Printer.WarehouseLocation DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new PrintMessageProto.Printer.WarehouseLocation();
+ }
+
+ public static PrintMessageProto.Printer.WarehouseLocation getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring warehouseAreaCode = 1;
+ * @return The warehouseAreaCode.
+ */
+ java.lang.String getWarehouseAreaCode();
+ /**
+ * string warehouseAreaCode = 1;
+ * @return The bytes for warehouseAreaCode.
+ */
+ com.google.protobuf.ByteString
+ getWarehouseAreaCodeBytes();
+
+ /**
+ * string warehouseAreaName = 2;
+ * @return The warehouseAreaName.
+ */
+ java.lang.String getWarehouseAreaName();
+ /**
+ * string warehouseAreaName = 2;
+ * @return The bytes for warehouseAreaName.
+ */
+ com.google.protobuf.ByteString
+ getWarehouseAreaNameBytes();
+
+ /**
+ * string param = 3;
+ * @return The param.
+ */
+ java.lang.String getParam();
+ /**
+ * string param = 3;
+ * @return The bytes for param.
+ */
+ com.google.protobuf.ByteString
+ getParamBytes();
+ }
+ /**
+ * Protobuf type {@code Printer.WarehouseArea}
+ */
+ public static final class WarehouseArea extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Printer.WarehouseArea)
+ WarehouseAreaOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use WarehouseArea.newBuilder() to construct.
+ private WarehouseArea(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private WarehouseArea() {
+ warehouseAreaCode_ = "";
+ warehouseAreaName_ = "";
+ param_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new WarehouseArea();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private WarehouseArea(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ warehouseAreaCode_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ warehouseAreaName_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ param_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return PrintMessageProto.internal_static_Printer_WarehouseArea_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return PrintMessageProto.internal_static_Printer_WarehouseArea_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ PrintMessageProto.Printer.WarehouseArea.class, PrintMessageProto.Printer.WarehouseArea.Builder.class);
+ }
+
+ public static final int WAREHOUSEAREACODE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object warehouseAreaCode_;
+ /**
+ * string warehouseAreaCode = 1;
+ * @return The warehouseAreaCode.
+ */
+ @java.lang.Override
+ public java.lang.String getWarehouseAreaCode() {
+ java.lang.Object ref = warehouseAreaCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ warehouseAreaCode_ = s;
+ return s;
+ }
+ }
+ /**
+ * string warehouseAreaCode = 1;
+ * @return The bytes for warehouseAreaCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getWarehouseAreaCodeBytes() {
+ java.lang.Object ref = warehouseAreaCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ warehouseAreaCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int WAREHOUSEAREANAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object warehouseAreaName_;
+ /**
+ * string warehouseAreaName = 2;
+ * @return The warehouseAreaName.
+ */
+ @java.lang.Override
+ public java.lang.String getWarehouseAreaName() {
+ java.lang.Object ref = warehouseAreaName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ warehouseAreaName_ = s;
+ return s;
+ }
+ }
+ /**
+ * string warehouseAreaName = 2;
+ * @return The bytes for warehouseAreaName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getWarehouseAreaNameBytes() {
+ java.lang.Object ref = warehouseAreaName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ warehouseAreaName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARAM_FIELD_NUMBER = 3;
+ private volatile java.lang.Object param_;
+ /**
+ * string param = 3;
+ * @return The param.
+ */
+ @java.lang.Override
+ public java.lang.String getParam() {
+ java.lang.Object ref = param_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ param_ = s;
+ return s;
+ }
+ }
+ /**
+ * string param = 3;
+ * @return The bytes for param.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getParamBytes() {
+ java.lang.Object ref = param_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ param_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warehouseAreaCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, warehouseAreaCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warehouseAreaName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, warehouseAreaName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(param_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, param_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warehouseAreaCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, warehouseAreaCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(warehouseAreaName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, warehouseAreaName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(param_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, param_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof PrintMessageProto.Printer.WarehouseArea)) {
+ return super.equals(obj);
+ }
+ PrintMessageProto.Printer.WarehouseArea other = (PrintMessageProto.Printer.WarehouseArea) obj;
+
+ if (!getWarehouseAreaCode()
+ .equals(other.getWarehouseAreaCode())) return false;
+ if (!getWarehouseAreaName()
+ .equals(other.getWarehouseAreaName())) return false;
+ if (!getParam()
+ .equals(other.getParam())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + WAREHOUSEAREACODE_FIELD_NUMBER;
+ hash = (53 * hash) + getWarehouseAreaCode().hashCode();
+ hash = (37 * hash) + WAREHOUSEAREANAME_FIELD_NUMBER;
+ hash = (53 * hash) + getWarehouseAreaName().hashCode();
+ hash = (37 * hash) + PARAM_FIELD_NUMBER;
+ hash = (53 * hash) + getParam().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static PrintMessageProto.Printer.WarehouseArea parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.WarehouseArea parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.WarehouseArea parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.WarehouseArea parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.WarehouseArea parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.WarehouseArea parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.WarehouseArea parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.WarehouseArea parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.WarehouseArea parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.WarehouseArea parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.WarehouseArea parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.WarehouseArea parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(PrintMessageProto.Printer.WarehouseArea prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Printer.WarehouseArea}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring warehouseAreaCode = 1;
+ * @return The warehouseAreaCode.
+ */
+ public java.lang.String getWarehouseAreaCode() {
+ java.lang.Object ref = warehouseAreaCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ warehouseAreaCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string warehouseAreaCode = 1;
+ * @return The bytes for warehouseAreaCode.
+ */
+ public com.google.protobuf.ByteString
+ getWarehouseAreaCodeBytes() {
+ java.lang.Object ref = warehouseAreaCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ warehouseAreaCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string warehouseAreaCode = 1;
+ * @param value The warehouseAreaCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWarehouseAreaCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ warehouseAreaCode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string warehouseAreaCode = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearWarehouseAreaCode() {
+
+ warehouseAreaCode_ = getDefaultInstance().getWarehouseAreaCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string warehouseAreaCode = 1;
+ * @param value The bytes for warehouseAreaCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWarehouseAreaCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ warehouseAreaCode_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object warehouseAreaName_ = "";
+ /**
+ * string warehouseAreaName = 2;
+ * @return The warehouseAreaName.
+ */
+ public java.lang.String getWarehouseAreaName() {
+ java.lang.Object ref = warehouseAreaName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ warehouseAreaName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string warehouseAreaName = 2;
+ * @return The bytes for warehouseAreaName.
+ */
+ public com.google.protobuf.ByteString
+ getWarehouseAreaNameBytes() {
+ java.lang.Object ref = warehouseAreaName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ warehouseAreaName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string warehouseAreaName = 2;
+ * @param value The warehouseAreaName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWarehouseAreaName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ warehouseAreaName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string warehouseAreaName = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearWarehouseAreaName() {
+
+ warehouseAreaName_ = getDefaultInstance().getWarehouseAreaName();
+ onChanged();
+ return this;
+ }
+ /**
+ * string warehouseAreaName = 2;
+ * @param value The bytes for warehouseAreaName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWarehouseAreaNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ warehouseAreaName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object param_ = "";
+ /**
+ * string param = 3;
+ * @return The param.
+ */
+ public java.lang.String getParam() {
+ java.lang.Object ref = param_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ param_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string param = 3;
+ * @return The bytes for param.
+ */
+ public com.google.protobuf.ByteString
+ getParamBytes() {
+ java.lang.Object ref = param_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ param_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string param = 3;
+ * @param value The param to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParam(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ param_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string param = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearParam() {
+
+ param_ = getDefaultInstance().getParam();
+ onChanged();
+ return this;
+ }
+ /**
+ * string param = 3;
+ * @param value The bytes for param to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParamBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ param_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Printer.WarehouseArea)
+ }
+
+ // @@protoc_insertion_point(class_scope:Printer.WarehouseArea)
+ private static final PrintMessageProto.Printer.WarehouseArea DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new PrintMessageProto.Printer.WarehouseArea();
+ }
+
+ public static PrintMessageProto.Printer.WarehouseArea getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring equipmentCode = 1;
+ * @return The equipmentCode.
+ */
+ java.lang.String getEquipmentCode();
+ /**
+ * string equipmentCode = 1;
+ * @return The bytes for equipmentCode.
+ */
+ com.google.protobuf.ByteString
+ getEquipmentCodeBytes();
+
+ /**
+ * string equipmentName = 2;
+ * @return The equipmentName.
+ */
+ java.lang.String getEquipmentName();
+ /**
+ * string equipmentName = 2;
+ * @return The bytes for equipmentName.
+ */
+ com.google.protobuf.ByteString
+ getEquipmentNameBytes();
+
+ /**
+ * string specificationAndModel = 3;
+ * @return The specificationAndModel.
+ */
+ java.lang.String getSpecificationAndModel();
+ /**
+ * string specificationAndModel = 3;
+ * @return The bytes for specificationAndModel.
+ */
+ com.google.protobuf.ByteString
+ getSpecificationAndModelBytes();
+
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ java.lang.String getParam();
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ com.google.protobuf.ByteString
+ getParamBytes();
+ }
+ /**
+ * Protobuf type {@code Printer.Equipment}
+ */
+ public static final class Equipment extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Printer.Equipment)
+ EquipmentOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Equipment.newBuilder() to construct.
+ private Equipment(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Equipment() {
+ equipmentCode_ = "";
+ equipmentName_ = "";
+ specificationAndModel_ = "";
+ param_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Equipment();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Equipment(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ equipmentCode_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ equipmentName_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ specificationAndModel_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ param_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return PrintMessageProto.internal_static_Printer_Equipment_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return PrintMessageProto.internal_static_Printer_Equipment_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ PrintMessageProto.Printer.Equipment.class, PrintMessageProto.Printer.Equipment.Builder.class);
+ }
+
+ public static final int EQUIPMENTCODE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object equipmentCode_;
+ /**
+ * string equipmentCode = 1;
+ * @return The equipmentCode.
+ */
+ @java.lang.Override
+ public java.lang.String getEquipmentCode() {
+ java.lang.Object ref = equipmentCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ equipmentCode_ = s;
+ return s;
+ }
+ }
+ /**
+ * string equipmentCode = 1;
+ * @return The bytes for equipmentCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getEquipmentCodeBytes() {
+ java.lang.Object ref = equipmentCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ equipmentCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EQUIPMENTNAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object equipmentName_;
+ /**
+ * string equipmentName = 2;
+ * @return The equipmentName.
+ */
+ @java.lang.Override
+ public java.lang.String getEquipmentName() {
+ java.lang.Object ref = equipmentName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ equipmentName_ = s;
+ return s;
+ }
+ }
+ /**
+ * string equipmentName = 2;
+ * @return The bytes for equipmentName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getEquipmentNameBytes() {
+ java.lang.Object ref = equipmentName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ equipmentName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SPECIFICATIONANDMODEL_FIELD_NUMBER = 3;
+ private volatile java.lang.Object specificationAndModel_;
+ /**
+ * string specificationAndModel = 3;
+ * @return The specificationAndModel.
+ */
+ @java.lang.Override
+ public java.lang.String getSpecificationAndModel() {
+ java.lang.Object ref = specificationAndModel_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ specificationAndModel_ = s;
+ return s;
+ }
+ }
+ /**
+ * string specificationAndModel = 3;
+ * @return The bytes for specificationAndModel.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSpecificationAndModelBytes() {
+ java.lang.Object ref = specificationAndModel_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ specificationAndModel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARAM_FIELD_NUMBER = 4;
+ private volatile java.lang.Object param_;
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ @java.lang.Override
+ public java.lang.String getParam() {
+ java.lang.Object ref = param_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ param_ = s;
+ return s;
+ }
+ }
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getParamBytes() {
+ java.lang.Object ref = param_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ param_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(equipmentCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, equipmentCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(equipmentName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, equipmentName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specificationAndModel_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, specificationAndModel_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(param_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, param_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(equipmentCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, equipmentCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(equipmentName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, equipmentName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specificationAndModel_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, specificationAndModel_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(param_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, param_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof PrintMessageProto.Printer.Equipment)) {
+ return super.equals(obj);
+ }
+ PrintMessageProto.Printer.Equipment other = (PrintMessageProto.Printer.Equipment) obj;
+
+ if (!getEquipmentCode()
+ .equals(other.getEquipmentCode())) return false;
+ if (!getEquipmentName()
+ .equals(other.getEquipmentName())) return false;
+ if (!getSpecificationAndModel()
+ .equals(other.getSpecificationAndModel())) return false;
+ if (!getParam()
+ .equals(other.getParam())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + EQUIPMENTCODE_FIELD_NUMBER;
+ hash = (53 * hash) + getEquipmentCode().hashCode();
+ hash = (37 * hash) + EQUIPMENTNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getEquipmentName().hashCode();
+ hash = (37 * hash) + SPECIFICATIONANDMODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getSpecificationAndModel().hashCode();
+ hash = (37 * hash) + PARAM_FIELD_NUMBER;
+ hash = (53 * hash) + getParam().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static PrintMessageProto.Printer.Equipment parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.Equipment parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Equipment parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.Equipment parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Equipment parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.Equipment parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Equipment parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.Equipment parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Equipment parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.Equipment parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Equipment parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.Equipment parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(PrintMessageProto.Printer.Equipment prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Printer.Equipment}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring equipmentCode = 1;
+ * @return The equipmentCode.
+ */
+ public java.lang.String getEquipmentCode() {
+ java.lang.Object ref = equipmentCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ equipmentCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string equipmentCode = 1;
+ * @return The bytes for equipmentCode.
+ */
+ public com.google.protobuf.ByteString
+ getEquipmentCodeBytes() {
+ java.lang.Object ref = equipmentCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ equipmentCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string equipmentCode = 1;
+ * @param value The equipmentCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEquipmentCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ equipmentCode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string equipmentCode = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearEquipmentCode() {
+
+ equipmentCode_ = getDefaultInstance().getEquipmentCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string equipmentCode = 1;
+ * @param value The bytes for equipmentCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEquipmentCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ equipmentCode_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object equipmentName_ = "";
+ /**
+ * string equipmentName = 2;
+ * @return The equipmentName.
+ */
+ public java.lang.String getEquipmentName() {
+ java.lang.Object ref = equipmentName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ equipmentName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string equipmentName = 2;
+ * @return The bytes for equipmentName.
+ */
+ public com.google.protobuf.ByteString
+ getEquipmentNameBytes() {
+ java.lang.Object ref = equipmentName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ equipmentName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string equipmentName = 2;
+ * @param value The equipmentName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEquipmentName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ equipmentName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string equipmentName = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearEquipmentName() {
+
+ equipmentName_ = getDefaultInstance().getEquipmentName();
+ onChanged();
+ return this;
+ }
+ /**
+ * string equipmentName = 2;
+ * @param value The bytes for equipmentName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEquipmentNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ equipmentName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object specificationAndModel_ = "";
+ /**
+ * string specificationAndModel = 3;
+ * @return The specificationAndModel.
+ */
+ public java.lang.String getSpecificationAndModel() {
+ java.lang.Object ref = specificationAndModel_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ specificationAndModel_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string specificationAndModel = 3;
+ * @return The bytes for specificationAndModel.
+ */
+ public com.google.protobuf.ByteString
+ getSpecificationAndModelBytes() {
+ java.lang.Object ref = specificationAndModel_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ specificationAndModel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string specificationAndModel = 3;
+ * @param value The specificationAndModel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpecificationAndModel(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ specificationAndModel_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string specificationAndModel = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearSpecificationAndModel() {
+
+ specificationAndModel_ = getDefaultInstance().getSpecificationAndModel();
+ onChanged();
+ return this;
+ }
+ /**
+ * string specificationAndModel = 3;
+ * @param value The bytes for specificationAndModel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpecificationAndModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ specificationAndModel_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object param_ = "";
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ public java.lang.String getParam() {
+ java.lang.Object ref = param_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ param_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ public com.google.protobuf.ByteString
+ getParamBytes() {
+ java.lang.Object ref = param_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ param_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string param = 4;
+ * @param value The param to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParam(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ param_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string param = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearParam() {
+
+ param_ = getDefaultInstance().getParam();
+ onChanged();
+ return this;
+ }
+ /**
+ * string param = 4;
+ * @param value The bytes for param to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParamBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ param_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Printer.Equipment)
+ }
+
+ // @@protoc_insertion_point(class_scope:Printer.Equipment)
+ private static final PrintMessageProto.Printer.Equipment DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new PrintMessageProto.Printer.Equipment();
+ }
+
+ public static PrintMessageProto.Printer.Equipment getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring workstationCode = 1;
+ * @return The workstationCode.
+ */
+ java.lang.String getWorkstationCode();
+ /**
+ * string workstationCode = 1;
+ * @return The bytes for workstationCode.
+ */
+ com.google.protobuf.ByteString
+ getWorkstationCodeBytes();
+
+ /**
+ * string workstationName = 2;
+ * @return The workstationName.
+ */
+ java.lang.String getWorkstationName();
+ /**
+ * string workstationName = 2;
+ * @return The bytes for workstationName.
+ */
+ com.google.protobuf.ByteString
+ getWorkstationNameBytes();
+
+ /**
+ * string belongingProcess = 3;
+ * @return The belongingProcess.
+ */
+ java.lang.String getBelongingProcess();
+ /**
+ * string belongingProcess = 3;
+ * @return The bytes for belongingProcess.
+ */
+ com.google.protobuf.ByteString
+ getBelongingProcessBytes();
+
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ java.lang.String getParam();
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ com.google.protobuf.ByteString
+ getParamBytes();
+ }
+ /**
+ * Protobuf type {@code Printer.Workstation}
+ */
+ public static final class Workstation extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Printer.Workstation)
+ WorkstationOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Workstation.newBuilder() to construct.
+ private Workstation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Workstation() {
+ workstationCode_ = "";
+ workstationName_ = "";
+ belongingProcess_ = "";
+ param_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Workstation();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Workstation(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ workstationCode_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ workstationName_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ belongingProcess_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ param_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return PrintMessageProto.internal_static_Printer_Workstation_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return PrintMessageProto.internal_static_Printer_Workstation_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ PrintMessageProto.Printer.Workstation.class, PrintMessageProto.Printer.Workstation.Builder.class);
+ }
+
+ public static final int WORKSTATIONCODE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object workstationCode_;
+ /**
+ * string workstationCode = 1;
+ * @return The workstationCode.
+ */
+ @java.lang.Override
+ public java.lang.String getWorkstationCode() {
+ java.lang.Object ref = workstationCode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ workstationCode_ = s;
+ return s;
+ }
+ }
+ /**
+ * string workstationCode = 1;
+ * @return The bytes for workstationCode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getWorkstationCodeBytes() {
+ java.lang.Object ref = workstationCode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ workstationCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int WORKSTATIONNAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object workstationName_;
+ /**
+ * string workstationName = 2;
+ * @return The workstationName.
+ */
+ @java.lang.Override
+ public java.lang.String getWorkstationName() {
+ java.lang.Object ref = workstationName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ workstationName_ = s;
+ return s;
+ }
+ }
+ /**
+ * string workstationName = 2;
+ * @return The bytes for workstationName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getWorkstationNameBytes() {
+ java.lang.Object ref = workstationName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ workstationName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BELONGINGPROCESS_FIELD_NUMBER = 3;
+ private volatile java.lang.Object belongingProcess_;
+ /**
+ * string belongingProcess = 3;
+ * @return The belongingProcess.
+ */
+ @java.lang.Override
+ public java.lang.String getBelongingProcess() {
+ java.lang.Object ref = belongingProcess_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ belongingProcess_ = s;
+ return s;
+ }
+ }
+ /**
+ * string belongingProcess = 3;
+ * @return The bytes for belongingProcess.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getBelongingProcessBytes() {
+ java.lang.Object ref = belongingProcess_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ belongingProcess_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARAM_FIELD_NUMBER = 4;
+ private volatile java.lang.Object param_;
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ @java.lang.Override
+ public java.lang.String getParam() {
+ java.lang.Object ref = param_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ param_ = s;
+ return s;
+ }
+ }
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getParamBytes() {
+ java.lang.Object ref = param_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ param_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workstationCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workstationCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workstationName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workstationName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(belongingProcess_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, belongingProcess_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(param_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, param_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workstationCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workstationCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workstationName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(belongingProcess_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, belongingProcess_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(param_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, param_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof PrintMessageProto.Printer.Workstation)) {
+ return super.equals(obj);
+ }
+ PrintMessageProto.Printer.Workstation other = (PrintMessageProto.Printer.Workstation) obj;
+
+ if (!getWorkstationCode()
+ .equals(other.getWorkstationCode())) return false;
+ if (!getWorkstationName()
+ .equals(other.getWorkstationName())) return false;
+ if (!getBelongingProcess()
+ .equals(other.getBelongingProcess())) return false;
+ if (!getParam()
+ .equals(other.getParam())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + WORKSTATIONCODE_FIELD_NUMBER;
+ hash = (53 * hash) + getWorkstationCode().hashCode();
+ hash = (37 * hash) + WORKSTATIONNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getWorkstationName().hashCode();
+ hash = (37 * hash) + BELONGINGPROCESS_FIELD_NUMBER;
+ hash = (53 * hash) + getBelongingProcess().hashCode();
+ hash = (37 * hash) + PARAM_FIELD_NUMBER;
+ hash = (53 * hash) + getParam().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static PrintMessageProto.Printer.Workstation parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.Workstation parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Workstation parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.Workstation parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Workstation parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.Workstation parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Workstation parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.Workstation parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Workstation parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.Workstation parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.Workstation parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.Workstation parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(PrintMessageProto.Printer.Workstation prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Printer.Workstation}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring workstationCode = 1;
+ * @return The workstationCode.
+ */
+ public java.lang.String getWorkstationCode() {
+ java.lang.Object ref = workstationCode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ workstationCode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string workstationCode = 1;
+ * @return The bytes for workstationCode.
+ */
+ public com.google.protobuf.ByteString
+ getWorkstationCodeBytes() {
+ java.lang.Object ref = workstationCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ workstationCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string workstationCode = 1;
+ * @param value The workstationCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWorkstationCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ workstationCode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string workstationCode = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearWorkstationCode() {
+
+ workstationCode_ = getDefaultInstance().getWorkstationCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string workstationCode = 1;
+ * @param value The bytes for workstationCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWorkstationCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ workstationCode_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object workstationName_ = "";
+ /**
+ * string workstationName = 2;
+ * @return The workstationName.
+ */
+ public java.lang.String getWorkstationName() {
+ java.lang.Object ref = workstationName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ workstationName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string workstationName = 2;
+ * @return The bytes for workstationName.
+ */
+ public com.google.protobuf.ByteString
+ getWorkstationNameBytes() {
+ java.lang.Object ref = workstationName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ workstationName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string workstationName = 2;
+ * @param value The workstationName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWorkstationName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ workstationName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string workstationName = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearWorkstationName() {
+
+ workstationName_ = getDefaultInstance().getWorkstationName();
+ onChanged();
+ return this;
+ }
+ /**
+ * string workstationName = 2;
+ * @param value The bytes for workstationName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWorkstationNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ workstationName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object belongingProcess_ = "";
+ /**
+ * string belongingProcess = 3;
+ * @return The belongingProcess.
+ */
+ public java.lang.String getBelongingProcess() {
+ java.lang.Object ref = belongingProcess_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ belongingProcess_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string belongingProcess = 3;
+ * @return The bytes for belongingProcess.
+ */
+ public com.google.protobuf.ByteString
+ getBelongingProcessBytes() {
+ java.lang.Object ref = belongingProcess_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ belongingProcess_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string belongingProcess = 3;
+ * @param value The belongingProcess to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBelongingProcess(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ belongingProcess_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string belongingProcess = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearBelongingProcess() {
+
+ belongingProcess_ = getDefaultInstance().getBelongingProcess();
+ onChanged();
+ return this;
+ }
+ /**
+ * string belongingProcess = 3;
+ * @param value The bytes for belongingProcess to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBelongingProcessBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ belongingProcess_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object param_ = "";
+ /**
+ * string param = 4;
+ * @return The param.
+ */
+ public java.lang.String getParam() {
+ java.lang.Object ref = param_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ param_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string param = 4;
+ * @return The bytes for param.
+ */
+ public com.google.protobuf.ByteString
+ getParamBytes() {
+ java.lang.Object ref = param_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ param_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string param = 4;
+ * @param value The param to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParam(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ param_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string param = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearParam() {
+
+ param_ = getDefaultInstance().getParam();
+ onChanged();
+ return this;
+ }
+ /**
+ * string param = 4;
+ * @param value The bytes for param to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParamBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ param_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Printer.Workstation)
+ }
+
+ // @@protoc_insertion_point(class_scope:Printer.Workstation)
+ private static final PrintMessageProto.Printer.Workstation DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new PrintMessageProto.Printer.Workstation();
+ }
+
+ public static PrintMessageProto.Printer.Workstation getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring ip = 1;
+ * @return The ip.
+ */
+ java.lang.String getIp();
+ /**
+ * string ip = 1;
+ * @return The bytes for ip.
+ */
+ com.google.protobuf.ByteString
+ getIpBytes();
+
+ /**
+ * string code = 2;
+ * @return The code.
+ */
+ java.lang.String getCode();
+ /**
+ * string code = 2;
+ * @return The bytes for code.
+ */
+ com.google.protobuf.ByteString
+ getCodeBytes();
+
+ /**
+ * string name = 3;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 3;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * string port = 4;
+ * @return The port.
+ */
+ java.lang.String getPort();
+ /**
+ * string port = 4;
+ * @return The bytes for port.
+ */
+ com.google.protobuf.ByteString
+ getPortBytes();
+ }
+ /**
+ * + *打印机信息 + *+ * + * Protobuf type {@code Printer.PrintInfo} + */ + public static final class PrintInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Printer.PrintInfo) + PrintInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrintInfo.newBuilder() to construct. + private PrintInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private PrintInfo() { + ip_ = ""; + code_ = ""; + name_ = ""; + port_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PrintInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PrintInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + ip_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + port_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PrintMessageProto.internal_static_Printer_PrintInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return PrintMessageProto.internal_static_Printer_PrintInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PrintMessageProto.Printer.PrintInfo.class, PrintMessageProto.Printer.PrintInfo.Builder.class); + } + + public static final int IP_FIELD_NUMBER = 1; + private volatile java.lang.Object ip_; + /** + *
string ip = 1;
+ * @return The ip.
+ */
+ @java.lang.Override
+ public java.lang.String getIp() {
+ java.lang.Object ref = ip_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ ip_ = s;
+ return s;
+ }
+ }
+ /**
+ * string ip = 1;
+ * @return The bytes for ip.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getIpBytes() {
+ java.lang.Object ref = ip_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ ip_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CODE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object code_;
+ /**
+ * string code = 2;
+ * @return The code.
+ */
+ @java.lang.Override
+ public java.lang.String getCode() {
+ java.lang.Object ref = code_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ code_ = s;
+ return s;
+ }
+ }
+ /**
+ * string code = 2;
+ * @return The bytes for code.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getCodeBytes() {
+ java.lang.Object ref = code_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ code_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 3;
+ private volatile java.lang.Object name_;
+ /**
+ * string name = 3;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 3;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PORT_FIELD_NUMBER = 4;
+ private volatile java.lang.Object port_;
+ /**
+ * string port = 4;
+ * @return The port.
+ */
+ @java.lang.Override
+ public java.lang.String getPort() {
+ java.lang.Object ref = port_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ port_ = s;
+ return s;
+ }
+ }
+ /**
+ * string port = 4;
+ * @return The bytes for port.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPortBytes() {
+ java.lang.Object ref = port_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ port_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, code_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(port_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, port_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ip_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, code_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(port_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, port_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof PrintMessageProto.Printer.PrintInfo)) {
+ return super.equals(obj);
+ }
+ PrintMessageProto.Printer.PrintInfo other = (PrintMessageProto.Printer.PrintInfo) obj;
+
+ if (!getIp()
+ .equals(other.getIp())) return false;
+ if (!getCode()
+ .equals(other.getCode())) return false;
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getPort()
+ .equals(other.getPort())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + IP_FIELD_NUMBER;
+ hash = (53 * hash) + getIp().hashCode();
+ hash = (37 * hash) + CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getCode().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getPort().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static PrintMessageProto.Printer.PrintInfo parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.PrintInfo parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.PrintInfo parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer.PrintInfo parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintInfo parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.PrintInfo parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintInfo parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.PrintInfo parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer.PrintInfo parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer.PrintInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(PrintMessageProto.Printer.PrintInfo prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * + *打印机信息 + *+ * + * Protobuf type {@code Printer.PrintInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
string ip = 1;
+ * @return The ip.
+ */
+ public java.lang.String getIp() {
+ java.lang.Object ref = ip_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ ip_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string ip = 1;
+ * @return The bytes for ip.
+ */
+ public com.google.protobuf.ByteString
+ getIpBytes() {
+ java.lang.Object ref = ip_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ ip_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string ip = 1;
+ * @param value The ip to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIp(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ ip_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string ip = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearIp() {
+
+ ip_ = getDefaultInstance().getIp();
+ onChanged();
+ return this;
+ }
+ /**
+ * string ip = 1;
+ * @param value The bytes for ip to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIpBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ ip_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object code_ = "";
+ /**
+ * string code = 2;
+ * @return The code.
+ */
+ public java.lang.String getCode() {
+ java.lang.Object ref = code_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ code_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string code = 2;
+ * @return The bytes for code.
+ */
+ public com.google.protobuf.ByteString
+ getCodeBytes() {
+ java.lang.Object ref = code_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ code_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string code = 2;
+ * @param value The code to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCode(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ code_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string code = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCode() {
+
+ code_ = getDefaultInstance().getCode();
+ onChanged();
+ return this;
+ }
+ /**
+ * string code = 2;
+ * @param value The bytes for code to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCodeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ code_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * string name = 3;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 3;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 3;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 3;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object port_ = "";
+ /**
+ * string port = 4;
+ * @return The port.
+ */
+ public java.lang.String getPort() {
+ java.lang.Object ref = port_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ port_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string port = 4;
+ * @return The bytes for port.
+ */
+ public com.google.protobuf.ByteString
+ getPortBytes() {
+ java.lang.Object ref = port_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ port_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string port = 4;
+ * @param value The port to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPort(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ port_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string port = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearPort() {
+
+ port_ = getDefaultInstance().getPort();
+ onChanged();
+ return this;
+ }
+ /**
+ * string port = 4;
+ * @param value The bytes for port to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPortBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ port_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Printer.PrintInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:Printer.PrintInfo)
+ private static final PrintMessageProto.Printer.PrintInfo DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new PrintMessageProto.Printer.PrintInfo();
+ }
+
+ public static PrintMessageProto.Printer.PrintInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ *用data_type来识别哪个枚举类型(DataType是People的第一个属性,属性名是data_type) + *+ * + *
.Printer.DataType data_type = 1;
+ * @return The enum numeric value on the wire for dataType.
+ */
+ @java.lang.Override public int getDataTypeValue() {
+ return dataType_;
+ }
+ /**
+ * + *用data_type来识别哪个枚举类型(DataType是People的第一个属性,属性名是data_type) + *+ * + *
.Printer.DataType data_type = 1;
+ * @return The dataType.
+ */
+ @java.lang.Override public PrintMessageProto.Printer.DataType getDataType() {
+ @SuppressWarnings("deprecation")
+ PrintMessageProto.Printer.DataType result = PrintMessageProto.Printer.DataType.valueOf(dataType_);
+ return result == null ? PrintMessageProto.Printer.DataType.UNRECOGNIZED : result;
+ }
+
+ public static final int PRINTINFO_FIELD_NUMBER = 14;
+ private PrintMessageProto.Printer.PrintInfo printInfo_;
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ * @return Whether the printInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrintInfo() {
+ return printInfo_ != null;
+ }
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ * @return The printInfo.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.PrintInfo getPrintInfo() {
+ return printInfo_ == null ? PrintMessageProto.Printer.PrintInfo.getDefaultInstance() : printInfo_;
+ }
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.PrintInfoOrBuilder getPrintInfoOrBuilder() {
+ return getPrintInfo();
+ }
+
+ public static final int IQCPRINTMESSAGE_FIELD_NUMBER = 2;
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ * @return Whether the iqcPrintMessage field is set.
+ */
+ @java.lang.Override
+ public boolean hasIqcPrintMessage() {
+ return dataBodyCase_ == 2;
+ }
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ * @return The iqcPrintMessage.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.IQCPrintMessage getIqcPrintMessage() {
+ if (dataBodyCase_ == 2) {
+ return (PrintMessageProto.Printer.IQCPrintMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.IQCPrintMessage.getDefaultInstance();
+ }
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.IQCPrintMessageOrBuilder getIqcPrintMessageOrBuilder() {
+ if (dataBodyCase_ == 2) {
+ return (PrintMessageProto.Printer.IQCPrintMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.IQCPrintMessage.getDefaultInstance();
+ }
+
+ public static final int PQCPRINTMESSAGE_FIELD_NUMBER = 3;
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ * @return Whether the pqcPrintMessage field is set.
+ */
+ @java.lang.Override
+ public boolean hasPqcPrintMessage() {
+ return dataBodyCase_ == 3;
+ }
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ * @return The pqcPrintMessage.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.PQCPrintMessage getPqcPrintMessage() {
+ if (dataBodyCase_ == 3) {
+ return (PrintMessageProto.Printer.PQCPrintMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.PQCPrintMessage.getDefaultInstance();
+ }
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.PQCPrintMessageOrBuilder getPqcPrintMessageOrBuilder() {
+ if (dataBodyCase_ == 3) {
+ return (PrintMessageProto.Printer.PQCPrintMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.PQCPrintMessage.getDefaultInstance();
+ }
+
+ public static final int OQPRINTMESSAGE_FIELD_NUMBER = 4;
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ * @return Whether the oqPrintMessage field is set.
+ */
+ @java.lang.Override
+ public boolean hasOqPrintMessage() {
+ return dataBodyCase_ == 4;
+ }
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ * @return The oqPrintMessage.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.OQCPrintMessage getOqPrintMessage() {
+ if (dataBodyCase_ == 4) {
+ return (PrintMessageProto.Printer.OQCPrintMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.OQCPrintMessage.getDefaultInstance();
+ }
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.OQCPrintMessageOrBuilder getOqPrintMessageOrBuilder() {
+ if (dataBodyCase_ == 4) {
+ return (PrintMessageProto.Printer.OQCPrintMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.OQCPrintMessage.getDefaultInstance();
+ }
+
+ public static final int PRINTCLIENTINFOMESSAGE_FIELD_NUMBER = 5;
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ * @return Whether the printClientInfoMessage field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrintClientInfoMessage() {
+ return dataBodyCase_ == 5;
+ }
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ * @return The printClientInfoMessage.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.PrintClientInfoMessage getPrintClientInfoMessage() {
+ if (dataBodyCase_ == 5) {
+ return (PrintMessageProto.Printer.PrintClientInfoMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.PrintClientInfoMessage.getDefaultInstance();
+ }
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.PrintClientInfoMessageOrBuilder getPrintClientInfoMessageOrBuilder() {
+ if (dataBodyCase_ == 5) {
+ return (PrintMessageProto.Printer.PrintClientInfoMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.PrintClientInfoMessage.getDefaultInstance();
+ }
+
+ public static final int PRINTINGOFCIRCULATION_FIELD_NUMBER = 6;
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ * @return Whether the printingOfCirculation field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrintingOfCirculation() {
+ return dataBodyCase_ == 6;
+ }
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ * @return The printingOfCirculation.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.PrintingOfCirculation getPrintingOfCirculation() {
+ if (dataBodyCase_ == 6) {
+ return (PrintMessageProto.Printer.PrintingOfCirculation) dataBody_;
+ }
+ return PrintMessageProto.Printer.PrintingOfCirculation.getDefaultInstance();
+ }
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.PrintingOfCirculationOrBuilder getPrintingOfCirculationOrBuilder() {
+ if (dataBodyCase_ == 6) {
+ return (PrintMessageProto.Printer.PrintingOfCirculation) dataBody_;
+ }
+ return PrintMessageProto.Printer.PrintingOfCirculation.getDefaultInstance();
+ }
+
+ public static final int MATERIALPRODUCTS_FIELD_NUMBER = 7;
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ * @return Whether the materialProducts field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaterialProducts() {
+ return dataBodyCase_ == 7;
+ }
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ * @return The materialProducts.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.MaterialProducts getMaterialProducts() {
+ if (dataBodyCase_ == 7) {
+ return (PrintMessageProto.Printer.MaterialProducts) dataBody_;
+ }
+ return PrintMessageProto.Printer.MaterialProducts.getDefaultInstance();
+ }
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.MaterialProductsOrBuilder getMaterialProductsOrBuilder() {
+ if (dataBodyCase_ == 7) {
+ return (PrintMessageProto.Printer.MaterialProducts) dataBody_;
+ }
+ return PrintMessageProto.Printer.MaterialProducts.getDefaultInstance();
+ }
+
+ public static final int WAREHOUSE_FIELD_NUMBER = 8;
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ * @return Whether the warehouse field is set.
+ */
+ @java.lang.Override
+ public boolean hasWarehouse() {
+ return dataBodyCase_ == 8;
+ }
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ * @return The warehouse.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.Warehouse getWarehouse() {
+ if (dataBodyCase_ == 8) {
+ return (PrintMessageProto.Printer.Warehouse) dataBody_;
+ }
+ return PrintMessageProto.Printer.Warehouse.getDefaultInstance();
+ }
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.WarehouseOrBuilder getWarehouseOrBuilder() {
+ if (dataBodyCase_ == 8) {
+ return (PrintMessageProto.Printer.Warehouse) dataBody_;
+ }
+ return PrintMessageProto.Printer.Warehouse.getDefaultInstance();
+ }
+
+ public static final int WAREHOUSELOCATION_FIELD_NUMBER = 9;
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ * @return Whether the warehouseLocation field is set.
+ */
+ @java.lang.Override
+ public boolean hasWarehouseLocation() {
+ return dataBodyCase_ == 9;
+ }
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ * @return The warehouseLocation.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.WarehouseLocation getWarehouseLocation() {
+ if (dataBodyCase_ == 9) {
+ return (PrintMessageProto.Printer.WarehouseLocation) dataBody_;
+ }
+ return PrintMessageProto.Printer.WarehouseLocation.getDefaultInstance();
+ }
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.WarehouseLocationOrBuilder getWarehouseLocationOrBuilder() {
+ if (dataBodyCase_ == 9) {
+ return (PrintMessageProto.Printer.WarehouseLocation) dataBody_;
+ }
+ return PrintMessageProto.Printer.WarehouseLocation.getDefaultInstance();
+ }
+
+ public static final int WAREHOUSEAREA_FIELD_NUMBER = 10;
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ * @return Whether the warehouseArea field is set.
+ */
+ @java.lang.Override
+ public boolean hasWarehouseArea() {
+ return dataBodyCase_ == 10;
+ }
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ * @return The warehouseArea.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.WarehouseArea getWarehouseArea() {
+ if (dataBodyCase_ == 10) {
+ return (PrintMessageProto.Printer.WarehouseArea) dataBody_;
+ }
+ return PrintMessageProto.Printer.WarehouseArea.getDefaultInstance();
+ }
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.WarehouseAreaOrBuilder getWarehouseAreaOrBuilder() {
+ if (dataBodyCase_ == 10) {
+ return (PrintMessageProto.Printer.WarehouseArea) dataBody_;
+ }
+ return PrintMessageProto.Printer.WarehouseArea.getDefaultInstance();
+ }
+
+ public static final int EQUIPMENT_FIELD_NUMBER = 11;
+ /**
+ * .Printer.Equipment equipment = 11;
+ * @return Whether the equipment field is set.
+ */
+ @java.lang.Override
+ public boolean hasEquipment() {
+ return dataBodyCase_ == 11;
+ }
+ /**
+ * .Printer.Equipment equipment = 11;
+ * @return The equipment.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.Equipment getEquipment() {
+ if (dataBodyCase_ == 11) {
+ return (PrintMessageProto.Printer.Equipment) dataBody_;
+ }
+ return PrintMessageProto.Printer.Equipment.getDefaultInstance();
+ }
+ /**
+ * .Printer.Equipment equipment = 11;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.EquipmentOrBuilder getEquipmentOrBuilder() {
+ if (dataBodyCase_ == 11) {
+ return (PrintMessageProto.Printer.Equipment) dataBody_;
+ }
+ return PrintMessageProto.Printer.Equipment.getDefaultInstance();
+ }
+
+ public static final int WORKSTATION_FIELD_NUMBER = 12;
+ /**
+ * .Printer.Workstation workstation = 12;
+ * @return Whether the workstation field is set.
+ */
+ @java.lang.Override
+ public boolean hasWorkstation() {
+ return dataBodyCase_ == 12;
+ }
+ /**
+ * .Printer.Workstation workstation = 12;
+ * @return The workstation.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.Workstation getWorkstation() {
+ if (dataBodyCase_ == 12) {
+ return (PrintMessageProto.Printer.Workstation) dataBody_;
+ }
+ return PrintMessageProto.Printer.Workstation.getDefaultInstance();
+ }
+ /**
+ * .Printer.Workstation workstation = 12;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.WorkstationOrBuilder getWorkstationOrBuilder() {
+ if (dataBodyCase_ == 12) {
+ return (PrintMessageProto.Printer.Workstation) dataBody_;
+ }
+ return PrintMessageProto.Printer.Workstation.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (dataType_ != PrintMessageProto.Printer.DataType.IQC_PrintMessage.getNumber()) {
+ output.writeEnum(1, dataType_);
+ }
+ if (dataBodyCase_ == 2) {
+ output.writeMessage(2, (PrintMessageProto.Printer.IQCPrintMessage) dataBody_);
+ }
+ if (dataBodyCase_ == 3) {
+ output.writeMessage(3, (PrintMessageProto.Printer.PQCPrintMessage) dataBody_);
+ }
+ if (dataBodyCase_ == 4) {
+ output.writeMessage(4, (PrintMessageProto.Printer.OQCPrintMessage) dataBody_);
+ }
+ if (dataBodyCase_ == 5) {
+ output.writeMessage(5, (PrintMessageProto.Printer.PrintClientInfoMessage) dataBody_);
+ }
+ if (dataBodyCase_ == 6) {
+ output.writeMessage(6, (PrintMessageProto.Printer.PrintingOfCirculation) dataBody_);
+ }
+ if (dataBodyCase_ == 7) {
+ output.writeMessage(7, (PrintMessageProto.Printer.MaterialProducts) dataBody_);
+ }
+ if (dataBodyCase_ == 8) {
+ output.writeMessage(8, (PrintMessageProto.Printer.Warehouse) dataBody_);
+ }
+ if (dataBodyCase_ == 9) {
+ output.writeMessage(9, (PrintMessageProto.Printer.WarehouseLocation) dataBody_);
+ }
+ if (dataBodyCase_ == 10) {
+ output.writeMessage(10, (PrintMessageProto.Printer.WarehouseArea) dataBody_);
+ }
+ if (dataBodyCase_ == 11) {
+ output.writeMessage(11, (PrintMessageProto.Printer.Equipment) dataBody_);
+ }
+ if (dataBodyCase_ == 12) {
+ output.writeMessage(12, (PrintMessageProto.Printer.Workstation) dataBody_);
+ }
+ if (printInfo_ != null) {
+ output.writeMessage(14, getPrintInfo());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (dataType_ != PrintMessageProto.Printer.DataType.IQC_PrintMessage.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, dataType_);
+ }
+ if (dataBodyCase_ == 2) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, (PrintMessageProto.Printer.IQCPrintMessage) dataBody_);
+ }
+ if (dataBodyCase_ == 3) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, (PrintMessageProto.Printer.PQCPrintMessage) dataBody_);
+ }
+ if (dataBodyCase_ == 4) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, (PrintMessageProto.Printer.OQCPrintMessage) dataBody_);
+ }
+ if (dataBodyCase_ == 5) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, (PrintMessageProto.Printer.PrintClientInfoMessage) dataBody_);
+ }
+ if (dataBodyCase_ == 6) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, (PrintMessageProto.Printer.PrintingOfCirculation) dataBody_);
+ }
+ if (dataBodyCase_ == 7) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, (PrintMessageProto.Printer.MaterialProducts) dataBody_);
+ }
+ if (dataBodyCase_ == 8) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(8, (PrintMessageProto.Printer.Warehouse) dataBody_);
+ }
+ if (dataBodyCase_ == 9) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(9, (PrintMessageProto.Printer.WarehouseLocation) dataBody_);
+ }
+ if (dataBodyCase_ == 10) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, (PrintMessageProto.Printer.WarehouseArea) dataBody_);
+ }
+ if (dataBodyCase_ == 11) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(11, (PrintMessageProto.Printer.Equipment) dataBody_);
+ }
+ if (dataBodyCase_ == 12) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(12, (PrintMessageProto.Printer.Workstation) dataBody_);
+ }
+ if (printInfo_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(14, getPrintInfo());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof PrintMessageProto.Printer)) {
+ return super.equals(obj);
+ }
+ PrintMessageProto.Printer other = (PrintMessageProto.Printer) obj;
+
+ if (dataType_ != other.dataType_) return false;
+ if (hasPrintInfo() != other.hasPrintInfo()) return false;
+ if (hasPrintInfo()) {
+ if (!getPrintInfo()
+ .equals(other.getPrintInfo())) return false;
+ }
+ if (!getDataBodyCase().equals(other.getDataBodyCase())) return false;
+ switch (dataBodyCase_) {
+ case 2:
+ if (!getIqcPrintMessage()
+ .equals(other.getIqcPrintMessage())) return false;
+ break;
+ case 3:
+ if (!getPqcPrintMessage()
+ .equals(other.getPqcPrintMessage())) return false;
+ break;
+ case 4:
+ if (!getOqPrintMessage()
+ .equals(other.getOqPrintMessage())) return false;
+ break;
+ case 5:
+ if (!getPrintClientInfoMessage()
+ .equals(other.getPrintClientInfoMessage())) return false;
+ break;
+ case 6:
+ if (!getPrintingOfCirculation()
+ .equals(other.getPrintingOfCirculation())) return false;
+ break;
+ case 7:
+ if (!getMaterialProducts()
+ .equals(other.getMaterialProducts())) return false;
+ break;
+ case 8:
+ if (!getWarehouse()
+ .equals(other.getWarehouse())) return false;
+ break;
+ case 9:
+ if (!getWarehouseLocation()
+ .equals(other.getWarehouseLocation())) return false;
+ break;
+ case 10:
+ if (!getWarehouseArea()
+ .equals(other.getWarehouseArea())) return false;
+ break;
+ case 11:
+ if (!getEquipment()
+ .equals(other.getEquipment())) return false;
+ break;
+ case 12:
+ if (!getWorkstation()
+ .equals(other.getWorkstation())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + dataType_;
+ if (hasPrintInfo()) {
+ hash = (37 * hash) + PRINTINFO_FIELD_NUMBER;
+ hash = (53 * hash) + getPrintInfo().hashCode();
+ }
+ switch (dataBodyCase_) {
+ case 2:
+ hash = (37 * hash) + IQCPRINTMESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getIqcPrintMessage().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + PQCPRINTMESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getPqcPrintMessage().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + OQPRINTMESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getOqPrintMessage().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + PRINTCLIENTINFOMESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getPrintClientInfoMessage().hashCode();
+ break;
+ case 6:
+ hash = (37 * hash) + PRINTINGOFCIRCULATION_FIELD_NUMBER;
+ hash = (53 * hash) + getPrintingOfCirculation().hashCode();
+ break;
+ case 7:
+ hash = (37 * hash) + MATERIALPRODUCTS_FIELD_NUMBER;
+ hash = (53 * hash) + getMaterialProducts().hashCode();
+ break;
+ case 8:
+ hash = (37 * hash) + WAREHOUSE_FIELD_NUMBER;
+ hash = (53 * hash) + getWarehouse().hashCode();
+ break;
+ case 9:
+ hash = (37 * hash) + WAREHOUSELOCATION_FIELD_NUMBER;
+ hash = (53 * hash) + getWarehouseLocation().hashCode();
+ break;
+ case 10:
+ hash = (37 * hash) + WAREHOUSEAREA_FIELD_NUMBER;
+ hash = (53 * hash) + getWarehouseArea().hashCode();
+ break;
+ case 11:
+ hash = (37 * hash) + EQUIPMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getEquipment().hashCode();
+ break;
+ case 12:
+ hash = (37 * hash) + WORKSTATION_FIELD_NUMBER;
+ hash = (53 * hash) + getWorkstation().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static PrintMessageProto.Printer parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static PrintMessageProto.Printer parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static PrintMessageProto.Printer parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static PrintMessageProto.Printer parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(PrintMessageProto.Printer prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Printer}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder+ *用data_type来识别哪个枚举类型(DataType是People的第一个属性,属性名是data_type) + *+ * + *
.Printer.DataType data_type = 1;
+ * @return The enum numeric value on the wire for dataType.
+ */
+ @java.lang.Override public int getDataTypeValue() {
+ return dataType_;
+ }
+ /**
+ * + *用data_type来识别哪个枚举类型(DataType是People的第一个属性,属性名是data_type) + *+ * + *
.Printer.DataType data_type = 1;
+ * @param value The enum numeric value on the wire for dataType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDataTypeValue(int value) {
+
+ dataType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + *用data_type来识别哪个枚举类型(DataType是People的第一个属性,属性名是data_type) + *+ * + *
.Printer.DataType data_type = 1;
+ * @return The dataType.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.DataType getDataType() {
+ @SuppressWarnings("deprecation")
+ PrintMessageProto.Printer.DataType result = PrintMessageProto.Printer.DataType.valueOf(dataType_);
+ return result == null ? PrintMessageProto.Printer.DataType.UNRECOGNIZED : result;
+ }
+ /**
+ * + *用data_type来识别哪个枚举类型(DataType是People的第一个属性,属性名是data_type) + *+ * + *
.Printer.DataType data_type = 1;
+ * @param value The dataType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDataType(PrintMessageProto.Printer.DataType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ dataType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * + *用data_type来识别哪个枚举类型(DataType是People的第一个属性,属性名是data_type) + *+ * + *
.Printer.DataType data_type = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearDataType() {
+
+ dataType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private PrintMessageProto.Printer.PrintInfo printInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.PrintInfo, PrintMessageProto.Printer.PrintInfo.Builder, PrintMessageProto.Printer.PrintInfoOrBuilder> printInfoBuilder_;
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ * @return Whether the printInfo field is set.
+ */
+ public boolean hasPrintInfo() {
+ return printInfoBuilder_ != null || printInfo_ != null;
+ }
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ * @return The printInfo.
+ */
+ public PrintMessageProto.Printer.PrintInfo getPrintInfo() {
+ if (printInfoBuilder_ == null) {
+ return printInfo_ == null ? PrintMessageProto.Printer.PrintInfo.getDefaultInstance() : printInfo_;
+ } else {
+ return printInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ */
+ public Builder setPrintInfo(PrintMessageProto.Printer.PrintInfo value) {
+ if (printInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ printInfo_ = value;
+ onChanged();
+ } else {
+ printInfoBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ */
+ public Builder setPrintInfo(
+ PrintMessageProto.Printer.PrintInfo.Builder builderForValue) {
+ if (printInfoBuilder_ == null) {
+ printInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ printInfoBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ */
+ public Builder mergePrintInfo(PrintMessageProto.Printer.PrintInfo value) {
+ if (printInfoBuilder_ == null) {
+ if (printInfo_ != null) {
+ printInfo_ =
+ PrintMessageProto.Printer.PrintInfo.newBuilder(printInfo_).mergeFrom(value).buildPartial();
+ } else {
+ printInfo_ = value;
+ }
+ onChanged();
+ } else {
+ printInfoBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ */
+ public Builder clearPrintInfo() {
+ if (printInfoBuilder_ == null) {
+ printInfo_ = null;
+ onChanged();
+ } else {
+ printInfo_ = null;
+ printInfoBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ */
+ public PrintMessageProto.Printer.PrintInfo.Builder getPrintInfoBuilder() {
+
+ onChanged();
+ return getPrintInfoFieldBuilder().getBuilder();
+ }
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ */
+ public PrintMessageProto.Printer.PrintInfoOrBuilder getPrintInfoOrBuilder() {
+ if (printInfoBuilder_ != null) {
+ return printInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return printInfo_ == null ?
+ PrintMessageProto.Printer.PrintInfo.getDefaultInstance() : printInfo_;
+ }
+ }
+ /**
+ * .Printer.PrintInfo printInfo = 14;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.PrintInfo, PrintMessageProto.Printer.PrintInfo.Builder, PrintMessageProto.Printer.PrintInfoOrBuilder>
+ getPrintInfoFieldBuilder() {
+ if (printInfoBuilder_ == null) {
+ printInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.PrintInfo, PrintMessageProto.Printer.PrintInfo.Builder, PrintMessageProto.Printer.PrintInfoOrBuilder>(
+ getPrintInfo(),
+ getParentForChildren(),
+ isClean());
+ printInfo_ = null;
+ }
+ return printInfoBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.IQCPrintMessage, PrintMessageProto.Printer.IQCPrintMessage.Builder, PrintMessageProto.Printer.IQCPrintMessageOrBuilder> iqcPrintMessageBuilder_;
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ * @return Whether the iqcPrintMessage field is set.
+ */
+ @java.lang.Override
+ public boolean hasIqcPrintMessage() {
+ return dataBodyCase_ == 2;
+ }
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ * @return The iqcPrintMessage.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.IQCPrintMessage getIqcPrintMessage() {
+ if (iqcPrintMessageBuilder_ == null) {
+ if (dataBodyCase_ == 2) {
+ return (PrintMessageProto.Printer.IQCPrintMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.IQCPrintMessage.getDefaultInstance();
+ } else {
+ if (dataBodyCase_ == 2) {
+ return iqcPrintMessageBuilder_.getMessage();
+ }
+ return PrintMessageProto.Printer.IQCPrintMessage.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ */
+ public Builder setIqcPrintMessage(PrintMessageProto.Printer.IQCPrintMessage value) {
+ if (iqcPrintMessageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataBody_ = value;
+ onChanged();
+ } else {
+ iqcPrintMessageBuilder_.setMessage(value);
+ }
+ dataBodyCase_ = 2;
+ return this;
+ }
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ */
+ public Builder setIqcPrintMessage(
+ PrintMessageProto.Printer.IQCPrintMessage.Builder builderForValue) {
+ if (iqcPrintMessageBuilder_ == null) {
+ dataBody_ = builderForValue.build();
+ onChanged();
+ } else {
+ iqcPrintMessageBuilder_.setMessage(builderForValue.build());
+ }
+ dataBodyCase_ = 2;
+ return this;
+ }
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ */
+ public Builder mergeIqcPrintMessage(PrintMessageProto.Printer.IQCPrintMessage value) {
+ if (iqcPrintMessageBuilder_ == null) {
+ if (dataBodyCase_ == 2 &&
+ dataBody_ != PrintMessageProto.Printer.IQCPrintMessage.getDefaultInstance()) {
+ dataBody_ = PrintMessageProto.Printer.IQCPrintMessage.newBuilder((PrintMessageProto.Printer.IQCPrintMessage) dataBody_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ dataBody_ = value;
+ }
+ onChanged();
+ } else {
+ if (dataBodyCase_ == 2) {
+ iqcPrintMessageBuilder_.mergeFrom(value);
+ } else {
+ iqcPrintMessageBuilder_.setMessage(value);
+ }
+ }
+ dataBodyCase_ = 2;
+ return this;
+ }
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ */
+ public Builder clearIqcPrintMessage() {
+ if (iqcPrintMessageBuilder_ == null) {
+ if (dataBodyCase_ == 2) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ onChanged();
+ }
+ } else {
+ if (dataBodyCase_ == 2) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ }
+ iqcPrintMessageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ */
+ public PrintMessageProto.Printer.IQCPrintMessage.Builder getIqcPrintMessageBuilder() {
+ return getIqcPrintMessageFieldBuilder().getBuilder();
+ }
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.IQCPrintMessageOrBuilder getIqcPrintMessageOrBuilder() {
+ if ((dataBodyCase_ == 2) && (iqcPrintMessageBuilder_ != null)) {
+ return iqcPrintMessageBuilder_.getMessageOrBuilder();
+ } else {
+ if (dataBodyCase_ == 2) {
+ return (PrintMessageProto.Printer.IQCPrintMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.IQCPrintMessage.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.IQCPrintMessage iqcPrintMessage = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.IQCPrintMessage, PrintMessageProto.Printer.IQCPrintMessage.Builder, PrintMessageProto.Printer.IQCPrintMessageOrBuilder>
+ getIqcPrintMessageFieldBuilder() {
+ if (iqcPrintMessageBuilder_ == null) {
+ if (!(dataBodyCase_ == 2)) {
+ dataBody_ = PrintMessageProto.Printer.IQCPrintMessage.getDefaultInstance();
+ }
+ iqcPrintMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.IQCPrintMessage, PrintMessageProto.Printer.IQCPrintMessage.Builder, PrintMessageProto.Printer.IQCPrintMessageOrBuilder>(
+ (PrintMessageProto.Printer.IQCPrintMessage) dataBody_,
+ getParentForChildren(),
+ isClean());
+ dataBody_ = null;
+ }
+ dataBodyCase_ = 2;
+ onChanged();;
+ return iqcPrintMessageBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.PQCPrintMessage, PrintMessageProto.Printer.PQCPrintMessage.Builder, PrintMessageProto.Printer.PQCPrintMessageOrBuilder> pqcPrintMessageBuilder_;
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ * @return Whether the pqcPrintMessage field is set.
+ */
+ @java.lang.Override
+ public boolean hasPqcPrintMessage() {
+ return dataBodyCase_ == 3;
+ }
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ * @return The pqcPrintMessage.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.PQCPrintMessage getPqcPrintMessage() {
+ if (pqcPrintMessageBuilder_ == null) {
+ if (dataBodyCase_ == 3) {
+ return (PrintMessageProto.Printer.PQCPrintMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.PQCPrintMessage.getDefaultInstance();
+ } else {
+ if (dataBodyCase_ == 3) {
+ return pqcPrintMessageBuilder_.getMessage();
+ }
+ return PrintMessageProto.Printer.PQCPrintMessage.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ */
+ public Builder setPqcPrintMessage(PrintMessageProto.Printer.PQCPrintMessage value) {
+ if (pqcPrintMessageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataBody_ = value;
+ onChanged();
+ } else {
+ pqcPrintMessageBuilder_.setMessage(value);
+ }
+ dataBodyCase_ = 3;
+ return this;
+ }
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ */
+ public Builder setPqcPrintMessage(
+ PrintMessageProto.Printer.PQCPrintMessage.Builder builderForValue) {
+ if (pqcPrintMessageBuilder_ == null) {
+ dataBody_ = builderForValue.build();
+ onChanged();
+ } else {
+ pqcPrintMessageBuilder_.setMessage(builderForValue.build());
+ }
+ dataBodyCase_ = 3;
+ return this;
+ }
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ */
+ public Builder mergePqcPrintMessage(PrintMessageProto.Printer.PQCPrintMessage value) {
+ if (pqcPrintMessageBuilder_ == null) {
+ if (dataBodyCase_ == 3 &&
+ dataBody_ != PrintMessageProto.Printer.PQCPrintMessage.getDefaultInstance()) {
+ dataBody_ = PrintMessageProto.Printer.PQCPrintMessage.newBuilder((PrintMessageProto.Printer.PQCPrintMessage) dataBody_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ dataBody_ = value;
+ }
+ onChanged();
+ } else {
+ if (dataBodyCase_ == 3) {
+ pqcPrintMessageBuilder_.mergeFrom(value);
+ } else {
+ pqcPrintMessageBuilder_.setMessage(value);
+ }
+ }
+ dataBodyCase_ = 3;
+ return this;
+ }
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ */
+ public Builder clearPqcPrintMessage() {
+ if (pqcPrintMessageBuilder_ == null) {
+ if (dataBodyCase_ == 3) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ onChanged();
+ }
+ } else {
+ if (dataBodyCase_ == 3) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ }
+ pqcPrintMessageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ */
+ public PrintMessageProto.Printer.PQCPrintMessage.Builder getPqcPrintMessageBuilder() {
+ return getPqcPrintMessageFieldBuilder().getBuilder();
+ }
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.PQCPrintMessageOrBuilder getPqcPrintMessageOrBuilder() {
+ if ((dataBodyCase_ == 3) && (pqcPrintMessageBuilder_ != null)) {
+ return pqcPrintMessageBuilder_.getMessageOrBuilder();
+ } else {
+ if (dataBodyCase_ == 3) {
+ return (PrintMessageProto.Printer.PQCPrintMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.PQCPrintMessage.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.PQCPrintMessage pqcPrintMessage = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.PQCPrintMessage, PrintMessageProto.Printer.PQCPrintMessage.Builder, PrintMessageProto.Printer.PQCPrintMessageOrBuilder>
+ getPqcPrintMessageFieldBuilder() {
+ if (pqcPrintMessageBuilder_ == null) {
+ if (!(dataBodyCase_ == 3)) {
+ dataBody_ = PrintMessageProto.Printer.PQCPrintMessage.getDefaultInstance();
+ }
+ pqcPrintMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.PQCPrintMessage, PrintMessageProto.Printer.PQCPrintMessage.Builder, PrintMessageProto.Printer.PQCPrintMessageOrBuilder>(
+ (PrintMessageProto.Printer.PQCPrintMessage) dataBody_,
+ getParentForChildren(),
+ isClean());
+ dataBody_ = null;
+ }
+ dataBodyCase_ = 3;
+ onChanged();;
+ return pqcPrintMessageBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.OQCPrintMessage, PrintMessageProto.Printer.OQCPrintMessage.Builder, PrintMessageProto.Printer.OQCPrintMessageOrBuilder> oqPrintMessageBuilder_;
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ * @return Whether the oqPrintMessage field is set.
+ */
+ @java.lang.Override
+ public boolean hasOqPrintMessage() {
+ return dataBodyCase_ == 4;
+ }
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ * @return The oqPrintMessage.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.OQCPrintMessage getOqPrintMessage() {
+ if (oqPrintMessageBuilder_ == null) {
+ if (dataBodyCase_ == 4) {
+ return (PrintMessageProto.Printer.OQCPrintMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.OQCPrintMessage.getDefaultInstance();
+ } else {
+ if (dataBodyCase_ == 4) {
+ return oqPrintMessageBuilder_.getMessage();
+ }
+ return PrintMessageProto.Printer.OQCPrintMessage.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ */
+ public Builder setOqPrintMessage(PrintMessageProto.Printer.OQCPrintMessage value) {
+ if (oqPrintMessageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataBody_ = value;
+ onChanged();
+ } else {
+ oqPrintMessageBuilder_.setMessage(value);
+ }
+ dataBodyCase_ = 4;
+ return this;
+ }
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ */
+ public Builder setOqPrintMessage(
+ PrintMessageProto.Printer.OQCPrintMessage.Builder builderForValue) {
+ if (oqPrintMessageBuilder_ == null) {
+ dataBody_ = builderForValue.build();
+ onChanged();
+ } else {
+ oqPrintMessageBuilder_.setMessage(builderForValue.build());
+ }
+ dataBodyCase_ = 4;
+ return this;
+ }
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ */
+ public Builder mergeOqPrintMessage(PrintMessageProto.Printer.OQCPrintMessage value) {
+ if (oqPrintMessageBuilder_ == null) {
+ if (dataBodyCase_ == 4 &&
+ dataBody_ != PrintMessageProto.Printer.OQCPrintMessage.getDefaultInstance()) {
+ dataBody_ = PrintMessageProto.Printer.OQCPrintMessage.newBuilder((PrintMessageProto.Printer.OQCPrintMessage) dataBody_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ dataBody_ = value;
+ }
+ onChanged();
+ } else {
+ if (dataBodyCase_ == 4) {
+ oqPrintMessageBuilder_.mergeFrom(value);
+ } else {
+ oqPrintMessageBuilder_.setMessage(value);
+ }
+ }
+ dataBodyCase_ = 4;
+ return this;
+ }
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ */
+ public Builder clearOqPrintMessage() {
+ if (oqPrintMessageBuilder_ == null) {
+ if (dataBodyCase_ == 4) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ onChanged();
+ }
+ } else {
+ if (dataBodyCase_ == 4) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ }
+ oqPrintMessageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ */
+ public PrintMessageProto.Printer.OQCPrintMessage.Builder getOqPrintMessageBuilder() {
+ return getOqPrintMessageFieldBuilder().getBuilder();
+ }
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.OQCPrintMessageOrBuilder getOqPrintMessageOrBuilder() {
+ if ((dataBodyCase_ == 4) && (oqPrintMessageBuilder_ != null)) {
+ return oqPrintMessageBuilder_.getMessageOrBuilder();
+ } else {
+ if (dataBodyCase_ == 4) {
+ return (PrintMessageProto.Printer.OQCPrintMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.OQCPrintMessage.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.OQCPrintMessage oqPrintMessage = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.OQCPrintMessage, PrintMessageProto.Printer.OQCPrintMessage.Builder, PrintMessageProto.Printer.OQCPrintMessageOrBuilder>
+ getOqPrintMessageFieldBuilder() {
+ if (oqPrintMessageBuilder_ == null) {
+ if (!(dataBodyCase_ == 4)) {
+ dataBody_ = PrintMessageProto.Printer.OQCPrintMessage.getDefaultInstance();
+ }
+ oqPrintMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.OQCPrintMessage, PrintMessageProto.Printer.OQCPrintMessage.Builder, PrintMessageProto.Printer.OQCPrintMessageOrBuilder>(
+ (PrintMessageProto.Printer.OQCPrintMessage) dataBody_,
+ getParentForChildren(),
+ isClean());
+ dataBody_ = null;
+ }
+ dataBodyCase_ = 4;
+ onChanged();;
+ return oqPrintMessageBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.PrintClientInfoMessage, PrintMessageProto.Printer.PrintClientInfoMessage.Builder, PrintMessageProto.Printer.PrintClientInfoMessageOrBuilder> printClientInfoMessageBuilder_;
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ * @return Whether the printClientInfoMessage field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrintClientInfoMessage() {
+ return dataBodyCase_ == 5;
+ }
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ * @return The printClientInfoMessage.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.PrintClientInfoMessage getPrintClientInfoMessage() {
+ if (printClientInfoMessageBuilder_ == null) {
+ if (dataBodyCase_ == 5) {
+ return (PrintMessageProto.Printer.PrintClientInfoMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.PrintClientInfoMessage.getDefaultInstance();
+ } else {
+ if (dataBodyCase_ == 5) {
+ return printClientInfoMessageBuilder_.getMessage();
+ }
+ return PrintMessageProto.Printer.PrintClientInfoMessage.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ */
+ public Builder setPrintClientInfoMessage(PrintMessageProto.Printer.PrintClientInfoMessage value) {
+ if (printClientInfoMessageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataBody_ = value;
+ onChanged();
+ } else {
+ printClientInfoMessageBuilder_.setMessage(value);
+ }
+ dataBodyCase_ = 5;
+ return this;
+ }
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ */
+ public Builder setPrintClientInfoMessage(
+ PrintMessageProto.Printer.PrintClientInfoMessage.Builder builderForValue) {
+ if (printClientInfoMessageBuilder_ == null) {
+ dataBody_ = builderForValue.build();
+ onChanged();
+ } else {
+ printClientInfoMessageBuilder_.setMessage(builderForValue.build());
+ }
+ dataBodyCase_ = 5;
+ return this;
+ }
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ */
+ public Builder mergePrintClientInfoMessage(PrintMessageProto.Printer.PrintClientInfoMessage value) {
+ if (printClientInfoMessageBuilder_ == null) {
+ if (dataBodyCase_ == 5 &&
+ dataBody_ != PrintMessageProto.Printer.PrintClientInfoMessage.getDefaultInstance()) {
+ dataBody_ = PrintMessageProto.Printer.PrintClientInfoMessage.newBuilder((PrintMessageProto.Printer.PrintClientInfoMessage) dataBody_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ dataBody_ = value;
+ }
+ onChanged();
+ } else {
+ if (dataBodyCase_ == 5) {
+ printClientInfoMessageBuilder_.mergeFrom(value);
+ } else {
+ printClientInfoMessageBuilder_.setMessage(value);
+ }
+ }
+ dataBodyCase_ = 5;
+ return this;
+ }
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ */
+ public Builder clearPrintClientInfoMessage() {
+ if (printClientInfoMessageBuilder_ == null) {
+ if (dataBodyCase_ == 5) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ onChanged();
+ }
+ } else {
+ if (dataBodyCase_ == 5) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ }
+ printClientInfoMessageBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ */
+ public PrintMessageProto.Printer.PrintClientInfoMessage.Builder getPrintClientInfoMessageBuilder() {
+ return getPrintClientInfoMessageFieldBuilder().getBuilder();
+ }
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.PrintClientInfoMessageOrBuilder getPrintClientInfoMessageOrBuilder() {
+ if ((dataBodyCase_ == 5) && (printClientInfoMessageBuilder_ != null)) {
+ return printClientInfoMessageBuilder_.getMessageOrBuilder();
+ } else {
+ if (dataBodyCase_ == 5) {
+ return (PrintMessageProto.Printer.PrintClientInfoMessage) dataBody_;
+ }
+ return PrintMessageProto.Printer.PrintClientInfoMessage.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.PrintClientInfoMessage printClientInfoMessage = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.PrintClientInfoMessage, PrintMessageProto.Printer.PrintClientInfoMessage.Builder, PrintMessageProto.Printer.PrintClientInfoMessageOrBuilder>
+ getPrintClientInfoMessageFieldBuilder() {
+ if (printClientInfoMessageBuilder_ == null) {
+ if (!(dataBodyCase_ == 5)) {
+ dataBody_ = PrintMessageProto.Printer.PrintClientInfoMessage.getDefaultInstance();
+ }
+ printClientInfoMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.PrintClientInfoMessage, PrintMessageProto.Printer.PrintClientInfoMessage.Builder, PrintMessageProto.Printer.PrintClientInfoMessageOrBuilder>(
+ (PrintMessageProto.Printer.PrintClientInfoMessage) dataBody_,
+ getParentForChildren(),
+ isClean());
+ dataBody_ = null;
+ }
+ dataBodyCase_ = 5;
+ onChanged();;
+ return printClientInfoMessageBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.PrintingOfCirculation, PrintMessageProto.Printer.PrintingOfCirculation.Builder, PrintMessageProto.Printer.PrintingOfCirculationOrBuilder> printingOfCirculationBuilder_;
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ * @return Whether the printingOfCirculation field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrintingOfCirculation() {
+ return dataBodyCase_ == 6;
+ }
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ * @return The printingOfCirculation.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.PrintingOfCirculation getPrintingOfCirculation() {
+ if (printingOfCirculationBuilder_ == null) {
+ if (dataBodyCase_ == 6) {
+ return (PrintMessageProto.Printer.PrintingOfCirculation) dataBody_;
+ }
+ return PrintMessageProto.Printer.PrintingOfCirculation.getDefaultInstance();
+ } else {
+ if (dataBodyCase_ == 6) {
+ return printingOfCirculationBuilder_.getMessage();
+ }
+ return PrintMessageProto.Printer.PrintingOfCirculation.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ */
+ public Builder setPrintingOfCirculation(PrintMessageProto.Printer.PrintingOfCirculation value) {
+ if (printingOfCirculationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataBody_ = value;
+ onChanged();
+ } else {
+ printingOfCirculationBuilder_.setMessage(value);
+ }
+ dataBodyCase_ = 6;
+ return this;
+ }
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ */
+ public Builder setPrintingOfCirculation(
+ PrintMessageProto.Printer.PrintingOfCirculation.Builder builderForValue) {
+ if (printingOfCirculationBuilder_ == null) {
+ dataBody_ = builderForValue.build();
+ onChanged();
+ } else {
+ printingOfCirculationBuilder_.setMessage(builderForValue.build());
+ }
+ dataBodyCase_ = 6;
+ return this;
+ }
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ */
+ public Builder mergePrintingOfCirculation(PrintMessageProto.Printer.PrintingOfCirculation value) {
+ if (printingOfCirculationBuilder_ == null) {
+ if (dataBodyCase_ == 6 &&
+ dataBody_ != PrintMessageProto.Printer.PrintingOfCirculation.getDefaultInstance()) {
+ dataBody_ = PrintMessageProto.Printer.PrintingOfCirculation.newBuilder((PrintMessageProto.Printer.PrintingOfCirculation) dataBody_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ dataBody_ = value;
+ }
+ onChanged();
+ } else {
+ if (dataBodyCase_ == 6) {
+ printingOfCirculationBuilder_.mergeFrom(value);
+ } else {
+ printingOfCirculationBuilder_.setMessage(value);
+ }
+ }
+ dataBodyCase_ = 6;
+ return this;
+ }
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ */
+ public Builder clearPrintingOfCirculation() {
+ if (printingOfCirculationBuilder_ == null) {
+ if (dataBodyCase_ == 6) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ onChanged();
+ }
+ } else {
+ if (dataBodyCase_ == 6) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ }
+ printingOfCirculationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ */
+ public PrintMessageProto.Printer.PrintingOfCirculation.Builder getPrintingOfCirculationBuilder() {
+ return getPrintingOfCirculationFieldBuilder().getBuilder();
+ }
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.PrintingOfCirculationOrBuilder getPrintingOfCirculationOrBuilder() {
+ if ((dataBodyCase_ == 6) && (printingOfCirculationBuilder_ != null)) {
+ return printingOfCirculationBuilder_.getMessageOrBuilder();
+ } else {
+ if (dataBodyCase_ == 6) {
+ return (PrintMessageProto.Printer.PrintingOfCirculation) dataBody_;
+ }
+ return PrintMessageProto.Printer.PrintingOfCirculation.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.PrintingOfCirculation printingOfCirculation = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.PrintingOfCirculation, PrintMessageProto.Printer.PrintingOfCirculation.Builder, PrintMessageProto.Printer.PrintingOfCirculationOrBuilder>
+ getPrintingOfCirculationFieldBuilder() {
+ if (printingOfCirculationBuilder_ == null) {
+ if (!(dataBodyCase_ == 6)) {
+ dataBody_ = PrintMessageProto.Printer.PrintingOfCirculation.getDefaultInstance();
+ }
+ printingOfCirculationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.PrintingOfCirculation, PrintMessageProto.Printer.PrintingOfCirculation.Builder, PrintMessageProto.Printer.PrintingOfCirculationOrBuilder>(
+ (PrintMessageProto.Printer.PrintingOfCirculation) dataBody_,
+ getParentForChildren(),
+ isClean());
+ dataBody_ = null;
+ }
+ dataBodyCase_ = 6;
+ onChanged();;
+ return printingOfCirculationBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.MaterialProducts, PrintMessageProto.Printer.MaterialProducts.Builder, PrintMessageProto.Printer.MaterialProductsOrBuilder> materialProductsBuilder_;
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ * @return Whether the materialProducts field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaterialProducts() {
+ return dataBodyCase_ == 7;
+ }
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ * @return The materialProducts.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.MaterialProducts getMaterialProducts() {
+ if (materialProductsBuilder_ == null) {
+ if (dataBodyCase_ == 7) {
+ return (PrintMessageProto.Printer.MaterialProducts) dataBody_;
+ }
+ return PrintMessageProto.Printer.MaterialProducts.getDefaultInstance();
+ } else {
+ if (dataBodyCase_ == 7) {
+ return materialProductsBuilder_.getMessage();
+ }
+ return PrintMessageProto.Printer.MaterialProducts.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ */
+ public Builder setMaterialProducts(PrintMessageProto.Printer.MaterialProducts value) {
+ if (materialProductsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataBody_ = value;
+ onChanged();
+ } else {
+ materialProductsBuilder_.setMessage(value);
+ }
+ dataBodyCase_ = 7;
+ return this;
+ }
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ */
+ public Builder setMaterialProducts(
+ PrintMessageProto.Printer.MaterialProducts.Builder builderForValue) {
+ if (materialProductsBuilder_ == null) {
+ dataBody_ = builderForValue.build();
+ onChanged();
+ } else {
+ materialProductsBuilder_.setMessage(builderForValue.build());
+ }
+ dataBodyCase_ = 7;
+ return this;
+ }
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ */
+ public Builder mergeMaterialProducts(PrintMessageProto.Printer.MaterialProducts value) {
+ if (materialProductsBuilder_ == null) {
+ if (dataBodyCase_ == 7 &&
+ dataBody_ != PrintMessageProto.Printer.MaterialProducts.getDefaultInstance()) {
+ dataBody_ = PrintMessageProto.Printer.MaterialProducts.newBuilder((PrintMessageProto.Printer.MaterialProducts) dataBody_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ dataBody_ = value;
+ }
+ onChanged();
+ } else {
+ if (dataBodyCase_ == 7) {
+ materialProductsBuilder_.mergeFrom(value);
+ } else {
+ materialProductsBuilder_.setMessage(value);
+ }
+ }
+ dataBodyCase_ = 7;
+ return this;
+ }
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ */
+ public Builder clearMaterialProducts() {
+ if (materialProductsBuilder_ == null) {
+ if (dataBodyCase_ == 7) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ onChanged();
+ }
+ } else {
+ if (dataBodyCase_ == 7) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ }
+ materialProductsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ */
+ public PrintMessageProto.Printer.MaterialProducts.Builder getMaterialProductsBuilder() {
+ return getMaterialProductsFieldBuilder().getBuilder();
+ }
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.MaterialProductsOrBuilder getMaterialProductsOrBuilder() {
+ if ((dataBodyCase_ == 7) && (materialProductsBuilder_ != null)) {
+ return materialProductsBuilder_.getMessageOrBuilder();
+ } else {
+ if (dataBodyCase_ == 7) {
+ return (PrintMessageProto.Printer.MaterialProducts) dataBody_;
+ }
+ return PrintMessageProto.Printer.MaterialProducts.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.MaterialProducts materialProducts = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.MaterialProducts, PrintMessageProto.Printer.MaterialProducts.Builder, PrintMessageProto.Printer.MaterialProductsOrBuilder>
+ getMaterialProductsFieldBuilder() {
+ if (materialProductsBuilder_ == null) {
+ if (!(dataBodyCase_ == 7)) {
+ dataBody_ = PrintMessageProto.Printer.MaterialProducts.getDefaultInstance();
+ }
+ materialProductsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.MaterialProducts, PrintMessageProto.Printer.MaterialProducts.Builder, PrintMessageProto.Printer.MaterialProductsOrBuilder>(
+ (PrintMessageProto.Printer.MaterialProducts) dataBody_,
+ getParentForChildren(),
+ isClean());
+ dataBody_ = null;
+ }
+ dataBodyCase_ = 7;
+ onChanged();;
+ return materialProductsBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.Warehouse, PrintMessageProto.Printer.Warehouse.Builder, PrintMessageProto.Printer.WarehouseOrBuilder> warehouseBuilder_;
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ * @return Whether the warehouse field is set.
+ */
+ @java.lang.Override
+ public boolean hasWarehouse() {
+ return dataBodyCase_ == 8;
+ }
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ * @return The warehouse.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.Warehouse getWarehouse() {
+ if (warehouseBuilder_ == null) {
+ if (dataBodyCase_ == 8) {
+ return (PrintMessageProto.Printer.Warehouse) dataBody_;
+ }
+ return PrintMessageProto.Printer.Warehouse.getDefaultInstance();
+ } else {
+ if (dataBodyCase_ == 8) {
+ return warehouseBuilder_.getMessage();
+ }
+ return PrintMessageProto.Printer.Warehouse.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ */
+ public Builder setWarehouse(PrintMessageProto.Printer.Warehouse value) {
+ if (warehouseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataBody_ = value;
+ onChanged();
+ } else {
+ warehouseBuilder_.setMessage(value);
+ }
+ dataBodyCase_ = 8;
+ return this;
+ }
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ */
+ public Builder setWarehouse(
+ PrintMessageProto.Printer.Warehouse.Builder builderForValue) {
+ if (warehouseBuilder_ == null) {
+ dataBody_ = builderForValue.build();
+ onChanged();
+ } else {
+ warehouseBuilder_.setMessage(builderForValue.build());
+ }
+ dataBodyCase_ = 8;
+ return this;
+ }
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ */
+ public Builder mergeWarehouse(PrintMessageProto.Printer.Warehouse value) {
+ if (warehouseBuilder_ == null) {
+ if (dataBodyCase_ == 8 &&
+ dataBody_ != PrintMessageProto.Printer.Warehouse.getDefaultInstance()) {
+ dataBody_ = PrintMessageProto.Printer.Warehouse.newBuilder((PrintMessageProto.Printer.Warehouse) dataBody_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ dataBody_ = value;
+ }
+ onChanged();
+ } else {
+ if (dataBodyCase_ == 8) {
+ warehouseBuilder_.mergeFrom(value);
+ } else {
+ warehouseBuilder_.setMessage(value);
+ }
+ }
+ dataBodyCase_ = 8;
+ return this;
+ }
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ */
+ public Builder clearWarehouse() {
+ if (warehouseBuilder_ == null) {
+ if (dataBodyCase_ == 8) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ onChanged();
+ }
+ } else {
+ if (dataBodyCase_ == 8) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ }
+ warehouseBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ */
+ public PrintMessageProto.Printer.Warehouse.Builder getWarehouseBuilder() {
+ return getWarehouseFieldBuilder().getBuilder();
+ }
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.WarehouseOrBuilder getWarehouseOrBuilder() {
+ if ((dataBodyCase_ == 8) && (warehouseBuilder_ != null)) {
+ return warehouseBuilder_.getMessageOrBuilder();
+ } else {
+ if (dataBodyCase_ == 8) {
+ return (PrintMessageProto.Printer.Warehouse) dataBody_;
+ }
+ return PrintMessageProto.Printer.Warehouse.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.Warehouse warehouse = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.Warehouse, PrintMessageProto.Printer.Warehouse.Builder, PrintMessageProto.Printer.WarehouseOrBuilder>
+ getWarehouseFieldBuilder() {
+ if (warehouseBuilder_ == null) {
+ if (!(dataBodyCase_ == 8)) {
+ dataBody_ = PrintMessageProto.Printer.Warehouse.getDefaultInstance();
+ }
+ warehouseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.Warehouse, PrintMessageProto.Printer.Warehouse.Builder, PrintMessageProto.Printer.WarehouseOrBuilder>(
+ (PrintMessageProto.Printer.Warehouse) dataBody_,
+ getParentForChildren(),
+ isClean());
+ dataBody_ = null;
+ }
+ dataBodyCase_ = 8;
+ onChanged();;
+ return warehouseBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.WarehouseLocation, PrintMessageProto.Printer.WarehouseLocation.Builder, PrintMessageProto.Printer.WarehouseLocationOrBuilder> warehouseLocationBuilder_;
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ * @return Whether the warehouseLocation field is set.
+ */
+ @java.lang.Override
+ public boolean hasWarehouseLocation() {
+ return dataBodyCase_ == 9;
+ }
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ * @return The warehouseLocation.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.WarehouseLocation getWarehouseLocation() {
+ if (warehouseLocationBuilder_ == null) {
+ if (dataBodyCase_ == 9) {
+ return (PrintMessageProto.Printer.WarehouseLocation) dataBody_;
+ }
+ return PrintMessageProto.Printer.WarehouseLocation.getDefaultInstance();
+ } else {
+ if (dataBodyCase_ == 9) {
+ return warehouseLocationBuilder_.getMessage();
+ }
+ return PrintMessageProto.Printer.WarehouseLocation.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ */
+ public Builder setWarehouseLocation(PrintMessageProto.Printer.WarehouseLocation value) {
+ if (warehouseLocationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataBody_ = value;
+ onChanged();
+ } else {
+ warehouseLocationBuilder_.setMessage(value);
+ }
+ dataBodyCase_ = 9;
+ return this;
+ }
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ */
+ public Builder setWarehouseLocation(
+ PrintMessageProto.Printer.WarehouseLocation.Builder builderForValue) {
+ if (warehouseLocationBuilder_ == null) {
+ dataBody_ = builderForValue.build();
+ onChanged();
+ } else {
+ warehouseLocationBuilder_.setMessage(builderForValue.build());
+ }
+ dataBodyCase_ = 9;
+ return this;
+ }
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ */
+ public Builder mergeWarehouseLocation(PrintMessageProto.Printer.WarehouseLocation value) {
+ if (warehouseLocationBuilder_ == null) {
+ if (dataBodyCase_ == 9 &&
+ dataBody_ != PrintMessageProto.Printer.WarehouseLocation.getDefaultInstance()) {
+ dataBody_ = PrintMessageProto.Printer.WarehouseLocation.newBuilder((PrintMessageProto.Printer.WarehouseLocation) dataBody_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ dataBody_ = value;
+ }
+ onChanged();
+ } else {
+ if (dataBodyCase_ == 9) {
+ warehouseLocationBuilder_.mergeFrom(value);
+ } else {
+ warehouseLocationBuilder_.setMessage(value);
+ }
+ }
+ dataBodyCase_ = 9;
+ return this;
+ }
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ */
+ public Builder clearWarehouseLocation() {
+ if (warehouseLocationBuilder_ == null) {
+ if (dataBodyCase_ == 9) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ onChanged();
+ }
+ } else {
+ if (dataBodyCase_ == 9) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ }
+ warehouseLocationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ */
+ public PrintMessageProto.Printer.WarehouseLocation.Builder getWarehouseLocationBuilder() {
+ return getWarehouseLocationFieldBuilder().getBuilder();
+ }
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.WarehouseLocationOrBuilder getWarehouseLocationOrBuilder() {
+ if ((dataBodyCase_ == 9) && (warehouseLocationBuilder_ != null)) {
+ return warehouseLocationBuilder_.getMessageOrBuilder();
+ } else {
+ if (dataBodyCase_ == 9) {
+ return (PrintMessageProto.Printer.WarehouseLocation) dataBody_;
+ }
+ return PrintMessageProto.Printer.WarehouseLocation.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.WarehouseLocation warehouseLocation = 9;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.WarehouseLocation, PrintMessageProto.Printer.WarehouseLocation.Builder, PrintMessageProto.Printer.WarehouseLocationOrBuilder>
+ getWarehouseLocationFieldBuilder() {
+ if (warehouseLocationBuilder_ == null) {
+ if (!(dataBodyCase_ == 9)) {
+ dataBody_ = PrintMessageProto.Printer.WarehouseLocation.getDefaultInstance();
+ }
+ warehouseLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.WarehouseLocation, PrintMessageProto.Printer.WarehouseLocation.Builder, PrintMessageProto.Printer.WarehouseLocationOrBuilder>(
+ (PrintMessageProto.Printer.WarehouseLocation) dataBody_,
+ getParentForChildren(),
+ isClean());
+ dataBody_ = null;
+ }
+ dataBodyCase_ = 9;
+ onChanged();;
+ return warehouseLocationBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.WarehouseArea, PrintMessageProto.Printer.WarehouseArea.Builder, PrintMessageProto.Printer.WarehouseAreaOrBuilder> warehouseAreaBuilder_;
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ * @return Whether the warehouseArea field is set.
+ */
+ @java.lang.Override
+ public boolean hasWarehouseArea() {
+ return dataBodyCase_ == 10;
+ }
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ * @return The warehouseArea.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.WarehouseArea getWarehouseArea() {
+ if (warehouseAreaBuilder_ == null) {
+ if (dataBodyCase_ == 10) {
+ return (PrintMessageProto.Printer.WarehouseArea) dataBody_;
+ }
+ return PrintMessageProto.Printer.WarehouseArea.getDefaultInstance();
+ } else {
+ if (dataBodyCase_ == 10) {
+ return warehouseAreaBuilder_.getMessage();
+ }
+ return PrintMessageProto.Printer.WarehouseArea.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ */
+ public Builder setWarehouseArea(PrintMessageProto.Printer.WarehouseArea value) {
+ if (warehouseAreaBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataBody_ = value;
+ onChanged();
+ } else {
+ warehouseAreaBuilder_.setMessage(value);
+ }
+ dataBodyCase_ = 10;
+ return this;
+ }
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ */
+ public Builder setWarehouseArea(
+ PrintMessageProto.Printer.WarehouseArea.Builder builderForValue) {
+ if (warehouseAreaBuilder_ == null) {
+ dataBody_ = builderForValue.build();
+ onChanged();
+ } else {
+ warehouseAreaBuilder_.setMessage(builderForValue.build());
+ }
+ dataBodyCase_ = 10;
+ return this;
+ }
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ */
+ public Builder mergeWarehouseArea(PrintMessageProto.Printer.WarehouseArea value) {
+ if (warehouseAreaBuilder_ == null) {
+ if (dataBodyCase_ == 10 &&
+ dataBody_ != PrintMessageProto.Printer.WarehouseArea.getDefaultInstance()) {
+ dataBody_ = PrintMessageProto.Printer.WarehouseArea.newBuilder((PrintMessageProto.Printer.WarehouseArea) dataBody_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ dataBody_ = value;
+ }
+ onChanged();
+ } else {
+ if (dataBodyCase_ == 10) {
+ warehouseAreaBuilder_.mergeFrom(value);
+ } else {
+ warehouseAreaBuilder_.setMessage(value);
+ }
+ }
+ dataBodyCase_ = 10;
+ return this;
+ }
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ */
+ public Builder clearWarehouseArea() {
+ if (warehouseAreaBuilder_ == null) {
+ if (dataBodyCase_ == 10) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ onChanged();
+ }
+ } else {
+ if (dataBodyCase_ == 10) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ }
+ warehouseAreaBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ */
+ public PrintMessageProto.Printer.WarehouseArea.Builder getWarehouseAreaBuilder() {
+ return getWarehouseAreaFieldBuilder().getBuilder();
+ }
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.WarehouseAreaOrBuilder getWarehouseAreaOrBuilder() {
+ if ((dataBodyCase_ == 10) && (warehouseAreaBuilder_ != null)) {
+ return warehouseAreaBuilder_.getMessageOrBuilder();
+ } else {
+ if (dataBodyCase_ == 10) {
+ return (PrintMessageProto.Printer.WarehouseArea) dataBody_;
+ }
+ return PrintMessageProto.Printer.WarehouseArea.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.WarehouseArea warehouseArea = 10;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.WarehouseArea, PrintMessageProto.Printer.WarehouseArea.Builder, PrintMessageProto.Printer.WarehouseAreaOrBuilder>
+ getWarehouseAreaFieldBuilder() {
+ if (warehouseAreaBuilder_ == null) {
+ if (!(dataBodyCase_ == 10)) {
+ dataBody_ = PrintMessageProto.Printer.WarehouseArea.getDefaultInstance();
+ }
+ warehouseAreaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.WarehouseArea, PrintMessageProto.Printer.WarehouseArea.Builder, PrintMessageProto.Printer.WarehouseAreaOrBuilder>(
+ (PrintMessageProto.Printer.WarehouseArea) dataBody_,
+ getParentForChildren(),
+ isClean());
+ dataBody_ = null;
+ }
+ dataBodyCase_ = 10;
+ onChanged();;
+ return warehouseAreaBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.Equipment, PrintMessageProto.Printer.Equipment.Builder, PrintMessageProto.Printer.EquipmentOrBuilder> equipmentBuilder_;
+ /**
+ * .Printer.Equipment equipment = 11;
+ * @return Whether the equipment field is set.
+ */
+ @java.lang.Override
+ public boolean hasEquipment() {
+ return dataBodyCase_ == 11;
+ }
+ /**
+ * .Printer.Equipment equipment = 11;
+ * @return The equipment.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.Equipment getEquipment() {
+ if (equipmentBuilder_ == null) {
+ if (dataBodyCase_ == 11) {
+ return (PrintMessageProto.Printer.Equipment) dataBody_;
+ }
+ return PrintMessageProto.Printer.Equipment.getDefaultInstance();
+ } else {
+ if (dataBodyCase_ == 11) {
+ return equipmentBuilder_.getMessage();
+ }
+ return PrintMessageProto.Printer.Equipment.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.Equipment equipment = 11;
+ */
+ public Builder setEquipment(PrintMessageProto.Printer.Equipment value) {
+ if (equipmentBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataBody_ = value;
+ onChanged();
+ } else {
+ equipmentBuilder_.setMessage(value);
+ }
+ dataBodyCase_ = 11;
+ return this;
+ }
+ /**
+ * .Printer.Equipment equipment = 11;
+ */
+ public Builder setEquipment(
+ PrintMessageProto.Printer.Equipment.Builder builderForValue) {
+ if (equipmentBuilder_ == null) {
+ dataBody_ = builderForValue.build();
+ onChanged();
+ } else {
+ equipmentBuilder_.setMessage(builderForValue.build());
+ }
+ dataBodyCase_ = 11;
+ return this;
+ }
+ /**
+ * .Printer.Equipment equipment = 11;
+ */
+ public Builder mergeEquipment(PrintMessageProto.Printer.Equipment value) {
+ if (equipmentBuilder_ == null) {
+ if (dataBodyCase_ == 11 &&
+ dataBody_ != PrintMessageProto.Printer.Equipment.getDefaultInstance()) {
+ dataBody_ = PrintMessageProto.Printer.Equipment.newBuilder((PrintMessageProto.Printer.Equipment) dataBody_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ dataBody_ = value;
+ }
+ onChanged();
+ } else {
+ if (dataBodyCase_ == 11) {
+ equipmentBuilder_.mergeFrom(value);
+ } else {
+ equipmentBuilder_.setMessage(value);
+ }
+ }
+ dataBodyCase_ = 11;
+ return this;
+ }
+ /**
+ * .Printer.Equipment equipment = 11;
+ */
+ public Builder clearEquipment() {
+ if (equipmentBuilder_ == null) {
+ if (dataBodyCase_ == 11) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ onChanged();
+ }
+ } else {
+ if (dataBodyCase_ == 11) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ }
+ equipmentBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .Printer.Equipment equipment = 11;
+ */
+ public PrintMessageProto.Printer.Equipment.Builder getEquipmentBuilder() {
+ return getEquipmentFieldBuilder().getBuilder();
+ }
+ /**
+ * .Printer.Equipment equipment = 11;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.EquipmentOrBuilder getEquipmentOrBuilder() {
+ if ((dataBodyCase_ == 11) && (equipmentBuilder_ != null)) {
+ return equipmentBuilder_.getMessageOrBuilder();
+ } else {
+ if (dataBodyCase_ == 11) {
+ return (PrintMessageProto.Printer.Equipment) dataBody_;
+ }
+ return PrintMessageProto.Printer.Equipment.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.Equipment equipment = 11;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.Equipment, PrintMessageProto.Printer.Equipment.Builder, PrintMessageProto.Printer.EquipmentOrBuilder>
+ getEquipmentFieldBuilder() {
+ if (equipmentBuilder_ == null) {
+ if (!(dataBodyCase_ == 11)) {
+ dataBody_ = PrintMessageProto.Printer.Equipment.getDefaultInstance();
+ }
+ equipmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.Equipment, PrintMessageProto.Printer.Equipment.Builder, PrintMessageProto.Printer.EquipmentOrBuilder>(
+ (PrintMessageProto.Printer.Equipment) dataBody_,
+ getParentForChildren(),
+ isClean());
+ dataBody_ = null;
+ }
+ dataBodyCase_ = 11;
+ onChanged();;
+ return equipmentBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.Workstation, PrintMessageProto.Printer.Workstation.Builder, PrintMessageProto.Printer.WorkstationOrBuilder> workstationBuilder_;
+ /**
+ * .Printer.Workstation workstation = 12;
+ * @return Whether the workstation field is set.
+ */
+ @java.lang.Override
+ public boolean hasWorkstation() {
+ return dataBodyCase_ == 12;
+ }
+ /**
+ * .Printer.Workstation workstation = 12;
+ * @return The workstation.
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.Workstation getWorkstation() {
+ if (workstationBuilder_ == null) {
+ if (dataBodyCase_ == 12) {
+ return (PrintMessageProto.Printer.Workstation) dataBody_;
+ }
+ return PrintMessageProto.Printer.Workstation.getDefaultInstance();
+ } else {
+ if (dataBodyCase_ == 12) {
+ return workstationBuilder_.getMessage();
+ }
+ return PrintMessageProto.Printer.Workstation.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.Workstation workstation = 12;
+ */
+ public Builder setWorkstation(PrintMessageProto.Printer.Workstation value) {
+ if (workstationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataBody_ = value;
+ onChanged();
+ } else {
+ workstationBuilder_.setMessage(value);
+ }
+ dataBodyCase_ = 12;
+ return this;
+ }
+ /**
+ * .Printer.Workstation workstation = 12;
+ */
+ public Builder setWorkstation(
+ PrintMessageProto.Printer.Workstation.Builder builderForValue) {
+ if (workstationBuilder_ == null) {
+ dataBody_ = builderForValue.build();
+ onChanged();
+ } else {
+ workstationBuilder_.setMessage(builderForValue.build());
+ }
+ dataBodyCase_ = 12;
+ return this;
+ }
+ /**
+ * .Printer.Workstation workstation = 12;
+ */
+ public Builder mergeWorkstation(PrintMessageProto.Printer.Workstation value) {
+ if (workstationBuilder_ == null) {
+ if (dataBodyCase_ == 12 &&
+ dataBody_ != PrintMessageProto.Printer.Workstation.getDefaultInstance()) {
+ dataBody_ = PrintMessageProto.Printer.Workstation.newBuilder((PrintMessageProto.Printer.Workstation) dataBody_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ dataBody_ = value;
+ }
+ onChanged();
+ } else {
+ if (dataBodyCase_ == 12) {
+ workstationBuilder_.mergeFrom(value);
+ } else {
+ workstationBuilder_.setMessage(value);
+ }
+ }
+ dataBodyCase_ = 12;
+ return this;
+ }
+ /**
+ * .Printer.Workstation workstation = 12;
+ */
+ public Builder clearWorkstation() {
+ if (workstationBuilder_ == null) {
+ if (dataBodyCase_ == 12) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ onChanged();
+ }
+ } else {
+ if (dataBodyCase_ == 12) {
+ dataBodyCase_ = 0;
+ dataBody_ = null;
+ }
+ workstationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * .Printer.Workstation workstation = 12;
+ */
+ public PrintMessageProto.Printer.Workstation.Builder getWorkstationBuilder() {
+ return getWorkstationFieldBuilder().getBuilder();
+ }
+ /**
+ * .Printer.Workstation workstation = 12;
+ */
+ @java.lang.Override
+ public PrintMessageProto.Printer.WorkstationOrBuilder getWorkstationOrBuilder() {
+ if ((dataBodyCase_ == 12) && (workstationBuilder_ != null)) {
+ return workstationBuilder_.getMessageOrBuilder();
+ } else {
+ if (dataBodyCase_ == 12) {
+ return (PrintMessageProto.Printer.Workstation) dataBody_;
+ }
+ return PrintMessageProto.Printer.Workstation.getDefaultInstance();
+ }
+ }
+ /**
+ * .Printer.Workstation workstation = 12;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.Workstation, PrintMessageProto.Printer.Workstation.Builder, PrintMessageProto.Printer.WorkstationOrBuilder>
+ getWorkstationFieldBuilder() {
+ if (workstationBuilder_ == null) {
+ if (!(dataBodyCase_ == 12)) {
+ dataBody_ = PrintMessageProto.Printer.Workstation.getDefaultInstance();
+ }
+ workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ PrintMessageProto.Printer.Workstation, PrintMessageProto.Printer.Workstation.Builder, PrintMessageProto.Printer.WorkstationOrBuilder>(
+ (PrintMessageProto.Printer.Workstation) dataBody_,
+ getParentForChildren(),
+ isClean());
+ dataBody_ = null;
+ }
+ dataBodyCase_ = 12;
+ onChanged();;
+ return workstationBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Printer)
+ }
+
+ // @@protoc_insertion_point(class_scope:Printer)
+ private static final PrintMessageProto.Printer DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new PrintMessageProto.Printer();
+ }
+
+ public static PrintMessageProto.Printer getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser