From 0451dc80171347c2bdce9cc2457c6dbd262c52b2 Mon Sep 17 00:00:00 2001 From: yanshikui Date: Sun, 24 Nov 2024 16:49:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=A0=87=E7=AD=BE=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ktg-admin/pom.xml | 20 +- .../ktg/framework/config/SecurityConfig.java | 9 +- ktg-print/pom.xml | 6 +- .../ktg/print/controller/PrintController.java | 243 + .../ktg/print/domain/PrintBarcodeModel.java | 12 + .../PrintClientInfoMessageHandler.java | 35 - .../PrintServerChannelInitializer.java | 30 - .../printserver/PrintServerCloseListener.java | 18 - .../PrintServerDefaultHandler.java | 70 - .../printserver/PrintServerOpenListener.java | 20 - .../ktg/print/printserver/PrinterServer.java | 67 - .../ktg/print/protocol/PrintMessageProto.java | 20187 +++++++++++++--- .../print/protocol/proto/PrintMessage.proto | 36 - .../protocol/proto/PrintMessageProto.proto | 124 + .../main/java/com/ktg/print/response/R.java | 80 + .../server/PrintClientInfoMessageHandler.java | 19 + .../com/ktg/print/server/PrintServer.java | 81 + .../server/PrintServerDefaultHandler.java | 27 + .../print/server/PrintServerOpenListener.java | 21 + pom.xml | 16 +- 20 files changed, 16795 insertions(+), 4326 deletions(-) create mode 100644 ktg-print/src/main/java/com/ktg/print/controller/PrintController.java create mode 100644 ktg-print/src/main/java/com/ktg/print/domain/PrintBarcodeModel.java delete mode 100644 ktg-print/src/main/java/com/ktg/print/printserver/PrintClientInfoMessageHandler.java delete mode 100644 ktg-print/src/main/java/com/ktg/print/printserver/PrintServerChannelInitializer.java delete mode 100644 ktg-print/src/main/java/com/ktg/print/printserver/PrintServerCloseListener.java delete mode 100644 ktg-print/src/main/java/com/ktg/print/printserver/PrintServerDefaultHandler.java delete mode 100644 ktg-print/src/main/java/com/ktg/print/printserver/PrintServerOpenListener.java delete mode 100644 ktg-print/src/main/java/com/ktg/print/printserver/PrinterServer.java delete mode 100644 ktg-print/src/main/java/com/ktg/print/protocol/proto/PrintMessage.proto create mode 100644 ktg-print/src/main/java/com/ktg/print/protocol/proto/PrintMessageProto.proto create mode 100644 ktg-print/src/main/java/com/ktg/print/response/R.java create mode 100644 ktg-print/src/main/java/com/ktg/print/server/PrintClientInfoMessageHandler.java create mode 100644 ktg-print/src/main/java/com/ktg/print/server/PrintServer.java create mode 100644 ktg-print/src/main/java/com/ktg/print/server/PrintServerDefaultHandler.java create mode 100644 ktg-print/src/main/java/com/ktg/print/server/PrintServerOpenListener.java diff --git a/ktg-admin/pom.xml b/ktg-admin/pom.xml index e108f1a..6790ef6 100644 --- a/ktg-admin/pom.xml +++ b/ktg-admin/pom.xml @@ -67,6 +67,12 @@ ktg-mes + + + com.ktg + ktg-print + + @@ -86,17 +92,17 @@ - - org.apache.maven.plugins - maven-war-plugin - 3.1.0 + + org.apache.maven.plugins + maven-war-plugin + 3.1.0 false ${project.artifactId} - - + + ${project.artifactId} - \ No newline at end of file + diff --git a/ktg-framework/src/main/java/com/ktg/framework/config/SecurityConfig.java b/ktg-framework/src/main/java/com/ktg/framework/config/SecurityConfig.java index 8c01fbc..f685286 100644 --- a/ktg-framework/src/main/java/com/ktg/framework/config/SecurityConfig.java +++ b/ktg-framework/src/main/java/com/ktg/framework/config/SecurityConfig.java @@ -20,7 +20,7 @@ import com.ktg.framework.security.handle.LogoutSuccessHandlerImpl; /** * spring security配置 - * + * * @author ruoyi */ @EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true) @@ -31,7 +31,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter */ @Autowired private UserDetailsService userDetailsService; - + /** * 认证失败处理类 */ @@ -49,13 +49,13 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter */ @Autowired private JwtAuthenticationTokenFilter authenticationTokenFilter; - + /** * 跨域过滤器 */ @Autowired private CorsFilter corsFilter; - + /** * 解决 无法直接注入 AuthenticationManager * @@ -115,6 +115,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter .antMatchers("/*/api-docs").anonymous() .antMatchers("/druid/**").anonymous() .antMatchers("/websocket/**").anonymous() + .antMatchers("/barcodePrint/printing/**").anonymous() .antMatchers("/system/autocode/get/**").permitAll() // 除上面外的所有请求全部需要鉴权认证 .anyRequest().authenticated() diff --git a/ktg-print/pom.xml b/ktg-print/pom.xml index 6a18b2b..553bb3d 100644 --- a/ktg-print/pom.xml +++ b/ktg-print/pom.xml @@ -37,5 +37,9 @@ com.ktg ktg-common + + org.projectlombok + lombok + - \ No newline at end of file + diff --git a/ktg-print/src/main/java/com/ktg/print/controller/PrintController.java b/ktg-print/src/main/java/com/ktg/print/controller/PrintController.java new file mode 100644 index 0000000..42e31f3 --- /dev/null +++ b/ktg-print/src/main/java/com/ktg/print/controller/PrintController.java @@ -0,0 +1,243 @@ +package com.ktg.print.controller; + +import com.ktg.common.constant.UserConstants; +import com.ktg.common.core.domain.AjaxResult; +import com.ktg.common.utils.StringUtils; +import com.ktg.print.domain.PrintBarcodeModel; +import com.ktg.print.domain.PrintPrinterConfig; +import com.ktg.print.protocol.PrintMessageProto; +import com.ktg.print.server.PrintClientInfoMessageHandler; +import com.ktg.print.server.PrintServerDefaultHandler; +import com.ktg.print.service.IPrintPrinterConfigService; +import io.netty.channel.Channel; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.net.SocketAddress; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; + +/** + * @author yanshikui + */ +@RestController +@RequestMapping("/barcodePrint") +public class PrintController { + + @Autowired + private IPrintPrinterConfigService printPrinterConfigService; + + + /** + * 条码打印公共接口 + * @param printBarcodeModel + * @return + */ + @PostMapping("/printing") + public AjaxResult printBarcodeLabel(@RequestBody PrintBarcodeModel printBarcodeModel) { + String printCode = printBarcodeModel.getPrintCode(); + String printTemplate = printBarcodeModel.getPrintTemplate(); + Map params = printBarcodeModel.getParams(); + PrintPrinterConfig printPrinterConfig = printPrinterConfigService.selectPrintPrinterConfigByPrinterId(Long.parseLong(printCode)); + String ip = printPrinterConfig.getPrinterIp(); + String printPort = printPrinterConfig.getPrinterPort().toString(); + String printName = printPrinterConfig.getPrinterName(); + PrintMessageProto.Printer.DataType dataType = PrintMessageProto.Printer.DataType.IQC_PrintMessage; + if (printPrinterConfig == null) { + return AjaxResult.error("打印机:" + printCode + "不存在"); + } + //根据打印机编码id获取打印机你信息 + String clientIp = printPrinterConfig.getClientIp(); + if (StringUtils.isEmpty(clientIp)) { + return AjaxResult.error("请检查打印机客户端信息配置!"); + } + PrintMessageProto.Printer msg = null; + PrintMessageProto.Printer.PrintInfo printInfo = PrintMessageProto.Printer.PrintInfo.newBuilder().setIp(ip).setCode(printCode).setName(printName).setPort(printPort).build(); + switch (printTemplate) { + case UserConstants.BARCODE_TYPE_ITEM: + //物料标签打印 + //封装模板数据 + String materialCode = params.get("materialCode"); + String materialName = params.get("materialName"); + String specificationAndModel = params.get("specificationAndModel"); + dataType = PrintMessageProto.Printer.DataType.Material_Products; + PrintMessageProto.Printer.MaterialProducts materialProducts = PrintMessageProto.Printer.MaterialProducts.newBuilder().setMaterialCode(materialCode).setMaterialName(materialName).setSpecificationAndModel(specificationAndModel).build(); + // 构造对应的消息对象 + msg = PrintMessageProto.Printer.newBuilder().setMaterialProducts(materialProducts).setDataType(dataType).setPrintInfo(printInfo).build(); + break; + case UserConstants.BARCODE_TYPE_PACKAGE: +// String materialCode = params.get("materialCode"); +// String materialName = params.get("materialName"); +// String specificationAndModel = params.get("specificationAndModel"); +// String param = params.get("param"); +// PrintMessageProto.Printer.DataType dataType = PrintMessageProto.Printer.DataType.Material_Products; +// PrintMessageProto.Printer.MaterialProducts materialProducts = PrintMessageProto.Printer.MaterialProducts.newBuilder().setMaterialCode(materialCode).setMaterialName(materialName).setSpecificationAndModel(specificationAndModel).setParam(param).build(); +// // 构造对应的消息对象 +// msg = PrintMessageProto.Printer.newBuilder().setMaterialProducts(materialProducts).setDataType(dataType).setPrintInfo(printInfo).build(); +// break; + case UserConstants.BARCODE_TYPE_STOCK: + //仓库标签打印 + //封装模板数据 +// String warehouseCode = params.get("warehouseCode"); +// String warehouseName = params.get("warehouseName"); +// String personInCharge = params.get("personInCharge"); +// dataType = PrintMessageProto.Printer.DataType.Warehouse_; +// PrintMessageProto.Printer.Warehouse warehouse = PrintMessageProto.Printer.Warehouse.newBuilder().setWarehouseCode(warehouseCode).setWarehouseName(warehouseName).setPersonInCharge(personInCharge).build(); +// // 构造对应的消息对象 +// msg = PrintMessageProto.Printer.newBuilder().setWarehouse(warehouse).setDataType(dataType).setPrintInfo(printInfo).build(); +// break; + case UserConstants.BARCODE_TYPE_MACHINERY: + //设备标签打印 + //封装模板数据 + String equipmentCode = params.get("equipmentCode"); + String equipmentName = params.get("equipmentName"); + String specificationAndModel_1 = params.get("specificationAndModel"); + dataType = PrintMessageProto.Printer.DataType.Equipment_; + PrintMessageProto.Printer.Equipment equipment = PrintMessageProto.Printer.Equipment.newBuilder().setEquipmentCode(equipmentCode).setEquipmentName(equipmentName).setSpecificationAndModel(specificationAndModel_1).build(); + // 构造对应的消息对象 + msg = PrintMessageProto.Printer.newBuilder().setEquipment(equipment).setDataType(dataType).setPrintInfo(printInfo).build(); + break; + case UserConstants.BARCODE_TYPE_WORKSTATION: + //工作站标签打印 + //封装模板数据 + String workstationCode = params.get("workstationCode"); + String workstationName = params.get("workstationName"); + String belongingProcess = params.get("belongingProcess"); + dataType = PrintMessageProto.Printer.DataType.Workstation_; + PrintMessageProto.Printer.Workstation workstation = PrintMessageProto.Printer.Workstation.newBuilder().setWorkstationCode(workstationCode).setWorkstationName(workstationName).setBelongingProcess(belongingProcess).build(); + // 构造对应的消息对象 + msg = PrintMessageProto.Printer.newBuilder().setWorkstation(workstation).setDataType(dataType).setPrintInfo(printInfo).build(); + break; + case UserConstants.BARCODE_TYPE_WAREHOUSE: + // 仓库标签打印 + //封装模板数据 + String warehouseCode = params.get("warehouseCode"); + String warehouseName = params.get("warehouseName"); + String personInCharge = params.get("personInCharge"); + dataType = PrintMessageProto.Printer.DataType.Warehouse_; + PrintMessageProto.Printer.Warehouse warehouse = PrintMessageProto.Printer.Warehouse.newBuilder().setWarehouseCode(warehouseCode).setWarehouseName(warehouseName).setPersonInCharge(personInCharge).build(); + // 构造对应的消息对象 + msg = PrintMessageProto.Printer.newBuilder().setWarehouse(warehouse).setDataType(dataType).setPrintInfo(printInfo).build(); + break; + case UserConstants.BARCODE_TYPE_STORAGELOCATION: + // 库区标签打印 + //封装模板数据 + String warehouseLocationCode = params.get("warehouseLocationCode"); + String warehouseLocationName = params.get("warehouseLocationName"); + String position = params.get("position"); + dataType = PrintMessageProto.Printer.DataType.Warehouse_Location; + PrintMessageProto.Printer.WarehouseLocation location = PrintMessageProto.Printer.WarehouseLocation.newBuilder().setWarehouseLocationCode(warehouseLocationCode).setWarehouseLocationName(warehouseLocationName).setPosition(position).build(); + // 构造对应的消息对象 + msg = PrintMessageProto.Printer.newBuilder().setWarehouseLocation(location).setDataType(dataType).setPrintInfo(printInfo).build(); + break; + case UserConstants.BARCODE_TYPE_STORAGEAREA: + // 库位标签打印 + //封装模板数据 + String warehouseAreaCode = params.get("warehouseAreaCode"); + String warehouseAreaName = params.get("warehouseAreaName"); + dataType = PrintMessageProto.Printer.DataType.Warehouse_Area; + PrintMessageProto.Printer.WarehouseArea warehouseArea = PrintMessageProto.Printer.WarehouseArea.newBuilder().setWarehouseAreaCode(warehouseAreaCode).setWarehouseAreaName(warehouseAreaName).build(); + // 构造对应的消息对象 + msg = PrintMessageProto.Printer.newBuilder().setWarehouseArea(warehouseArea).setDataType(dataType).setPrintInfo(printInfo).build(); + break; + case UserConstants.BARCODE_TYPE_TRANSORDER: + // 流转单标签打印 + //封装模板数据 + //String sampleCode =params.get("sampleCode"); + //String qcObject =params.get("qcObject"); + //String sampleTime =params.get("sampleTime"); + //String batchCode =params.get("batchCode"); + //PrintMessageProt//o.Printer.IQCPrintMessage iQCPrintMessage = PrintMessageProto.Printer.IQCPrintMessage.newBuilder().setSampleCode(sampleCode).setQcObject(qcObject).setSampleTime(sampleTime).setBatchCode(batchCode).build(); + // 构造对应的消息对象 +// msg = PrintMessageProto.Printer.newBuilder().setIqcPrintMessage(iQCPrintMessage).setDataType(dataType).setPrintInfo(printClientInfoMessage).build(); + break; + case UserConstants.BARCODE_TYPE_CLIENT: + // 客户标签打印 + //封装模板数据 + //String sampleCode =params.get("sampleCode"); + //String qcObject =params.get("qcObject"); + //String sampleTime =params.get("sampleTime"); + //String batchCode =params.get("batchCode"); + //PrintMessageProt//o.Printer.IQCPrintMessage iQCPrintMessage = PrintMessageProto.Printer.IQCPrintMessage.newBuilder().setSampleCode(sampleCode).setQcObject(qcObject).setSampleTime(sampleTime).setBatchCode(batchCode).build(); + // 构造对应的消息对象 +// msg = PrintMessageProto.Printer.newBuilder().setIqcPrintMessage(iQCPrintMessage).setDataType(dataType).setPrintInfo(printClientInfoMessage).build(); + break; + case UserConstants.BARCODE_TYPE_VENDOR: + // 供应商标签打印 + //封装模板数据 + //String sampleCode =params.get("sampleCode"); + //String qcObject =params.get("qcObject"); + //String sampleTime =params.get("sampleTime"); + //String batchCode =params.get("batchCode"); + //PrintMessageProt//o.Printer.IQCPrintMessage iQCPrintMessage = PrintMessageProto.Printer.IQCPrintMessage.newBuilder().setSampleCode(sampleCode).setQcObject(qcObject).setSampleTime(sampleTime).setBatchCode(batchCode).build(); + // 构造对应的消息对象 +// msg = PrintMessageProto.Printer.newBuilder().setIqcPrintMessage(iQCPrintMessage).setDataType(dataType).setPrintInfo(printClientInfoMessage).build(); + break; + case UserConstants.BARCODE_TYPE_WORKSHOP: + // 工作站标签打印 + //封装模板数据 + //String sampleCode =params.get("sampleCode"); + //String qcObject =params.get("qcObject"); + //String sampleTime =params.get("sampleTime"); + //String batchCode =params.get("batchCode"); + //PrintMessageProt//o.Printer.IQCPrintMessage iQCPrintMessage = PrintMessageProto.Printer.IQCPrintMessage.newBuilder().setSampleCode(sampleCode).setQcObject(qcObject).setSampleTime(sampleTime).setBatchCode(batchCode).build(); + // 构造对应的消息对象 +// msg = PrintMessageProto.Printer.newBuilder().setIqcPrintMessage(iQCPrintMessage).setDataType(dataType).setPrintInfo(printClientInfoMessage).build(); + break; + case UserConstants.BARCODE_TYPE_WORKORDER: + // 生产工单标签打印 + //封装模板数据 + //String sampleCode =params.get("sampleCode"); + //String qcObject =params.get("qcObject"); + //String sampleTime =params.get("sampleTime"); + //String batchCode =params.get("batchCode"); + //PrintMessageProt//o.Printer.IQCPrintMessage iQCPrintMessage = PrintMessageProto.Printer.IQCPrintMessage.newBuilder().setSampleCode(sampleCode).setQcObject(qcObject).setSampleTime(sampleTime).setBatchCode(batchCode).build(); + // 构造对应的消息对象 +// msg = PrintMessageProto.Printer.newBuilder().setIqcPrintMessage(iQCPrintMessage).setDataType(dataType).setPrintInfo(printClientInfoMessage).build(); + break; + case UserConstants.BARCODE_TYPE_TOOL: + // 工装夹具标签打印 + //封装模板数据 + //String sampleCode =params.get("sampleCode"); + //String qcObject =params.get("qcObject"); + //String sampleTime =params.get("sampleTime"); + //String batchCode =params.get("batchCode"); + //PrintMessageProt//o.Printer.IQCPrintMessage iQCPrintMessage = PrintMessageProto.Printer.IQCPrintMessage.newBuilder().setSampleCode(sampleCode).setQcObject(qcObject).setSampleTime(sampleTime).setBatchCode(batchCode).build(); + // 构造对应的消息对象 +// msg = PrintMessageProto.Printer.newBuilder().setIqcPrintMessage(iQCPrintMessage).setDataType(dataType).setPrintInfo(printClientInfoMessage).build(); + break; + case UserConstants.BARCODE_TYPE_SN: + // SN标签打印 + //封装模板数据 + //String sampleCode =params.get("sampleCode"); + //String qcObject =params.get("qcObject"); + //String sampleTime =params.get("sampleTime"); + //String batchCode =params.get("batchCode"); + //PrintMessageProt//o.Printer.IQCPrintMessage iQCPrintMessage = PrintMessageProto.Printer.IQCPrintMessage.newBuilder().setSampleCode(sampleCode).setQcObject(qcObject).setSampleTime(sampleTime).setBatchCode(batchCode).build(); + // 构造对应的消息对象 +// msg = PrintMessageProto.Printer.newBuilder().setIqcPrintMessage(iQCPrintMessage).setDataType(dataType).setPrintInfo(printClientInfoMessage).build(); + break; + default: + // 默认执行代码块 + //封装模板数据 + //String sampleCode =params.get("sampleCode"); + //String qcObject =params.get("qcObject"); + //String sampleTime =params.get("sampleTime"); + //String batchCode =params.get("batchCode"); + //PrintMessageProt//o.Printer.IQCPrintMessage iQCPrintMessage = PrintMessageProto.Printer.IQCPrintMessage.newBuilder().setSampleCode(sampleCode).setQcObject(qcObject).setSampleTime(sampleTime).setBatchCode(batchCode).build(); + // 构造对应的消息对象 +// msg = PrintMessageProto.Printer.newBuilder().setIqcPrintMessage(iQCPrintMessage).setDataType(dataType).setPrintInfo(printClientInfoMessage).build(); +// break; + } + // 获取信道数据并发送消息对象给指定打印机客户端 + //打印机名称和打印机客户端地址映射 一对一关系 + ConcurrentHashMap socketAddress = PrintClientInfoMessageHandler.socketAddressMap; + //根据客户端和通道信息 + ConcurrentHashMap channels = PrintServerDefaultHandler.chanelMap; + Channel channel = channels.get(socketAddress.get(clientIp)); + channel.writeAndFlush(msg); + return AjaxResult.success("打印成功"); + } + +} + diff --git a/ktg-print/src/main/java/com/ktg/print/domain/PrintBarcodeModel.java b/ktg-print/src/main/java/com/ktg/print/domain/PrintBarcodeModel.java new file mode 100644 index 0000000..65bc861 --- /dev/null +++ b/ktg-print/src/main/java/com/ktg/print/domain/PrintBarcodeModel.java @@ -0,0 +1,12 @@ +package com.ktg.print.domain; + +import lombok.Data; + +import java.util.Map; + +@Data +public class PrintBarcodeModel { + private Map params; + private String printCode; + private String printTemplate; +} diff --git a/ktg-print/src/main/java/com/ktg/print/printserver/PrintClientInfoMessageHandler.java b/ktg-print/src/main/java/com/ktg/print/printserver/PrintClientInfoMessageHandler.java deleted file mode 100644 index 7cea204..0000000 --- a/ktg-print/src/main/java/com/ktg/print/printserver/PrintClientInfoMessageHandler.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.ktg.print.printserver; - -import com.ktg.print.protocol.PrintMessageProto; -import io.netty.channel.Channel; -import io.netty.channel.ChannelHandlerContext; -import io.netty.channel.SimpleChannelInboundHandler; -import io.netty.channel.group.ChannelGroup; -import io.netty.channel.group.DefaultChannelGroup; -import io.netty.util.concurrent.GlobalEventExecutor; -import org.springframework.stereotype.Component; - -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; - -@Component -public class PrintClientInfoMessageHandler extends SimpleChannelInboundHandler { - - //接收到客户端发送的客户端信息后才会保存client信息 - private Map clients = new ConcurrentHashMap<>(); - private ChannelGroup group = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE); - - @Override - protected void channelRead0(ChannelHandlerContext channelHandlerContext, PrintMessageProto.PrintClientInfoMessage clientInfoMessag) throws Exception { - if(!clients.containsKey(clientInfoMessag.getSid())){ - clients.put(clientInfoMessag.getSid(),channelHandlerContext.channel()); - } - channelHandlerContext.fireChannelRead(clientInfoMessag); - group.add(channelHandlerContext.channel()); - } - - @Override - public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { - group.remove(ctx.channel()); - } -} diff --git a/ktg-print/src/main/java/com/ktg/print/printserver/PrintServerChannelInitializer.java b/ktg-print/src/main/java/com/ktg/print/printserver/PrintServerChannelInitializer.java deleted file mode 100644 index c5a9a3f..0000000 --- a/ktg-print/src/main/java/com/ktg/print/printserver/PrintServerChannelInitializer.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.ktg.print.printserver; - -import com.ktg.print.protocol.PrintMessageProto; -import io.netty.channel.Channel; -import io.netty.channel.ChannelInitializer; -import io.netty.handler.codec.protobuf.ProtobufDecoder; -import io.netty.handler.codec.protobuf.ProtobufEncoder; -import io.netty.handler.codec.protobuf.ProtobufVarint32FrameDecoder; -import io.netty.handler.codec.protobuf.ProtobufVarint32LengthFieldPrepender; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; - -@Component -public class PrintServerChannelInitializer extends ChannelInitializer { - @Autowired - private PrintServerDefaultHandler serverDefaultHandler; - - @Autowired - private PrintClientInfoMessageHandler printClientInfoMessageHandler; - - @Override - protected void initChannel(Channel ch) throws Exception { - ch.pipeline().addLast(new ProtobufVarint32FrameDecoder()); - ch.pipeline().addLast(new ProtobufDecoder(PrintMessageProto.PrintClientInfoMessage.getDefaultInstance())); - ch.pipeline().addLast(new ProtobufEncoder()); - ch.pipeline().addLast(new ProtobufVarint32LengthFieldPrepender()); - ch.pipeline().addLast(printClientInfoMessageHandler); - ch.pipeline().addLast(serverDefaultHandler); - } -} diff --git a/ktg-print/src/main/java/com/ktg/print/printserver/PrintServerCloseListener.java b/ktg-print/src/main/java/com/ktg/print/printserver/PrintServerCloseListener.java deleted file mode 100644 index 37290f6..0000000 --- a/ktg-print/src/main/java/com/ktg/print/printserver/PrintServerCloseListener.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.ktg.print.printserver; - -import org.springframework.beans.factory.DisposableBean; -import org.springframework.stereotype.Component; - -import javax.annotation.Resource; - -@Component -public class PrintServerCloseListener implements DisposableBean { - - @Resource - private PrinterServer printerServer; - - @Override - public void destroy() throws Exception { - printerServer.stop(); - } -} diff --git a/ktg-print/src/main/java/com/ktg/print/printserver/PrintServerDefaultHandler.java b/ktg-print/src/main/java/com/ktg/print/printserver/PrintServerDefaultHandler.java deleted file mode 100644 index 398a556..0000000 --- a/ktg-print/src/main/java/com/ktg/print/printserver/PrintServerDefaultHandler.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.ktg.print.printserver; - -import io.netty.buffer.ByteBuf; -import io.netty.channel.Channel; -import io.netty.channel.ChannelHandler; -import io.netty.channel.ChannelHandlerContext; -import io.netty.channel.ChannelInboundHandlerAdapter; -import io.netty.channel.group.ChannelGroup; -import io.netty.channel.group.DefaultChannelGroup; -import io.netty.util.CharsetUtil; -import io.netty.util.concurrent.GlobalEventExecutor; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.stereotype.Component; - -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; - -@Component -@ChannelHandler.Sharable -public class PrintServerDefaultHandler extends ChannelInboundHandlerAdapter { - - private static final Logger logger = LoggerFactory.getLogger("PrinterServerHandler"); - - /** - * 客户端连接建立 - * @param ctx - * @throws Exception - */ - @Override - public void handlerAdded(ChannelHandlerContext ctx) throws Exception { - logger.info("打印机客户端已连接!"); - } - - /** - * 客户端连接移除 - * @param ctx - * @throws Exception - */ - @Override - public void handlerRemoved(ChannelHandlerContext ctx) throws Exception { - logger.info("打印机客户端已断开!"); - } - - @Override - public void channelRead(ChannelHandlerContext ctx, Object msg){ - try{ - ByteBuf data = (ByteBuf) msg; - logger.info("msg recived:"+data.toString(CharsetUtil.UTF_8)); - - String replyMessage = "Server reply: " + data.toString(CharsetUtil.UTF_8)+"\n"; - ByteBuf replyByteBuf = ctx.alloc().buffer(); - replyByteBuf.writeBytes(replyMessage.getBytes()); - ctx.writeAndFlush(replyByteBuf); - }catch (Exception e){ - logger.error(e.getMessage()); - } - } - - /** - * 异常发生,关闭通道,移除客户端 - * @param ctx - * @param cause - * @throws Exception - */ - @Override - public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { - ctx.channel().close(); - } -} diff --git a/ktg-print/src/main/java/com/ktg/print/printserver/PrintServerOpenListener.java b/ktg-print/src/main/java/com/ktg/print/printserver/PrintServerOpenListener.java deleted file mode 100644 index 14fbf04..0000000 --- a/ktg-print/src/main/java/com/ktg/print/printserver/PrintServerOpenListener.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.ktg.print.printserver; - -import org.springframework.boot.ApplicationArguments; -import org.springframework.boot.ApplicationRunner; -import org.springframework.stereotype.Component; - -import javax.annotation.Resource; - -@Component -public class PrintServerOpenListener implements ApplicationRunner { - - @Resource - private PrinterServer printerServer; - - @Override - public void run(ApplicationArguments args) throws Exception { - printerServer.start(); - } - -} diff --git a/ktg-print/src/main/java/com/ktg/print/printserver/PrinterServer.java b/ktg-print/src/main/java/com/ktg/print/printserver/PrinterServer.java deleted file mode 100644 index 0bc9786..0000000 --- a/ktg-print/src/main/java/com/ktg/print/printserver/PrinterServer.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.ktg.print.printserver; - -import io.netty.bootstrap.ServerBootstrap; -import io.netty.channel.Channel; -import io.netty.channel.ChannelFuture; -import io.netty.channel.ChannelInitializer; -import io.netty.channel.EventLoopGroup; -import io.netty.channel.nio.NioEventLoopGroup; -import io.netty.channel.socket.SocketChannel; -import io.netty.channel.socket.nio.NioServerSocketChannel; -import io.netty.handler.codec.protobuf.ProtobufDecoder; -import io.netty.handler.codec.protobuf.ProtobufEncoder; -import io.netty.handler.codec.protobuf.ProtobufVarint32FrameDecoder; -import io.netty.handler.codec.protobuf.ProtobufVarint32LengthFieldPrepender; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.stereotype.Component; - -/** - * 基于netty的socket服务器端,与标签打印机的客户端建立长连接,实现网络远程打印 - */ -@Component -public class PrinterServer { - - @Autowired - private PrintServerChannelInitializer printServerChannelInitializer; - - @Value("${netty.server.port}") - private int port; - - @Value("${netty.server.threadcount}") - private int bossThreadCount; - - private EventLoopGroup bossGroup; - private EventLoopGroup workerGroup; - private Channel serverChannel; - - PrinterServer(){ - bossGroup = new NioEventLoopGroup(); - workerGroup = new NioEventLoopGroup(); - } - - public void start(){ - try { - ServerBootstrap serverBootstrap = new ServerBootstrap(); - serverBootstrap.group(bossGroup, workerGroup) - .channel(NioServerSocketChannel.class) - .childHandler(printServerChannelInitializer); - ChannelFuture channelFuture = serverBootstrap.bind(port).sync(); - serverChannel = channelFuture.channel(); - serverChannel.closeFuture().sync(); - } catch (InterruptedException e) { - e.printStackTrace(); - } finally { - bossGroup.shutdownGracefully(); - workerGroup.shutdownGracefully(); - } - } - - public void stop(){ - if(serverChannel !=null){ - serverChannel.close(); - serverChannel = null; - } - } - -} diff --git a/ktg-print/src/main/java/com/ktg/print/protocol/PrintMessageProto.java b/ktg-print/src/main/java/com/ktg/print/protocol/PrintMessageProto.java index 0ab6a3b..3e11ac0 100644 --- a/ktg-print/src/main/java/com/ktg/print/protocol/PrintMessageProto.java +++ b/ktg-print/src/main/java/com/ktg/print/protocol/PrintMessageProto.java @@ -1,4082 +1,16201 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PrintMessage.proto - +// source: PrintMessageProto.proto package com.ktg.print.protocol; - public final class PrintMessageProto { - private PrintMessageProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface IQCPrintMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.ktg.print.protocol.IQCPrintMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * 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.Builder implements - // @@protoc_insertion_point(builder_implements:com.ktg.print.protocol.IQCPrintMessage) - IQCPrintMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return PrintMessageProto.internal_static_com_ktg_print_protocol_IQCPrintMessage_descriptor; - } - - @Override - protected FieldAccessorTable - internalGetFieldAccessorTable() { - return PrintMessageProto.internal_static_com_ktg_print_protocol_IQCPrintMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - IQCPrintMessage.class, Builder.class); - } - - // Construct using com.ktg.print.protocol.PrintMessageProto.IQCPrintMessage.newBuilder() - private Builder() { - - } - - private Builder( - BuilderParent parent) { - super(parent); - - } - @Override - public Builder clear() { - super.clear(); - sampleCode_ = ""; - - qcObject_ = ""; - - sampleTime_ = ""; - - batchCode_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return PrintMessageProto.internal_static_com_ktg_print_protocol_IQCPrintMessage_descriptor; - } - - @Override - public IQCPrintMessage getDefaultInstanceForType() { - return IQCPrintMessage.getDefaultInstance(); - } - - @Override - public IQCPrintMessage build() { - IQCPrintMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public static final class Printer extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Printer) + PrinterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Printer.newBuilder() to construct. + private Printer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return result; - } - - @Override - public IQCPrintMessage buildPartial() { - IQCPrintMessage result = new IQCPrintMessage(this); - result.sampleCode_ = sampleCode_; - result.qcObject_ = qcObject_; - result.sampleTime_ = sampleTime_; - result.batchCode_ = batchCode_; - onBuilt(); - return result; - } - - @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 IQCPrintMessage) { - return mergeFrom((IQCPrintMessage)other); - } else { - super.mergeFrom(other); - return this; + private Printer() { + dataType_ = 0; } - } - public Builder mergeFrom(IQCPrintMessage other) { - if (other == IQCPrintMessage.getDefaultInstance()) return this; - if (!other.getSampleCode().isEmpty()) { - sampleCode_ = other.sampleCode_; - onChanged(); + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Printer(); } - if (!other.getQcObject().isEmpty()) { - qcObject_ = other.qcObject_; - onChanged(); + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - if (!other.getSampleTime().isEmpty()) { - sampleTime_ = other.sampleTime_; - onChanged(); - } - if (!other.getBatchCode().isEmpty()) { - batchCode_ = other.batchCode_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + private Printer( + 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 8: { + int rawValue = input.readEnum(); - @Override - public final boolean isInitialized() { - return true; - } + dataType_ = rawValue; + break; + } + case 18: { + PrintMessageProto.Printer.IQCPrintMessage.Builder subBuilder = null; + if (dataBodyCase_ == 2) { + subBuilder = ((PrintMessageProto.Printer.IQCPrintMessage) dataBody_).toBuilder(); + } + dataBody_ = + input.readMessage(PrintMessageProto.Printer.IQCPrintMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((PrintMessageProto.Printer.IQCPrintMessage) dataBody_); + dataBody_ = subBuilder.buildPartial(); + } + dataBodyCase_ = 2; + break; + } + case 26: { + PrintMessageProto.Printer.PQCPrintMessage.Builder subBuilder = null; + if (dataBodyCase_ == 3) { + subBuilder = ((PrintMessageProto.Printer.PQCPrintMessage) dataBody_).toBuilder(); + } + dataBody_ = + input.readMessage(PrintMessageProto.Printer.PQCPrintMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((PrintMessageProto.Printer.PQCPrintMessage) dataBody_); + dataBody_ = subBuilder.buildPartial(); + } + dataBodyCase_ = 3; + break; + } + case 34: { + PrintMessageProto.Printer.OQCPrintMessage.Builder subBuilder = null; + if (dataBodyCase_ == 4) { + subBuilder = ((PrintMessageProto.Printer.OQCPrintMessage) dataBody_).toBuilder(); + } + dataBody_ = + input.readMessage(PrintMessageProto.Printer.OQCPrintMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((PrintMessageProto.Printer.OQCPrintMessage) dataBody_); + dataBody_ = subBuilder.buildPartial(); + } + dataBodyCase_ = 4; + break; + } + case 42: { + PrintMessageProto.Printer.PrintClientInfoMessage.Builder subBuilder = null; + if (dataBodyCase_ == 5) { + subBuilder = ((PrintMessageProto.Printer.PrintClientInfoMessage) dataBody_).toBuilder(); + } + dataBody_ = + input.readMessage(PrintMessageProto.Printer.PrintClientInfoMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((PrintMessageProto.Printer.PrintClientInfoMessage) dataBody_); + dataBody_ = subBuilder.buildPartial(); + } + dataBodyCase_ = 5; + break; + } + case 50: { + PrintMessageProto.Printer.PrintingOfCirculation.Builder subBuilder = null; + if (dataBodyCase_ == 6) { + subBuilder = ((PrintMessageProto.Printer.PrintingOfCirculation) dataBody_).toBuilder(); + } + dataBody_ = + input.readMessage(PrintMessageProto.Printer.PrintingOfCirculation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((PrintMessageProto.Printer.PrintingOfCirculation) dataBody_); + dataBody_ = subBuilder.buildPartial(); + } + dataBodyCase_ = 6; + break; + } + case 58: { + PrintMessageProto.Printer.MaterialProducts.Builder subBuilder = null; + if (dataBodyCase_ == 7) { + subBuilder = ((PrintMessageProto.Printer.MaterialProducts) dataBody_).toBuilder(); + } + dataBody_ = + input.readMessage(PrintMessageProto.Printer.MaterialProducts.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((PrintMessageProto.Printer.MaterialProducts) dataBody_); + dataBody_ = subBuilder.buildPartial(); + } + dataBodyCase_ = 7; + break; + } + case 66: { + PrintMessageProto.Printer.Warehouse.Builder subBuilder = null; + if (dataBodyCase_ == 8) { + subBuilder = ((PrintMessageProto.Printer.Warehouse) dataBody_).toBuilder(); + } + dataBody_ = + input.readMessage(PrintMessageProto.Printer.Warehouse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((PrintMessageProto.Printer.Warehouse) dataBody_); + dataBody_ = subBuilder.buildPartial(); + } + dataBodyCase_ = 8; + break; + } + case 74: { + PrintMessageProto.Printer.WarehouseLocation.Builder subBuilder = null; + if (dataBodyCase_ == 9) { + subBuilder = ((PrintMessageProto.Printer.WarehouseLocation) dataBody_).toBuilder(); + } + dataBody_ = + input.readMessage(PrintMessageProto.Printer.WarehouseLocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((PrintMessageProto.Printer.WarehouseLocation) dataBody_); + dataBody_ = subBuilder.buildPartial(); + } + dataBodyCase_ = 9; + break; + } + case 82: { + PrintMessageProto.Printer.WarehouseArea.Builder subBuilder = null; + if (dataBodyCase_ == 10) { + subBuilder = ((PrintMessageProto.Printer.WarehouseArea) dataBody_).toBuilder(); + } + dataBody_ = + input.readMessage(PrintMessageProto.Printer.WarehouseArea.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((PrintMessageProto.Printer.WarehouseArea) dataBody_); + dataBody_ = subBuilder.buildPartial(); + } + dataBodyCase_ = 10; + break; + } + case 90: { + PrintMessageProto.Printer.Equipment.Builder subBuilder = null; + if (dataBodyCase_ == 11) { + subBuilder = ((PrintMessageProto.Printer.Equipment) dataBody_).toBuilder(); + } + dataBody_ = + input.readMessage(PrintMessageProto.Printer.Equipment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((PrintMessageProto.Printer.Equipment) dataBody_); + dataBody_ = subBuilder.buildPartial(); + } + dataBodyCase_ = 11; + break; + } + case 98: { + PrintMessageProto.Printer.Workstation.Builder subBuilder = null; + if (dataBodyCase_ == 12) { + subBuilder = ((PrintMessageProto.Printer.Workstation) dataBody_).toBuilder(); + } + dataBody_ = + input.readMessage(PrintMessageProto.Printer.Workstation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((PrintMessageProto.Printer.Workstation) dataBody_); + dataBody_ = subBuilder.buildPartial(); + } + dataBodyCase_ = 12; + break; + } + case 114: { + PrintMessageProto.Printer.PrintInfo.Builder subBuilder = null; + if (printInfo_ != null) { + subBuilder = printInfo_.toBuilder(); + } + printInfo_ = input.readMessage(PrintMessageProto.Printer.PrintInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(printInfo_); + printInfo_ = subBuilder.buildPartial(); + } - @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: { - batchCode_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - 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; + } 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.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public IQCPrintMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public IQCPrintMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PQCPrintMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.ktg.print.protocol.PQCPrintMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * 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 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 implements - // @@protoc_insertion_point(builder_implements:com.ktg.print.protocol.PQCPrintMessage) - PQCPrintMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return PrintMessageProto.internal_static_com_ktg_print_protocol_PQCPrintMessage_descriptor; - } - - @Override - protected FieldAccessorTable - internalGetFieldAccessorTable() { - return PrintMessageProto.internal_static_com_ktg_print_protocol_PQCPrintMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - PQCPrintMessage.class, Builder.class); - } - - // Construct using com.ktg.print.protocol.PrintMessageProto.PQCPrintMessage.newBuilder() - private Builder() { - - } - - private Builder( - BuilderParent parent) { - super(parent); - - } - @Override - public Builder clear() { - super.clear(); - sampleCode_ = ""; - - qcObject_ = ""; - - sampleTime_ = ""; - - sampleLocation_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return PrintMessageProto.internal_static_com_ktg_print_protocol_PQCPrintMessage_descriptor; - } - - @Override - public PQCPrintMessage getDefaultInstanceForType() { - return PQCPrintMessage.getDefaultInstance(); - } - - @Override - public PQCPrintMessage build() { - PQCPrintMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + return PrintMessageProto.internal_static_Printer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PrintMessageProto.Printer.class, PrintMessageProto.Printer.Builder.class); } - return result; - } - @Override - public PQCPrintMessage buildPartial() { - PQCPrintMessage result = new PQCPrintMessage(this); - result.sampleCode_ = sampleCode_; - result.qcObject_ = qcObject_; - result.sampleTime_ = sampleTime_; - result.sampleLocation_ = sampleLocation_; - onBuilt(); - return result; - } + /** + * Protobuf enum {@code Printer.DataType} + */ + public enum DataType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+             *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.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public PQCPrintMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public PQCPrintMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OQCPrintMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.ktg.print.protocol.OQCPrintMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * 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(); - - /** - * 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.Builder implements - // @@protoc_insertion_point(builder_implements:com.ktg.print.protocol.OQCPrintMessage) - OQCPrintMessageOrBuilder { - 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); - } - - // Construct using com.ktg.print.protocol.PrintMessageProto.OQCPrintMessage.newBuilder() - private Builder() { - - } - - private Builder( - BuilderParent parent) { - super(parent); - - } - @Override - public Builder clear() { - super.clear(); - sampleCode_ = ""; - - qcObject_ = ""; - - sampleTime_ = ""; - - batchCode_ = ""; - - packageType_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return PrintMessageProto.internal_static_com_ktg_print_protocol_OQCPrintMessage_descriptor; - } - - @Override - public OQCPrintMessage getDefaultInstanceForType() { - return OQCPrintMessage.getDefaultInstance(); - } - - @Override - public OQCPrintMessage build() { - OQCPrintMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public OQCPrintMessage buildPartial() { - OQCPrintMessage result = new OQCPrintMessage(this); - result.sampleCode_ = sampleCode_; - result.qcObject_ = qcObject_; - result.sampleTime_ = sampleTime_; - result.batchCode_ = batchCode_; - result.packageType_ = packageType_; - onBuilt(); - return result; - } - - @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 OQCPrintMessage) { - return mergeFrom((OQCPrintMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(OQCPrintMessage other) { - if (other == OQCPrintMessage.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.getBatchCode().isEmpty()) { - batchCode_ = other.batchCode_; - onChanged(); - } - if (!other.getPackageType().isEmpty()) { - packageType_ = other.packageType_; - 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: { - batchCode_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - packageType_ = input.readStringRequireUtf8(); - - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DataType forNumber(int value) { + switch (value) { + case 0: return IQC_PrintMessage; + case 1: return PQC_PrintMessage; + case 2: return OQC_PrintMessage; + case 3: return Print_ClientInfoMessage; + case 4: return Printing_OfCirculation; + case 5: return Material_Products; + case 6: return Warehouse_; + case 7: return Warehouse_Location; + case 8: return Warehouse_Area; + case 9: return Equipment_; + case 10: return Workstation_; + default: return null; } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } + } - 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; - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DataType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataType findValueByNumber(int number) { + return DataType.forNumber(number); + } + }; - 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; - } - - 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.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public OQCPrintMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public OQCPrintMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PrintClientInfoMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.ktg.print.protocol.PrintClientInfoMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * string 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 implements - // @@protoc_insertion_point(builder_implements:com.ktg.print.protocol.PrintClientInfoMessage) - PrintClientInfoMessageOrBuilder { - 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); - } - - // Construct using com.ktg.print.protocol.PrintMessageProto.PrintClientInfoMessage.newBuilder() - private Builder() { - - } - - private Builder( - BuilderParent parent) { - super(parent); - - } - @Override - public Builder clear() { - super.clear(); - ip_ = ""; - - location_ = ""; - - sid_ = ""; - - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return PrintMessageProto.internal_static_com_ktg_print_protocol_PrintClientInfoMessage_descriptor; - } - - @Override - public PrintClientInfoMessage getDefaultInstanceForType() { - return PrintClientInfoMessage.getDefaultInstance(); - } - - @Override - public PrintClientInfoMessage build() { - PrintClientInfoMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public PrintClientInfoMessage buildPartial() { - PrintClientInfoMessage result = new PrintClientInfoMessage(this); - result.ip_ = ip_; - result.location_ = location_; - result.sid_ = sid_; - onBuilt(); - return result; - } - - @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 PrintClientInfoMessage) { - return mergeFrom((PrintClientInfoMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(PrintClientInfoMessage other) { - if (other == PrintClientInfoMessage.getDefaultInstance()) return this; - if (!other.getIp().isEmpty()) { - ip_ = other.ip_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - if (!other.getSid().isEmpty()) { - sid_ = other.sid_; - 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: { - ip_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - location_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - sid_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return PrintMessageProto.Printer.getDescriptor().getEnumTypes().get(0); + } - private Object ip_ = ""; - /** - * 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.Builder implements + // @@protoc_insertion_point(builder_implements:Printer.IQCPrintMessage) + PrintMessageProto.Printer.IQCPrintMessageOrBuilder { + 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); + } + + // Construct using PrintMessageProto.Printer.IQCPrintMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + sampleCode_ = ""; + + qcObject_ = ""; + + sampleTime_ = ""; + + batchCode_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrintMessageProto.internal_static_Printer_IQCPrintMessage_descriptor; + } + + @java.lang.Override + public PrintMessageProto.Printer.IQCPrintMessage getDefaultInstanceForType() { + return PrintMessageProto.Printer.IQCPrintMessage.getDefaultInstance(); + } + + @java.lang.Override + public PrintMessageProto.Printer.IQCPrintMessage build() { + PrintMessageProto.Printer.IQCPrintMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public PrintMessageProto.Printer.IQCPrintMessage buildPartial() { + PrintMessageProto.Printer.IQCPrintMessage result = new PrintMessageProto.Printer.IQCPrintMessage(this); + result.sampleCode_ = sampleCode_; + result.qcObject_ = qcObject_; + result.sampleTime_ = sampleTime_; + result.batchCode_ = batchCode_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrintMessageProto.Printer.IQCPrintMessage) { + return mergeFrom((PrintMessageProto.Printer.IQCPrintMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrintMessageProto.Printer.IQCPrintMessage other) { + if (other == PrintMessageProto.Printer.IQCPrintMessage.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.getBatchCode().isEmpty()) { + batchCode_ = other.batchCode_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + PrintMessageProto.Printer.IQCPrintMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (PrintMessageProto.Printer.IQCPrintMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object sampleCode_ = ""; + /** + * string 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IQCPrintMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IQCPrintMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public PrintMessageProto.Printer.IQCPrintMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PQCPrintMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:Printer.PQCPrintMessage) + 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 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.Builder implements + // @@protoc_insertion_point(builder_implements:Printer.PQCPrintMessage) + PrintMessageProto.Printer.PQCPrintMessageOrBuilder { + 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); + } + + // Construct using PrintMessageProto.Printer.PQCPrintMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + sampleCode_ = ""; + + qcObject_ = ""; + + sampleTime_ = ""; + + sampleLocation_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrintMessageProto.internal_static_Printer_PQCPrintMessage_descriptor; + } + + @java.lang.Override + public PrintMessageProto.Printer.PQCPrintMessage getDefaultInstanceForType() { + return PrintMessageProto.Printer.PQCPrintMessage.getDefaultInstance(); + } + + @java.lang.Override + public PrintMessageProto.Printer.PQCPrintMessage build() { + PrintMessageProto.Printer.PQCPrintMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public PrintMessageProto.Printer.PQCPrintMessage buildPartial() { + PrintMessageProto.Printer.PQCPrintMessage result = new PrintMessageProto.Printer.PQCPrintMessage(this); + result.sampleCode_ = sampleCode_; + result.qcObject_ = qcObject_; + result.sampleTime_ = sampleTime_; + result.sampleLocation_ = sampleLocation_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrintMessageProto.Printer.PQCPrintMessage) { + return mergeFrom((PrintMessageProto.Printer.PQCPrintMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrintMessageProto.Printer.PQCPrintMessage other) { + if (other == PrintMessageProto.Printer.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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + PrintMessageProto.Printer.PQCPrintMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (PrintMessageProto.Printer.PQCPrintMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object sampleCode_ = ""; + /** + * string 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PQCPrintMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PQCPrintMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public PrintMessageProto.Printer.PQCPrintMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OQCPrintMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:Printer.OQCPrintMessage) + 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(); + + /** + * 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.Builder implements + // @@protoc_insertion_point(builder_implements:Printer.OQCPrintMessage) + PrintMessageProto.Printer.OQCPrintMessageOrBuilder { + 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); + } + + // Construct using PrintMessageProto.Printer.OQCPrintMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + sampleCode_ = ""; + + qcObject_ = ""; + + sampleTime_ = ""; + + batchCode_ = ""; + + packageType_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrintMessageProto.internal_static_Printer_OQCPrintMessage_descriptor; + } + + @java.lang.Override + public PrintMessageProto.Printer.OQCPrintMessage getDefaultInstanceForType() { + return PrintMessageProto.Printer.OQCPrintMessage.getDefaultInstance(); + } + + @java.lang.Override + public PrintMessageProto.Printer.OQCPrintMessage build() { + PrintMessageProto.Printer.OQCPrintMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public PrintMessageProto.Printer.OQCPrintMessage buildPartial() { + PrintMessageProto.Printer.OQCPrintMessage result = new PrintMessageProto.Printer.OQCPrintMessage(this); + result.sampleCode_ = sampleCode_; + result.qcObject_ = qcObject_; + result.sampleTime_ = sampleTime_; + result.batchCode_ = batchCode_; + result.packageType_ = packageType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrintMessageProto.Printer.OQCPrintMessage) { + return mergeFrom((PrintMessageProto.Printer.OQCPrintMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrintMessageProto.Printer.OQCPrintMessage other) { + if (other == PrintMessageProto.Printer.OQCPrintMessage.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.getBatchCode().isEmpty()) { + batchCode_ = other.batchCode_; + onChanged(); + } + if (!other.getPackageType().isEmpty()) { + packageType_ = other.packageType_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + PrintMessageProto.Printer.OQCPrintMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (PrintMessageProto.Printer.OQCPrintMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object sampleCode_ = ""; + /** + * string 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OQCPrintMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OQCPrintMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public PrintMessageProto.Printer.OQCPrintMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PrintClientInfoMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:Printer.PrintClientInfoMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * string 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 implements + // @@protoc_insertion_point(builder_implements:Printer.PrintClientInfoMessage) + PrintMessageProto.Printer.PrintClientInfoMessageOrBuilder { + 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); + } + + // Construct using PrintMessageProto.Printer.PrintClientInfoMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + ip_ = ""; + + location_ = ""; + + sid_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrintMessageProto.internal_static_Printer_PrintClientInfoMessage_descriptor; + } + + @java.lang.Override + public PrintMessageProto.Printer.PrintClientInfoMessage getDefaultInstanceForType() { + return PrintMessageProto.Printer.PrintClientInfoMessage.getDefaultInstance(); + } + + @java.lang.Override + public PrintMessageProto.Printer.PrintClientInfoMessage build() { + PrintMessageProto.Printer.PrintClientInfoMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public PrintMessageProto.Printer.PrintClientInfoMessage buildPartial() { + PrintMessageProto.Printer.PrintClientInfoMessage result = new PrintMessageProto.Printer.PrintClientInfoMessage(this); + result.ip_ = ip_; + result.location_ = location_; + result.sid_ = sid_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrintMessageProto.Printer.PrintClientInfoMessage) { + return mergeFrom((PrintMessageProto.Printer.PrintClientInfoMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrintMessageProto.Printer.PrintClientInfoMessage other) { + if (other == PrintMessageProto.Printer.PrintClientInfoMessage.getDefaultInstance()) return this; + if (!other.getIp().isEmpty()) { + ip_ = other.ip_; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (!other.getSid().isEmpty()) { + sid_ = other.sid_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + PrintMessageProto.Printer.PrintClientInfoMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (PrintMessageProto.Printer.PrintClientInfoMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object ip_ = ""; + /** + * 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrintClientInfoMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrintClientInfoMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public PrintMessageProto.Printer.PrintClientInfoMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PrintingOfCirculationOrBuilder extends + // @@protoc_insertion_point(interface_extends:Printer.PrintingOfCirculation) + com.google.protobuf.MessageOrBuilder { + + /** + * string 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.Builder implements + // @@protoc_insertion_point(builder_implements:Printer.PrintingOfCirculation) + PrintMessageProto.Printer.PrintingOfCirculationOrBuilder { + 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); + } + + // Construct using PrintMessageProto.Printer.PrintingOfCirculation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + workOrderNumber_ = ""; + + materialCode_ = ""; + + materialName_ = ""; + + specificationAndModel_ = ""; + + processingProcedure_ = ""; + + param_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrintMessageProto.internal_static_Printer_PrintingOfCirculation_descriptor; + } + + @java.lang.Override + public PrintMessageProto.Printer.PrintingOfCirculation getDefaultInstanceForType() { + return PrintMessageProto.Printer.PrintingOfCirculation.getDefaultInstance(); + } + + @java.lang.Override + public PrintMessageProto.Printer.PrintingOfCirculation build() { + PrintMessageProto.Printer.PrintingOfCirculation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public PrintMessageProto.Printer.PrintingOfCirculation buildPartial() { + PrintMessageProto.Printer.PrintingOfCirculation result = new PrintMessageProto.Printer.PrintingOfCirculation(this); + result.workOrderNumber_ = workOrderNumber_; + result.materialCode_ = materialCode_; + result.materialName_ = materialName_; + result.specificationAndModel_ = specificationAndModel_; + result.processingProcedure_ = processingProcedure_; + result.param_ = param_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrintMessageProto.Printer.PrintingOfCirculation) { + return mergeFrom((PrintMessageProto.Printer.PrintingOfCirculation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrintMessageProto.Printer.PrintingOfCirculation other) { + if (other == PrintMessageProto.Printer.PrintingOfCirculation.getDefaultInstance()) return this; + if (!other.getWorkOrderNumber().isEmpty()) { + workOrderNumber_ = other.workOrderNumber_; + onChanged(); + } + if (!other.getMaterialCode().isEmpty()) { + materialCode_ = other.materialCode_; + onChanged(); + } + if (!other.getMaterialName().isEmpty()) { + materialName_ = other.materialName_; + onChanged(); + } + if (!other.getSpecificationAndModel().isEmpty()) { + specificationAndModel_ = other.specificationAndModel_; + onChanged(); + } + if (!other.getProcessingProcedure().isEmpty()) { + processingProcedure_ = other.processingProcedure_; + onChanged(); + } + if (!other.getParam().isEmpty()) { + param_ = other.param_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + PrintMessageProto.Printer.PrintingOfCirculation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (PrintMessageProto.Printer.PrintingOfCirculation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object workOrderNumber_ = ""; + /** + * string 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrintingOfCirculation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrintingOfCirculation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public PrintMessageProto.Printer.PrintingOfCirculation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MaterialProductsOrBuilder extends + // @@protoc_insertion_point(interface_extends:Printer.MaterialProducts) + com.google.protobuf.MessageOrBuilder { + + /** + * string 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.Builder implements + // @@protoc_insertion_point(builder_implements:Printer.MaterialProducts) + PrintMessageProto.Printer.MaterialProductsOrBuilder { + 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); + } + + // Construct using PrintMessageProto.Printer.MaterialProducts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + materialCode_ = ""; + + materialName_ = ""; + + specificationAndModel_ = ""; + + param_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrintMessageProto.internal_static_Printer_MaterialProducts_descriptor; + } + + @java.lang.Override + public PrintMessageProto.Printer.MaterialProducts getDefaultInstanceForType() { + return PrintMessageProto.Printer.MaterialProducts.getDefaultInstance(); + } + + @java.lang.Override + public PrintMessageProto.Printer.MaterialProducts build() { + PrintMessageProto.Printer.MaterialProducts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public PrintMessageProto.Printer.MaterialProducts buildPartial() { + PrintMessageProto.Printer.MaterialProducts result = new PrintMessageProto.Printer.MaterialProducts(this); + result.materialCode_ = materialCode_; + result.materialName_ = materialName_; + result.specificationAndModel_ = specificationAndModel_; + result.param_ = param_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrintMessageProto.Printer.MaterialProducts) { + return mergeFrom((PrintMessageProto.Printer.MaterialProducts)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrintMessageProto.Printer.MaterialProducts other) { + if (other == PrintMessageProto.Printer.MaterialProducts.getDefaultInstance()) return this; + if (!other.getMaterialCode().isEmpty()) { + materialCode_ = other.materialCode_; + onChanged(); + } + if (!other.getMaterialName().isEmpty()) { + materialName_ = other.materialName_; + onChanged(); + } + if (!other.getSpecificationAndModel().isEmpty()) { + specificationAndModel_ = other.specificationAndModel_; + onChanged(); + } + if (!other.getParam().isEmpty()) { + param_ = other.param_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + PrintMessageProto.Printer.MaterialProducts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (PrintMessageProto.Printer.MaterialProducts) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object materialCode_ = ""; + /** + * string 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaterialProducts parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MaterialProducts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public PrintMessageProto.Printer.MaterialProducts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WarehouseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Printer.Warehouse) + com.google.protobuf.MessageOrBuilder { + + /** + * string 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.Builder implements + // @@protoc_insertion_point(builder_implements:Printer.Warehouse) + PrintMessageProto.Printer.WarehouseOrBuilder { + 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); + } + + // Construct using PrintMessageProto.Printer.Warehouse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + warehouseCode_ = ""; + + warehouseName_ = ""; + + personInCharge_ = ""; + + param_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrintMessageProto.internal_static_Printer_Warehouse_descriptor; + } + + @java.lang.Override + public PrintMessageProto.Printer.Warehouse getDefaultInstanceForType() { + return PrintMessageProto.Printer.Warehouse.getDefaultInstance(); + } + + @java.lang.Override + public PrintMessageProto.Printer.Warehouse build() { + PrintMessageProto.Printer.Warehouse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public PrintMessageProto.Printer.Warehouse buildPartial() { + PrintMessageProto.Printer.Warehouse result = new PrintMessageProto.Printer.Warehouse(this); + result.warehouseCode_ = warehouseCode_; + result.warehouseName_ = warehouseName_; + result.personInCharge_ = personInCharge_; + result.param_ = param_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrintMessageProto.Printer.Warehouse) { + return mergeFrom((PrintMessageProto.Printer.Warehouse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrintMessageProto.Printer.Warehouse other) { + if (other == PrintMessageProto.Printer.Warehouse.getDefaultInstance()) return this; + if (!other.getWarehouseCode().isEmpty()) { + warehouseCode_ = other.warehouseCode_; + onChanged(); + } + if (!other.getWarehouseName().isEmpty()) { + warehouseName_ = other.warehouseName_; + onChanged(); + } + if (!other.getPersonInCharge().isEmpty()) { + personInCharge_ = other.personInCharge_; + onChanged(); + } + if (!other.getParam().isEmpty()) { + param_ = other.param_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + PrintMessageProto.Printer.Warehouse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (PrintMessageProto.Printer.Warehouse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object warehouseCode_ = ""; + /** + * string 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Warehouse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Warehouse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public PrintMessageProto.Printer.Warehouse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WarehouseLocationOrBuilder extends + // @@protoc_insertion_point(interface_extends:Printer.WarehouseLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * string 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.Builder implements + // @@protoc_insertion_point(builder_implements:Printer.WarehouseLocation) + PrintMessageProto.Printer.WarehouseLocationOrBuilder { + 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); + } + + // Construct using PrintMessageProto.Printer.WarehouseLocation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + warehouseLocationCode_ = ""; + + warehouseLocationName_ = ""; + + position_ = ""; + + param_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrintMessageProto.internal_static_Printer_WarehouseLocation_descriptor; + } + + @java.lang.Override + public PrintMessageProto.Printer.WarehouseLocation getDefaultInstanceForType() { + return PrintMessageProto.Printer.WarehouseLocation.getDefaultInstance(); + } + + @java.lang.Override + public PrintMessageProto.Printer.WarehouseLocation build() { + PrintMessageProto.Printer.WarehouseLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public PrintMessageProto.Printer.WarehouseLocation buildPartial() { + PrintMessageProto.Printer.WarehouseLocation result = new PrintMessageProto.Printer.WarehouseLocation(this); + result.warehouseLocationCode_ = warehouseLocationCode_; + result.warehouseLocationName_ = warehouseLocationName_; + result.position_ = position_; + result.param_ = param_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrintMessageProto.Printer.WarehouseLocation) { + return mergeFrom((PrintMessageProto.Printer.WarehouseLocation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrintMessageProto.Printer.WarehouseLocation other) { + if (other == PrintMessageProto.Printer.WarehouseLocation.getDefaultInstance()) return this; + if (!other.getWarehouseLocationCode().isEmpty()) { + warehouseLocationCode_ = other.warehouseLocationCode_; + onChanged(); + } + if (!other.getWarehouseLocationName().isEmpty()) { + warehouseLocationName_ = other.warehouseLocationName_; + onChanged(); + } + if (!other.getPosition().isEmpty()) { + position_ = other.position_; + onChanged(); + } + if (!other.getParam().isEmpty()) { + param_ = other.param_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + PrintMessageProto.Printer.WarehouseLocation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (PrintMessageProto.Printer.WarehouseLocation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object warehouseLocationCode_ = ""; + /** + * string 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WarehouseLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WarehouseLocation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public PrintMessageProto.Printer.WarehouseLocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WarehouseAreaOrBuilder extends + // @@protoc_insertion_point(interface_extends:Printer.WarehouseArea) + com.google.protobuf.MessageOrBuilder { + + /** + * string 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.Builder implements + // @@protoc_insertion_point(builder_implements:Printer.WarehouseArea) + PrintMessageProto.Printer.WarehouseAreaOrBuilder { + 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); + } + + // Construct using PrintMessageProto.Printer.WarehouseArea.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + warehouseAreaCode_ = ""; + + warehouseAreaName_ = ""; + + param_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrintMessageProto.internal_static_Printer_WarehouseArea_descriptor; + } + + @java.lang.Override + public PrintMessageProto.Printer.WarehouseArea getDefaultInstanceForType() { + return PrintMessageProto.Printer.WarehouseArea.getDefaultInstance(); + } + + @java.lang.Override + public PrintMessageProto.Printer.WarehouseArea build() { + PrintMessageProto.Printer.WarehouseArea result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public PrintMessageProto.Printer.WarehouseArea buildPartial() { + PrintMessageProto.Printer.WarehouseArea result = new PrintMessageProto.Printer.WarehouseArea(this); + result.warehouseAreaCode_ = warehouseAreaCode_; + result.warehouseAreaName_ = warehouseAreaName_; + result.param_ = param_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrintMessageProto.Printer.WarehouseArea) { + return mergeFrom((PrintMessageProto.Printer.WarehouseArea)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrintMessageProto.Printer.WarehouseArea other) { + if (other == PrintMessageProto.Printer.WarehouseArea.getDefaultInstance()) return this; + if (!other.getWarehouseAreaCode().isEmpty()) { + warehouseAreaCode_ = other.warehouseAreaCode_; + onChanged(); + } + if (!other.getWarehouseAreaName().isEmpty()) { + warehouseAreaName_ = other.warehouseAreaName_; + onChanged(); + } + if (!other.getParam().isEmpty()) { + param_ = other.param_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + PrintMessageProto.Printer.WarehouseArea parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (PrintMessageProto.Printer.WarehouseArea) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object warehouseAreaCode_ = ""; + /** + * string 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WarehouseArea parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WarehouseArea(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public PrintMessageProto.Printer.WarehouseArea getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EquipmentOrBuilder extends + // @@protoc_insertion_point(interface_extends:Printer.Equipment) + com.google.protobuf.MessageOrBuilder { + + /** + * string 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.Builder implements + // @@protoc_insertion_point(builder_implements:Printer.Equipment) + PrintMessageProto.Printer.EquipmentOrBuilder { + 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); + } + + // Construct using PrintMessageProto.Printer.Equipment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + equipmentCode_ = ""; + + equipmentName_ = ""; + + specificationAndModel_ = ""; + + param_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrintMessageProto.internal_static_Printer_Equipment_descriptor; + } + + @java.lang.Override + public PrintMessageProto.Printer.Equipment getDefaultInstanceForType() { + return PrintMessageProto.Printer.Equipment.getDefaultInstance(); + } + + @java.lang.Override + public PrintMessageProto.Printer.Equipment build() { + PrintMessageProto.Printer.Equipment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public PrintMessageProto.Printer.Equipment buildPartial() { + PrintMessageProto.Printer.Equipment result = new PrintMessageProto.Printer.Equipment(this); + result.equipmentCode_ = equipmentCode_; + result.equipmentName_ = equipmentName_; + result.specificationAndModel_ = specificationAndModel_; + result.param_ = param_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrintMessageProto.Printer.Equipment) { + return mergeFrom((PrintMessageProto.Printer.Equipment)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrintMessageProto.Printer.Equipment other) { + if (other == PrintMessageProto.Printer.Equipment.getDefaultInstance()) return this; + if (!other.getEquipmentCode().isEmpty()) { + equipmentCode_ = other.equipmentCode_; + onChanged(); + } + if (!other.getEquipmentName().isEmpty()) { + equipmentName_ = other.equipmentName_; + onChanged(); + } + if (!other.getSpecificationAndModel().isEmpty()) { + specificationAndModel_ = other.specificationAndModel_; + onChanged(); + } + if (!other.getParam().isEmpty()) { + param_ = other.param_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + PrintMessageProto.Printer.Equipment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (PrintMessageProto.Printer.Equipment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object equipmentCode_ = ""; + /** + * string 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Equipment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Equipment(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public PrintMessageProto.Printer.Equipment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkstationOrBuilder extends + // @@protoc_insertion_point(interface_extends:Printer.Workstation) + com.google.protobuf.MessageOrBuilder { + + /** + * string 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.Builder implements + // @@protoc_insertion_point(builder_implements:Printer.Workstation) + PrintMessageProto.Printer.WorkstationOrBuilder { + 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); + } + + // Construct using PrintMessageProto.Printer.Workstation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + workstationCode_ = ""; + + workstationName_ = ""; + + belongingProcess_ = ""; + + param_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrintMessageProto.internal_static_Printer_Workstation_descriptor; + } + + @java.lang.Override + public PrintMessageProto.Printer.Workstation getDefaultInstanceForType() { + return PrintMessageProto.Printer.Workstation.getDefaultInstance(); + } + + @java.lang.Override + public PrintMessageProto.Printer.Workstation build() { + PrintMessageProto.Printer.Workstation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public PrintMessageProto.Printer.Workstation buildPartial() { + PrintMessageProto.Printer.Workstation result = new PrintMessageProto.Printer.Workstation(this); + result.workstationCode_ = workstationCode_; + result.workstationName_ = workstationName_; + result.belongingProcess_ = belongingProcess_; + result.param_ = param_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrintMessageProto.Printer.Workstation) { + return mergeFrom((PrintMessageProto.Printer.Workstation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrintMessageProto.Printer.Workstation other) { + if (other == PrintMessageProto.Printer.Workstation.getDefaultInstance()) return this; + if (!other.getWorkstationCode().isEmpty()) { + workstationCode_ = other.workstationCode_; + onChanged(); + } + if (!other.getWorkstationName().isEmpty()) { + workstationName_ = other.workstationName_; + onChanged(); + } + if (!other.getBelongingProcess().isEmpty()) { + belongingProcess_ = other.belongingProcess_; + onChanged(); + } + if (!other.getParam().isEmpty()) { + param_ = other.param_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + PrintMessageProto.Printer.Workstation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (PrintMessageProto.Printer.Workstation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object workstationCode_ = ""; + /** + * string 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workstation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Workstation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public PrintMessageProto.Printer.Workstation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PrintInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:Printer.PrintInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * string 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 implements + // @@protoc_insertion_point(builder_implements:Printer.PrintInfo) + PrintMessageProto.Printer.PrintInfoOrBuilder { + 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); + } + + // Construct using PrintMessageProto.Printer.PrintInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + ip_ = ""; + + code_ = ""; + + name_ = ""; + + port_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrintMessageProto.internal_static_Printer_PrintInfo_descriptor; + } + + @java.lang.Override + public PrintMessageProto.Printer.PrintInfo getDefaultInstanceForType() { + return PrintMessageProto.Printer.PrintInfo.getDefaultInstance(); + } + + @java.lang.Override + public PrintMessageProto.Printer.PrintInfo build() { + PrintMessageProto.Printer.PrintInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public PrintMessageProto.Printer.PrintInfo buildPartial() { + PrintMessageProto.Printer.PrintInfo result = new PrintMessageProto.Printer.PrintInfo(this); + result.ip_ = ip_; + result.code_ = code_; + result.name_ = name_; + result.port_ = port_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrintMessageProto.Printer.PrintInfo) { + return mergeFrom((PrintMessageProto.Printer.PrintInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrintMessageProto.Printer.PrintInfo other) { + if (other == PrintMessageProto.Printer.PrintInfo.getDefaultInstance()) return this; + if (!other.getIp().isEmpty()) { + ip_ = other.ip_; + onChanged(); + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getPort().isEmpty()) { + port_ = other.port_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + PrintMessageProto.Printer.PrintInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (PrintMessageProto.Printer.PrintInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object ip_ = ""; + /** + * 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 + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrintInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrintInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public PrintMessageProto.Printer.PrintInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int dataBodyCase_ = 0; + private java.lang.Object dataBody_; + public enum DataBodyCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + IQCPRINTMESSAGE(2), + PQCPRINTMESSAGE(3), + OQPRINTMESSAGE(4), + PRINTCLIENTINFOMESSAGE(5), + PRINTINGOFCIRCULATION(6), + MATERIALPRODUCTS(7), + WAREHOUSE(8), + WAREHOUSELOCATION(9), + WAREHOUSEAREA(10), + EQUIPMENT(11), + WORKSTATION(12), + DATABODY_NOT_SET(0); + private final int value; + private DataBodyCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataBodyCase valueOf(int value) { + return forNumber(value); + } + + public static DataBodyCase forNumber(int value) { + switch (value) { + case 2: return IQCPRINTMESSAGE; + case 3: return PQCPRINTMESSAGE; + case 4: return OQPRINTMESSAGE; + case 5: return PRINTCLIENTINFOMESSAGE; + case 6: return PRINTINGOFCIRCULATION; + case 7: return MATERIALPRODUCTS; + case 8: return WAREHOUSE; + case 9: return WAREHOUSELOCATION; + case 10: return WAREHOUSEAREA; + case 11: return EQUIPMENT; + case 12: return WORKSTATION; + case 0: return DATABODY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DataBodyCase + getDataBodyCase() { + return DataBodyCase.forNumber( + dataBodyCase_); + } + + public static final int DATA_TYPE_FIELD_NUMBER = 1; + private int dataType_; + /** + *
+         *用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 implements + // @@protoc_insertion_point(builder_implements:Printer) + PrintMessageProto.PrinterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PrintMessageProto.internal_static_Printer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return PrintMessageProto.internal_static_Printer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PrintMessageProto.Printer.class, PrintMessageProto.Printer.Builder.class); + } + + // Construct using PrintMessageProto.Printer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + dataType_ = 0; + + if (printInfoBuilder_ == null) { + printInfo_ = null; + } else { + printInfo_ = null; + printInfoBuilder_ = null; + } + dataBodyCase_ = 0; + dataBody_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrintMessageProto.internal_static_Printer_descriptor; + } + + @java.lang.Override + public PrintMessageProto.Printer getDefaultInstanceForType() { + return PrintMessageProto.Printer.getDefaultInstance(); + } + + @java.lang.Override + public PrintMessageProto.Printer build() { + PrintMessageProto.Printer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public PrintMessageProto.Printer buildPartial() { + PrintMessageProto.Printer result = new PrintMessageProto.Printer(this); + result.dataType_ = dataType_; + if (printInfoBuilder_ == null) { + result.printInfo_ = printInfo_; + } else { + result.printInfo_ = printInfoBuilder_.build(); + } + if (dataBodyCase_ == 2) { + if (iqcPrintMessageBuilder_ == null) { + result.dataBody_ = dataBody_; + } else { + result.dataBody_ = iqcPrintMessageBuilder_.build(); + } + } + if (dataBodyCase_ == 3) { + if (pqcPrintMessageBuilder_ == null) { + result.dataBody_ = dataBody_; + } else { + result.dataBody_ = pqcPrintMessageBuilder_.build(); + } + } + if (dataBodyCase_ == 4) { + if (oqPrintMessageBuilder_ == null) { + result.dataBody_ = dataBody_; + } else { + result.dataBody_ = oqPrintMessageBuilder_.build(); + } + } + if (dataBodyCase_ == 5) { + if (printClientInfoMessageBuilder_ == null) { + result.dataBody_ = dataBody_; + } else { + result.dataBody_ = printClientInfoMessageBuilder_.build(); + } + } + if (dataBodyCase_ == 6) { + if (printingOfCirculationBuilder_ == null) { + result.dataBody_ = dataBody_; + } else { + result.dataBody_ = printingOfCirculationBuilder_.build(); + } + } + if (dataBodyCase_ == 7) { + if (materialProductsBuilder_ == null) { + result.dataBody_ = dataBody_; + } else { + result.dataBody_ = materialProductsBuilder_.build(); + } + } + if (dataBodyCase_ == 8) { + if (warehouseBuilder_ == null) { + result.dataBody_ = dataBody_; + } else { + result.dataBody_ = warehouseBuilder_.build(); + } + } + if (dataBodyCase_ == 9) { + if (warehouseLocationBuilder_ == null) { + result.dataBody_ = dataBody_; + } else { + result.dataBody_ = warehouseLocationBuilder_.build(); + } + } + if (dataBodyCase_ == 10) { + if (warehouseAreaBuilder_ == null) { + result.dataBody_ = dataBody_; + } else { + result.dataBody_ = warehouseAreaBuilder_.build(); + } + } + if (dataBodyCase_ == 11) { + if (equipmentBuilder_ == null) { + result.dataBody_ = dataBody_; + } else { + result.dataBody_ = equipmentBuilder_.build(); + } + } + if (dataBodyCase_ == 12) { + if (workstationBuilder_ == null) { + result.dataBody_ = dataBody_; + } else { + result.dataBody_ = workstationBuilder_.build(); + } + } + result.dataBodyCase_ = dataBodyCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrintMessageProto.Printer) { + return mergeFrom((PrintMessageProto.Printer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrintMessageProto.Printer other) { + if (other == PrintMessageProto.Printer.getDefaultInstance()) return this; + if (other.dataType_ != 0) { + setDataTypeValue(other.getDataTypeValue()); + } + if (other.hasPrintInfo()) { + mergePrintInfo(other.getPrintInfo()); + } + switch (other.getDataBodyCase()) { + case IQCPRINTMESSAGE: { + mergeIqcPrintMessage(other.getIqcPrintMessage()); + break; + } + case PQCPRINTMESSAGE: { + mergePqcPrintMessage(other.getPqcPrintMessage()); + break; + } + case OQPRINTMESSAGE: { + mergeOqPrintMessage(other.getOqPrintMessage()); + break; + } + case PRINTCLIENTINFOMESSAGE: { + mergePrintClientInfoMessage(other.getPrintClientInfoMessage()); + break; + } + case PRINTINGOFCIRCULATION: { + mergePrintingOfCirculation(other.getPrintingOfCirculation()); + break; + } + case MATERIALPRODUCTS: { + mergeMaterialProducts(other.getMaterialProducts()); + break; + } + case WAREHOUSE: { + mergeWarehouse(other.getWarehouse()); + break; + } + case WAREHOUSELOCATION: { + mergeWarehouseLocation(other.getWarehouseLocation()); + break; + } + case WAREHOUSEAREA: { + mergeWarehouseArea(other.getWarehouseArea()); + break; + } + case EQUIPMENT: { + mergeEquipment(other.getEquipment()); + break; + } + case WORKSTATION: { + mergeWorkstation(other.getWorkstation()); + break; + } + case DATABODY_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + PrintMessageProto.Printer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (PrintMessageProto.Printer) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int dataBodyCase_ = 0; + private java.lang.Object dataBody_; + public DataBodyCase + getDataBodyCase() { + return DataBodyCase.forNumber( + dataBodyCase_); + } + + public Builder clearDataBody() { + dataBodyCase_ = 0; + dataBody_ = null; + onChanged(); + return this; + } + + + private int dataType_ = 0; + /** + *
+             *用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 + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Printer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Printer(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public PrintMessageProto.Printer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - // @@protoc_insertion_point(class_scope:com.ktg.print.protocol.PrintClientInfoMessage) - private static final PrintClientInfoMessage DEFAULT_INSTANCE; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Printer_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Printer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Printer_IQCPrintMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Printer_IQCPrintMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Printer_PQCPrintMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Printer_PQCPrintMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Printer_OQCPrintMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Printer_OQCPrintMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Printer_PrintClientInfoMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Printer_PrintClientInfoMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Printer_PrintingOfCirculation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Printer_PrintingOfCirculation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Printer_MaterialProducts_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Printer_MaterialProducts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Printer_Warehouse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Printer_Warehouse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Printer_WarehouseLocation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Printer_WarehouseLocation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Printer_WarehouseArea_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Printer_WarehouseArea_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Printer_Equipment_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Printer_Equipment_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Printer_Workstation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Printer_Workstation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Printer_PrintInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Printer_PrintInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { - DEFAULT_INSTANCE = new PrintClientInfoMessage(); + java.lang.String[] descriptorData = { + "\n\027PrintMessageProto.proto\"\372\020\n\007Printer\022$\n" + + "\tdata_type\030\001 \001(\0162\021.Printer.DataType\022%\n\tp" + + "rintInfo\030\016 \001(\0132\022.Printer.PrintInfo\0223\n\017iq" + + "cPrintMessage\030\002 \001(\0132\030.Printer.IQCPrintMe" + + "ssageH\000\0223\n\017pqcPrintMessage\030\003 \001(\0132\030.Print" + + "er.PQCPrintMessageH\000\0222\n\016oqPrintMessage\030\004" + + " \001(\0132\030.Printer.OQCPrintMessageH\000\022A\n\026prin" + + "tClientInfoMessage\030\005 \001(\0132\037.Printer.Print" + + "ClientInfoMessageH\000\022?\n\025printingOfCircula" + + "tion\030\006 \001(\0132\036.Printer.PrintingOfCirculati" + + "onH\000\0225\n\020materialProducts\030\007 \001(\0132\031.Printer" + + ".MaterialProductsH\000\022\'\n\twarehouse\030\010 \001(\0132\022" + + ".Printer.WarehouseH\000\0227\n\021warehouseLocatio" + + "n\030\t \001(\0132\032.Printer.WarehouseLocationH\000\022/\n" + + "\rwarehouseArea\030\n \001(\0132\026.Printer.Warehouse" + + "AreaH\000\022\'\n\tequipment\030\013 \001(\0132\022.Printer.Equi" + + "pmentH\000\022+\n\013workstation\030\014 \001(\0132\024.Printer.W" + + "orkstationH\000\032^\n\017IQCPrintMessage\022\022\n\nsampl" + + "eCode\030\001 \001(\t\022\020\n\010qcObject\030\002 \001(\t\022\022\n\nsampleT" + + "ime\030\003 \001(\t\022\021\n\tbatchCode\030\004 \001(\t\032c\n\017PQCPrint" + + "Message\022\022\n\nsampleCode\030\001 \001(\t\022\020\n\010qcObject\030" + + "\002 \001(\t\022\022\n\nsampleTime\030\003 \001(\t\022\026\n\016sampleLocat" + + "ion\030\004 \001(\t\032s\n\017OQCPrintMessage\022\022\n\nsampleCo" + + "de\030\001 \001(\t\022\020\n\010qcObject\030\002 \001(\t\022\022\n\nsampleTime" + + "\030\003 \001(\t\022\021\n\tbatchCode\030\004 \001(\t\022\023\n\013packageType" + + "\030\005 \001(\t\032C\n\026PrintClientInfoMessage\022\n\n\002ip\030\001" + + " \001(\t\022\020\n\010location\030\002 \001(\t\022\013\n\003sid\030\003 \001(\t\032\247\001\n\025" + + "PrintingOfCirculation\022\027\n\017workOrderNumber" + + "\030\001 \001(\t\022\024\n\014materialCode\030\002 \001(\t\022\024\n\014material" + + "Name\030\003 \001(\t\022\035\n\025specificationAndModel\030\004 \001(" + + "\t\022\033\n\023processingProcedure\030\005 \001(\t\022\r\n\005param\030" + + "\006 \001(\t\032l\n\020MaterialProducts\022\024\n\014materialCod" + + "e\030\001 \001(\t\022\024\n\014materialName\030\002 \001(\t\022\035\n\025specifi" + + "cationAndModel\030\003 \001(\t\022\r\n\005param\030\004 \001(\t\032`\n\tW" + + "arehouse\022\025\n\rwarehouseCode\030\001 \001(\t\022\025\n\rwareh" + + "ouseName\030\002 \001(\t\022\026\n\016personInCharge\030\003 \001(\t\022\r" + + "\n\005param\030\004 \001(\t\032r\n\021WarehouseLocation\022\035\n\025wa" + + "rehouseLocationCode\030\001 \001(\t\022\035\n\025warehouseLo" + + "cationName\030\002 \001(\t\022\020\n\010position\030\003 \001(\t\022\r\n\005pa" + + "ram\030\004 \001(\t\032T\n\rWarehouseArea\022\031\n\021warehouseA" + + "reaCode\030\001 \001(\t\022\031\n\021warehouseAreaName\030\002 \001(\t" + + "\022\r\n\005param\030\003 \001(\t\032g\n\tEquipment\022\025\n\requipmen" + + "tCode\030\001 \001(\t\022\025\n\requipmentName\030\002 \001(\t\022\035\n\025sp" + + "ecificationAndModel\030\003 \001(\t\022\r\n\005param\030\004 \001(\t" + + "\032h\n\013Workstation\022\027\n\017workstationCode\030\001 \001(\t" + + "\022\027\n\017workstationName\030\002 \001(\t\022\030\n\020belongingPr" + + "ocess\030\003 \001(\t\022\r\n\005param\030\004 \001(\t\032A\n\tPrintInfo\022" + + "\n\n\002ip\030\001 \001(\t\022\014\n\004code\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022" + + "\014\n\004port\030\004 \001(\t\"\372\001\n\010DataType\022\024\n\020IQC_PrintM" + + "essage\020\000\022\024\n\020PQC_PrintMessage\020\001\022\024\n\020OQC_Pr" + + "intMessage\020\002\022\033\n\027Print_ClientInfoMessage\020" + + "\003\022\032\n\026Printing_OfCirculation\020\004\022\025\n\021Materia" + + "l_Products\020\005\022\016\n\nWarehouse_\020\006\022\026\n\022Warehous" + + "e_Location\020\007\022\022\n\016Warehouse_Area\020\010\022\016\n\nEqui" + + "pment_\020\t\022\020\n\014Workstation_\020\nB\n\n\010dataBodyb\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_Printer_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Printer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Printer_descriptor, + new java.lang.String[] { "DataType", "PrintInfo", "IqcPrintMessage", "PqcPrintMessage", "OqPrintMessage", "PrintClientInfoMessage", "PrintingOfCirculation", "MaterialProducts", "Warehouse", "WarehouseLocation", "WarehouseArea", "Equipment", "Workstation", "DataBody", }); + internal_static_Printer_IQCPrintMessage_descriptor = + internal_static_Printer_descriptor.getNestedTypes().get(0); + internal_static_Printer_IQCPrintMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Printer_IQCPrintMessage_descriptor, + new java.lang.String[] { "SampleCode", "QcObject", "SampleTime", "BatchCode", }); + internal_static_Printer_PQCPrintMessage_descriptor = + internal_static_Printer_descriptor.getNestedTypes().get(1); + internal_static_Printer_PQCPrintMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Printer_PQCPrintMessage_descriptor, + new java.lang.String[] { "SampleCode", "QcObject", "SampleTime", "SampleLocation", }); + internal_static_Printer_OQCPrintMessage_descriptor = + internal_static_Printer_descriptor.getNestedTypes().get(2); + internal_static_Printer_OQCPrintMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Printer_OQCPrintMessage_descriptor, + new java.lang.String[] { "SampleCode", "QcObject", "SampleTime", "BatchCode", "PackageType", }); + internal_static_Printer_PrintClientInfoMessage_descriptor = + internal_static_Printer_descriptor.getNestedTypes().get(3); + internal_static_Printer_PrintClientInfoMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Printer_PrintClientInfoMessage_descriptor, + new java.lang.String[] { "Ip", "Location", "Sid", }); + internal_static_Printer_PrintingOfCirculation_descriptor = + internal_static_Printer_descriptor.getNestedTypes().get(4); + internal_static_Printer_PrintingOfCirculation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Printer_PrintingOfCirculation_descriptor, + new java.lang.String[] { "WorkOrderNumber", "MaterialCode", "MaterialName", "SpecificationAndModel", "ProcessingProcedure", "Param", }); + internal_static_Printer_MaterialProducts_descriptor = + internal_static_Printer_descriptor.getNestedTypes().get(5); + internal_static_Printer_MaterialProducts_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Printer_MaterialProducts_descriptor, + new java.lang.String[] { "MaterialCode", "MaterialName", "SpecificationAndModel", "Param", }); + internal_static_Printer_Warehouse_descriptor = + internal_static_Printer_descriptor.getNestedTypes().get(6); + internal_static_Printer_Warehouse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Printer_Warehouse_descriptor, + new java.lang.String[] { "WarehouseCode", "WarehouseName", "PersonInCharge", "Param", }); + internal_static_Printer_WarehouseLocation_descriptor = + internal_static_Printer_descriptor.getNestedTypes().get(7); + internal_static_Printer_WarehouseLocation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Printer_WarehouseLocation_descriptor, + new java.lang.String[] { "WarehouseLocationCode", "WarehouseLocationName", "Position", "Param", }); + internal_static_Printer_WarehouseArea_descriptor = + internal_static_Printer_descriptor.getNestedTypes().get(8); + internal_static_Printer_WarehouseArea_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Printer_WarehouseArea_descriptor, + new java.lang.String[] { "WarehouseAreaCode", "WarehouseAreaName", "Param", }); + internal_static_Printer_Equipment_descriptor = + internal_static_Printer_descriptor.getNestedTypes().get(9); + internal_static_Printer_Equipment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Printer_Equipment_descriptor, + new java.lang.String[] { "EquipmentCode", "EquipmentName", "SpecificationAndModel", "Param", }); + internal_static_Printer_Workstation_descriptor = + internal_static_Printer_descriptor.getNestedTypes().get(10); + internal_static_Printer_Workstation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Printer_Workstation_descriptor, + new java.lang.String[] { "WorkstationCode", "WorkstationName", "BelongingProcess", "Param", }); + internal_static_Printer_PrintInfo_descriptor = + internal_static_Printer_descriptor.getNestedTypes().get(11); + internal_static_Printer_PrintInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Printer_PrintInfo_descriptor, + new java.lang.String[] { "Ip", "Code", "Name", "Port", }); } - public static PrintClientInfoMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public PrintClientInfoMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public PrintClientInfoMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_com_ktg_print_protocol_IQCPrintMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_com_ktg_print_protocol_IQCPrintMessage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_com_ktg_print_protocol_PQCPrintMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_com_ktg_print_protocol_PQCPrintMessage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_com_ktg_print_protocol_OQCPrintMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_com_ktg_print_protocol_OQCPrintMessage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_com_ktg_print_protocol_PrintClientInfoMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_com_ktg_print_protocol_PrintClientInfoMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - String[] descriptorData = { - "\n\022PrintMessage.proto\022\026com.ktg.print.prot" + - "ocol\"^\n\017IQCPrintMessage\022\022\n\nsampleCode\030\001 " + - "\001(\t\022\020\n\010qcObject\030\002 \001(\t\022\022\n\nsampleTime\030\003 \001(" + - "\t\022\021\n\tbatchCode\030\004 \001(\t\"c\n\017PQCPrintMessage\022" + - "\022\n\nsampleCode\030\001 \001(\t\022\020\n\010qcObject\030\002 \001(\t\022\022\n" + - "\nsampleTime\030\003 \001(\t\022\026\n\016sampleLocation\030\004 \001(" + - "\t\"s\n\017OQCPrintMessage\022\022\n\nsampleCode\030\001 \001(\t" + - "\022\020\n\010qcObject\030\002 \001(\t\022\022\n\nsampleTime\030\003 \001(\t\022\021" + - "\n\tbatchCode\030\004 \001(\t\022\023\n\013packageType\030\005 \001(\t\"C" + - "\n\026PrintClientInfoMessage\022\n\n\002ip\030\001 \001(\t\022\020\n\010" + - "location\030\002 \001(\t\022\013\n\003sid\030\003 \001(\tB+\n\026com.ktg.p" + - "rint.protocolB\021PrintMessageProtob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_com_ktg_print_protocol_IQCPrintMessage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_com_ktg_print_protocol_IQCPrintMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_com_ktg_print_protocol_IQCPrintMessage_descriptor, - new String[] { "SampleCode", "QcObject", "SampleTime", "BatchCode", }); - internal_static_com_ktg_print_protocol_PQCPrintMessage_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_com_ktg_print_protocol_PQCPrintMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_com_ktg_print_protocol_PQCPrintMessage_descriptor, - new String[] { "SampleCode", "QcObject", "SampleTime", "SampleLocation", }); - internal_static_com_ktg_print_protocol_OQCPrintMessage_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_com_ktg_print_protocol_OQCPrintMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_com_ktg_print_protocol_OQCPrintMessage_descriptor, - new String[] { "SampleCode", "QcObject", "SampleTime", "BatchCode", "PackageType", }); - internal_static_com_ktg_print_protocol_PrintClientInfoMessage_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_com_ktg_print_protocol_PrintClientInfoMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_com_ktg_print_protocol_PrintClientInfoMessage_descriptor, - new String[] { "Ip", "Location", "Sid", }); - } - - // @@protoc_insertion_point(outer_class_scope) + // @@protoc_insertion_point(outer_class_scope) } diff --git a/ktg-print/src/main/java/com/ktg/print/protocol/proto/PrintMessage.proto b/ktg-print/src/main/java/com/ktg/print/protocol/proto/PrintMessage.proto deleted file mode 100644 index 41895da..0000000 --- a/ktg-print/src/main/java/com/ktg/print/protocol/proto/PrintMessage.proto +++ /dev/null @@ -1,36 +0,0 @@ -syntax = "proto3"; - -package com.ktg.print.protocol; - -option java_package = "com.ktg.print.protocol"; - -option java_outer_classname = "PrintMessageProto"; - -message IQCPrintMessage { - string sampleCode = 1; - string qcObject = 2; - string sampleTime = 3; - string batchCode = 4; -} - -message PQCPrintMessage { - string sampleCode = 1; - string qcObject = 2; - string sampleTime = 3; - string sampleLocation = 4; -} - -message OQCPrintMessage { - string sampleCode = 1; - string qcObject = 2; - string sampleTime = 3; - string batchCode = 4; - string packageType = 5; -} - -//客户端信息 -message PrintClientInfoMessage { - string ip = 1; - string location = 2; - string sid = 3; -} diff --git a/ktg-print/src/main/java/com/ktg/print/protocol/proto/PrintMessageProto.proto b/ktg-print/src/main/java/com/ktg/print/protocol/proto/PrintMessageProto.proto new file mode 100644 index 0000000..3d194d4 --- /dev/null +++ b/ktg-print/src/main/java/com/ktg/print/protocol/proto/PrintMessageProto.proto @@ -0,0 +1,124 @@ +syntax = "proto3"; + +package com.ktg.print.protocol; + +option java_package = "com.ktg.print.protocol"; + +option java_outer_classname = "PrintMessageProto"; + +message Printer{ + + enum DataType{ + IQC_PrintMessage = 0;//proto3枚举enum编号从0开始 + PQC_PrintMessage = 1; + OQC_PrintMessage = 2; + Print_ClientInfoMessage = 3; + Printing_OfCirculation = 4; + Material_Products = 5; + Warehouse_=6; + Warehouse_Location=7; + Warehouse_Area=8; + Equipment_=9; + Workstation_=10; + } + + //用data_type来识别哪个枚举类型(DataType是People的第一个属性,属性名是data_type) + DataType data_type = 1; + PrintInfo printInfo = 14; + //每次枚举类型最多只能出现其中一个,节省空间 + oneof dataBody{ + IQCPrintMessage iqcPrintMessage = 2; + PQCPrintMessage pqcPrintMessage = 3; + OQCPrintMessage oqPrintMessage = 4; + PrintClientInfoMessage printClientInfoMessage = 5; + PrintingOfCirculation printingOfCirculation = 6; + MaterialProducts materialProducts = 7; + Warehouse warehouse = 8; + WarehouseLocation warehouseLocation = 9; + WarehouseArea warehouseArea = 10; + Equipment equipment = 11; + Workstation workstation = 12; + } + + message IQCPrintMessage { + string sampleCode = 1; + string qcObject = 2; + string sampleTime = 3; + string batchCode = 4; + } + + message PQCPrintMessage { + string sampleCode = 1; + string qcObject = 2; + string sampleTime = 3; + string sampleLocation = 4; + } + + message OQCPrintMessage { + string sampleCode = 1; + string qcObject = 2; + string sampleTime = 3; + string batchCode = 4; + string packageType = 5; + } + + //客户端信息 + message PrintClientInfoMessage { + string ip = 1; + string location = 2; + string sid = 3; + } + + message PrintingOfCirculation{ + string workOrderNumber = 1; + string materialCode = 2; + string materialName = 3; + string specificationAndModel = 4; + string processingProcedure = 5; + string param = 6; + } + + message MaterialProducts{ + string materialCode = 1; + string materialName = 2; + string specificationAndModel = 3; + string param = 4; + } + message Warehouse{ + string warehouseCode = 1; + string warehouseName = 2; + string personInCharge = 3; + string param = 4; + } + message WarehouseLocation{ + string warehouseLocationCode = 1; + string warehouseLocationName = 2; + string position = 3; + string param = 4; + } + message WarehouseArea{ + string warehouseAreaCode = 1; + string warehouseAreaName = 2; + string param = 3; + } + message Equipment{ + string equipmentCode = 1; + string equipmentName = 2; + string specificationAndModel = 3; + string param = 4; + } + message Workstation{ + string workstationCode = 1; + string workstationName = 2; + string belongingProcess = 3; + string param = 4; + } + + //打印机信息 + message PrintInfo { + string ip = 1; + string code = 2; + string name = 3; + string port = 4; + } +} diff --git a/ktg-print/src/main/java/com/ktg/print/response/R.java b/ktg-print/src/main/java/com/ktg/print/response/R.java new file mode 100644 index 0000000..4ac3403 --- /dev/null +++ b/ktg-print/src/main/java/com/ktg/print/response/R.java @@ -0,0 +1,80 @@ +package com.ktg.print.response; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +@Data +@Builder +@AllArgsConstructor +@NoArgsConstructor +public class R implements Serializable { + /** + * 成功失败标识 + */ + private boolean flag; + + /** + * 响应数据 + */ + private T data; + /** + * 状态码 + */ + private Integer code; + /** + * 响应消息 + */ + private String message; + + public static Integer SUCCESS_200 = 200; + public static Integer FAIL_500 = 500; + + public static R success() { + return R.success(null); + } + + public static R success(T result) { + R systemResult = new R<>(); + systemResult.setFlag(true); + systemResult.setData(result); + systemResult.setMessage("成功"); + systemResult.setCode(SUCCESS_200); + return systemResult; + } + + public static R success(String msg) { + R systemResult = new R<>(); + systemResult.setFlag(true); + systemResult.setMessage(msg); + return systemResult; + } + + public static R fail(T result) { + R systemResult = new R<>(); + systemResult.setFlag(false); + systemResult.setCode(FAIL_500); + systemResult.setData(result); + return systemResult; + } + + public static R fail(String msg) { + R systemResult = new R<>(); + systemResult.setFlag(false); + systemResult.setCode(FAIL_500); + systemResult.setMessage(msg); + return systemResult; + } + + public static R fail(T result, String msg) { + R systemResult = new R<>(); + systemResult.setFlag(false); + systemResult.setCode(FAIL_500); + systemResult.setMessage(msg); + systemResult.setData(result); + return systemResult; + } +} diff --git a/ktg-print/src/main/java/com/ktg/print/server/PrintClientInfoMessageHandler.java b/ktg-print/src/main/java/com/ktg/print/server/PrintClientInfoMessageHandler.java new file mode 100644 index 0000000..2d58bfa --- /dev/null +++ b/ktg-print/src/main/java/com/ktg/print/server/PrintClientInfoMessageHandler.java @@ -0,0 +1,19 @@ +package com.ktg.print.server; + +import com.ktg.print.protocol.PrintMessageProto; +import io.netty.channel.ChannelHandlerContext; +import io.netty.channel.SimpleChannelInboundHandler; + +import java.net.SocketAddress; +import java.util.concurrent.ConcurrentHashMap; + +public class PrintClientInfoMessageHandler extends SimpleChannelInboundHandler { + + public static ConcurrentHashMap socketAddressMap = new ConcurrentHashMap<>(); + + @Override + protected void channelRead0(ChannelHandlerContext channelHandlerContext, PrintMessageProto.Printer printClientInfoMessage) throws Exception { + //打印机名称和打印机客户端地址映射 一对一关系 + socketAddressMap.put(printClientInfoMessage.getPrintClientInfoMessage().getLocation(), channelHandlerContext.channel().remoteAddress()); + } +} diff --git a/ktg-print/src/main/java/com/ktg/print/server/PrintServer.java b/ktg-print/src/main/java/com/ktg/print/server/PrintServer.java new file mode 100644 index 0000000..412169d --- /dev/null +++ b/ktg-print/src/main/java/com/ktg/print/server/PrintServer.java @@ -0,0 +1,81 @@ +package com.ktg.print.server; + +import com.ktg.print.protocol.PrintMessageProto; +import io.netty.bootstrap.ServerBootstrap; +import io.netty.channel.ChannelFuture; +import io.netty.channel.ChannelInitializer; +import io.netty.channel.EventLoopGroup; +import io.netty.channel.nio.NioEventLoopGroup; +import io.netty.channel.socket.SocketChannel; +import io.netty.channel.socket.nio.NioServerSocketChannel; +import io.netty.handler.codec.protobuf.ProtobufDecoder; +import io.netty.handler.codec.protobuf.ProtobufEncoder; +import io.netty.handler.codec.protobuf.ProtobufVarint32FrameDecoder; +import io.netty.handler.codec.protobuf.ProtobufVarint32LengthFieldPrepender; +import org.springframework.beans.factory.DisposableBean; +import org.springframework.stereotype.Component; + +import javax.annotation.PostConstruct; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + +@Component +public class PrintServer implements DisposableBean { + + EventLoopGroup bossGroup = null; + EventLoopGroup workerGroup = null; + int port = 9016; + + + @PostConstruct + public void nettyServerInit() { + ExecutorService executorService = Executors.newSingleThreadExecutor(); + executorService.submit(new service()); + } + + @Override + public void destroy() throws Exception { + if (bossGroup!=null) { + bossGroup.shutdownGracefully(); + } + if (workerGroup!=null) { + workerGroup.shutdownGracefully(); + } + } + + public class service implements Runnable { + + @Override + public void run() { + bossGroup = new NioEventLoopGroup(1); + workerGroup = new NioEventLoopGroup(); + try { + ServerBootstrap serverBootstrap = new ServerBootstrap(); + serverBootstrap.group(bossGroup, workerGroup) + .channel(NioServerSocketChannel.class) + .childHandler(new ChannelInitializer() { + @Override + public void initChannel(SocketChannel ch) { + ch.pipeline().addLast(new ProtobufVarint32FrameDecoder()); + ch.pipeline().addLast(new ProtobufDecoder(PrintMessageProto.Printer.getDefaultInstance())); + ch.pipeline().addLast(new ProtobufVarint32LengthFieldPrepender()); + ch.pipeline().addLast(new ProtobufEncoder()); + ch.pipeline().addLast(new PrintClientInfoMessageHandler()); + ch.pipeline().addLast(new PrintServerDefaultHandler()); + } + }); + ChannelFuture channelFuture = serverBootstrap.bind(port).sync(); + System.out.println("==========Netty服务端启动成功========"); + channelFuture.channel().closeFuture().sync(); + } catch (InterruptedException e) { + e.printStackTrace(); + if (bossGroup!=null) { + bossGroup.shutdownGracefully(); + } + if (workerGroup!=null) { + workerGroup.shutdownGracefully(); + } + } + } + } +} diff --git a/ktg-print/src/main/java/com/ktg/print/server/PrintServerDefaultHandler.java b/ktg-print/src/main/java/com/ktg/print/server/PrintServerDefaultHandler.java new file mode 100644 index 0000000..6c53510 --- /dev/null +++ b/ktg-print/src/main/java/com/ktg/print/server/PrintServerDefaultHandler.java @@ -0,0 +1,27 @@ +package com.ktg.print.server; + +import io.netty.channel.Channel; +import io.netty.channel.ChannelHandlerContext; +import io.netty.channel.ChannelInboundHandlerAdapter; + +import java.net.SocketAddress; +import java.util.concurrent.ConcurrentHashMap; + +public class PrintServerDefaultHandler extends ChannelInboundHandlerAdapter { + + public static ConcurrentHashMap chanelMap = new ConcurrentHashMap<>(); + + + @Override + public void channelActive(ChannelHandlerContext ctx) throws Exception { + //客户端和通道映射 也是一对一关系 + chanelMap.put(ctx.channel().remoteAddress(), ctx.channel()); + System.out.println("客户端连接已建立:" + ctx.channel().remoteAddress()); + } + + @Override + public void channelInactive(ChannelHandlerContext ctx) throws Exception { + chanelMap.remove(ctx.channel().remoteAddress()); + System.out.println("客户端连接已关闭:" + ctx.channel().remoteAddress()); + } +} diff --git a/ktg-print/src/main/java/com/ktg/print/server/PrintServerOpenListener.java b/ktg-print/src/main/java/com/ktg/print/server/PrintServerOpenListener.java new file mode 100644 index 0000000..0a513ae --- /dev/null +++ b/ktg-print/src/main/java/com/ktg/print/server/PrintServerOpenListener.java @@ -0,0 +1,21 @@ +//package com.ktg.print.server; +// +//import org.springframework.beans.factory.annotation.Autowired; +//import org.springframework.boot.ApplicationArguments; +//import org.springframework.boot.ApplicationRunner; +//import org.springframework.stereotype.Component; +// +//import javax.annotation.Resource; +// +//@Component +//public class PrintServerOpenListener implements ApplicationRunner { +// +// @Autowired +// private PrintServer printerServer; +// +// @Override +// public void run(ApplicationArguments args) throws Exception { +// printerServer.start(); +// } +// +//} diff --git a/pom.xml b/pom.xml index 85da62e..5242b24 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - + com.ktg ktg 3.8.2 @@ -11,7 +11,7 @@ ktg http://www.029tec.com MES生产执行管理系统 - + 3.8.2 UTF-8 @@ -34,7 +34,7 @@ 1.7 0.9.1 - + @@ -212,6 +212,13 @@ ${ktg.version} + + + com.ktg + ktg-print + ${ktg.version} + + @@ -223,6 +230,7 @@ ktg-generator ktg-common ktg-mes + ktg-print pom @@ -271,4 +279,4 @@ - \ No newline at end of file +