From fc2431811491a6045bc7bfceef509777b7953f71 Mon Sep 17 00:00:00 2001 From: linxianying Date: Wed, 13 Jul 2022 09:07:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8A=8Astring=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=94=B9=E4=B8=BAbytes=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yuandian/dataflow/controller/TaskLog.java | 22 +- .../msgtype/ApmBaseDataFlowOuterClass.java | 376 +-- .../proto/msgtype/AppFlowOuterClass.java | 126 +- .../proto/msgtype/BussFlowDbOuterClass.java | 1130 ++------ .../msgtype/BussFlowExternalOuterClass.java | 1000 ++----- .../proto/msgtype/BussFlowMiddOuterClass.java | 1258 ++------- .../proto/msgtype/BussFlowWebOuterClass.java | 2372 +++-------------- .../proto/msgtype/UsrFlowOuterClass.java | 502 +--- src/main/proto | 2 +- 9 files changed, 1279 insertions(+), 5509 deletions(-) diff --git a/src/main/java/com/yuandian/dataflow/controller/TaskLog.java b/src/main/java/com/yuandian/dataflow/controller/TaskLog.java index ed07bc8..aa46689 100644 --- a/src/main/java/com/yuandian/dataflow/controller/TaskLog.java +++ b/src/main/java/com/yuandian/dataflow/controller/TaskLog.java @@ -1,6 +1,8 @@ package com.yuandian.dataflow.controller; import java.nio.ByteBuffer; +import java.util.ArrayList; +import java.util.stream.Collectors; import com.alipay.sofa.jraft.Closure; import com.alipay.sofa.jraft.entity.Task; @@ -66,10 +68,22 @@ public class TaskLog { return new ResponseEntity(response, HttpStatus.OK); } - @GetMapping(path = "/test2") - public ResponseEntity MongodbTest(@RequestBody int status) { + // ip + private static String convertIpToString(com.google.protobuf.ByteString byteString) { + ArrayList res = new ArrayList<>(); + byteString.forEach(byteStr -> { + res.add(String.valueOf(byteStr & 0xff)); + }); + return res.stream().collect(Collectors.joining(".")); + } - Response response = new Response(); - return new ResponseEntity(response, HttpStatus.OK); + // mac + private static String convertMacToString(com.google.protobuf.ByteString byteString) { + ArrayList res = new ArrayList<>(); + byteString.forEach(byteStr -> { + String str = Integer.toHexString(byteStr & 0xff); + res.add(str.length() < 2 ? "0" + str : str); + }); + return res.stream().collect(Collectors.joining("-")); } } diff --git a/src/main/java/com/yuandian/dataflow/proto/msgtype/ApmBaseDataFlowOuterClass.java b/src/main/java/com/yuandian/dataflow/proto/msgtype/ApmBaseDataFlowOuterClass.java index 59421c7..f99e487 100644 --- a/src/main/java/com/yuandian/dataflow/proto/msgtype/ApmBaseDataFlowOuterClass.java +++ b/src/main/java/com/yuandian/dataflow/proto/msgtype/ApmBaseDataFlowOuterClass.java @@ -77,28 +77,16 @@ public final class ApmBaseDataFlowOuterClass { com.yuandian.dataflow.proto.Base.IPAddressOrBuilder getTupleDaddrOrBuilder(); /** - * string src_mac = 7; + * bytes src_mac = 7; * @return The srcMac. */ - java.lang.String getSrcMac(); - /** - * string src_mac = 7; - * @return The bytes for srcMac. - */ - com.google.protobuf.ByteString - getSrcMacBytes(); + com.google.protobuf.ByteString getSrcMac(); /** - * string dst_mac = 8; + * bytes dst_mac = 8; * @return The dstMac. */ - java.lang.String getDstMac(); - /** - * string dst_mac = 8; - * @return The bytes for dstMac. - */ - com.google.protobuf.ByteString - getDstMacBytes(); + com.google.protobuf.ByteString getDstMac(); /** * uint32 vlan_id = 9; @@ -269,16 +257,10 @@ public final class ApmBaseDataFlowOuterClass { int getScAlert(); /** - * string protocol = 37; + * bytes protocol = 37; * @return The protocol. */ - java.lang.String getProtocol(); - /** - * string protocol = 37; - * @return The bytes for protocol. - */ - com.google.protobuf.ByteString - getProtocolBytes(); + com.google.protobuf.ByteString getProtocol(); } /** * Protobuf type {@code dataflow.ApmBaseDataFlow} @@ -293,9 +275,9 @@ public final class ApmBaseDataFlowOuterClass { super(builder); } private ApmBaseDataFlow() { - srcMac_ = ""; - dstMac_ = ""; - protocol_ = ""; + srcMac_ = com.google.protobuf.ByteString.EMPTY; + dstMac_ = com.google.protobuf.ByteString.EMPTY; + protocol_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @@ -375,15 +357,13 @@ public final class ApmBaseDataFlowOuterClass { break; } case 58: { - java.lang.String s = input.readStringRequireUtf8(); - srcMac_ = s; + srcMac_ = input.readBytes(); break; } case 66: { - java.lang.String s = input.readStringRequireUtf8(); - dstMac_ = s; + dstMac_ = input.readBytes(); break; } case 72: { @@ -527,9 +507,8 @@ public final class ApmBaseDataFlowOuterClass { break; } case 298: { - java.lang.String s = input.readStringRequireUtf8(); - protocol_ = s; + protocol_ = input.readBytes(); break; } default: { @@ -667,79 +646,25 @@ public final class ApmBaseDataFlowOuterClass { } public static final int SRC_MAC_FIELD_NUMBER = 7; - private volatile java.lang.Object srcMac_; + private com.google.protobuf.ByteString srcMac_; /** - * string src_mac = 7; + * bytes src_mac = 7; * @return The srcMac. */ @java.lang.Override - public java.lang.String getSrcMac() { - java.lang.Object ref = srcMac_; - 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(); - srcMac_ = s; - return s; - } - } - /** - * string src_mac = 7; - * @return The bytes for srcMac. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSrcMacBytes() { - java.lang.Object ref = srcMac_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - srcMac_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getSrcMac() { + return srcMac_; } public static final int DST_MAC_FIELD_NUMBER = 8; - private volatile java.lang.Object dstMac_; + private com.google.protobuf.ByteString dstMac_; /** - * string dst_mac = 8; + * bytes dst_mac = 8; * @return The dstMac. */ @java.lang.Override - public java.lang.String getDstMac() { - java.lang.Object ref = dstMac_; - 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(); - dstMac_ = s; - return s; - } - } - /** - * string dst_mac = 8; - * @return The bytes for dstMac. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDstMacBytes() { - java.lang.Object ref = dstMac_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dstMac_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getDstMac() { + return dstMac_; } public static final int VLAN_ID_FIELD_NUMBER = 9; @@ -1051,41 +976,14 @@ public final class ApmBaseDataFlowOuterClass { } public static final int PROTOCOL_FIELD_NUMBER = 37; - private volatile java.lang.Object protocol_; + private com.google.protobuf.ByteString protocol_; /** - * string protocol = 37; + * bytes protocol = 37; * @return The protocol. */ @java.lang.Override - public java.lang.String getProtocol() { - java.lang.Object ref = protocol_; - 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(); - protocol_ = s; - return s; - } - } - /** - * string protocol = 37; - * @return The bytes for protocol. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getProtocolBytes() { - java.lang.Object ref = protocol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - protocol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getProtocol() { + return protocol_; } private byte memoizedIsInitialized = -1; @@ -1120,11 +1018,11 @@ public final class ApmBaseDataFlowOuterClass { if (tupleDaddr_ != null) { output.writeMessage(6, getTupleDaddr()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcMac_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, srcMac_); + if (!srcMac_.isEmpty()) { + output.writeBytes(7, srcMac_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dstMac_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, dstMac_); + if (!dstMac_.isEmpty()) { + output.writeBytes(8, dstMac_); } if (vlanId_ != 0) { output.writeUInt32(9, vlanId_); @@ -1210,8 +1108,8 @@ public final class ApmBaseDataFlowOuterClass { if (scAlert_ != 0) { output.writeUInt32(36, scAlert_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 37, protocol_); + if (!protocol_.isEmpty()) { + output.writeBytes(37, protocol_); } unknownFields.writeTo(output); } @@ -1246,11 +1144,13 @@ public final class ApmBaseDataFlowOuterClass { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getTupleDaddr()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcMac_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, srcMac_); + if (!srcMac_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, srcMac_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dstMac_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, dstMac_); + if (!dstMac_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, dstMac_); } if (vlanId_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -1364,8 +1264,9 @@ public final class ApmBaseDataFlowOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(36, scAlert_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(37, protocol_); + if (!protocol_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(37, protocol_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1704,9 +1605,9 @@ public final class ApmBaseDataFlowOuterClass { tupleDaddr_ = null; tupleDaddrBuilder_ = null; } - srcMac_ = ""; + srcMac_ = com.google.protobuf.ByteString.EMPTY; - dstMac_ = ""; + dstMac_ = com.google.protobuf.ByteString.EMPTY; vlanId_ = 0; @@ -1764,7 +1665,7 @@ public final class ApmBaseDataFlowOuterClass { scAlert_ = 0; - protocol_ = ""; + protocol_ = com.google.protobuf.ByteString.EMPTY; return this; } @@ -1903,13 +1804,11 @@ public final class ApmBaseDataFlowOuterClass { if (other.hasTupleDaddr()) { mergeTupleDaddr(other.getTupleDaddr()); } - if (!other.getSrcMac().isEmpty()) { - srcMac_ = other.srcMac_; - onChanged(); + if (other.getSrcMac() != com.google.protobuf.ByteString.EMPTY) { + setSrcMac(other.getSrcMac()); } - if (!other.getDstMac().isEmpty()) { - dstMac_ = other.dstMac_; - onChanged(); + if (other.getDstMac() != com.google.protobuf.ByteString.EMPTY) { + setDstMac(other.getDstMac()); } if (other.getVlanId() != 0) { setVlanId(other.getVlanId()); @@ -1995,9 +1894,8 @@ public final class ApmBaseDataFlowOuterClass { if (other.getScAlert() != 0) { setScAlert(other.getScAlert()); } - if (!other.getProtocol().isEmpty()) { - protocol_ = other.protocol_; - onChanged(); + if (other.getProtocol() != com.google.protobuf.ByteString.EMPTY) { + setProtocol(other.getProtocol()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2402,47 +2300,21 @@ public final class ApmBaseDataFlowOuterClass { return tupleDaddrBuilder_; } - private java.lang.Object srcMac_ = ""; + private com.google.protobuf.ByteString srcMac_ = com.google.protobuf.ByteString.EMPTY; /** - * string src_mac = 7; + * bytes src_mac = 7; * @return The srcMac. */ - public java.lang.String getSrcMac() { - java.lang.Object ref = srcMac_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - srcMac_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getSrcMac() { + return srcMac_; } /** - * string src_mac = 7; - * @return The bytes for srcMac. - */ - public com.google.protobuf.ByteString - getSrcMacBytes() { - java.lang.Object ref = srcMac_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - srcMac_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string src_mac = 7; + * bytes src_mac = 7; * @param value The srcMac to set. * @return This builder for chaining. */ - public Builder setSrcMac( - java.lang.String value) { + public Builder setSrcMac(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -2452,7 +2324,7 @@ public final class ApmBaseDataFlowOuterClass { return this; } /** - * string src_mac = 7; + * bytes src_mac = 7; * @return This builder for chaining. */ public Builder clearSrcMac() { @@ -2461,64 +2333,22 @@ public final class ApmBaseDataFlowOuterClass { onChanged(); return this; } - /** - * string src_mac = 7; - * @param value The bytes for srcMac to set. - * @return This builder for chaining. - */ - public Builder setSrcMacBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - srcMac_ = value; - onChanged(); - return this; - } - private java.lang.Object dstMac_ = ""; + private com.google.protobuf.ByteString dstMac_ = com.google.protobuf.ByteString.EMPTY; /** - * string dst_mac = 8; + * bytes dst_mac = 8; * @return The dstMac. */ - public java.lang.String getDstMac() { - java.lang.Object ref = dstMac_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dstMac_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getDstMac() { + return dstMac_; } /** - * string dst_mac = 8; - * @return The bytes for dstMac. - */ - public com.google.protobuf.ByteString - getDstMacBytes() { - java.lang.Object ref = dstMac_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dstMac_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string dst_mac = 8; + * bytes dst_mac = 8; * @param value The dstMac to set. * @return This builder for chaining. */ - public Builder setDstMac( - java.lang.String value) { + public Builder setDstMac(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -2528,7 +2358,7 @@ public final class ApmBaseDataFlowOuterClass { return this; } /** - * string dst_mac = 8; + * bytes dst_mac = 8; * @return This builder for chaining. */ public Builder clearDstMac() { @@ -2537,22 +2367,6 @@ public final class ApmBaseDataFlowOuterClass { onChanged(); return this; } - /** - * string dst_mac = 8; - * @param value The bytes for dstMac to set. - * @return This builder for chaining. - */ - public Builder setDstMacBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dstMac_ = value; - onChanged(); - return this; - } private int vlanId_ ; /** @@ -3422,47 +3236,21 @@ public final class ApmBaseDataFlowOuterClass { return this; } - private java.lang.Object protocol_ = ""; + private com.google.protobuf.ByteString protocol_ = com.google.protobuf.ByteString.EMPTY; /** - * string protocol = 37; + * bytes protocol = 37; * @return The protocol. */ - public java.lang.String getProtocol() { - java.lang.Object ref = protocol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - protocol_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getProtocol() { + return protocol_; } /** - * string protocol = 37; - * @return The bytes for protocol. - */ - public com.google.protobuf.ByteString - getProtocolBytes() { - java.lang.Object ref = protocol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - protocol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string protocol = 37; + * bytes protocol = 37; * @param value The protocol to set. * @return This builder for chaining. */ - public Builder setProtocol( - java.lang.String value) { + public Builder setProtocol(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -3472,7 +3260,7 @@ public final class ApmBaseDataFlowOuterClass { return this; } /** - * string protocol = 37; + * bytes protocol = 37; * @return This builder for chaining. */ public Builder clearProtocol() { @@ -3481,22 +3269,6 @@ public final class ApmBaseDataFlowOuterClass { onChanged(); return this; } - /** - * string protocol = 37; - * @param value The bytes for protocol to set. - * @return This builder for chaining. - */ - public Builder setProtocolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - protocol_ = value; - onChanged(); - return this; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3570,7 +3342,7 @@ public final class ApmBaseDataFlowOuterClass { "\001(\r\022\022\n\ntuple_dest\030\004 \001(\r\022(\n\013tuple_saddr\030\005" + " \001(\0132\023.dataflow.IPAddress\022(\n\013tuple_daddr" + "\030\006 \001(\0132\023.dataflow.IPAddress\022\017\n\007src_mac\030\007" + - " \001(\t\022\017\n\007dst_mac\030\010 \001(\t\022\017\n\007vlan_id\030\t \001(\r\022\027" + + " \001(\014\022\017\n\007dst_mac\030\010 \001(\014\022\017\n\007vlan_id\030\t \001(\r\022\027" + "\n\017start_tm_tv_sec\030\n \001(\r\022\030\n\020start_tm_tv_u" + "sec\030\013 \001(\r\022\023\n\013total_bytes\030\014 \001(\r\022\025\n\rtotal_" + "packets\030\r \001(\r\022\032\n\022total_drop_packets\030\016 \001(" + @@ -3585,7 +3357,7 @@ public final class ApmBaseDataFlowOuterClass { "\001(\r\022\020\n\010sc_reset\030\036 \001(\r\022\021\n\tcs_retran\030\037 \001(\r" + "\022\021\n\tsc_retran\030 \001(\r\022\025\n\rconn_setup_tm\030! \001" + "(\r\022\023\n\013new_session\030\" \001(\r\022\020\n\010cs_alert\030# \001(" + - "\r\022\020\n\010sc_alert\030$ \001(\r\022\020\n\010protocol\030% \001(\tB<\n" + + "\r\022\020\n\010sc_alert\030$ \001(\r\022\020\n\010protocol\030% \001(\014B<\n" + "#com.yuandian.dataflow.proto.msgtypeP\000Z\023" + "../grpc-gen;grpcgenb\006proto3" }; diff --git a/src/main/java/com/yuandian/dataflow/proto/msgtype/AppFlowOuterClass.java b/src/main/java/com/yuandian/dataflow/proto/msgtype/AppFlowOuterClass.java index f659344..87942d2 100644 --- a/src/main/java/com/yuandian/dataflow/proto/msgtype/AppFlowOuterClass.java +++ b/src/main/java/com/yuandian/dataflow/proto/msgtype/AppFlowOuterClass.java @@ -131,16 +131,10 @@ public final class AppFlowOuterClass { int getOutputBytes(); /** - * string protocol = 16; + * bytes protocol = 16; * @return The protocol. */ - java.lang.String getProtocol(); - /** - * string protocol = 16; - * @return The bytes for protocol. - */ - com.google.protobuf.ByteString - getProtocolBytes(); + com.google.protobuf.ByteString getProtocol(); /** * uint32 app_id = 17; @@ -203,7 +197,7 @@ public final class AppFlowOuterClass { super(builder); } private AppFlow() { - protocol_ = ""; + protocol_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @@ -328,9 +322,8 @@ public final class AppFlowOuterClass { break; } case 130: { - java.lang.String s = input.readStringRequireUtf8(); - protocol_ = s; + protocol_ = input.readBytes(); break; } case 136: { @@ -607,41 +600,14 @@ public final class AppFlowOuterClass { } public static final int PROTOCOL_FIELD_NUMBER = 16; - private volatile java.lang.Object protocol_; + private com.google.protobuf.ByteString protocol_; /** - * string protocol = 16; + * bytes protocol = 16; * @return The protocol. */ @java.lang.Override - public java.lang.String getProtocol() { - java.lang.Object ref = protocol_; - 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(); - protocol_ = s; - return s; - } - } - /** - * string protocol = 16; - * @return The bytes for protocol. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getProtocolBytes() { - java.lang.Object ref = protocol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - protocol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getProtocol() { + return protocol_; } public static final int APP_ID_FIELD_NUMBER = 17; @@ -791,8 +757,8 @@ public final class AppFlowOuterClass { if (outputBytes_ != 0) { output.writeUInt32(15, outputBytes_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, protocol_); + if (!protocol_.isEmpty()) { + output.writeBytes(16, protocol_); } if (appId_ != 0) { output.writeUInt32(17, appId_); @@ -887,8 +853,9 @@ public final class AppFlowOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(15, outputBytes_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, protocol_); + if (!protocol_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(16, protocol_); } if (appId_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -1225,7 +1192,7 @@ public final class AppFlowOuterClass { outputBytes_ = 0; - protocol_ = ""; + protocol_ = com.google.protobuf.ByteString.EMPTY; appId_ = 0; @@ -1394,9 +1361,8 @@ public final class AppFlowOuterClass { if (other.getOutputBytes() != 0) { setOutputBytes(other.getOutputBytes()); } - if (!other.getProtocol().isEmpty()) { - protocol_ = other.protocol_; - onChanged(); + if (other.getProtocol() != com.google.protobuf.ByteString.EMPTY) { + setProtocol(other.getProtocol()); } if (other.getAppId() != 0) { setAppId(other.getAppId()); @@ -2104,47 +2070,21 @@ public final class AppFlowOuterClass { return this; } - private java.lang.Object protocol_ = ""; + private com.google.protobuf.ByteString protocol_ = com.google.protobuf.ByteString.EMPTY; /** - * string protocol = 16; + * bytes protocol = 16; * @return The protocol. */ - public java.lang.String getProtocol() { - java.lang.Object ref = protocol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - protocol_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getProtocol() { + return protocol_; } /** - * string protocol = 16; - * @return The bytes for protocol. - */ - public com.google.protobuf.ByteString - getProtocolBytes() { - java.lang.Object ref = protocol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - protocol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string protocol = 16; + * bytes protocol = 16; * @param value The protocol to set. * @return This builder for chaining. */ - public Builder setProtocol( - java.lang.String value) { + public Builder setProtocol(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -2154,7 +2094,7 @@ public final class AppFlowOuterClass { return this; } /** - * string protocol = 16; + * bytes protocol = 16; * @return This builder for chaining. */ public Builder clearProtocol() { @@ -2163,22 +2103,6 @@ public final class AppFlowOuterClass { onChanged(); return this; } - /** - * string protocol = 16; - * @param value The bytes for protocol to set. - * @return This builder for chaining. - */ - public Builder setProtocolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - protocol_ = value; - onChanged(); - return this; - } private int appId_ ; /** @@ -2503,7 +2427,7 @@ public final class AppFlowOuterClass { "_usec\030\t \001(\r\022\020\n\010e_tv_sec\030\n \001(\r\022\021\n\te_tv_us" + "ec\030\013 \001(\r\022\025\n\rinput_packets\030\014 \001(\r\022\026\n\016outpu" + "t_packets\030\r \001(\r\022\023\n\013input_bytes\030\016 \001(\r\022\024\n\014" + - "output_bytes\030\017 \001(\r\022\020\n\010protocol\030\020 \001(\t\022\016\n\006" + + "output_bytes\030\017 \001(\r\022\020\n\010protocol\030\020 \001(\014\022\016\n\006" + "app_id\030\021 \001(\r\022\024\n\014app_group_id\030\022 \001(\r\022\020\n\010pr" + "obe_if\030\023 \001(\r\022\021\n\tapp_style\030\024 \001(\r\022\021\n\ttime_" + "flag\030\025 \001(\r\022\017\n\007vlan_id\030\026 \001(\005\022\022\n\nmpls_labe" + diff --git a/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowDbOuterClass.java b/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowDbOuterClass.java index c620770..235d86c 100644 --- a/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowDbOuterClass.java +++ b/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowDbOuterClass.java @@ -35,16 +35,10 @@ public final class BussFlowDbOuterClass { int getMsgType(); /** - * string msg_version = 3; + * bytes msg_version = 3; * @return The msgVersion. */ - java.lang.String getMsgVersion(); - /** - * string msg_version = 3; - * @return The bytes for msgVersion. - */ - com.google.protobuf.ByteString - getMsgVersionBytes(); + com.google.protobuf.ByteString getMsgVersion(); /** * uint32 msg_seq = 4; @@ -131,16 +125,10 @@ public final class BussFlowDbOuterClass { int getRequestPackets(); /** - * string seq_ack = 18; + * bytes seq_ack = 18; * @return The seqAck. */ - java.lang.String getSeqAck(); - /** - * string seq_ack = 18; - * @return The bytes for seqAck. - */ - com.google.protobuf.ByteString - getSeqAckBytes(); + com.google.protobuf.ByteString getSeqAck(); /** * uint32 recog_status = 19; @@ -155,28 +143,16 @@ public final class BussFlowDbOuterClass { int getProbeIf(); /** - * string channel = 21; + * bytes channel = 21; * @return The channel. */ - java.lang.String getChannel(); - /** - * string channel = 21; - * @return The bytes for channel. - */ - com.google.protobuf.ByteString - getChannelBytes(); + com.google.protobuf.ByteString getChannel(); /** - * string dbname = 22; + * bytes dbname = 22; * @return The dbname. */ - java.lang.String getDbname(); - /** - * string dbname = 22; - * @return The bytes for dbname. - */ - com.google.protobuf.ByteString - getDbnameBytes(); + com.google.protobuf.ByteString getDbname(); /** * .dataflow.IPAddress request_ip = 23; @@ -335,64 +311,34 @@ public final class BussFlowDbOuterClass { int getReservedLen(); /** - * string sql = 46; + * bytes sql = 46; * @return The sql. */ - java.lang.String getSql(); - /** - * string sql = 46; - * @return The bytes for sql. - */ - com.google.protobuf.ByteString - getSqlBytes(); + com.google.protobuf.ByteString getSql(); /** - * string bussiness_detail_mesg = 47; + * bytes bussiness_detail_mesg = 47; * @return The bussinessDetailMesg. */ - java.lang.String getBussinessDetailMesg(); - /** - * string bussiness_detail_mesg = 47; - * @return The bytes for bussinessDetailMesg. - */ - com.google.protobuf.ByteString - getBussinessDetailMesgBytes(); + com.google.protobuf.ByteString getBussinessDetailMesg(); /** - * string req_data = 48; + * bytes req_data = 48; * @return The reqData. */ - java.lang.String getReqData(); - /** - * string req_data = 48; - * @return The bytes for reqData. - */ - com.google.protobuf.ByteString - getReqDataBytes(); + com.google.protobuf.ByteString getReqData(); /** - * string res_data = 49; + * bytes res_data = 49; * @return The resData. */ - java.lang.String getResData(); - /** - * string res_data = 49; - * @return The bytes for resData. - */ - com.google.protobuf.ByteString - getResDataBytes(); + com.google.protobuf.ByteString getResData(); /** - * string reserved = 50; + * bytes reserved = 50; * @return The reserved. */ - java.lang.String getReserved(); - /** - * string reserved = 50; - * @return The bytes for reserved. - */ - com.google.protobuf.ByteString - getReservedBytes(); + com.google.protobuf.ByteString getReserved(); } /** * Protobuf type {@code dataflow.BussFlowDb} @@ -407,15 +353,15 @@ public final class BussFlowDbOuterClass { super(builder); } private BussFlowDb() { - msgVersion_ = ""; - seqAck_ = ""; - channel_ = ""; - dbname_ = ""; - sql_ = ""; - bussinessDetailMesg_ = ""; - reqData_ = ""; - resData_ = ""; - reserved_ = ""; + msgVersion_ = com.google.protobuf.ByteString.EMPTY; + seqAck_ = com.google.protobuf.ByteString.EMPTY; + channel_ = com.google.protobuf.ByteString.EMPTY; + dbname_ = com.google.protobuf.ByteString.EMPTY; + sql_ = com.google.protobuf.ByteString.EMPTY; + bussinessDetailMesg_ = com.google.protobuf.ByteString.EMPTY; + reqData_ = com.google.protobuf.ByteString.EMPTY; + resData_ = com.google.protobuf.ByteString.EMPTY; + reserved_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @@ -459,9 +405,8 @@ public final class BussFlowDbOuterClass { break; } case 26: { - java.lang.String s = input.readStringRequireUtf8(); - msgVersion_ = s; + msgVersion_ = input.readBytes(); break; } case 32: { @@ -535,9 +480,8 @@ public final class BussFlowDbOuterClass { break; } case 146: { - java.lang.String s = input.readStringRequireUtf8(); - seqAck_ = s; + seqAck_ = input.readBytes(); break; } case 152: { @@ -551,15 +495,13 @@ public final class BussFlowDbOuterClass { break; } case 170: { - java.lang.String s = input.readStringRequireUtf8(); - channel_ = s; + channel_ = input.readBytes(); break; } case 178: { - java.lang.String s = input.readStringRequireUtf8(); - dbname_ = s; + dbname_ = input.readBytes(); break; } case 186: { @@ -694,33 +636,28 @@ public final class BussFlowDbOuterClass { break; } case 370: { - java.lang.String s = input.readStringRequireUtf8(); - sql_ = s; + sql_ = input.readBytes(); break; } case 378: { - java.lang.String s = input.readStringRequireUtf8(); - bussinessDetailMesg_ = s; + bussinessDetailMesg_ = input.readBytes(); break; } case 386: { - java.lang.String s = input.readStringRequireUtf8(); - reqData_ = s; + reqData_ = input.readBytes(); break; } case 394: { - java.lang.String s = input.readStringRequireUtf8(); - resData_ = s; + resData_ = input.readBytes(); break; } case 402: { - java.lang.String s = input.readStringRequireUtf8(); - reserved_ = s; + reserved_ = input.readBytes(); break; } default: { @@ -784,41 +721,14 @@ public final class BussFlowDbOuterClass { } public static final int MSG_VERSION_FIELD_NUMBER = 3; - private volatile java.lang.Object msgVersion_; + private com.google.protobuf.ByteString msgVersion_; /** - * string msg_version = 3; + * bytes msg_version = 3; * @return The msgVersion. */ @java.lang.Override - public java.lang.String getMsgVersion() { - java.lang.Object ref = msgVersion_; - 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(); - msgVersion_ = s; - return s; - } - } - /** - * string msg_version = 3; - * @return The bytes for msgVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMsgVersionBytes() { - java.lang.Object ref = msgVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msgVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getMsgVersion() { + return msgVersion_; } public static final int MSG_SEQ_FIELD_NUMBER = 4; @@ -976,41 +886,14 @@ public final class BussFlowDbOuterClass { } public static final int SEQ_ACK_FIELD_NUMBER = 18; - private volatile java.lang.Object seqAck_; + private com.google.protobuf.ByteString seqAck_; /** - * string seq_ack = 18; + * bytes seq_ack = 18; * @return The seqAck. */ @java.lang.Override - public java.lang.String getSeqAck() { - java.lang.Object ref = seqAck_; - 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(); - seqAck_ = s; - return s; - } - } - /** - * string seq_ack = 18; - * @return The bytes for seqAck. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSeqAckBytes() { - java.lang.Object ref = seqAck_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - seqAck_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getSeqAck() { + return seqAck_; } public static final int RECOG_STATUS_FIELD_NUMBER = 19; @@ -1036,79 +919,25 @@ public final class BussFlowDbOuterClass { } public static final int CHANNEL_FIELD_NUMBER = 21; - private volatile java.lang.Object channel_; + private com.google.protobuf.ByteString channel_; /** - * string channel = 21; + * bytes channel = 21; * @return The channel. */ @java.lang.Override - public java.lang.String getChannel() { - java.lang.Object ref = channel_; - 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(); - channel_ = s; - return s; - } - } - /** - * string channel = 21; - * @return The bytes for channel. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getChannelBytes() { - java.lang.Object ref = channel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getChannel() { + return channel_; } public static final int DBNAME_FIELD_NUMBER = 22; - private volatile java.lang.Object dbname_; + private com.google.protobuf.ByteString dbname_; /** - * string dbname = 22; + * bytes dbname = 22; * @return The dbname. */ @java.lang.Override - public java.lang.String getDbname() { - java.lang.Object ref = dbname_; - 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(); - dbname_ = s; - return s; - } - } - /** - * string dbname = 22; - * @return The bytes for dbname. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDbnameBytes() { - java.lang.Object ref = dbname_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dbname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getDbname() { + return dbname_; } public static final int REQUEST_IP_FIELD_NUMBER = 23; @@ -1395,193 +1224,58 @@ public final class BussFlowDbOuterClass { } public static final int SQL_FIELD_NUMBER = 46; - private volatile java.lang.Object sql_; + private com.google.protobuf.ByteString sql_; /** - * string sql = 46; + * bytes sql = 46; * @return The sql. */ @java.lang.Override - public java.lang.String getSql() { - java.lang.Object ref = sql_; - 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(); - sql_ = s; - return s; - } - } - /** - * string sql = 46; - * @return The bytes for sql. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSqlBytes() { - java.lang.Object ref = sql_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sql_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getSql() { + return sql_; } public static final int BUSSINESS_DETAIL_MESG_FIELD_NUMBER = 47; - private volatile java.lang.Object bussinessDetailMesg_; + private com.google.protobuf.ByteString bussinessDetailMesg_; /** - * string bussiness_detail_mesg = 47; + * bytes bussiness_detail_mesg = 47; * @return The bussinessDetailMesg. */ @java.lang.Override - public java.lang.String getBussinessDetailMesg() { - java.lang.Object ref = bussinessDetailMesg_; - 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(); - bussinessDetailMesg_ = s; - return s; - } - } - /** - * string bussiness_detail_mesg = 47; - * @return The bytes for bussinessDetailMesg. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBussinessDetailMesgBytes() { - java.lang.Object ref = bussinessDetailMesg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bussinessDetailMesg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getBussinessDetailMesg() { + return bussinessDetailMesg_; } public static final int REQ_DATA_FIELD_NUMBER = 48; - private volatile java.lang.Object reqData_; + private com.google.protobuf.ByteString reqData_; /** - * string req_data = 48; + * bytes req_data = 48; * @return The reqData. */ @java.lang.Override - public java.lang.String getReqData() { - java.lang.Object ref = reqData_; - 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(); - reqData_ = s; - return s; - } - } - /** - * string req_data = 48; - * @return The bytes for reqData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReqDataBytes() { - java.lang.Object ref = reqData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reqData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getReqData() { + return reqData_; } public static final int RES_DATA_FIELD_NUMBER = 49; - private volatile java.lang.Object resData_; + private com.google.protobuf.ByteString resData_; /** - * string res_data = 49; + * bytes res_data = 49; * @return The resData. */ @java.lang.Override - public java.lang.String getResData() { - java.lang.Object ref = resData_; - 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(); - resData_ = s; - return s; - } - } - /** - * string res_data = 49; - * @return The bytes for resData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResDataBytes() { - java.lang.Object ref = resData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getResData() { + return resData_; } public static final int RESERVED_FIELD_NUMBER = 50; - private volatile java.lang.Object reserved_; + private com.google.protobuf.ByteString reserved_; /** - * string reserved = 50; + * bytes reserved = 50; * @return The reserved. */ @java.lang.Override - public java.lang.String getReserved() { - java.lang.Object ref = reserved_; - 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(); - reserved_ = s; - return s; - } - } - /** - * string reserved = 50; - * @return The bytes for reserved. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReservedBytes() { - java.lang.Object ref = reserved_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reserved_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getReserved() { + return reserved_; } private byte memoizedIsInitialized = -1; @@ -1604,8 +1298,8 @@ public final class BussFlowDbOuterClass { if (msgType_ != 0) { output.writeUInt32(2, msgType_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msgVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, msgVersion_); + if (!msgVersion_.isEmpty()) { + output.writeBytes(3, msgVersion_); } if (msgSeq_ != 0) { output.writeUInt32(4, msgSeq_); @@ -1649,8 +1343,8 @@ public final class BussFlowDbOuterClass { if (requestPackets_ != 0) { output.writeUInt32(17, requestPackets_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seqAck_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, seqAck_); + if (!seqAck_.isEmpty()) { + output.writeBytes(18, seqAck_); } if (recogStatus_ != 0) { output.writeUInt32(19, recogStatus_); @@ -1658,11 +1352,11 @@ public final class BussFlowDbOuterClass { if (probeIf_ != 0) { output.writeUInt32(20, probeIf_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 21, channel_); + if (!channel_.isEmpty()) { + output.writeBytes(21, channel_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbname_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 22, dbname_); + if (!dbname_.isEmpty()) { + output.writeBytes(22, dbname_); } if (requestIp_ != null) { output.writeMessage(23, getRequestIp()); @@ -1733,20 +1427,20 @@ public final class BussFlowDbOuterClass { if (reservedLen_ != 0) { output.writeUInt32(45, reservedLen_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 46, sql_); + if (!sql_.isEmpty()) { + output.writeBytes(46, sql_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bussinessDetailMesg_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 47, bussinessDetailMesg_); + if (!bussinessDetailMesg_.isEmpty()) { + output.writeBytes(47, bussinessDetailMesg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 48, reqData_); + if (!reqData_.isEmpty()) { + output.writeBytes(48, reqData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 49, resData_); + if (!resData_.isEmpty()) { + output.writeBytes(49, resData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reserved_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 50, reserved_); + if (!reserved_.isEmpty()) { + output.writeBytes(50, reserved_); } unknownFields.writeTo(output); } @@ -1765,8 +1459,9 @@ public final class BussFlowDbOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, msgType_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msgVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, msgVersion_); + if (!msgVersion_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, msgVersion_); } if (msgSeq_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -1824,8 +1519,9 @@ public final class BussFlowDbOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(17, requestPackets_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seqAck_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, seqAck_); + if (!seqAck_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(18, seqAck_); } if (recogStatus_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -1835,11 +1531,13 @@ public final class BussFlowDbOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(20, probeIf_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, channel_); + if (!channel_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(21, channel_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbname_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, dbname_); + if (!dbname_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(22, dbname_); } if (requestIp_ != null) { size += com.google.protobuf.CodedOutputStream @@ -1933,20 +1631,25 @@ public final class BussFlowDbOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(45, reservedLen_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sql_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(46, sql_); + if (!sql_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(46, sql_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bussinessDetailMesg_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(47, bussinessDetailMesg_); + if (!bussinessDetailMesg_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(47, bussinessDetailMesg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(48, reqData_); + if (!reqData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(48, reqData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(49, resData_); + if (!resData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(49, resData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reserved_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(50, reserved_); + if (!reserved_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(50, reserved_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2327,7 +2030,7 @@ public final class BussFlowDbOuterClass { msgType_ = 0; - msgVersion_ = ""; + msgVersion_ = com.google.protobuf.ByteString.EMPTY; msgSeq_ = 0; @@ -2357,15 +2060,15 @@ public final class BussFlowDbOuterClass { requestPackets_ = 0; - seqAck_ = ""; + seqAck_ = com.google.protobuf.ByteString.EMPTY; recogStatus_ = 0; probeIf_ = 0; - channel_ = ""; + channel_ = com.google.protobuf.ByteString.EMPTY; - dbname_ = ""; + dbname_ = com.google.protobuf.ByteString.EMPTY; if (requestIpBuilder_ == null) { requestIp_ = null; @@ -2421,15 +2124,15 @@ public final class BussFlowDbOuterClass { reservedLen_ = 0; - sql_ = ""; + sql_ = com.google.protobuf.ByteString.EMPTY; - bussinessDetailMesg_ = ""; + bussinessDetailMesg_ = com.google.protobuf.ByteString.EMPTY; - reqData_ = ""; + reqData_ = com.google.protobuf.ByteString.EMPTY; - resData_ = ""; + resData_ = com.google.protobuf.ByteString.EMPTY; - reserved_ = ""; + reserved_ = com.google.protobuf.ByteString.EMPTY; return this; } @@ -2569,9 +2272,8 @@ public final class BussFlowDbOuterClass { if (other.getMsgType() != 0) { setMsgType(other.getMsgType()); } - if (!other.getMsgVersion().isEmpty()) { - msgVersion_ = other.msgVersion_; - onChanged(); + if (other.getMsgVersion() != com.google.protobuf.ByteString.EMPTY) { + setMsgVersion(other.getMsgVersion()); } if (other.getMsgSeq() != 0) { setMsgSeq(other.getMsgSeq()); @@ -2615,9 +2317,8 @@ public final class BussFlowDbOuterClass { if (other.getRequestPackets() != 0) { setRequestPackets(other.getRequestPackets()); } - if (!other.getSeqAck().isEmpty()) { - seqAck_ = other.seqAck_; - onChanged(); + if (other.getSeqAck() != com.google.protobuf.ByteString.EMPTY) { + setSeqAck(other.getSeqAck()); } if (other.getRecogStatus() != 0) { setRecogStatus(other.getRecogStatus()); @@ -2625,13 +2326,11 @@ public final class BussFlowDbOuterClass { if (other.getProbeIf() != 0) { setProbeIf(other.getProbeIf()); } - if (!other.getChannel().isEmpty()) { - channel_ = other.channel_; - onChanged(); + if (other.getChannel() != com.google.protobuf.ByteString.EMPTY) { + setChannel(other.getChannel()); } - if (!other.getDbname().isEmpty()) { - dbname_ = other.dbname_; - onChanged(); + if (other.getDbname() != com.google.protobuf.ByteString.EMPTY) { + setDbname(other.getDbname()); } if (other.hasRequestIp()) { mergeRequestIp(other.getRequestIp()); @@ -2702,25 +2401,20 @@ public final class BussFlowDbOuterClass { if (other.getReservedLen() != 0) { setReservedLen(other.getReservedLen()); } - if (!other.getSql().isEmpty()) { - sql_ = other.sql_; - onChanged(); + if (other.getSql() != com.google.protobuf.ByteString.EMPTY) { + setSql(other.getSql()); } - if (!other.getBussinessDetailMesg().isEmpty()) { - bussinessDetailMesg_ = other.bussinessDetailMesg_; - onChanged(); + if (other.getBussinessDetailMesg() != com.google.protobuf.ByteString.EMPTY) { + setBussinessDetailMesg(other.getBussinessDetailMesg()); } - if (!other.getReqData().isEmpty()) { - reqData_ = other.reqData_; - onChanged(); + if (other.getReqData() != com.google.protobuf.ByteString.EMPTY) { + setReqData(other.getReqData()); } - if (!other.getResData().isEmpty()) { - resData_ = other.resData_; - onChanged(); + if (other.getResData() != com.google.protobuf.ByteString.EMPTY) { + setResData(other.getResData()); } - if (!other.getReserved().isEmpty()) { - reserved_ = other.reserved_; - onChanged(); + if (other.getReserved() != com.google.protobuf.ByteString.EMPTY) { + setReserved(other.getReserved()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2825,47 +2519,21 @@ public final class BussFlowDbOuterClass { return this; } - private java.lang.Object msgVersion_ = ""; + private com.google.protobuf.ByteString msgVersion_ = com.google.protobuf.ByteString.EMPTY; /** - * string msg_version = 3; + * bytes msg_version = 3; * @return The msgVersion. */ - public java.lang.String getMsgVersion() { - java.lang.Object ref = msgVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msgVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getMsgVersion() { + return msgVersion_; } /** - * string msg_version = 3; - * @return The bytes for msgVersion. - */ - public com.google.protobuf.ByteString - getMsgVersionBytes() { - java.lang.Object ref = msgVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msgVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string msg_version = 3; + * bytes msg_version = 3; * @param value The msgVersion to set. * @return This builder for chaining. */ - public Builder setMsgVersion( - java.lang.String value) { + public Builder setMsgVersion(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -2875,7 +2543,7 @@ public final class BussFlowDbOuterClass { return this; } /** - * string msg_version = 3; + * bytes msg_version = 3; * @return This builder for chaining. */ public Builder clearMsgVersion() { @@ -2884,22 +2552,6 @@ public final class BussFlowDbOuterClass { onChanged(); return this; } - /** - * string msg_version = 3; - * @param value The bytes for msgVersion to set. - * @return This builder for chaining. - */ - public Builder setMsgVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - msgVersion_ = value; - onChanged(); - return this; - } private int msgSeq_ ; /** @@ -3335,47 +2987,21 @@ public final class BussFlowDbOuterClass { return this; } - private java.lang.Object seqAck_ = ""; + private com.google.protobuf.ByteString seqAck_ = com.google.protobuf.ByteString.EMPTY; /** - * string seq_ack = 18; + * bytes seq_ack = 18; * @return The seqAck. */ - public java.lang.String getSeqAck() { - java.lang.Object ref = seqAck_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - seqAck_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getSeqAck() { + return seqAck_; } /** - * string seq_ack = 18; - * @return The bytes for seqAck. - */ - public com.google.protobuf.ByteString - getSeqAckBytes() { - java.lang.Object ref = seqAck_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - seqAck_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string seq_ack = 18; + * bytes seq_ack = 18; * @param value The seqAck to set. * @return This builder for chaining. */ - public Builder setSeqAck( - java.lang.String value) { + public Builder setSeqAck(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -3385,7 +3011,7 @@ public final class BussFlowDbOuterClass { return this; } /** - * string seq_ack = 18; + * bytes seq_ack = 18; * @return This builder for chaining. */ public Builder clearSeqAck() { @@ -3394,22 +3020,6 @@ public final class BussFlowDbOuterClass { onChanged(); return this; } - /** - * string seq_ack = 18; - * @param value The bytes for seqAck to set. - * @return This builder for chaining. - */ - public Builder setSeqAckBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - seqAck_ = value; - onChanged(); - return this; - } private int recogStatus_ ; /** @@ -3473,47 +3083,21 @@ public final class BussFlowDbOuterClass { return this; } - private java.lang.Object channel_ = ""; + private com.google.protobuf.ByteString channel_ = com.google.protobuf.ByteString.EMPTY; /** - * string channel = 21; + * bytes channel = 21; * @return The channel. */ - public java.lang.String getChannel() { - java.lang.Object ref = channel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channel_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getChannel() { + return channel_; } /** - * string channel = 21; - * @return The bytes for channel. - */ - public com.google.protobuf.ByteString - getChannelBytes() { - java.lang.Object ref = channel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string channel = 21; + * bytes channel = 21; * @param value The channel to set. * @return This builder for chaining. */ - public Builder setChannel( - java.lang.String value) { + public Builder setChannel(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -3523,7 +3107,7 @@ public final class BussFlowDbOuterClass { return this; } /** - * string channel = 21; + * bytes channel = 21; * @return This builder for chaining. */ public Builder clearChannel() { @@ -3532,64 +3116,22 @@ public final class BussFlowDbOuterClass { onChanged(); return this; } - /** - * string channel = 21; - * @param value The bytes for channel to set. - * @return This builder for chaining. - */ - public Builder setChannelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channel_ = value; - onChanged(); - return this; - } - private java.lang.Object dbname_ = ""; + private com.google.protobuf.ByteString dbname_ = com.google.protobuf.ByteString.EMPTY; /** - * string dbname = 22; + * bytes dbname = 22; * @return The dbname. */ - public java.lang.String getDbname() { - java.lang.Object ref = dbname_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dbname_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getDbname() { + return dbname_; } /** - * string dbname = 22; - * @return The bytes for dbname. - */ - public com.google.protobuf.ByteString - getDbnameBytes() { - java.lang.Object ref = dbname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dbname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string dbname = 22; + * bytes dbname = 22; * @param value The dbname to set. * @return This builder for chaining. */ - public Builder setDbname( - java.lang.String value) { + public Builder setDbname(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -3599,7 +3141,7 @@ public final class BussFlowDbOuterClass { return this; } /** - * string dbname = 22; + * bytes dbname = 22; * @return This builder for chaining. */ public Builder clearDbname() { @@ -3608,22 +3150,6 @@ public final class BussFlowDbOuterClass { onChanged(); return this; } - /** - * string dbname = 22; - * @param value The bytes for dbname to set. - * @return This builder for chaining. - */ - public Builder setDbnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dbname_ = value; - onChanged(); - return this; - } private com.yuandian.dataflow.proto.Base.IPAddress requestIp_; private com.google.protobuf.SingleFieldBuilderV3< @@ -4514,47 +4040,21 @@ public final class BussFlowDbOuterClass { return this; } - private java.lang.Object sql_ = ""; + private com.google.protobuf.ByteString sql_ = com.google.protobuf.ByteString.EMPTY; /** - * string sql = 46; + * bytes sql = 46; * @return The sql. */ - public java.lang.String getSql() { - java.lang.Object ref = sql_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sql_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getSql() { + return sql_; } /** - * string sql = 46; - * @return The bytes for sql. - */ - public com.google.protobuf.ByteString - getSqlBytes() { - java.lang.Object ref = sql_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sql_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sql = 46; + * bytes sql = 46; * @param value The sql to set. * @return This builder for chaining. */ - public Builder setSql( - java.lang.String value) { + public Builder setSql(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -4564,7 +4064,7 @@ public final class BussFlowDbOuterClass { return this; } /** - * string sql = 46; + * bytes sql = 46; * @return This builder for chaining. */ public Builder clearSql() { @@ -4573,64 +4073,22 @@ public final class BussFlowDbOuterClass { onChanged(); return this; } - /** - * string sql = 46; - * @param value The bytes for sql to set. - * @return This builder for chaining. - */ - public Builder setSqlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sql_ = value; - onChanged(); - return this; - } - private java.lang.Object bussinessDetailMesg_ = ""; + private com.google.protobuf.ByteString bussinessDetailMesg_ = com.google.protobuf.ByteString.EMPTY; /** - * string bussiness_detail_mesg = 47; + * bytes bussiness_detail_mesg = 47; * @return The bussinessDetailMesg. */ - public java.lang.String getBussinessDetailMesg() { - java.lang.Object ref = bussinessDetailMesg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bussinessDetailMesg_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getBussinessDetailMesg() { + return bussinessDetailMesg_; } /** - * string bussiness_detail_mesg = 47; - * @return The bytes for bussinessDetailMesg. - */ - public com.google.protobuf.ByteString - getBussinessDetailMesgBytes() { - java.lang.Object ref = bussinessDetailMesg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bussinessDetailMesg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string bussiness_detail_mesg = 47; + * bytes bussiness_detail_mesg = 47; * @param value The bussinessDetailMesg to set. * @return This builder for chaining. */ - public Builder setBussinessDetailMesg( - java.lang.String value) { + public Builder setBussinessDetailMesg(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -4640,7 +4098,7 @@ public final class BussFlowDbOuterClass { return this; } /** - * string bussiness_detail_mesg = 47; + * bytes bussiness_detail_mesg = 47; * @return This builder for chaining. */ public Builder clearBussinessDetailMesg() { @@ -4649,64 +4107,22 @@ public final class BussFlowDbOuterClass { onChanged(); return this; } - /** - * string bussiness_detail_mesg = 47; - * @param value The bytes for bussinessDetailMesg to set. - * @return This builder for chaining. - */ - public Builder setBussinessDetailMesgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bussinessDetailMesg_ = value; - onChanged(); - return this; - } - private java.lang.Object reqData_ = ""; + private com.google.protobuf.ByteString reqData_ = com.google.protobuf.ByteString.EMPTY; /** - * string req_data = 48; + * bytes req_data = 48; * @return The reqData. */ - public java.lang.String getReqData() { - java.lang.Object ref = reqData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reqData_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getReqData() { + return reqData_; } /** - * string req_data = 48; - * @return The bytes for reqData. - */ - public com.google.protobuf.ByteString - getReqDataBytes() { - java.lang.Object ref = reqData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reqData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string req_data = 48; + * bytes req_data = 48; * @param value The reqData to set. * @return This builder for chaining. */ - public Builder setReqData( - java.lang.String value) { + public Builder setReqData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -4716,7 +4132,7 @@ public final class BussFlowDbOuterClass { return this; } /** - * string req_data = 48; + * bytes req_data = 48; * @return This builder for chaining. */ public Builder clearReqData() { @@ -4725,64 +4141,22 @@ public final class BussFlowDbOuterClass { onChanged(); return this; } - /** - * string req_data = 48; - * @param value The bytes for reqData to set. - * @return This builder for chaining. - */ - public Builder setReqDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reqData_ = value; - onChanged(); - return this; - } - private java.lang.Object resData_ = ""; + private com.google.protobuf.ByteString resData_ = com.google.protobuf.ByteString.EMPTY; /** - * string res_data = 49; + * bytes res_data = 49; * @return The resData. */ - public java.lang.String getResData() { - java.lang.Object ref = resData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resData_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getResData() { + return resData_; } /** - * string res_data = 49; - * @return The bytes for resData. - */ - public com.google.protobuf.ByteString - getResDataBytes() { - java.lang.Object ref = resData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string res_data = 49; + * bytes res_data = 49; * @param value The resData to set. * @return This builder for chaining. */ - public Builder setResData( - java.lang.String value) { + public Builder setResData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -4792,7 +4166,7 @@ public final class BussFlowDbOuterClass { return this; } /** - * string res_data = 49; + * bytes res_data = 49; * @return This builder for chaining. */ public Builder clearResData() { @@ -4801,64 +4175,22 @@ public final class BussFlowDbOuterClass { onChanged(); return this; } - /** - * string res_data = 49; - * @param value The bytes for resData to set. - * @return This builder for chaining. - */ - public Builder setResDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resData_ = value; - onChanged(); - return this; - } - private java.lang.Object reserved_ = ""; + private com.google.protobuf.ByteString reserved_ = com.google.protobuf.ByteString.EMPTY; /** - * string reserved = 50; + * bytes reserved = 50; * @return The reserved. */ - public java.lang.String getReserved() { - java.lang.Object ref = reserved_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reserved_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getReserved() { + return reserved_; } /** - * string reserved = 50; - * @return The bytes for reserved. - */ - public com.google.protobuf.ByteString - getReservedBytes() { - java.lang.Object ref = reserved_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reserved_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string reserved = 50; + * bytes reserved = 50; * @param value The reserved to set. * @return This builder for chaining. */ - public Builder setReserved( - java.lang.String value) { + public Builder setReserved(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -4868,7 +4200,7 @@ public final class BussFlowDbOuterClass { return this; } /** - * string reserved = 50; + * bytes reserved = 50; * @return This builder for chaining. */ public Builder clearReserved() { @@ -4877,22 +4209,6 @@ public final class BussFlowDbOuterClass { onChanged(); return this; } - /** - * string reserved = 50; - * @param value The bytes for reserved to set. - * @return This builder for chaining. - */ - public Builder setReservedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reserved_ = value; - onChanged(); - return this; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4962,7 +4278,7 @@ public final class BussFlowDbOuterClass { java.lang.String[] descriptorData = { "\n\020BussFlowDb.proto\022\010dataflow\032\nBase.proto" + "\"\244\t\n\nBussFlowDb\022\020\n\010table_id\030\001 \001(\005\022\020\n\010msg" + - "_type\030\002 \001(\r\022\023\n\013msg_version\030\003 \001(\t\022\017\n\007msg_" + + "_type\030\002 \001(\r\022\023\n\013msg_version\030\003 \001(\014\022\017\n\007msg_" + "seq\030\004 \001(\r\022\017\n\007msg_len\030\005 \001(\r\022\017\n\007src_mac\030\006 " + "\001(\004\022\017\n\007dst_mac\030\007 \001(\004\022\017\n\007vlan_id\030\010 \001(\r\022\013\n" + "\003tos\030\t \001(\r\022\024\n\014retran_count\030\n \001(\r\022\023\n\013rese" + @@ -4970,9 +4286,9 @@ public final class BussFlowDbOuterClass { "protocol\030\r \001(\r\022\026\n\016response_bytes\030\016 \001(\r\022\025" + "\n\rrequest_bytes\030\017 \001(\r\022\030\n\020response_packet" + "s\030\020 \001(\r\022\027\n\017request_packets\030\021 \001(\r\022\017\n\007seq_" + - "ack\030\022 \001(\t\022\024\n\014recog_status\030\023 \001(\r\022\020\n\010probe" + - "_if\030\024 \001(\r\022\017\n\007channel\030\025 \001(\t\022\016\n\006dbname\030\026 \001" + - "(\t\022\'\n\nrequest_ip\030\027 \001(\0132\023.dataflow.IPAddr" + + "ack\030\022 \001(\014\022\024\n\014recog_status\030\023 \001(\r\022\020\n\010probe" + + "_if\030\024 \001(\r\022\017\n\007channel\030\025 \001(\014\022\016\n\006dbname\030\026 \001" + + "(\014\022\'\n\nrequest_ip\030\027 \001(\0132\023.dataflow.IPAddr" + "ess\022\024\n\014request_port\030\030 \001(\r\022(\n\013response_ip" + "\030\031 \001(\0132\023.dataflow.IPAddress\022\025\n\rresponse_" + "port\030\032 \001(\r\022\016\n\006status\030\033 \001(\003\022\035\n\025server_tra" + @@ -4988,9 +4304,9 @@ public final class BussFlowDbOuterClass { "_uncomplete\030\' \001(\005\022\021\n\ttime_flag\030( \001(\r\022\017\n\007" + "sql_len\030) \001(\r\022\026\n\016detail_msg_len\030* \001(\r\022\017\n" + "\007req_len\030+ \001(\r\022\017\n\007res_len\030, \001(\r\022\024\n\014reser" + - "ved_len\030- \001(\r\022\013\n\003sql\030. \001(\t\022\035\n\025bussiness_" + - "detail_mesg\030/ \001(\t\022\020\n\010req_data\0300 \001(\t\022\020\n\010r" + - "es_data\0301 \001(\t\022\020\n\010reserved\0302 \001(\tB<\n#com.y" + + "ved_len\030- \001(\r\022\013\n\003sql\030. \001(\014\022\035\n\025bussiness_" + + "detail_mesg\030/ \001(\014\022\020\n\010req_data\0300 \001(\014\022\020\n\010r" + + "es_data\0301 \001(\014\022\020\n\010reserved\0302 \001(\014B<\n#com.y" + "uandian.dataflow.proto.msgtypeP\000Z\023../grp" + "c-gen;grpcgenb\006proto3" }; diff --git a/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowExternalOuterClass.java b/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowExternalOuterClass.java index bb62a1b..739d506 100644 --- a/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowExternalOuterClass.java +++ b/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowExternalOuterClass.java @@ -179,100 +179,52 @@ public final class BussFlowExternalOuterClass { int getRemainLen(); /** - * string busi_code = 24; + * bytes busi_code = 24; * @return The busiCode. */ - java.lang.String getBusiCode(); - /** - * string busi_code = 24; - * @return The bytes for busiCode. - */ - com.google.protobuf.ByteString - getBusiCodeBytes(); + com.google.protobuf.ByteString getBusiCode(); /** - * string sessionid = 25; + * bytes sessionid = 25; * @return The sessionid. */ - java.lang.String getSessionid(); - /** - * string sessionid = 25; - * @return The bytes for sessionid. - */ - com.google.protobuf.ByteString - getSessionidBytes(); + com.google.protobuf.ByteString getSessionid(); /** - * string req_data = 26; + * bytes req_data = 26; * @return The reqData. */ - java.lang.String getReqData(); - /** - * string req_data = 26; - * @return The bytes for reqData. - */ - com.google.protobuf.ByteString - getReqDataBytes(); + com.google.protobuf.ByteString getReqData(); /** - * string res_data = 27; + * bytes res_data = 27; * @return The resData. */ - java.lang.String getResData(); - /** - * string res_data = 27; - * @return The bytes for resData. - */ - com.google.protobuf.ByteString - getResDataBytes(); + com.google.protobuf.ByteString getResData(); /** - * string busi_msg = 28; + * bytes busi_msg = 28; * @return The busiMsg. */ - java.lang.String getBusiMsg(); - /** - * string busi_msg = 28; - * @return The bytes for busiMsg. - */ - com.google.protobuf.ByteString - getBusiMsgBytes(); + com.google.protobuf.ByteString getBusiMsg(); /** - * string busi_key_msg = 29; + * bytes busi_key_msg = 29; * @return The busiKeyMsg. */ - java.lang.String getBusiKeyMsg(); - /** - * string busi_key_msg = 29; - * @return The bytes for busiKeyMsg. - */ - com.google.protobuf.ByteString - getBusiKeyMsgBytes(); + com.google.protobuf.ByteString getBusiKeyMsg(); /** - * string busi_detail_msg = 30; + * bytes busi_detail_msg = 30; * @return The busiDetailMsg. */ - java.lang.String getBusiDetailMsg(); - /** - * string busi_detail_msg = 30; - * @return The bytes for busiDetailMsg. - */ - com.google.protobuf.ByteString - getBusiDetailMsgBytes(); + com.google.protobuf.ByteString getBusiDetailMsg(); /** - * string remain_data = 31; + * bytes remain_data = 31; * @return The remainData. */ - java.lang.String getRemainData(); - /** - * string remain_data = 31; - * @return The bytes for remainData. - */ - com.google.protobuf.ByteString - getRemainDataBytes(); + com.google.protobuf.ByteString getRemainData(); } /** * Protobuf type {@code dataflow.BussFlowExternal} @@ -287,14 +239,14 @@ public final class BussFlowExternalOuterClass { super(builder); } private BussFlowExternal() { - busiCode_ = ""; - sessionid_ = ""; - reqData_ = ""; - resData_ = ""; - busiMsg_ = ""; - busiKeyMsg_ = ""; - busiDetailMsg_ = ""; - remainData_ = ""; + busiCode_ = com.google.protobuf.ByteString.EMPTY; + sessionid_ = com.google.protobuf.ByteString.EMPTY; + reqData_ = com.google.protobuf.ByteString.EMPTY; + resData_ = com.google.protobuf.ByteString.EMPTY; + busiMsg_ = com.google.protobuf.ByteString.EMPTY; + busiKeyMsg_ = com.google.protobuf.ByteString.EMPTY; + busiDetailMsg_ = com.google.protobuf.ByteString.EMPTY; + remainData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @@ -459,51 +411,43 @@ public final class BussFlowExternalOuterClass { break; } case 194: { - java.lang.String s = input.readStringRequireUtf8(); - busiCode_ = s; + busiCode_ = input.readBytes(); break; } case 202: { - java.lang.String s = input.readStringRequireUtf8(); - sessionid_ = s; + sessionid_ = input.readBytes(); break; } case 210: { - java.lang.String s = input.readStringRequireUtf8(); - reqData_ = s; + reqData_ = input.readBytes(); break; } case 218: { - java.lang.String s = input.readStringRequireUtf8(); - resData_ = s; + resData_ = input.readBytes(); break; } case 226: { - java.lang.String s = input.readStringRequireUtf8(); - busiMsg_ = s; + busiMsg_ = input.readBytes(); break; } case 234: { - java.lang.String s = input.readStringRequireUtf8(); - busiKeyMsg_ = s; + busiKeyMsg_ = input.readBytes(); break; } case 242: { - java.lang.String s = input.readStringRequireUtf8(); - busiDetailMsg_ = s; + busiDetailMsg_ = input.readBytes(); break; } case 250: { - java.lang.String s = input.readStringRequireUtf8(); - remainData_ = s; + remainData_ = input.readBytes(); break; } default: { @@ -828,307 +772,91 @@ public final class BussFlowExternalOuterClass { } public static final int BUSI_CODE_FIELD_NUMBER = 24; - private volatile java.lang.Object busiCode_; + private com.google.protobuf.ByteString busiCode_; /** - * string busi_code = 24; + * bytes busi_code = 24; * @return The busiCode. */ @java.lang.Override - public java.lang.String getBusiCode() { - java.lang.Object ref = busiCode_; - 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(); - busiCode_ = s; - return s; - } - } - /** - * string busi_code = 24; - * @return The bytes for busiCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBusiCodeBytes() { - java.lang.Object ref = busiCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - busiCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getBusiCode() { + return busiCode_; } public static final int SESSIONID_FIELD_NUMBER = 25; - private volatile java.lang.Object sessionid_; + private com.google.protobuf.ByteString sessionid_; /** - * string sessionid = 25; + * bytes sessionid = 25; * @return The sessionid. */ @java.lang.Override - public java.lang.String getSessionid() { - java.lang.Object ref = sessionid_; - 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(); - sessionid_ = s; - return s; - } - } - /** - * string sessionid = 25; - * @return The bytes for sessionid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSessionidBytes() { - java.lang.Object ref = sessionid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sessionid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getSessionid() { + return sessionid_; } public static final int REQ_DATA_FIELD_NUMBER = 26; - private volatile java.lang.Object reqData_; + private com.google.protobuf.ByteString reqData_; /** - * string req_data = 26; + * bytes req_data = 26; * @return The reqData. */ @java.lang.Override - public java.lang.String getReqData() { - java.lang.Object ref = reqData_; - 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(); - reqData_ = s; - return s; - } - } - /** - * string req_data = 26; - * @return The bytes for reqData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReqDataBytes() { - java.lang.Object ref = reqData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reqData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getReqData() { + return reqData_; } public static final int RES_DATA_FIELD_NUMBER = 27; - private volatile java.lang.Object resData_; + private com.google.protobuf.ByteString resData_; /** - * string res_data = 27; + * bytes res_data = 27; * @return The resData. */ @java.lang.Override - public java.lang.String getResData() { - java.lang.Object ref = resData_; - 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(); - resData_ = s; - return s; - } - } - /** - * string res_data = 27; - * @return The bytes for resData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResDataBytes() { - java.lang.Object ref = resData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getResData() { + return resData_; } public static final int BUSI_MSG_FIELD_NUMBER = 28; - private volatile java.lang.Object busiMsg_; + private com.google.protobuf.ByteString busiMsg_; /** - * string busi_msg = 28; + * bytes busi_msg = 28; * @return The busiMsg. */ @java.lang.Override - public java.lang.String getBusiMsg() { - java.lang.Object ref = busiMsg_; - 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(); - busiMsg_ = s; - return s; - } - } - /** - * string busi_msg = 28; - * @return The bytes for busiMsg. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBusiMsgBytes() { - java.lang.Object ref = busiMsg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - busiMsg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getBusiMsg() { + return busiMsg_; } public static final int BUSI_KEY_MSG_FIELD_NUMBER = 29; - private volatile java.lang.Object busiKeyMsg_; + private com.google.protobuf.ByteString busiKeyMsg_; /** - * string busi_key_msg = 29; + * bytes busi_key_msg = 29; * @return The busiKeyMsg. */ @java.lang.Override - public java.lang.String getBusiKeyMsg() { - java.lang.Object ref = busiKeyMsg_; - 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(); - busiKeyMsg_ = s; - return s; - } - } - /** - * string busi_key_msg = 29; - * @return The bytes for busiKeyMsg. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBusiKeyMsgBytes() { - java.lang.Object ref = busiKeyMsg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - busiKeyMsg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getBusiKeyMsg() { + return busiKeyMsg_; } public static final int BUSI_DETAIL_MSG_FIELD_NUMBER = 30; - private volatile java.lang.Object busiDetailMsg_; + private com.google.protobuf.ByteString busiDetailMsg_; /** - * string busi_detail_msg = 30; + * bytes busi_detail_msg = 30; * @return The busiDetailMsg. */ @java.lang.Override - public java.lang.String getBusiDetailMsg() { - java.lang.Object ref = busiDetailMsg_; - 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(); - busiDetailMsg_ = s; - return s; - } - } - /** - * string busi_detail_msg = 30; - * @return The bytes for busiDetailMsg. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBusiDetailMsgBytes() { - java.lang.Object ref = busiDetailMsg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - busiDetailMsg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getBusiDetailMsg() { + return busiDetailMsg_; } public static final int REMAIN_DATA_FIELD_NUMBER = 31; - private volatile java.lang.Object remainData_; + private com.google.protobuf.ByteString remainData_; /** - * string remain_data = 31; + * bytes remain_data = 31; * @return The remainData. */ @java.lang.Override - public java.lang.String getRemainData() { - java.lang.Object ref = remainData_; - 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(); - remainData_ = s; - return s; - } - } - /** - * string remain_data = 31; - * @return The bytes for remainData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRemainDataBytes() { - java.lang.Object ref = remainData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remainData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getRemainData() { + return remainData_; } private byte memoizedIsInitialized = -1; @@ -1214,29 +942,29 @@ public final class BussFlowExternalOuterClass { if (remainLen_ != 0) { output.writeUInt32(23, remainLen_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busiCode_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 24, busiCode_); + if (!busiCode_.isEmpty()) { + output.writeBytes(24, busiCode_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 25, sessionid_); + if (!sessionid_.isEmpty()) { + output.writeBytes(25, sessionid_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 26, reqData_); + if (!reqData_.isEmpty()) { + output.writeBytes(26, reqData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 27, resData_); + if (!resData_.isEmpty()) { + output.writeBytes(27, resData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busiMsg_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 28, busiMsg_); + if (!busiMsg_.isEmpty()) { + output.writeBytes(28, busiMsg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busiKeyMsg_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 29, busiKeyMsg_); + if (!busiKeyMsg_.isEmpty()) { + output.writeBytes(29, busiKeyMsg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busiDetailMsg_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 30, busiDetailMsg_); + if (!busiDetailMsg_.isEmpty()) { + output.writeBytes(30, busiDetailMsg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remainData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 31, remainData_); + if (!remainData_.isEmpty()) { + output.writeBytes(31, remainData_); } unknownFields.writeTo(output); } @@ -1339,29 +1067,37 @@ public final class BussFlowExternalOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(23, remainLen_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busiCode_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, busiCode_); + if (!busiCode_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(24, busiCode_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, sessionid_); + if (!sessionid_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(25, sessionid_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, reqData_); + if (!reqData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(26, reqData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, resData_); + if (!resData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(27, resData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busiMsg_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, busiMsg_); + if (!busiMsg_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(28, busiMsg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busiKeyMsg_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, busiKeyMsg_); + if (!busiKeyMsg_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(29, busiKeyMsg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busiDetailMsg_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, busiDetailMsg_); + if (!busiDetailMsg_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(30, busiDetailMsg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remainData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, remainData_); + if (!remainData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(31, remainData_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1712,21 +1448,21 @@ public final class BussFlowExternalOuterClass { remainLen_ = 0; - busiCode_ = ""; + busiCode_ = com.google.protobuf.ByteString.EMPTY; - sessionid_ = ""; + sessionid_ = com.google.protobuf.ByteString.EMPTY; - reqData_ = ""; + reqData_ = com.google.protobuf.ByteString.EMPTY; - resData_ = ""; + resData_ = com.google.protobuf.ByteString.EMPTY; - busiMsg_ = ""; + busiMsg_ = com.google.protobuf.ByteString.EMPTY; - busiKeyMsg_ = ""; + busiKeyMsg_ = com.google.protobuf.ByteString.EMPTY; - busiDetailMsg_ = ""; + busiDetailMsg_ = com.google.protobuf.ByteString.EMPTY; - remainData_ = ""; + remainData_ = com.google.protobuf.ByteString.EMPTY; return this; } @@ -1910,37 +1646,29 @@ public final class BussFlowExternalOuterClass { if (other.getRemainLen() != 0) { setRemainLen(other.getRemainLen()); } - if (!other.getBusiCode().isEmpty()) { - busiCode_ = other.busiCode_; - onChanged(); + if (other.getBusiCode() != com.google.protobuf.ByteString.EMPTY) { + setBusiCode(other.getBusiCode()); } - if (!other.getSessionid().isEmpty()) { - sessionid_ = other.sessionid_; - onChanged(); + if (other.getSessionid() != com.google.protobuf.ByteString.EMPTY) { + setSessionid(other.getSessionid()); } - if (!other.getReqData().isEmpty()) { - reqData_ = other.reqData_; - onChanged(); + if (other.getReqData() != com.google.protobuf.ByteString.EMPTY) { + setReqData(other.getReqData()); } - if (!other.getResData().isEmpty()) { - resData_ = other.resData_; - onChanged(); + if (other.getResData() != com.google.protobuf.ByteString.EMPTY) { + setResData(other.getResData()); } - if (!other.getBusiMsg().isEmpty()) { - busiMsg_ = other.busiMsg_; - onChanged(); + if (other.getBusiMsg() != com.google.protobuf.ByteString.EMPTY) { + setBusiMsg(other.getBusiMsg()); } - if (!other.getBusiKeyMsg().isEmpty()) { - busiKeyMsg_ = other.busiKeyMsg_; - onChanged(); + if (other.getBusiKeyMsg() != com.google.protobuf.ByteString.EMPTY) { + setBusiKeyMsg(other.getBusiKeyMsg()); } - if (!other.getBusiDetailMsg().isEmpty()) { - busiDetailMsg_ = other.busiDetailMsg_; - onChanged(); + if (other.getBusiDetailMsg() != com.google.protobuf.ByteString.EMPTY) { + setBusiDetailMsg(other.getBusiDetailMsg()); } - if (!other.getRemainData().isEmpty()) { - remainData_ = other.remainData_; - onChanged(); + if (other.getRemainData() != com.google.protobuf.ByteString.EMPTY) { + setRemainData(other.getRemainData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2872,47 +2600,21 @@ public final class BussFlowExternalOuterClass { return this; } - private java.lang.Object busiCode_ = ""; + private com.google.protobuf.ByteString busiCode_ = com.google.protobuf.ByteString.EMPTY; /** - * string busi_code = 24; + * bytes busi_code = 24; * @return The busiCode. */ - public java.lang.String getBusiCode() { - java.lang.Object ref = busiCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - busiCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getBusiCode() { + return busiCode_; } /** - * string busi_code = 24; - * @return The bytes for busiCode. - */ - public com.google.protobuf.ByteString - getBusiCodeBytes() { - java.lang.Object ref = busiCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - busiCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string busi_code = 24; + * bytes busi_code = 24; * @param value The busiCode to set. * @return This builder for chaining. */ - public Builder setBusiCode( - java.lang.String value) { + public Builder setBusiCode(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -2922,7 +2624,7 @@ public final class BussFlowExternalOuterClass { return this; } /** - * string busi_code = 24; + * bytes busi_code = 24; * @return This builder for chaining. */ public Builder clearBusiCode() { @@ -2931,64 +2633,22 @@ public final class BussFlowExternalOuterClass { onChanged(); return this; } - /** - * string busi_code = 24; - * @param value The bytes for busiCode to set. - * @return This builder for chaining. - */ - public Builder setBusiCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - busiCode_ = value; - onChanged(); - return this; - } - private java.lang.Object sessionid_ = ""; + private com.google.protobuf.ByteString sessionid_ = com.google.protobuf.ByteString.EMPTY; /** - * string sessionid = 25; + * bytes sessionid = 25; * @return The sessionid. */ - public java.lang.String getSessionid() { - java.lang.Object ref = sessionid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sessionid_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getSessionid() { + return sessionid_; } /** - * string sessionid = 25; - * @return The bytes for sessionid. - */ - public com.google.protobuf.ByteString - getSessionidBytes() { - java.lang.Object ref = sessionid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sessionid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sessionid = 25; + * bytes sessionid = 25; * @param value The sessionid to set. * @return This builder for chaining. */ - public Builder setSessionid( - java.lang.String value) { + public Builder setSessionid(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -2998,7 +2658,7 @@ public final class BussFlowExternalOuterClass { return this; } /** - * string sessionid = 25; + * bytes sessionid = 25; * @return This builder for chaining. */ public Builder clearSessionid() { @@ -3007,64 +2667,22 @@ public final class BussFlowExternalOuterClass { onChanged(); return this; } - /** - * string sessionid = 25; - * @param value The bytes for sessionid to set. - * @return This builder for chaining. - */ - public Builder setSessionidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sessionid_ = value; - onChanged(); - return this; - } - private java.lang.Object reqData_ = ""; + private com.google.protobuf.ByteString reqData_ = com.google.protobuf.ByteString.EMPTY; /** - * string req_data = 26; + * bytes req_data = 26; * @return The reqData. */ - public java.lang.String getReqData() { - java.lang.Object ref = reqData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reqData_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getReqData() { + return reqData_; } /** - * string req_data = 26; - * @return The bytes for reqData. - */ - public com.google.protobuf.ByteString - getReqDataBytes() { - java.lang.Object ref = reqData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reqData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string req_data = 26; + * bytes req_data = 26; * @param value The reqData to set. * @return This builder for chaining. */ - public Builder setReqData( - java.lang.String value) { + public Builder setReqData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -3074,7 +2692,7 @@ public final class BussFlowExternalOuterClass { return this; } /** - * string req_data = 26; + * bytes req_data = 26; * @return This builder for chaining. */ public Builder clearReqData() { @@ -3083,64 +2701,22 @@ public final class BussFlowExternalOuterClass { onChanged(); return this; } - /** - * string req_data = 26; - * @param value The bytes for reqData to set. - * @return This builder for chaining. - */ - public Builder setReqDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reqData_ = value; - onChanged(); - return this; - } - private java.lang.Object resData_ = ""; + private com.google.protobuf.ByteString resData_ = com.google.protobuf.ByteString.EMPTY; /** - * string res_data = 27; + * bytes res_data = 27; * @return The resData. */ - public java.lang.String getResData() { - java.lang.Object ref = resData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resData_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getResData() { + return resData_; } /** - * string res_data = 27; - * @return The bytes for resData. - */ - public com.google.protobuf.ByteString - getResDataBytes() { - java.lang.Object ref = resData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string res_data = 27; + * bytes res_data = 27; * @param value The resData to set. * @return This builder for chaining. */ - public Builder setResData( - java.lang.String value) { + public Builder setResData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -3150,7 +2726,7 @@ public final class BussFlowExternalOuterClass { return this; } /** - * string res_data = 27; + * bytes res_data = 27; * @return This builder for chaining. */ public Builder clearResData() { @@ -3159,64 +2735,22 @@ public final class BussFlowExternalOuterClass { onChanged(); return this; } - /** - * string res_data = 27; - * @param value The bytes for resData to set. - * @return This builder for chaining. - */ - public Builder setResDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resData_ = value; - onChanged(); - return this; - } - private java.lang.Object busiMsg_ = ""; + private com.google.protobuf.ByteString busiMsg_ = com.google.protobuf.ByteString.EMPTY; /** - * string busi_msg = 28; + * bytes busi_msg = 28; * @return The busiMsg. */ - public java.lang.String getBusiMsg() { - java.lang.Object ref = busiMsg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - busiMsg_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getBusiMsg() { + return busiMsg_; } /** - * string busi_msg = 28; - * @return The bytes for busiMsg. - */ - public com.google.protobuf.ByteString - getBusiMsgBytes() { - java.lang.Object ref = busiMsg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - busiMsg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string busi_msg = 28; + * bytes busi_msg = 28; * @param value The busiMsg to set. * @return This builder for chaining. */ - public Builder setBusiMsg( - java.lang.String value) { + public Builder setBusiMsg(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -3226,7 +2760,7 @@ public final class BussFlowExternalOuterClass { return this; } /** - * string busi_msg = 28; + * bytes busi_msg = 28; * @return This builder for chaining. */ public Builder clearBusiMsg() { @@ -3235,64 +2769,22 @@ public final class BussFlowExternalOuterClass { onChanged(); return this; } - /** - * string busi_msg = 28; - * @param value The bytes for busiMsg to set. - * @return This builder for chaining. - */ - public Builder setBusiMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - busiMsg_ = value; - onChanged(); - return this; - } - private java.lang.Object busiKeyMsg_ = ""; + private com.google.protobuf.ByteString busiKeyMsg_ = com.google.protobuf.ByteString.EMPTY; /** - * string busi_key_msg = 29; + * bytes busi_key_msg = 29; * @return The busiKeyMsg. */ - public java.lang.String getBusiKeyMsg() { - java.lang.Object ref = busiKeyMsg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - busiKeyMsg_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getBusiKeyMsg() { + return busiKeyMsg_; } /** - * string busi_key_msg = 29; - * @return The bytes for busiKeyMsg. - */ - public com.google.protobuf.ByteString - getBusiKeyMsgBytes() { - java.lang.Object ref = busiKeyMsg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - busiKeyMsg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string busi_key_msg = 29; + * bytes busi_key_msg = 29; * @param value The busiKeyMsg to set. * @return This builder for chaining. */ - public Builder setBusiKeyMsg( - java.lang.String value) { + public Builder setBusiKeyMsg(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -3302,7 +2794,7 @@ public final class BussFlowExternalOuterClass { return this; } /** - * string busi_key_msg = 29; + * bytes busi_key_msg = 29; * @return This builder for chaining. */ public Builder clearBusiKeyMsg() { @@ -3311,64 +2803,22 @@ public final class BussFlowExternalOuterClass { onChanged(); return this; } - /** - * string busi_key_msg = 29; - * @param value The bytes for busiKeyMsg to set. - * @return This builder for chaining. - */ - public Builder setBusiKeyMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - busiKeyMsg_ = value; - onChanged(); - return this; - } - private java.lang.Object busiDetailMsg_ = ""; + private com.google.protobuf.ByteString busiDetailMsg_ = com.google.protobuf.ByteString.EMPTY; /** - * string busi_detail_msg = 30; + * bytes busi_detail_msg = 30; * @return The busiDetailMsg. */ - public java.lang.String getBusiDetailMsg() { - java.lang.Object ref = busiDetailMsg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - busiDetailMsg_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getBusiDetailMsg() { + return busiDetailMsg_; } /** - * string busi_detail_msg = 30; - * @return The bytes for busiDetailMsg. - */ - public com.google.protobuf.ByteString - getBusiDetailMsgBytes() { - java.lang.Object ref = busiDetailMsg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - busiDetailMsg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string busi_detail_msg = 30; + * bytes busi_detail_msg = 30; * @param value The busiDetailMsg to set. * @return This builder for chaining. */ - public Builder setBusiDetailMsg( - java.lang.String value) { + public Builder setBusiDetailMsg(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -3378,7 +2828,7 @@ public final class BussFlowExternalOuterClass { return this; } /** - * string busi_detail_msg = 30; + * bytes busi_detail_msg = 30; * @return This builder for chaining. */ public Builder clearBusiDetailMsg() { @@ -3387,64 +2837,22 @@ public final class BussFlowExternalOuterClass { onChanged(); return this; } - /** - * string busi_detail_msg = 30; - * @param value The bytes for busiDetailMsg to set. - * @return This builder for chaining. - */ - public Builder setBusiDetailMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - busiDetailMsg_ = value; - onChanged(); - return this; - } - private java.lang.Object remainData_ = ""; + private com.google.protobuf.ByteString remainData_ = com.google.protobuf.ByteString.EMPTY; /** - * string remain_data = 31; + * bytes remain_data = 31; * @return The remainData. */ - public java.lang.String getRemainData() { - java.lang.Object ref = remainData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remainData_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getRemainData() { + return remainData_; } /** - * string remain_data = 31; - * @return The bytes for remainData. - */ - public com.google.protobuf.ByteString - getRemainDataBytes() { - java.lang.Object ref = remainData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remainData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string remain_data = 31; + * bytes remain_data = 31; * @param value The remainData to set. * @return This builder for chaining. */ - public Builder setRemainData( - java.lang.String value) { + public Builder setRemainData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -3454,7 +2862,7 @@ public final class BussFlowExternalOuterClass { return this; } /** - * string remain_data = 31; + * bytes remain_data = 31; * @return This builder for chaining. */ public Builder clearRemainData() { @@ -3463,22 +2871,6 @@ public final class BussFlowExternalOuterClass { onChanged(); return this; } - /** - * string remain_data = 31; - * @param value The bytes for remainData to set. - * @return This builder for chaining. - */ - public Builder setRemainDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - remainData_ = value; - onChanged(); - return this; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3561,10 +2953,10 @@ public final class BussFlowExternalOuterClass { "\n\007res_len\030\023 \001(\r\022\024\n\014busi_msg_len\030\024 \001(\r\022\023\n" + "\013key_msg_len\030\025 \001(\r\022\026\n\016detail_msg_len\030\026 \001" + "(\r\022\022\n\nremain_len\030\027 \001(\r\022\021\n\tbusi_code\030\030 \001(" + - "\t\022\021\n\tsessionid\030\031 \001(\t\022\020\n\010req_data\030\032 \001(\t\022\020" + - "\n\010res_data\030\033 \001(\t\022\020\n\010busi_msg\030\034 \001(\t\022\024\n\014bu" + - "si_key_msg\030\035 \001(\t\022\027\n\017busi_detail_msg\030\036 \001(" + - "\t\022\023\n\013remain_data\030\037 \001(\tB<\n#com.yuandian.d" + + "\014\022\021\n\tsessionid\030\031 \001(\014\022\020\n\010req_data\030\032 \001(\014\022\020" + + "\n\010res_data\030\033 \001(\014\022\020\n\010busi_msg\030\034 \001(\014\022\024\n\014bu" + + "si_key_msg\030\035 \001(\014\022\027\n\017busi_detail_msg\030\036 \001(" + + "\014\022\023\n\013remain_data\030\037 \001(\014B<\n#com.yuandian.d" + "ataflow.proto.msgtypeP\000Z\023../grpc-gen;grp" + "cgenb\006proto3" }; diff --git a/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowMiddOuterClass.java b/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowMiddOuterClass.java index 097ff06..0bcd280 100644 --- a/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowMiddOuterClass.java +++ b/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowMiddOuterClass.java @@ -43,20 +43,10 @@ public final class BussFlowMiddOuterClass { *数据库版本 * * - * string msg_version = 3; + * bytes msg_version = 3; * @return The msgVersion. */ - java.lang.String getMsgVersion(); - /** - *
-     *数据库版本
-     * 
- * - * string msg_version = 3; - * @return The bytes for msgVersion. - */ - com.google.protobuf.ByteString - getMsgVersionBytes(); + com.google.protobuf.ByteString getMsgVersion(); /** *
@@ -199,20 +189,10 @@ public final class BussFlowMiddOuterClass {
      *序列号和响应序号
      * 
* - * string seq_ack = 18; + * bytes seq_ack = 18; * @return The seqAck. */ - java.lang.String getSeqAck(); - /** - *
-     *序列号和响应序号
-     * 
- * - * string seq_ack = 18; - * @return The bytes for seqAck. - */ - com.google.protobuf.ByteString - getSeqAckBytes(); + com.google.protobuf.ByteString getSeqAck(); /** * uint32 recog_status = 19; @@ -235,20 +215,10 @@ public final class BussFlowMiddOuterClass { *通道 * * - * string channel = 21; + * bytes channel = 21; * @return The channel. */ - java.lang.String getChannel(); - /** - *
-     *通道
-     * 
- * - * string channel = 21; - * @return The bytes for channel. - */ - com.google.protobuf.ByteString - getChannelBytes(); + com.google.protobuf.ByteString getChannel(); /** *
@@ -531,112 +501,56 @@ public final class BussFlowMiddOuterClass {
      *业务纤细信息
      * 
* - * string bussiness_detail_mesg = 47; + * bytes bussiness_detail_mesg = 47; * @return The bussinessDetailMesg. */ - java.lang.String getBussinessDetailMesg(); - /** - *
-     *业务纤细信息
-     * 
- * - * string bussiness_detail_mesg = 47; - * @return The bytes for bussinessDetailMesg. - */ - com.google.protobuf.ByteString - getBussinessDetailMesgBytes(); + com.google.protobuf.ByteString getBussinessDetailMesg(); /** *
      *业务关键字
      * 
* - * string bussiness_key_mesg = 48; + * bytes bussiness_key_mesg = 48; * @return The bussinessKeyMesg. */ - java.lang.String getBussinessKeyMesg(); - /** - *
-     *业务关键字
-     * 
- * - * string bussiness_key_mesg = 48; - * @return The bytes for bussinessKeyMesg. - */ - com.google.protobuf.ByteString - getBussinessKeyMesgBytes(); + com.google.protobuf.ByteString getBussinessKeyMesg(); /** *
      *应用名称
      * 
* - * string api = 49; + * bytes api = 49; * @return The api. */ - java.lang.String getApi(); - /** - *
-     *应用名称
-     * 
- * - * string api = 49; - * @return The bytes for api. - */ - com.google.protobuf.ByteString - getApiBytes(); + com.google.protobuf.ByteString getApi(); /** *
      *请求详情报文
      * 
* - * string req_data = 50; + * bytes req_data = 50; * @return The reqData. */ - java.lang.String getReqData(); - /** - *
-     *请求详情报文
-     * 
- * - * string req_data = 50; - * @return The bytes for reqData. - */ - com.google.protobuf.ByteString - getReqDataBytes(); + com.google.protobuf.ByteString getReqData(); /** *
      *响应详情报文
      * 
* - * string res_data = 51; + * bytes res_data = 51; * @return The resData. */ - java.lang.String getResData(); - /** - *
-     *响应详情报文
-     * 
- * - * string res_data = 51; - * @return The bytes for resData. - */ - com.google.protobuf.ByteString - getResDataBytes(); + com.google.protobuf.ByteString getResData(); /** - * string remain_data = 52; + * bytes remain_data = 52; * @return The remainData. */ - java.lang.String getRemainData(); - /** - * string remain_data = 52; - * @return The bytes for remainData. - */ - com.google.protobuf.ByteString - getRemainDataBytes(); + com.google.protobuf.ByteString getRemainData(); } /** * Protobuf type {@code dataflow.BussFlowMidd} @@ -651,15 +565,15 @@ public final class BussFlowMiddOuterClass { super(builder); } private BussFlowMidd() { - msgVersion_ = ""; - seqAck_ = ""; - channel_ = ""; - bussinessDetailMesg_ = ""; - bussinessKeyMesg_ = ""; - api_ = ""; - reqData_ = ""; - resData_ = ""; - remainData_ = ""; + msgVersion_ = com.google.protobuf.ByteString.EMPTY; + seqAck_ = com.google.protobuf.ByteString.EMPTY; + channel_ = com.google.protobuf.ByteString.EMPTY; + bussinessDetailMesg_ = com.google.protobuf.ByteString.EMPTY; + bussinessKeyMesg_ = com.google.protobuf.ByteString.EMPTY; + api_ = com.google.protobuf.ByteString.EMPTY; + reqData_ = com.google.protobuf.ByteString.EMPTY; + resData_ = com.google.protobuf.ByteString.EMPTY; + remainData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @@ -703,9 +617,8 @@ public final class BussFlowMiddOuterClass { break; } case 26: { - java.lang.String s = input.readStringRequireUtf8(); - msgVersion_ = s; + msgVersion_ = input.readBytes(); break; } case 32: { @@ -779,9 +692,8 @@ public final class BussFlowMiddOuterClass { break; } case 146: { - java.lang.String s = input.readStringRequireUtf8(); - seqAck_ = s; + seqAck_ = input.readBytes(); break; } case 152: { @@ -795,9 +707,8 @@ public final class BussFlowMiddOuterClass { break; } case 170: { - java.lang.String s = input.readStringRequireUtf8(); - channel_ = s; + channel_ = input.readBytes(); break; } case 178: { @@ -942,39 +853,33 @@ public final class BussFlowMiddOuterClass { break; } case 378: { - java.lang.String s = input.readStringRequireUtf8(); - bussinessDetailMesg_ = s; + bussinessDetailMesg_ = input.readBytes(); break; } case 386: { - java.lang.String s = input.readStringRequireUtf8(); - bussinessKeyMesg_ = s; + bussinessKeyMesg_ = input.readBytes(); break; } case 394: { - java.lang.String s = input.readStringRequireUtf8(); - api_ = s; + api_ = input.readBytes(); break; } case 402: { - java.lang.String s = input.readStringRequireUtf8(); - reqData_ = s; + reqData_ = input.readBytes(); break; } case 410: { - java.lang.String s = input.readStringRequireUtf8(); - resData_ = s; + resData_ = input.readBytes(); break; } case 418: { - java.lang.String s = input.readStringRequireUtf8(); - remainData_ = s; + remainData_ = input.readBytes(); break; } default: { @@ -1042,49 +947,18 @@ public final class BussFlowMiddOuterClass { } public static final int MSG_VERSION_FIELD_NUMBER = 3; - private volatile java.lang.Object msgVersion_; + private com.google.protobuf.ByteString msgVersion_; /** *
      *数据库版本
      * 
* - * string msg_version = 3; + * bytes msg_version = 3; * @return The msgVersion. */ @java.lang.Override - public java.lang.String getMsgVersion() { - java.lang.Object ref = msgVersion_; - 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(); - msgVersion_ = s; - return s; - } - } - /** - *
-     *数据库版本
-     * 
- * - * string msg_version = 3; - * @return The bytes for msgVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMsgVersionBytes() { - java.lang.Object ref = msgVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msgVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getMsgVersion() { + return msgVersion_; } public static final int MSG_SEQ_FIELD_NUMBER = 4; @@ -1294,49 +1168,18 @@ public final class BussFlowMiddOuterClass { } public static final int SEQ_ACK_FIELD_NUMBER = 18; - private volatile java.lang.Object seqAck_; + private com.google.protobuf.ByteString seqAck_; /** *
      *序列号和响应序号
      * 
* - * string seq_ack = 18; + * bytes seq_ack = 18; * @return The seqAck. */ @java.lang.Override - public java.lang.String getSeqAck() { - java.lang.Object ref = seqAck_; - 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(); - seqAck_ = s; - return s; - } - } - /** - *
-     *序列号和响应序号
-     * 
- * - * string seq_ack = 18; - * @return The bytes for seqAck. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSeqAckBytes() { - java.lang.Object ref = seqAck_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - seqAck_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getSeqAck() { + return seqAck_; } public static final int RECOG_STATUS_FIELD_NUMBER = 19; @@ -1366,49 +1209,18 @@ public final class BussFlowMiddOuterClass { } public static final int CHANNEL_FIELD_NUMBER = 21; - private volatile java.lang.Object channel_; + private com.google.protobuf.ByteString channel_; /** *
      *通道
      * 
* - * string channel = 21; + * bytes channel = 21; * @return The channel. */ @java.lang.Override - public java.lang.String getChannel() { - java.lang.Object ref = channel_; - 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(); - channel_ = s; - return s; - } - } - /** - *
-     *通道
-     * 
- * - * string channel = 21; - * @return The bytes for channel. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getChannelBytes() { - java.lang.Object ref = channel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getChannel() { + return channel_; } public static final int REQUEST_IP_FIELD_NUMBER = 22; @@ -1825,271 +1637,89 @@ public final class BussFlowMiddOuterClass { } public static final int BUSSINESS_DETAIL_MESG_FIELD_NUMBER = 47; - private volatile java.lang.Object bussinessDetailMesg_; + private com.google.protobuf.ByteString bussinessDetailMesg_; /** *
      *业务纤细信息
      * 
* - * string bussiness_detail_mesg = 47; + * bytes bussiness_detail_mesg = 47; * @return The bussinessDetailMesg. */ @java.lang.Override - public java.lang.String getBussinessDetailMesg() { - java.lang.Object ref = bussinessDetailMesg_; - 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(); - bussinessDetailMesg_ = s; - return s; - } - } - /** - *
-     *业务纤细信息
-     * 
- * - * string bussiness_detail_mesg = 47; - * @return The bytes for bussinessDetailMesg. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBussinessDetailMesgBytes() { - java.lang.Object ref = bussinessDetailMesg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bussinessDetailMesg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getBussinessDetailMesg() { + return bussinessDetailMesg_; } public static final int BUSSINESS_KEY_MESG_FIELD_NUMBER = 48; - private volatile java.lang.Object bussinessKeyMesg_; + private com.google.protobuf.ByteString bussinessKeyMesg_; /** *
      *业务关键字
      * 
* - * string bussiness_key_mesg = 48; + * bytes bussiness_key_mesg = 48; * @return The bussinessKeyMesg. */ @java.lang.Override - public java.lang.String getBussinessKeyMesg() { - java.lang.Object ref = bussinessKeyMesg_; - 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(); - bussinessKeyMesg_ = s; - return s; - } - } - /** - *
-     *业务关键字
-     * 
- * - * string bussiness_key_mesg = 48; - * @return The bytes for bussinessKeyMesg. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBussinessKeyMesgBytes() { - java.lang.Object ref = bussinessKeyMesg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bussinessKeyMesg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getBussinessKeyMesg() { + return bussinessKeyMesg_; } public static final int API_FIELD_NUMBER = 49; - private volatile java.lang.Object api_; + private com.google.protobuf.ByteString api_; /** *
      *应用名称
      * 
* - * string api = 49; + * bytes api = 49; * @return The api. */ @java.lang.Override - public java.lang.String getApi() { - java.lang.Object ref = api_; - 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(); - api_ = s; - return s; - } - } - /** - *
-     *应用名称
-     * 
- * - * string api = 49; - * @return The bytes for api. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getApiBytes() { - java.lang.Object ref = api_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - api_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getApi() { + return api_; } public static final int REQ_DATA_FIELD_NUMBER = 50; - private volatile java.lang.Object reqData_; + private com.google.protobuf.ByteString reqData_; /** *
      *请求详情报文
      * 
* - * string req_data = 50; + * bytes req_data = 50; * @return The reqData. */ @java.lang.Override - public java.lang.String getReqData() { - java.lang.Object ref = reqData_; - 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(); - reqData_ = s; - return s; - } - } - /** - *
-     *请求详情报文
-     * 
- * - * string req_data = 50; - * @return The bytes for reqData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReqDataBytes() { - java.lang.Object ref = reqData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reqData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getReqData() { + return reqData_; } public static final int RES_DATA_FIELD_NUMBER = 51; - private volatile java.lang.Object resData_; + private com.google.protobuf.ByteString resData_; /** *
      *响应详情报文
      * 
* - * string res_data = 51; + * bytes res_data = 51; * @return The resData. */ @java.lang.Override - public java.lang.String getResData() { - java.lang.Object ref = resData_; - 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(); - resData_ = s; - return s; - } - } - /** - *
-     *响应详情报文
-     * 
- * - * string res_data = 51; - * @return The bytes for resData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResDataBytes() { - java.lang.Object ref = resData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getResData() { + return resData_; } public static final int REMAIN_DATA_FIELD_NUMBER = 52; - private volatile java.lang.Object remainData_; + private com.google.protobuf.ByteString remainData_; /** - * string remain_data = 52; + * bytes remain_data = 52; * @return The remainData. */ @java.lang.Override - public java.lang.String getRemainData() { - java.lang.Object ref = remainData_; - 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(); - remainData_ = s; - return s; - } - } - /** - * string remain_data = 52; - * @return The bytes for remainData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRemainDataBytes() { - java.lang.Object ref = remainData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remainData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getRemainData() { + return remainData_; } private byte memoizedIsInitialized = -1; @@ -2112,8 +1742,8 @@ public final class BussFlowMiddOuterClass { if (msgType_ != 0) { output.writeUInt32(2, msgType_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msgVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, msgVersion_); + if (!msgVersion_.isEmpty()) { + output.writeBytes(3, msgVersion_); } if (msgSeq_ != 0) { output.writeUInt32(4, msgSeq_); @@ -2157,8 +1787,8 @@ public final class BussFlowMiddOuterClass { if (requestPackets_ != 0) { output.writeUInt32(17, requestPackets_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seqAck_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, seqAck_); + if (!seqAck_.isEmpty()) { + output.writeBytes(18, seqAck_); } if (recogStatus_ != 0) { output.writeUInt32(19, recogStatus_); @@ -2166,8 +1796,8 @@ public final class BussFlowMiddOuterClass { if (probeIf_ != 0) { output.writeUInt32(20, probeIf_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 21, channel_); + if (!channel_.isEmpty()) { + output.writeBytes(21, channel_); } if (requestIp_ != null) { output.writeMessage(22, getRequestIp()); @@ -2244,23 +1874,23 @@ public final class BussFlowMiddOuterClass { if (remainLen_ != 0) { output.writeUInt32(46, remainLen_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bussinessDetailMesg_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 47, bussinessDetailMesg_); + if (!bussinessDetailMesg_.isEmpty()) { + output.writeBytes(47, bussinessDetailMesg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bussinessKeyMesg_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 48, bussinessKeyMesg_); + if (!bussinessKeyMesg_.isEmpty()) { + output.writeBytes(48, bussinessKeyMesg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(api_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 49, api_); + if (!api_.isEmpty()) { + output.writeBytes(49, api_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 50, reqData_); + if (!reqData_.isEmpty()) { + output.writeBytes(50, reqData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 51, resData_); + if (!resData_.isEmpty()) { + output.writeBytes(51, resData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remainData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 52, remainData_); + if (!remainData_.isEmpty()) { + output.writeBytes(52, remainData_); } unknownFields.writeTo(output); } @@ -2279,8 +1909,9 @@ public final class BussFlowMiddOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, msgType_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msgVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, msgVersion_); + if (!msgVersion_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, msgVersion_); } if (msgSeq_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -2338,8 +1969,9 @@ public final class BussFlowMiddOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(17, requestPackets_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seqAck_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, seqAck_); + if (!seqAck_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(18, seqAck_); } if (recogStatus_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -2349,8 +1981,9 @@ public final class BussFlowMiddOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(20, probeIf_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, channel_); + if (!channel_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(21, channel_); } if (requestIp_ != null) { size += com.google.protobuf.CodedOutputStream @@ -2452,23 +2085,29 @@ public final class BussFlowMiddOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(46, remainLen_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bussinessDetailMesg_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(47, bussinessDetailMesg_); + if (!bussinessDetailMesg_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(47, bussinessDetailMesg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bussinessKeyMesg_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(48, bussinessKeyMesg_); + if (!bussinessKeyMesg_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(48, bussinessKeyMesg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(api_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(49, api_); + if (!api_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(49, api_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(50, reqData_); + if (!reqData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(50, reqData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(51, resData_); + if (!resData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(51, resData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remainData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(52, remainData_); + if (!remainData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(52, remainData_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2856,7 +2495,7 @@ public final class BussFlowMiddOuterClass { msgType_ = 0; - msgVersion_ = ""; + msgVersion_ = com.google.protobuf.ByteString.EMPTY; msgSeq_ = 0; @@ -2886,13 +2525,13 @@ public final class BussFlowMiddOuterClass { requestPackets_ = 0; - seqAck_ = ""; + seqAck_ = com.google.protobuf.ByteString.EMPTY; recogStatus_ = 0; probeIf_ = 0; - channel_ = ""; + channel_ = com.google.protobuf.ByteString.EMPTY; if (requestIpBuilder_ == null) { requestIp_ = null; @@ -2952,17 +2591,17 @@ public final class BussFlowMiddOuterClass { remainLen_ = 0; - bussinessDetailMesg_ = ""; + bussinessDetailMesg_ = com.google.protobuf.ByteString.EMPTY; - bussinessKeyMesg_ = ""; + bussinessKeyMesg_ = com.google.protobuf.ByteString.EMPTY; - api_ = ""; + api_ = com.google.protobuf.ByteString.EMPTY; - reqData_ = ""; + reqData_ = com.google.protobuf.ByteString.EMPTY; - resData_ = ""; + resData_ = com.google.protobuf.ByteString.EMPTY; - remainData_ = ""; + remainData_ = com.google.protobuf.ByteString.EMPTY; return this; } @@ -3104,9 +2743,8 @@ public final class BussFlowMiddOuterClass { if (other.getMsgType() != 0) { setMsgType(other.getMsgType()); } - if (!other.getMsgVersion().isEmpty()) { - msgVersion_ = other.msgVersion_; - onChanged(); + if (other.getMsgVersion() != com.google.protobuf.ByteString.EMPTY) { + setMsgVersion(other.getMsgVersion()); } if (other.getMsgSeq() != 0) { setMsgSeq(other.getMsgSeq()); @@ -3150,9 +2788,8 @@ public final class BussFlowMiddOuterClass { if (other.getRequestPackets() != 0) { setRequestPackets(other.getRequestPackets()); } - if (!other.getSeqAck().isEmpty()) { - seqAck_ = other.seqAck_; - onChanged(); + if (other.getSeqAck() != com.google.protobuf.ByteString.EMPTY) { + setSeqAck(other.getSeqAck()); } if (other.getRecogStatus() != 0) { setRecogStatus(other.getRecogStatus()); @@ -3160,9 +2797,8 @@ public final class BussFlowMiddOuterClass { if (other.getProbeIf() != 0) { setProbeIf(other.getProbeIf()); } - if (!other.getChannel().isEmpty()) { - channel_ = other.channel_; - onChanged(); + if (other.getChannel() != com.google.protobuf.ByteString.EMPTY) { + setChannel(other.getChannel()); } if (other.hasRequestIp()) { mergeRequestIp(other.getRequestIp()); @@ -3239,29 +2875,23 @@ public final class BussFlowMiddOuterClass { if (other.getRemainLen() != 0) { setRemainLen(other.getRemainLen()); } - if (!other.getBussinessDetailMesg().isEmpty()) { - bussinessDetailMesg_ = other.bussinessDetailMesg_; - onChanged(); + if (other.getBussinessDetailMesg() != com.google.protobuf.ByteString.EMPTY) { + setBussinessDetailMesg(other.getBussinessDetailMesg()); } - if (!other.getBussinessKeyMesg().isEmpty()) { - bussinessKeyMesg_ = other.bussinessKeyMesg_; - onChanged(); + if (other.getBussinessKeyMesg() != com.google.protobuf.ByteString.EMPTY) { + setBussinessKeyMesg(other.getBussinessKeyMesg()); } - if (!other.getApi().isEmpty()) { - api_ = other.api_; - onChanged(); + if (other.getApi() != com.google.protobuf.ByteString.EMPTY) { + setApi(other.getApi()); } - if (!other.getReqData().isEmpty()) { - reqData_ = other.reqData_; - onChanged(); + if (other.getReqData() != com.google.protobuf.ByteString.EMPTY) { + setReqData(other.getReqData()); } - if (!other.getResData().isEmpty()) { - resData_ = other.resData_; - onChanged(); + if (other.getResData() != com.google.protobuf.ByteString.EMPTY) { + setResData(other.getResData()); } - if (!other.getRemainData().isEmpty()) { - remainData_ = other.remainData_; - onChanged(); + if (other.getRemainData() != com.google.protobuf.ByteString.EMPTY) { + setRemainData(other.getRemainData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3378,59 +3008,29 @@ public final class BussFlowMiddOuterClass { return this; } - private java.lang.Object msgVersion_ = ""; + private com.google.protobuf.ByteString msgVersion_ = com.google.protobuf.ByteString.EMPTY; /** *
        *数据库版本
        * 
* - * string msg_version = 3; + * bytes msg_version = 3; * @return The msgVersion. */ - public java.lang.String getMsgVersion() { - java.lang.Object ref = msgVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msgVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getMsgVersion() { + return msgVersion_; } /** *
        *数据库版本
        * 
* - * string msg_version = 3; - * @return The bytes for msgVersion. - */ - public com.google.protobuf.ByteString - getMsgVersionBytes() { - java.lang.Object ref = msgVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msgVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *数据库版本
-       * 
- * - * string msg_version = 3; + * bytes msg_version = 3; * @param value The msgVersion to set. * @return This builder for chaining. */ - public Builder setMsgVersion( - java.lang.String value) { + public Builder setMsgVersion(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -3444,7 +3044,7 @@ public final class BussFlowMiddOuterClass { *数据库版本 * * - * string msg_version = 3; + * bytes msg_version = 3; * @return This builder for chaining. */ public Builder clearMsgVersion() { @@ -3453,26 +3053,6 @@ public final class BussFlowMiddOuterClass { onChanged(); return this; } - /** - *
-       *数据库版本
-       * 
- * - * string msg_version = 3; - * @param value The bytes for msgVersion to set. - * @return This builder for chaining. - */ - public Builder setMsgVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - msgVersion_ = value; - onChanged(); - return this; - } private int msgSeq_ ; /** @@ -4064,59 +3644,29 @@ public final class BussFlowMiddOuterClass { return this; } - private java.lang.Object seqAck_ = ""; + private com.google.protobuf.ByteString seqAck_ = com.google.protobuf.ByteString.EMPTY; /** *
        *序列号和响应序号
        * 
* - * string seq_ack = 18; + * bytes seq_ack = 18; * @return The seqAck. */ - public java.lang.String getSeqAck() { - java.lang.Object ref = seqAck_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - seqAck_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getSeqAck() { + return seqAck_; } /** *
        *序列号和响应序号
        * 
* - * string seq_ack = 18; - * @return The bytes for seqAck. - */ - public com.google.protobuf.ByteString - getSeqAckBytes() { - java.lang.Object ref = seqAck_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - seqAck_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *序列号和响应序号
-       * 
- * - * string seq_ack = 18; + * bytes seq_ack = 18; * @param value The seqAck to set. * @return This builder for chaining. */ - public Builder setSeqAck( - java.lang.String value) { + public Builder setSeqAck(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -4130,7 +3680,7 @@ public final class BussFlowMiddOuterClass { *序列号和响应序号 * * - * string seq_ack = 18; + * bytes seq_ack = 18; * @return This builder for chaining. */ public Builder clearSeqAck() { @@ -4139,26 +3689,6 @@ public final class BussFlowMiddOuterClass { onChanged(); return this; } - /** - *
-       *序列号和响应序号
-       * 
- * - * string seq_ack = 18; - * @param value The bytes for seqAck to set. - * @return This builder for chaining. - */ - public Builder setSeqAckBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - seqAck_ = value; - onChanged(); - return this; - } private int recogStatus_ ; /** @@ -4234,59 +3764,29 @@ public final class BussFlowMiddOuterClass { return this; } - private java.lang.Object channel_ = ""; + private com.google.protobuf.ByteString channel_ = com.google.protobuf.ByteString.EMPTY; /** *
        *通道
        * 
* - * string channel = 21; + * bytes channel = 21; * @return The channel. */ - public java.lang.String getChannel() { - java.lang.Object ref = channel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channel_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getChannel() { + return channel_; } /** *
        *通道
        * 
* - * string channel = 21; - * @return The bytes for channel. - */ - public com.google.protobuf.ByteString - getChannelBytes() { - java.lang.Object ref = channel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *通道
-       * 
- * - * string channel = 21; + * bytes channel = 21; * @param value The channel to set. * @return This builder for chaining. */ - public Builder setChannel( - java.lang.String value) { + public Builder setChannel(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -4300,7 +3800,7 @@ public final class BussFlowMiddOuterClass { *通道 * * - * string channel = 21; + * bytes channel = 21; * @return This builder for chaining. */ public Builder clearChannel() { @@ -4309,26 +3809,6 @@ public final class BussFlowMiddOuterClass { onChanged(); return this; } - /** - *
-       *通道
-       * 
- * - * string channel = 21; - * @param value The bytes for channel to set. - * @return This builder for chaining. - */ - public Builder setChannelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channel_ = value; - onChanged(); - return this; - } private com.yuandian.dataflow.proto.Base.IPAddress requestIp_; private com.google.protobuf.SingleFieldBuilderV3< @@ -5605,59 +5085,29 @@ public final class BussFlowMiddOuterClass { return this; } - private java.lang.Object bussinessDetailMesg_ = ""; + private com.google.protobuf.ByteString bussinessDetailMesg_ = com.google.protobuf.ByteString.EMPTY; /** *
        *业务纤细信息
        * 
* - * string bussiness_detail_mesg = 47; + * bytes bussiness_detail_mesg = 47; * @return The bussinessDetailMesg. */ - public java.lang.String getBussinessDetailMesg() { - java.lang.Object ref = bussinessDetailMesg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bussinessDetailMesg_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getBussinessDetailMesg() { + return bussinessDetailMesg_; } /** *
        *业务纤细信息
        * 
* - * string bussiness_detail_mesg = 47; - * @return The bytes for bussinessDetailMesg. - */ - public com.google.protobuf.ByteString - getBussinessDetailMesgBytes() { - java.lang.Object ref = bussinessDetailMesg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bussinessDetailMesg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *业务纤细信息
-       * 
- * - * string bussiness_detail_mesg = 47; + * bytes bussiness_detail_mesg = 47; * @param value The bussinessDetailMesg to set. * @return This builder for chaining. */ - public Builder setBussinessDetailMesg( - java.lang.String value) { + public Builder setBussinessDetailMesg(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -5671,7 +5121,7 @@ public final class BussFlowMiddOuterClass { *业务纤细信息 * * - * string bussiness_detail_mesg = 47; + * bytes bussiness_detail_mesg = 47; * @return This builder for chaining. */ public Builder clearBussinessDetailMesg() { @@ -5680,80 +5130,30 @@ public final class BussFlowMiddOuterClass { onChanged(); return this; } - /** - *
-       *业务纤细信息
-       * 
- * - * string bussiness_detail_mesg = 47; - * @param value The bytes for bussinessDetailMesg to set. - * @return This builder for chaining. - */ - public Builder setBussinessDetailMesgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bussinessDetailMesg_ = value; - onChanged(); - return this; - } - private java.lang.Object bussinessKeyMesg_ = ""; + private com.google.protobuf.ByteString bussinessKeyMesg_ = com.google.protobuf.ByteString.EMPTY; /** *
        *业务关键字
        * 
* - * string bussiness_key_mesg = 48; + * bytes bussiness_key_mesg = 48; * @return The bussinessKeyMesg. */ - public java.lang.String getBussinessKeyMesg() { - java.lang.Object ref = bussinessKeyMesg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bussinessKeyMesg_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getBussinessKeyMesg() { + return bussinessKeyMesg_; } /** *
        *业务关键字
        * 
* - * string bussiness_key_mesg = 48; - * @return The bytes for bussinessKeyMesg. - */ - public com.google.protobuf.ByteString - getBussinessKeyMesgBytes() { - java.lang.Object ref = bussinessKeyMesg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bussinessKeyMesg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *业务关键字
-       * 
- * - * string bussiness_key_mesg = 48; + * bytes bussiness_key_mesg = 48; * @param value The bussinessKeyMesg to set. * @return This builder for chaining. */ - public Builder setBussinessKeyMesg( - java.lang.String value) { + public Builder setBussinessKeyMesg(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -5767,7 +5167,7 @@ public final class BussFlowMiddOuterClass { *业务关键字 * * - * string bussiness_key_mesg = 48; + * bytes bussiness_key_mesg = 48; * @return This builder for chaining. */ public Builder clearBussinessKeyMesg() { @@ -5776,80 +5176,30 @@ public final class BussFlowMiddOuterClass { onChanged(); return this; } - /** - *
-       *业务关键字
-       * 
- * - * string bussiness_key_mesg = 48; - * @param value The bytes for bussinessKeyMesg to set. - * @return This builder for chaining. - */ - public Builder setBussinessKeyMesgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bussinessKeyMesg_ = value; - onChanged(); - return this; - } - private java.lang.Object api_ = ""; + private com.google.protobuf.ByteString api_ = com.google.protobuf.ByteString.EMPTY; /** *
        *应用名称
        * 
* - * string api = 49; + * bytes api = 49; * @return The api. */ - public java.lang.String getApi() { - java.lang.Object ref = api_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - api_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getApi() { + return api_; } /** *
        *应用名称
        * 
* - * string api = 49; - * @return The bytes for api. - */ - public com.google.protobuf.ByteString - getApiBytes() { - java.lang.Object ref = api_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - api_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *应用名称
-       * 
- * - * string api = 49; + * bytes api = 49; * @param value The api to set. * @return This builder for chaining. */ - public Builder setApi( - java.lang.String value) { + public Builder setApi(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -5863,7 +5213,7 @@ public final class BussFlowMiddOuterClass { *应用名称 * * - * string api = 49; + * bytes api = 49; * @return This builder for chaining. */ public Builder clearApi() { @@ -5872,80 +5222,30 @@ public final class BussFlowMiddOuterClass { onChanged(); return this; } - /** - *
-       *应用名称
-       * 
- * - * string api = 49; - * @param value The bytes for api to set. - * @return This builder for chaining. - */ - public Builder setApiBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - api_ = value; - onChanged(); - return this; - } - private java.lang.Object reqData_ = ""; + private com.google.protobuf.ByteString reqData_ = com.google.protobuf.ByteString.EMPTY; /** *
        *请求详情报文
        * 
* - * string req_data = 50; + * bytes req_data = 50; * @return The reqData. */ - public java.lang.String getReqData() { - java.lang.Object ref = reqData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reqData_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getReqData() { + return reqData_; } /** *
        *请求详情报文
        * 
* - * string req_data = 50; - * @return The bytes for reqData. - */ - public com.google.protobuf.ByteString - getReqDataBytes() { - java.lang.Object ref = reqData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reqData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *请求详情报文
-       * 
- * - * string req_data = 50; + * bytes req_data = 50; * @param value The reqData to set. * @return This builder for chaining. */ - public Builder setReqData( - java.lang.String value) { + public Builder setReqData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -5959,7 +5259,7 @@ public final class BussFlowMiddOuterClass { *请求详情报文 * * - * string req_data = 50; + * bytes req_data = 50; * @return This builder for chaining. */ public Builder clearReqData() { @@ -5968,80 +5268,30 @@ public final class BussFlowMiddOuterClass { onChanged(); return this; } - /** - *
-       *请求详情报文
-       * 
- * - * string req_data = 50; - * @param value The bytes for reqData to set. - * @return This builder for chaining. - */ - public Builder setReqDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reqData_ = value; - onChanged(); - return this; - } - private java.lang.Object resData_ = ""; + private com.google.protobuf.ByteString resData_ = com.google.protobuf.ByteString.EMPTY; /** *
        *响应详情报文
        * 
* - * string res_data = 51; + * bytes res_data = 51; * @return The resData. */ - public java.lang.String getResData() { - java.lang.Object ref = resData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resData_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getResData() { + return resData_; } /** *
        *响应详情报文
        * 
* - * string res_data = 51; - * @return The bytes for resData. - */ - public com.google.protobuf.ByteString - getResDataBytes() { - java.lang.Object ref = resData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *响应详情报文
-       * 
- * - * string res_data = 51; + * bytes res_data = 51; * @param value The resData to set. * @return This builder for chaining. */ - public Builder setResData( - java.lang.String value) { + public Builder setResData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -6055,7 +5305,7 @@ public final class BussFlowMiddOuterClass { *响应详情报文 * * - * string res_data = 51; + * bytes res_data = 51; * @return This builder for chaining. */ public Builder clearResData() { @@ -6064,68 +5314,22 @@ public final class BussFlowMiddOuterClass { onChanged(); return this; } - /** - *
-       *响应详情报文
-       * 
- * - * string res_data = 51; - * @param value The bytes for resData to set. - * @return This builder for chaining. - */ - public Builder setResDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resData_ = value; - onChanged(); - return this; - } - private java.lang.Object remainData_ = ""; + private com.google.protobuf.ByteString remainData_ = com.google.protobuf.ByteString.EMPTY; /** - * string remain_data = 52; + * bytes remain_data = 52; * @return The remainData. */ - public java.lang.String getRemainData() { - java.lang.Object ref = remainData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remainData_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getRemainData() { + return remainData_; } /** - * string remain_data = 52; - * @return The bytes for remainData. - */ - public com.google.protobuf.ByteString - getRemainDataBytes() { - java.lang.Object ref = remainData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remainData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string remain_data = 52; + * bytes remain_data = 52; * @param value The remainData to set. * @return This builder for chaining. */ - public Builder setRemainData( - java.lang.String value) { + public Builder setRemainData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -6135,7 +5339,7 @@ public final class BussFlowMiddOuterClass { return this; } /** - * string remain_data = 52; + * bytes remain_data = 52; * @return This builder for chaining. */ public Builder clearRemainData() { @@ -6144,22 +5348,6 @@ public final class BussFlowMiddOuterClass { onChanged(); return this; } - /** - * string remain_data = 52; - * @param value The bytes for remainData to set. - * @return This builder for chaining. - */ - public Builder setRemainDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - remainData_ = value; - onChanged(); - return this; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6229,7 +5417,7 @@ public final class BussFlowMiddOuterClass { java.lang.String[] descriptorData = { "\n\022BussFlowMidd.proto\022\010dataflow\032\nBase.pro" + "to\"\345\t\n\014BussFlowMidd\022\020\n\010table_id\030\001 \001(\005\022\020\n" + - "\010msg_type\030\002 \001(\r\022\023\n\013msg_version\030\003 \001(\t\022\017\n\007" + + "\010msg_type\030\002 \001(\r\022\023\n\013msg_version\030\003 \001(\014\022\017\n\007" + "msg_seq\030\004 \001(\r\022\017\n\007msg_len\030\005 \001(\r\022\017\n\007src_ma" + "c\030\006 \001(\004\022\017\n\007dst_mac\030\007 \001(\004\022\017\n\007vlan_id\030\010 \001(" + "\r\022\013\n\003tos\030\t \001(\r\022\024\n\014retran_count\030\n \001(\r\022\023\n\013" + @@ -6237,8 +5425,8 @@ public final class BussFlowMiddOuterClass { "\022\020\n\010protocol\030\r \001(\r\022\026\n\016response_bytes\030\016 \001" + "(\r\022\025\n\rrequest_bytes\030\017 \001(\r\022\030\n\020response_pa" + "ckets\030\020 \001(\r\022\027\n\017request_packets\030\021 \001(\r\022\017\n\007" + - "seq_ack\030\022 \001(\t\022\024\n\014recog_status\030\023 \001(\r\022\020\n\010p" + - "robe_if\030\024 \001(\r\022\017\n\007channel\030\025 \001(\t\022\'\n\nreques" + + "seq_ack\030\022 \001(\014\022\024\n\014recog_status\030\023 \001(\r\022\020\n\010p" + + "robe_if\030\024 \001(\r\022\017\n\007channel\030\025 \001(\014\022\'\n\nreques" + "t_ip\030\026 \001(\0132\023.dataflow.IPAddress\022\024\n\014reque" + "st_port\030\027 \001(\r\022(\n\013response_ip\030\030 \001(\0132\023.dat" + "aflow.IPAddress\022\025\n\rresponse_port\030\031 \001(\r\022\031" + @@ -6256,10 +5444,10 @@ public final class BussFlowMiddOuterClass { "me_flag\030( \001(\r\022\026\n\016detail_msg_len\030) \001(\r\022\023\n" + "\013key_msg_len\030* \001(\r\022\017\n\007api_len\030+ \001(\r\022\017\n\007r" + "eq_len\030, \001(\r\022\017\n\007res_len\030- \001(\r\022\022\n\nremain_" + - "len\030. \001(\r\022\035\n\025bussiness_detail_mesg\030/ \001(\t" + - "\022\032\n\022bussiness_key_mesg\0300 \001(\t\022\013\n\003api\0301 \001(" + - "\t\022\020\n\010req_data\0302 \001(\t\022\020\n\010res_data\0303 \001(\t\022\023\n" + - "\013remain_data\0304 \001(\tB<\n#com.yuandian.dataf" + + "len\030. \001(\r\022\035\n\025bussiness_detail_mesg\030/ \001(\014" + + "\022\032\n\022bussiness_key_mesg\0300 \001(\014\022\013\n\003api\0301 \001(" + + "\014\022\020\n\010req_data\0302 \001(\014\022\020\n\010res_data\0303 \001(\014\022\023\n" + + "\013remain_data\0304 \001(\014B<\n#com.yuandian.dataf" + "low.proto.msgtypeP\000Z\023../grpc-gen;grpcgen" + "b\006proto3" }; diff --git a/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowWebOuterClass.java b/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowWebOuterClass.java index cc28fca..b5d5f5f 100644 --- a/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowWebOuterClass.java +++ b/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowWebOuterClass.java @@ -43,20 +43,10 @@ public final class BussFlowWebOuterClass { *数据库版本 * * - * string msg_version = 3; + * bytes msg_version = 3; * @return The msgVersion. */ - java.lang.String getMsgVersion(); - /** - *
-     *数据库版本
-     * 
- * - * string msg_version = 3; - * @return The bytes for msgVersion. - */ - com.google.protobuf.ByteString - getMsgVersionBytes(); + com.google.protobuf.ByteString getMsgVersion(); /** *
@@ -199,20 +189,10 @@ public final class BussFlowWebOuterClass {
      *序列号和响应序号
      * 
* - * string seq_ack = 18; + * bytes seq_ack = 18; * @return The seqAck. */ - java.lang.String getSeqAck(); - /** - *
-     *序列号和响应序号
-     * 
- * - * string seq_ack = 18; - * @return The bytes for seqAck. - */ - com.google.protobuf.ByteString - getSeqAckBytes(); + com.google.protobuf.ByteString getSeqAck(); /** * uint32 recog_status = 19; @@ -235,40 +215,20 @@ public final class BussFlowWebOuterClass { *请求内容 * * - * string content_type = 21; + * bytes content_type = 21; * @return The contentType. */ - java.lang.String getContentType(); - /** - *
-     *请求内容
-     * 
- * - * string content_type = 21; - * @return The bytes for contentType. - */ - com.google.protobuf.ByteString - getContentTypeBytes(); + com.google.protobuf.ByteString getContentType(); /** *
      *接受
      * 
* - * string accept = 22; + * bytes accept = 22; * @return The accept. */ - java.lang.String getAccept(); - /** - *
-     *接受
-     * 
- * - * string accept = 22; - * @return The bytes for accept. - */ - com.google.protobuf.ByteString - getAcceptBytes(); + com.google.protobuf.ByteString getAccept(); /** *
@@ -285,40 +245,20 @@ public final class BussFlowWebOuterClass {
      *业务类型
      * 
* - * string channel = 24; + * bytes channel = 24; * @return The channel. */ - java.lang.String getChannel(); - /** - *
-     *业务类型
-     * 
- * - * string channel = 24; - * @return The bytes for channel. - */ - com.google.protobuf.ByteString - getChannelBytes(); + com.google.protobuf.ByteString getChannel(); /** *
      *会话id
      * 
* - * string sessionid = 25; + * bytes sessionid = 25; * @return The sessionid. */ - java.lang.String getSessionid(); - /** - *
-     *会话id
-     * 
- * - * string sessionid = 25; - * @return The bytes for sessionid. - */ - com.google.protobuf.ByteString - getSessionidBytes(); + com.google.protobuf.ByteString getSessionid(); /** *
@@ -535,36 +475,20 @@ public final class BussFlowWebOuterClass {
     long getLocateClientTranslateTime();
 
     /**
-     * string x_requested_with = 44;
+     * bytes x_requested_with = 44;
      * @return The xRequestedWith.
      */
-    java.lang.String getXRequestedWith();
-    /**
-     * string x_requested_with = 44;
-     * @return The bytes for xRequestedWith.
-     */
-    com.google.protobuf.ByteString
-        getXRequestedWithBytes();
+    com.google.protobuf.ByteString getXRequestedWith();
 
     /**
      * 
      *操作系统
      * 
* - * string operating_sytem = 45; + * bytes operating_sytem = 45; * @return The operatingSytem. */ - java.lang.String getOperatingSytem(); - /** - *
-     *操作系统
-     * 
- * - * string operating_sytem = 45; - * @return The bytes for operatingSytem. - */ - com.google.protobuf.ByteString - getOperatingSytemBytes(); + com.google.protobuf.ByteString getOperatingSytem(); /** *
@@ -581,20 +505,10 @@ public final class BussFlowWebOuterClass {
      *浏览器名称
      * 
* - * string browser = 47; + * bytes browser = 47; * @return The browser. */ - java.lang.String getBrowser(); - /** - *
-     *浏览器名称
-     * 
- * - * string browser = 47; - * @return The bytes for browser. - */ - com.google.protobuf.ByteString - getBrowserBytes(); + com.google.protobuf.ByteString getBrowser(); /** *
@@ -697,152 +611,76 @@ public final class BussFlowWebOuterClass {
      *业务纤细信息
      * 
* - * string bussiness_detail_mesg = 58; + * bytes bussiness_detail_mesg = 58; * @return The bussinessDetailMesg. */ - java.lang.String getBussinessDetailMesg(); - /** - *
-     *业务纤细信息
-     * 
- * - * string bussiness_detail_mesg = 58; - * @return The bytes for bussinessDetailMesg. - */ - com.google.protobuf.ByteString - getBussinessDetailMesgBytes(); + com.google.protobuf.ByteString getBussinessDetailMesg(); /** *
      *业务关键字
      * 
* - * string bussiness_key_mesg = 59; + * bytes bussiness_key_mesg = 59; * @return The bussinessKeyMesg. */ - java.lang.String getBussinessKeyMesg(); - /** - *
-     *业务关键字
-     * 
- * - * string bussiness_key_mesg = 59; - * @return The bytes for bussinessKeyMesg. - */ - com.google.protobuf.ByteString - getBussinessKeyMesgBytes(); + com.google.protobuf.ByteString getBussinessKeyMesg(); /** *
      *请求详情报文
      * 
* - * string req_data = 60; + * bytes req_data = 60; * @return The reqData. */ - java.lang.String getReqData(); - /** - *
-     *请求详情报文
-     * 
- * - * string req_data = 60; - * @return The bytes for reqData. - */ - com.google.protobuf.ByteString - getReqDataBytes(); + com.google.protobuf.ByteString getReqData(); /** *
      *响应详情报文
      * 
* - * string res_data = 61; + * bytes res_data = 61; * @return The resData. */ - java.lang.String getResData(); - /** - *
-     *响应详情报文
-     * 
- * - * string res_data = 61; - * @return The bytes for resData. - */ - com.google.protobuf.ByteString - getResDataBytes(); + com.google.protobuf.ByteString getResData(); /** *
      *cookie详情报文
      * 
* - * string cookie_data = 62; + * bytes cookie_data = 62; * @return The cookieData. */ - java.lang.String getCookieData(); - /** - *
-     *cookie详情报文
-     * 
- * - * string cookie_data = 62; - * @return The bytes for cookieData. - */ - com.google.protobuf.ByteString - getCookieDataBytes(); + com.google.protobuf.ByteString getCookieData(); /** *
      *主url详情
      * 
* - * string begin_url = 63; + * bytes begin_url = 63; * @return The beginUrl. */ - java.lang.String getBeginUrl(); - /** - *
-     *主url详情
-     * 
- * - * string begin_url = 63; - * @return The bytes for beginUrl. - */ - com.google.protobuf.ByteString - getBeginUrlBytes(); + com.google.protobuf.ByteString getBeginUrl(); /** *
      *引用url详情
      * 
* - * string refer_url = 64; + * bytes refer_url = 64; * @return The referUrl. */ - java.lang.String getReferUrl(); - /** - *
-     *引用url详情
-     * 
- * - * string refer_url = 64; - * @return The bytes for referUrl. - */ - com.google.protobuf.ByteString - getReferUrlBytes(); + com.google.protobuf.ByteString getReferUrl(); /** - * string remain_data = 65; + * bytes remain_data = 65; * @return The remainData. */ - java.lang.String getRemainData(); - /** - * string remain_data = 65; - * @return The bytes for remainData. - */ - com.google.protobuf.ByteString - getRemainDataBytes(); + com.google.protobuf.ByteString getRemainData(); } /** * Protobuf type {@code dataflow.BussFlowWeb} @@ -857,23 +695,23 @@ public final class BussFlowWebOuterClass { super(builder); } private BussFlowWeb() { - msgVersion_ = ""; - seqAck_ = ""; - contentType_ = ""; - accept_ = ""; - channel_ = ""; - sessionid_ = ""; - xRequestedWith_ = ""; - operatingSytem_ = ""; - browser_ = ""; - bussinessDetailMesg_ = ""; - bussinessKeyMesg_ = ""; - reqData_ = ""; - resData_ = ""; - cookieData_ = ""; - beginUrl_ = ""; - referUrl_ = ""; - remainData_ = ""; + msgVersion_ = com.google.protobuf.ByteString.EMPTY; + seqAck_ = com.google.protobuf.ByteString.EMPTY; + contentType_ = com.google.protobuf.ByteString.EMPTY; + accept_ = com.google.protobuf.ByteString.EMPTY; + channel_ = com.google.protobuf.ByteString.EMPTY; + sessionid_ = com.google.protobuf.ByteString.EMPTY; + xRequestedWith_ = com.google.protobuf.ByteString.EMPTY; + operatingSytem_ = com.google.protobuf.ByteString.EMPTY; + browser_ = com.google.protobuf.ByteString.EMPTY; + bussinessDetailMesg_ = com.google.protobuf.ByteString.EMPTY; + bussinessKeyMesg_ = com.google.protobuf.ByteString.EMPTY; + reqData_ = com.google.protobuf.ByteString.EMPTY; + resData_ = com.google.protobuf.ByteString.EMPTY; + cookieData_ = com.google.protobuf.ByteString.EMPTY; + beginUrl_ = com.google.protobuf.ByteString.EMPTY; + referUrl_ = com.google.protobuf.ByteString.EMPTY; + remainData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @@ -917,9 +755,8 @@ public final class BussFlowWebOuterClass { break; } case 26: { - java.lang.String s = input.readStringRequireUtf8(); - msgVersion_ = s; + msgVersion_ = input.readBytes(); break; } case 32: { @@ -993,9 +830,8 @@ public final class BussFlowWebOuterClass { break; } case 146: { - java.lang.String s = input.readStringRequireUtf8(); - seqAck_ = s; + seqAck_ = input.readBytes(); break; } case 152: { @@ -1009,15 +845,13 @@ public final class BussFlowWebOuterClass { break; } case 170: { - java.lang.String s = input.readStringRequireUtf8(); - contentType_ = s; + contentType_ = input.readBytes(); break; } case 178: { - java.lang.String s = input.readStringRequireUtf8(); - accept_ = s; + accept_ = input.readBytes(); break; } case 184: { @@ -1026,15 +860,13 @@ public final class BussFlowWebOuterClass { break; } case 194: { - java.lang.String s = input.readStringRequireUtf8(); - channel_ = s; + channel_ = input.readBytes(); break; } case 202: { - java.lang.String s = input.readStringRequireUtf8(); - sessionid_ = s; + sessionid_ = input.readBytes(); break; } case 210: { @@ -1144,15 +976,13 @@ public final class BussFlowWebOuterClass { break; } case 354: { - java.lang.String s = input.readStringRequireUtf8(); - xRequestedWith_ = s; + xRequestedWith_ = input.readBytes(); break; } case 362: { - java.lang.String s = input.readStringRequireUtf8(); - operatingSytem_ = s; + operatingSytem_ = input.readBytes(); break; } case 368: { @@ -1161,9 +991,8 @@ public final class BussFlowWebOuterClass { break; } case 378: { - java.lang.String s = input.readStringRequireUtf8(); - browser_ = s; + browser_ = input.readBytes(); break; } case 384: { @@ -1217,51 +1046,43 @@ public final class BussFlowWebOuterClass { break; } case 466: { - java.lang.String s = input.readStringRequireUtf8(); - bussinessDetailMesg_ = s; + bussinessDetailMesg_ = input.readBytes(); break; } case 474: { - java.lang.String s = input.readStringRequireUtf8(); - bussinessKeyMesg_ = s; + bussinessKeyMesg_ = input.readBytes(); break; } case 482: { - java.lang.String s = input.readStringRequireUtf8(); - reqData_ = s; + reqData_ = input.readBytes(); break; } case 490: { - java.lang.String s = input.readStringRequireUtf8(); - resData_ = s; + resData_ = input.readBytes(); break; } case 498: { - java.lang.String s = input.readStringRequireUtf8(); - cookieData_ = s; + cookieData_ = input.readBytes(); break; } case 506: { - java.lang.String s = input.readStringRequireUtf8(); - beginUrl_ = s; + beginUrl_ = input.readBytes(); break; } case 514: { - java.lang.String s = input.readStringRequireUtf8(); - referUrl_ = s; + referUrl_ = input.readBytes(); break; } case 522: { - java.lang.String s = input.readStringRequireUtf8(); - remainData_ = s; + remainData_ = input.readBytes(); break; } default: { @@ -1329,49 +1150,18 @@ public final class BussFlowWebOuterClass { } public static final int MSG_VERSION_FIELD_NUMBER = 3; - private volatile java.lang.Object msgVersion_; + private com.google.protobuf.ByteString msgVersion_; /** *
      *数据库版本
      * 
* - * string msg_version = 3; + * bytes msg_version = 3; * @return The msgVersion. */ @java.lang.Override - public java.lang.String getMsgVersion() { - java.lang.Object ref = msgVersion_; - 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(); - msgVersion_ = s; - return s; - } - } - /** - *
-     *数据库版本
-     * 
- * - * string msg_version = 3; - * @return The bytes for msgVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMsgVersionBytes() { - java.lang.Object ref = msgVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msgVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getMsgVersion() { + return msgVersion_; } public static final int MSG_SEQ_FIELD_NUMBER = 4; @@ -1581,49 +1371,18 @@ public final class BussFlowWebOuterClass { } public static final int SEQ_ACK_FIELD_NUMBER = 18; - private volatile java.lang.Object seqAck_; + private com.google.protobuf.ByteString seqAck_; /** *
      *序列号和响应序号
      * 
* - * string seq_ack = 18; + * bytes seq_ack = 18; * @return The seqAck. */ @java.lang.Override - public java.lang.String getSeqAck() { - java.lang.Object ref = seqAck_; - 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(); - seqAck_ = s; - return s; - } - } - /** - *
-     *序列号和响应序号
-     * 
- * - * string seq_ack = 18; - * @return The bytes for seqAck. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSeqAckBytes() { - java.lang.Object ref = seqAck_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - seqAck_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getSeqAck() { + return seqAck_; } public static final int RECOG_STATUS_FIELD_NUMBER = 19; @@ -1653,95 +1412,33 @@ public final class BussFlowWebOuterClass { } public static final int CONTENT_TYPE_FIELD_NUMBER = 21; - private volatile java.lang.Object contentType_; + private com.google.protobuf.ByteString contentType_; /** *
      *请求内容
      * 
* - * string content_type = 21; + * bytes content_type = 21; * @return The contentType. */ @java.lang.Override - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - 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(); - contentType_ = s; - return s; - } - } - /** - *
-     *请求内容
-     * 
- * - * string content_type = 21; - * @return The bytes for contentType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getContentType() { + return contentType_; } public static final int ACCEPT_FIELD_NUMBER = 22; - private volatile java.lang.Object accept_; + private com.google.protobuf.ByteString accept_; /** *
      *接受
      * 
* - * string accept = 22; + * bytes accept = 22; * @return The accept. */ @java.lang.Override - public java.lang.String getAccept() { - java.lang.Object ref = accept_; - 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(); - accept_ = s; - return s; - } - } - /** - *
-     *接受
-     * 
- * - * string accept = 22; - * @return The bytes for accept. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAcceptBytes() { - java.lang.Object ref = accept_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accept_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getAccept() { + return accept_; } public static final int PROBE_IF_FIELD_NUMBER = 23; @@ -1760,95 +1457,33 @@ public final class BussFlowWebOuterClass { } public static final int CHANNEL_FIELD_NUMBER = 24; - private volatile java.lang.Object channel_; + private com.google.protobuf.ByteString channel_; /** *
      *业务类型
      * 
* - * string channel = 24; + * bytes channel = 24; * @return The channel. */ @java.lang.Override - public java.lang.String getChannel() { - java.lang.Object ref = channel_; - 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(); - channel_ = s; - return s; - } - } - /** - *
-     *业务类型
-     * 
- * - * string channel = 24; - * @return The bytes for channel. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getChannelBytes() { - java.lang.Object ref = channel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getChannel() { + return channel_; } public static final int SESSIONID_FIELD_NUMBER = 25; - private volatile java.lang.Object sessionid_; + private com.google.protobuf.ByteString sessionid_; /** *
      *会话id
      * 
* - * string sessionid = 25; + * bytes sessionid = 25; * @return The sessionid. */ @java.lang.Override - public java.lang.String getSessionid() { - java.lang.Object ref = sessionid_; - 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(); - sessionid_ = s; - return s; - } - } - /** - *
-     *会话id
-     * 
- * - * string sessionid = 25; - * @return The bytes for sessionid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSessionidBytes() { - java.lang.Object ref = sessionid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sessionid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getSessionid() { + return sessionid_; } public static final int REQUEST_IP_FIELD_NUMBER = 26; @@ -2168,87 +1803,29 @@ public final class BussFlowWebOuterClass { } public static final int X_REQUESTED_WITH_FIELD_NUMBER = 44; - private volatile java.lang.Object xRequestedWith_; + private com.google.protobuf.ByteString xRequestedWith_; /** - * string x_requested_with = 44; + * bytes x_requested_with = 44; * @return The xRequestedWith. */ @java.lang.Override - public java.lang.String getXRequestedWith() { - java.lang.Object ref = xRequestedWith_; - 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(); - xRequestedWith_ = s; - return s; - } - } - /** - * string x_requested_with = 44; - * @return The bytes for xRequestedWith. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getXRequestedWithBytes() { - java.lang.Object ref = xRequestedWith_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - xRequestedWith_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getXRequestedWith() { + return xRequestedWith_; } public static final int OPERATING_SYTEM_FIELD_NUMBER = 45; - private volatile java.lang.Object operatingSytem_; + private com.google.protobuf.ByteString operatingSytem_; /** *
      *操作系统
      * 
* - * string operating_sytem = 45; + * bytes operating_sytem = 45; * @return The operatingSytem. */ @java.lang.Override - public java.lang.String getOperatingSytem() { - java.lang.Object ref = operatingSytem_; - 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(); - operatingSytem_ = s; - return s; - } - } - /** - *
-     *操作系统
-     * 
- * - * string operating_sytem = 45; - * @return The bytes for operatingSytem. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOperatingSytemBytes() { - java.lang.Object ref = operatingSytem_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operatingSytem_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getOperatingSytem() { + return operatingSytem_; } public static final int SERVER_RES_CODE_FIELD_NUMBER = 46; @@ -2267,49 +1844,18 @@ public final class BussFlowWebOuterClass { } public static final int BROWSER_FIELD_NUMBER = 47; - private volatile java.lang.Object browser_; + private com.google.protobuf.ByteString browser_; /** *
      *浏览器名称
      * 
* - * string browser = 47; + * bytes browser = 47; * @return The browser. */ @java.lang.Override - public java.lang.String getBrowser() { - java.lang.Object ref = browser_; - 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(); - browser_ = s; - return s; - } - } - /** - *
-     *浏览器名称
-     * 
- * - * string browser = 47; - * @return The bytes for browser. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBrowserBytes() { - java.lang.Object ref = browser_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - browser_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getBrowser() { + return browser_; } public static final int IS_UNCOMPLETE_FIELD_NUMBER = 48; @@ -2459,363 +2005,119 @@ public final class BussFlowWebOuterClass { } public static final int BUSSINESS_DETAIL_MESG_FIELD_NUMBER = 58; - private volatile java.lang.Object bussinessDetailMesg_; + private com.google.protobuf.ByteString bussinessDetailMesg_; /** *
      *业务纤细信息
      * 
* - * string bussiness_detail_mesg = 58; + * bytes bussiness_detail_mesg = 58; * @return The bussinessDetailMesg. */ @java.lang.Override - public java.lang.String getBussinessDetailMesg() { - java.lang.Object ref = bussinessDetailMesg_; - 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(); - bussinessDetailMesg_ = s; - return s; - } - } - /** - *
-     *业务纤细信息
-     * 
- * - * string bussiness_detail_mesg = 58; - * @return The bytes for bussinessDetailMesg. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBussinessDetailMesgBytes() { - java.lang.Object ref = bussinessDetailMesg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bussinessDetailMesg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getBussinessDetailMesg() { + return bussinessDetailMesg_; } public static final int BUSSINESS_KEY_MESG_FIELD_NUMBER = 59; - private volatile java.lang.Object bussinessKeyMesg_; + private com.google.protobuf.ByteString bussinessKeyMesg_; /** *
      *业务关键字
      * 
* - * string bussiness_key_mesg = 59; + * bytes bussiness_key_mesg = 59; * @return The bussinessKeyMesg. */ @java.lang.Override - public java.lang.String getBussinessKeyMesg() { - java.lang.Object ref = bussinessKeyMesg_; - 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(); - bussinessKeyMesg_ = s; - return s; - } - } - /** - *
-     *业务关键字
-     * 
- * - * string bussiness_key_mesg = 59; - * @return The bytes for bussinessKeyMesg. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBussinessKeyMesgBytes() { - java.lang.Object ref = bussinessKeyMesg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bussinessKeyMesg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getBussinessKeyMesg() { + return bussinessKeyMesg_; } public static final int REQ_DATA_FIELD_NUMBER = 60; - private volatile java.lang.Object reqData_; + private com.google.protobuf.ByteString reqData_; /** *
      *请求详情报文
      * 
* - * string req_data = 60; + * bytes req_data = 60; * @return The reqData. */ @java.lang.Override - public java.lang.String getReqData() { - java.lang.Object ref = reqData_; - 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(); - reqData_ = s; - return s; - } - } - /** - *
-     *请求详情报文
-     * 
- * - * string req_data = 60; - * @return The bytes for reqData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReqDataBytes() { - java.lang.Object ref = reqData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reqData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getReqData() { + return reqData_; } public static final int RES_DATA_FIELD_NUMBER = 61; - private volatile java.lang.Object resData_; + private com.google.protobuf.ByteString resData_; /** *
      *响应详情报文
      * 
* - * string res_data = 61; + * bytes res_data = 61; * @return The resData. */ @java.lang.Override - public java.lang.String getResData() { - java.lang.Object ref = resData_; - 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(); - resData_ = s; - return s; - } - } - /** - *
-     *响应详情报文
-     * 
- * - * string res_data = 61; - * @return The bytes for resData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResDataBytes() { - java.lang.Object ref = resData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getResData() { + return resData_; } public static final int COOKIE_DATA_FIELD_NUMBER = 62; - private volatile java.lang.Object cookieData_; + private com.google.protobuf.ByteString cookieData_; /** *
      *cookie详情报文
      * 
* - * string cookie_data = 62; + * bytes cookie_data = 62; * @return The cookieData. */ @java.lang.Override - public java.lang.String getCookieData() { - java.lang.Object ref = cookieData_; - 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(); - cookieData_ = s; - return s; - } - } - /** - *
-     *cookie详情报文
-     * 
- * - * string cookie_data = 62; - * @return The bytes for cookieData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCookieDataBytes() { - java.lang.Object ref = cookieData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cookieData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getCookieData() { + return cookieData_; } public static final int BEGIN_URL_FIELD_NUMBER = 63; - private volatile java.lang.Object beginUrl_; + private com.google.protobuf.ByteString beginUrl_; /** *
      *主url详情
      * 
* - * string begin_url = 63; + * bytes begin_url = 63; * @return The beginUrl. */ @java.lang.Override - public java.lang.String getBeginUrl() { - java.lang.Object ref = beginUrl_; - 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(); - beginUrl_ = s; - return s; - } - } - /** - *
-     *主url详情
-     * 
- * - * string begin_url = 63; - * @return The bytes for beginUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBeginUrlBytes() { - java.lang.Object ref = beginUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - beginUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getBeginUrl() { + return beginUrl_; } public static final int REFER_URL_FIELD_NUMBER = 64; - private volatile java.lang.Object referUrl_; + private com.google.protobuf.ByteString referUrl_; /** *
      *引用url详情
      * 
* - * string refer_url = 64; + * bytes refer_url = 64; * @return The referUrl. */ @java.lang.Override - public java.lang.String getReferUrl() { - java.lang.Object ref = referUrl_; - 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(); - referUrl_ = s; - return s; - } - } - /** - *
-     *引用url详情
-     * 
- * - * string refer_url = 64; - * @return The bytes for referUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReferUrlBytes() { - java.lang.Object ref = referUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - referUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getReferUrl() { + return referUrl_; } public static final int REMAIN_DATA_FIELD_NUMBER = 65; - private volatile java.lang.Object remainData_; + private com.google.protobuf.ByteString remainData_; /** - * string remain_data = 65; + * bytes remain_data = 65; * @return The remainData. */ @java.lang.Override - public java.lang.String getRemainData() { - java.lang.Object ref = remainData_; - 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(); - remainData_ = s; - return s; - } - } - /** - * string remain_data = 65; - * @return The bytes for remainData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRemainDataBytes() { - java.lang.Object ref = remainData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remainData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getRemainData() { + return remainData_; } private byte memoizedIsInitialized = -1; @@ -2838,8 +2140,8 @@ public final class BussFlowWebOuterClass { if (msgType_ != 0) { output.writeUInt32(2, msgType_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msgVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, msgVersion_); + if (!msgVersion_.isEmpty()) { + output.writeBytes(3, msgVersion_); } if (msgSeq_ != 0) { output.writeUInt32(4, msgSeq_); @@ -2883,8 +2185,8 @@ public final class BussFlowWebOuterClass { if (requestPackets_ != 0) { output.writeUInt32(17, requestPackets_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seqAck_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, seqAck_); + if (!seqAck_.isEmpty()) { + output.writeBytes(18, seqAck_); } if (recogStatus_ != 0) { output.writeUInt32(19, recogStatus_); @@ -2892,20 +2194,20 @@ public final class BussFlowWebOuterClass { if (reqMethod_ != 0) { output.writeUInt32(20, reqMethod_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 21, contentType_); + if (!contentType_.isEmpty()) { + output.writeBytes(21, contentType_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accept_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 22, accept_); + if (!accept_.isEmpty()) { + output.writeBytes(22, accept_); } if (probeIf_ != 0) { output.writeUInt32(23, probeIf_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 24, channel_); + if (!channel_.isEmpty()) { + output.writeBytes(24, channel_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 25, sessionid_); + if (!sessionid_.isEmpty()) { + output.writeBytes(25, sessionid_); } if (requestIp_ != null) { output.writeMessage(26, getRequestIp()); @@ -2961,17 +2263,17 @@ public final class BussFlowWebOuterClass { if (locateClientTranslateTime_ != 0L) { output.writeInt64(43, locateClientTranslateTime_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(xRequestedWith_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 44, xRequestedWith_); + if (!xRequestedWith_.isEmpty()) { + output.writeBytes(44, xRequestedWith_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operatingSytem_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 45, operatingSytem_); + if (!operatingSytem_.isEmpty()) { + output.writeBytes(45, operatingSytem_); } if (serverResCode_ != 0) { output.writeUInt32(46, serverResCode_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(browser_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 47, browser_); + if (!browser_.isEmpty()) { + output.writeBytes(47, browser_); } if (isUncomplete_ != 0) { output.writeInt32(48, isUncomplete_); @@ -3003,29 +2305,29 @@ public final class BussFlowWebOuterClass { if (remainLen_ != 0) { output.writeUInt32(57, remainLen_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bussinessDetailMesg_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 58, bussinessDetailMesg_); + if (!bussinessDetailMesg_.isEmpty()) { + output.writeBytes(58, bussinessDetailMesg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bussinessKeyMesg_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 59, bussinessKeyMesg_); + if (!bussinessKeyMesg_.isEmpty()) { + output.writeBytes(59, bussinessKeyMesg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 60, reqData_); + if (!reqData_.isEmpty()) { + output.writeBytes(60, reqData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 61, resData_); + if (!resData_.isEmpty()) { + output.writeBytes(61, resData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cookieData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 62, cookieData_); + if (!cookieData_.isEmpty()) { + output.writeBytes(62, cookieData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(beginUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 63, beginUrl_); + if (!beginUrl_.isEmpty()) { + output.writeBytes(63, beginUrl_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 64, referUrl_); + if (!referUrl_.isEmpty()) { + output.writeBytes(64, referUrl_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remainData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 65, remainData_); + if (!remainData_.isEmpty()) { + output.writeBytes(65, remainData_); } unknownFields.writeTo(output); } @@ -3044,8 +2346,9 @@ public final class BussFlowWebOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, msgType_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msgVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, msgVersion_); + if (!msgVersion_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, msgVersion_); } if (msgSeq_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -3103,8 +2406,9 @@ public final class BussFlowWebOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(17, requestPackets_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(seqAck_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, seqAck_); + if (!seqAck_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(18, seqAck_); } if (recogStatus_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -3114,21 +2418,25 @@ public final class BussFlowWebOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(20, reqMethod_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, contentType_); + if (!contentType_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(21, contentType_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accept_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, accept_); + if (!accept_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(22, accept_); } if (probeIf_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(23, probeIf_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, channel_); + if (!channel_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(24, channel_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, sessionid_); + if (!sessionid_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(25, sessionid_); } if (requestIp_ != null) { size += com.google.protobuf.CodedOutputStream @@ -3202,18 +2510,21 @@ public final class BussFlowWebOuterClass { size += com.google.protobuf.CodedOutputStream .computeInt64Size(43, locateClientTranslateTime_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(xRequestedWith_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(44, xRequestedWith_); + if (!xRequestedWith_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(44, xRequestedWith_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operatingSytem_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(45, operatingSytem_); + if (!operatingSytem_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(45, operatingSytem_); } if (serverResCode_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(46, serverResCode_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(browser_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(47, browser_); + if (!browser_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(47, browser_); } if (isUncomplete_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -3255,29 +2566,37 @@ public final class BussFlowWebOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(57, remainLen_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bussinessDetailMesg_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(58, bussinessDetailMesg_); + if (!bussinessDetailMesg_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(58, bussinessDetailMesg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bussinessKeyMesg_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(59, bussinessKeyMesg_); + if (!bussinessKeyMesg_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(59, bussinessKeyMesg_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(60, reqData_); + if (!reqData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(60, reqData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(61, resData_); + if (!resData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(61, resData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cookieData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(62, cookieData_); + if (!cookieData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(62, cookieData_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(beginUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(63, beginUrl_); + if (!beginUrl_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(63, beginUrl_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(64, referUrl_); + if (!referUrl_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(64, referUrl_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remainData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(65, remainData_); + if (!remainData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(65, remainData_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3720,7 +3039,7 @@ public final class BussFlowWebOuterClass { msgType_ = 0; - msgVersion_ = ""; + msgVersion_ = com.google.protobuf.ByteString.EMPTY; msgSeq_ = 0; @@ -3750,21 +3069,21 @@ public final class BussFlowWebOuterClass { requestPackets_ = 0; - seqAck_ = ""; + seqAck_ = com.google.protobuf.ByteString.EMPTY; recogStatus_ = 0; reqMethod_ = 0; - contentType_ = ""; + contentType_ = com.google.protobuf.ByteString.EMPTY; - accept_ = ""; + accept_ = com.google.protobuf.ByteString.EMPTY; probeIf_ = 0; - channel_ = ""; + channel_ = com.google.protobuf.ByteString.EMPTY; - sessionid_ = ""; + sessionid_ = com.google.protobuf.ByteString.EMPTY; if (requestIpBuilder_ == null) { requestIp_ = null; @@ -3810,13 +3129,13 @@ public final class BussFlowWebOuterClass { locateClientTranslateTime_ = 0L; - xRequestedWith_ = ""; + xRequestedWith_ = com.google.protobuf.ByteString.EMPTY; - operatingSytem_ = ""; + operatingSytem_ = com.google.protobuf.ByteString.EMPTY; serverResCode_ = 0; - browser_ = ""; + browser_ = com.google.protobuf.ByteString.EMPTY; isUncomplete_ = 0; @@ -3838,21 +3157,21 @@ public final class BussFlowWebOuterClass { remainLen_ = 0; - bussinessDetailMesg_ = ""; + bussinessDetailMesg_ = com.google.protobuf.ByteString.EMPTY; - bussinessKeyMesg_ = ""; + bussinessKeyMesg_ = com.google.protobuf.ByteString.EMPTY; - reqData_ = ""; + reqData_ = com.google.protobuf.ByteString.EMPTY; - resData_ = ""; + resData_ = com.google.protobuf.ByteString.EMPTY; - cookieData_ = ""; + cookieData_ = com.google.protobuf.ByteString.EMPTY; - beginUrl_ = ""; + beginUrl_ = com.google.protobuf.ByteString.EMPTY; - referUrl_ = ""; + referUrl_ = com.google.protobuf.ByteString.EMPTY; - remainData_ = ""; + remainData_ = com.google.protobuf.ByteString.EMPTY; return this; } @@ -4007,9 +3326,8 @@ public final class BussFlowWebOuterClass { if (other.getMsgType() != 0) { setMsgType(other.getMsgType()); } - if (!other.getMsgVersion().isEmpty()) { - msgVersion_ = other.msgVersion_; - onChanged(); + if (other.getMsgVersion() != com.google.protobuf.ByteString.EMPTY) { + setMsgVersion(other.getMsgVersion()); } if (other.getMsgSeq() != 0) { setMsgSeq(other.getMsgSeq()); @@ -4053,9 +3371,8 @@ public final class BussFlowWebOuterClass { if (other.getRequestPackets() != 0) { setRequestPackets(other.getRequestPackets()); } - if (!other.getSeqAck().isEmpty()) { - seqAck_ = other.seqAck_; - onChanged(); + if (other.getSeqAck() != com.google.protobuf.ByteString.EMPTY) { + setSeqAck(other.getSeqAck()); } if (other.getRecogStatus() != 0) { setRecogStatus(other.getRecogStatus()); @@ -4063,24 +3380,20 @@ public final class BussFlowWebOuterClass { if (other.getReqMethod() != 0) { setReqMethod(other.getReqMethod()); } - if (!other.getContentType().isEmpty()) { - contentType_ = other.contentType_; - onChanged(); + if (other.getContentType() != com.google.protobuf.ByteString.EMPTY) { + setContentType(other.getContentType()); } - if (!other.getAccept().isEmpty()) { - accept_ = other.accept_; - onChanged(); + if (other.getAccept() != com.google.protobuf.ByteString.EMPTY) { + setAccept(other.getAccept()); } if (other.getProbeIf() != 0) { setProbeIf(other.getProbeIf()); } - if (!other.getChannel().isEmpty()) { - channel_ = other.channel_; - onChanged(); + if (other.getChannel() != com.google.protobuf.ByteString.EMPTY) { + setChannel(other.getChannel()); } - if (!other.getSessionid().isEmpty()) { - sessionid_ = other.sessionid_; - onChanged(); + if (other.getSessionid() != com.google.protobuf.ByteString.EMPTY) { + setSessionid(other.getSessionid()); } if (other.hasRequestIp()) { mergeRequestIp(other.getRequestIp()); @@ -4136,20 +3449,17 @@ public final class BussFlowWebOuterClass { if (other.getLocateClientTranslateTime() != 0L) { setLocateClientTranslateTime(other.getLocateClientTranslateTime()); } - if (!other.getXRequestedWith().isEmpty()) { - xRequestedWith_ = other.xRequestedWith_; - onChanged(); + if (other.getXRequestedWith() != com.google.protobuf.ByteString.EMPTY) { + setXRequestedWith(other.getXRequestedWith()); } - if (!other.getOperatingSytem().isEmpty()) { - operatingSytem_ = other.operatingSytem_; - onChanged(); + if (other.getOperatingSytem() != com.google.protobuf.ByteString.EMPTY) { + setOperatingSytem(other.getOperatingSytem()); } if (other.getServerResCode() != 0) { setServerResCode(other.getServerResCode()); } - if (!other.getBrowser().isEmpty()) { - browser_ = other.browser_; - onChanged(); + if (other.getBrowser() != com.google.protobuf.ByteString.EMPTY) { + setBrowser(other.getBrowser()); } if (other.getIsUncomplete() != 0) { setIsUncomplete(other.getIsUncomplete()); @@ -4181,37 +3491,29 @@ public final class BussFlowWebOuterClass { if (other.getRemainLen() != 0) { setRemainLen(other.getRemainLen()); } - if (!other.getBussinessDetailMesg().isEmpty()) { - bussinessDetailMesg_ = other.bussinessDetailMesg_; - onChanged(); + if (other.getBussinessDetailMesg() != com.google.protobuf.ByteString.EMPTY) { + setBussinessDetailMesg(other.getBussinessDetailMesg()); } - if (!other.getBussinessKeyMesg().isEmpty()) { - bussinessKeyMesg_ = other.bussinessKeyMesg_; - onChanged(); + if (other.getBussinessKeyMesg() != com.google.protobuf.ByteString.EMPTY) { + setBussinessKeyMesg(other.getBussinessKeyMesg()); } - if (!other.getReqData().isEmpty()) { - reqData_ = other.reqData_; - onChanged(); + if (other.getReqData() != com.google.protobuf.ByteString.EMPTY) { + setReqData(other.getReqData()); } - if (!other.getResData().isEmpty()) { - resData_ = other.resData_; - onChanged(); + if (other.getResData() != com.google.protobuf.ByteString.EMPTY) { + setResData(other.getResData()); } - if (!other.getCookieData().isEmpty()) { - cookieData_ = other.cookieData_; - onChanged(); + if (other.getCookieData() != com.google.protobuf.ByteString.EMPTY) { + setCookieData(other.getCookieData()); } - if (!other.getBeginUrl().isEmpty()) { - beginUrl_ = other.beginUrl_; - onChanged(); + if (other.getBeginUrl() != com.google.protobuf.ByteString.EMPTY) { + setBeginUrl(other.getBeginUrl()); } - if (!other.getReferUrl().isEmpty()) { - referUrl_ = other.referUrl_; - onChanged(); + if (other.getReferUrl() != com.google.protobuf.ByteString.EMPTY) { + setReferUrl(other.getReferUrl()); } - if (!other.getRemainData().isEmpty()) { - remainData_ = other.remainData_; - onChanged(); + if (other.getRemainData() != com.google.protobuf.ByteString.EMPTY) { + setRemainData(other.getRemainData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -4328,59 +3630,29 @@ public final class BussFlowWebOuterClass { return this; } - private java.lang.Object msgVersion_ = ""; + private com.google.protobuf.ByteString msgVersion_ = com.google.protobuf.ByteString.EMPTY; /** *
        *数据库版本
        * 
* - * string msg_version = 3; + * bytes msg_version = 3; * @return The msgVersion. */ - public java.lang.String getMsgVersion() { - java.lang.Object ref = msgVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msgVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getMsgVersion() { + return msgVersion_; } /** *
        *数据库版本
        * 
* - * string msg_version = 3; - * @return The bytes for msgVersion. - */ - public com.google.protobuf.ByteString - getMsgVersionBytes() { - java.lang.Object ref = msgVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msgVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *数据库版本
-       * 
- * - * string msg_version = 3; + * bytes msg_version = 3; * @param value The msgVersion to set. * @return This builder for chaining. */ - public Builder setMsgVersion( - java.lang.String value) { + public Builder setMsgVersion(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -4394,7 +3666,7 @@ public final class BussFlowWebOuterClass { *数据库版本 *
* - * string msg_version = 3; + * bytes msg_version = 3; * @return This builder for chaining. */ public Builder clearMsgVersion() { @@ -4403,26 +3675,6 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *数据库版本
-       * 
- * - * string msg_version = 3; - * @param value The bytes for msgVersion to set. - * @return This builder for chaining. - */ - public Builder setMsgVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - msgVersion_ = value; - onChanged(); - return this; - } private int msgSeq_ ; /** @@ -5014,59 +4266,29 @@ public final class BussFlowWebOuterClass { return this; } - private java.lang.Object seqAck_ = ""; + private com.google.protobuf.ByteString seqAck_ = com.google.protobuf.ByteString.EMPTY; /** *
        *序列号和响应序号
        * 
* - * string seq_ack = 18; + * bytes seq_ack = 18; * @return The seqAck. */ - public java.lang.String getSeqAck() { - java.lang.Object ref = seqAck_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - seqAck_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getSeqAck() { + return seqAck_; } /** *
        *序列号和响应序号
        * 
* - * string seq_ack = 18; - * @return The bytes for seqAck. - */ - public com.google.protobuf.ByteString - getSeqAckBytes() { - java.lang.Object ref = seqAck_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - seqAck_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *序列号和响应序号
-       * 
- * - * string seq_ack = 18; + * bytes seq_ack = 18; * @param value The seqAck to set. * @return This builder for chaining. */ - public Builder setSeqAck( - java.lang.String value) { + public Builder setSeqAck(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -5080,7 +4302,7 @@ public final class BussFlowWebOuterClass { *序列号和响应序号 * * - * string seq_ack = 18; + * bytes seq_ack = 18; * @return This builder for chaining. */ public Builder clearSeqAck() { @@ -5089,26 +4311,6 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *序列号和响应序号
-       * 
- * - * string seq_ack = 18; - * @param value The bytes for seqAck to set. - * @return This builder for chaining. - */ - public Builder setSeqAckBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - seqAck_ = value; - onChanged(); - return this; - } private int recogStatus_ ; /** @@ -5184,59 +4386,29 @@ public final class BussFlowWebOuterClass { return this; } - private java.lang.Object contentType_ = ""; + private com.google.protobuf.ByteString contentType_ = com.google.protobuf.ByteString.EMPTY; /** *
        *请求内容
        * 
* - * string content_type = 21; + * bytes content_type = 21; * @return The contentType. */ - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contentType_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getContentType() { + return contentType_; } /** *
        *请求内容
        * 
* - * string content_type = 21; - * @return The bytes for contentType. - */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *请求内容
-       * 
- * - * string content_type = 21; + * bytes content_type = 21; * @param value The contentType to set. * @return This builder for chaining. */ - public Builder setContentType( - java.lang.String value) { + public Builder setContentType(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -5250,7 +4422,7 @@ public final class BussFlowWebOuterClass { *请求内容 * * - * string content_type = 21; + * bytes content_type = 21; * @return This builder for chaining. */ public Builder clearContentType() { @@ -5259,80 +4431,30 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *请求内容
-       * 
- * - * string content_type = 21; - * @param value The bytes for contentType to set. - * @return This builder for chaining. - */ - public Builder setContentTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contentType_ = value; - onChanged(); - return this; - } - private java.lang.Object accept_ = ""; + private com.google.protobuf.ByteString accept_ = com.google.protobuf.ByteString.EMPTY; /** *
        *接受
        * 
* - * string accept = 22; + * bytes accept = 22; * @return The accept. */ - public java.lang.String getAccept() { - java.lang.Object ref = accept_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accept_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getAccept() { + return accept_; } /** *
        *接受
        * 
* - * string accept = 22; - * @return The bytes for accept. - */ - public com.google.protobuf.ByteString - getAcceptBytes() { - java.lang.Object ref = accept_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accept_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *接受
-       * 
- * - * string accept = 22; + * bytes accept = 22; * @param value The accept to set. * @return This builder for chaining. */ - public Builder setAccept( - java.lang.String value) { + public Builder setAccept(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -5346,7 +4468,7 @@ public final class BussFlowWebOuterClass { *接受 * * - * string accept = 22; + * bytes accept = 22; * @return This builder for chaining. */ public Builder clearAccept() { @@ -5355,26 +4477,6 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *接受
-       * 
- * - * string accept = 22; - * @param value The bytes for accept to set. - * @return This builder for chaining. - */ - public Builder setAcceptBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - accept_ = value; - onChanged(); - return this; - } private int probeIf_ ; /** @@ -5419,59 +4521,29 @@ public final class BussFlowWebOuterClass { return this; } - private java.lang.Object channel_ = ""; + private com.google.protobuf.ByteString channel_ = com.google.protobuf.ByteString.EMPTY; /** *
        *业务类型
        * 
* - * string channel = 24; + * bytes channel = 24; * @return The channel. */ - public java.lang.String getChannel() { - java.lang.Object ref = channel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - channel_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getChannel() { + return channel_; } /** *
        *业务类型
        * 
* - * string channel = 24; - * @return The bytes for channel. - */ - public com.google.protobuf.ByteString - getChannelBytes() { - java.lang.Object ref = channel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - channel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *业务类型
-       * 
- * - * string channel = 24; + * bytes channel = 24; * @param value The channel to set. * @return This builder for chaining. */ - public Builder setChannel( - java.lang.String value) { + public Builder setChannel(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -5485,7 +4557,7 @@ public final class BussFlowWebOuterClass { *业务类型 * * - * string channel = 24; + * bytes channel = 24; * @return This builder for chaining. */ public Builder clearChannel() { @@ -5494,80 +4566,30 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *业务类型
-       * 
- * - * string channel = 24; - * @param value The bytes for channel to set. - * @return This builder for chaining. - */ - public Builder setChannelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - channel_ = value; - onChanged(); - return this; - } - private java.lang.Object sessionid_ = ""; + private com.google.protobuf.ByteString sessionid_ = com.google.protobuf.ByteString.EMPTY; /** *
        *会话id
        * 
* - * string sessionid = 25; + * bytes sessionid = 25; * @return The sessionid. */ - public java.lang.String getSessionid() { - java.lang.Object ref = sessionid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sessionid_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getSessionid() { + return sessionid_; } /** *
        *会话id
        * 
* - * string sessionid = 25; - * @return The bytes for sessionid. - */ - public com.google.protobuf.ByteString - getSessionidBytes() { - java.lang.Object ref = sessionid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sessionid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *会话id
-       * 
- * - * string sessionid = 25; + * bytes sessionid = 25; * @param value The sessionid to set. * @return This builder for chaining. */ - public Builder setSessionid( - java.lang.String value) { + public Builder setSessionid(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -5581,7 +4603,7 @@ public final class BussFlowWebOuterClass { *会话id * * - * string sessionid = 25; + * bytes sessionid = 25; * @return This builder for chaining. */ public Builder clearSessionid() { @@ -5590,26 +4612,6 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *会话id
-       * 
- * - * string sessionid = 25; - * @param value The bytes for sessionid to set. - * @return This builder for chaining. - */ - public Builder setSessionidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sessionid_ = value; - onChanged(); - return this; - } private com.yuandian.dataflow.proto.Base.IPAddress requestIp_; private com.google.protobuf.SingleFieldBuilderV3< @@ -6609,47 +5611,21 @@ public final class BussFlowWebOuterClass { return this; } - private java.lang.Object xRequestedWith_ = ""; + private com.google.protobuf.ByteString xRequestedWith_ = com.google.protobuf.ByteString.EMPTY; /** - * string x_requested_with = 44; + * bytes x_requested_with = 44; * @return The xRequestedWith. */ - public java.lang.String getXRequestedWith() { - java.lang.Object ref = xRequestedWith_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - xRequestedWith_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getXRequestedWith() { + return xRequestedWith_; } /** - * string x_requested_with = 44; - * @return The bytes for xRequestedWith. - */ - public com.google.protobuf.ByteString - getXRequestedWithBytes() { - java.lang.Object ref = xRequestedWith_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - xRequestedWith_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string x_requested_with = 44; + * bytes x_requested_with = 44; * @param value The xRequestedWith to set. * @return This builder for chaining. */ - public Builder setXRequestedWith( - java.lang.String value) { + public Builder setXRequestedWith(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -6659,7 +5635,7 @@ public final class BussFlowWebOuterClass { return this; } /** - * string x_requested_with = 44; + * bytes x_requested_with = 44; * @return This builder for chaining. */ public Builder clearXRequestedWith() { @@ -6668,76 +5644,30 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - * string x_requested_with = 44; - * @param value The bytes for xRequestedWith to set. - * @return This builder for chaining. - */ - public Builder setXRequestedWithBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - xRequestedWith_ = value; - onChanged(); - return this; - } - private java.lang.Object operatingSytem_ = ""; + private com.google.protobuf.ByteString operatingSytem_ = com.google.protobuf.ByteString.EMPTY; /** *
        *操作系统
        * 
* - * string operating_sytem = 45; + * bytes operating_sytem = 45; * @return The operatingSytem. */ - public java.lang.String getOperatingSytem() { - java.lang.Object ref = operatingSytem_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - operatingSytem_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getOperatingSytem() { + return operatingSytem_; } /** *
        *操作系统
        * 
* - * string operating_sytem = 45; - * @return The bytes for operatingSytem. - */ - public com.google.protobuf.ByteString - getOperatingSytemBytes() { - java.lang.Object ref = operatingSytem_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operatingSytem_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *操作系统
-       * 
- * - * string operating_sytem = 45; + * bytes operating_sytem = 45; * @param value The operatingSytem to set. * @return This builder for chaining. */ - public Builder setOperatingSytem( - java.lang.String value) { + public Builder setOperatingSytem(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -6751,7 +5681,7 @@ public final class BussFlowWebOuterClass { *操作系统 * * - * string operating_sytem = 45; + * bytes operating_sytem = 45; * @return This builder for chaining. */ public Builder clearOperatingSytem() { @@ -6760,26 +5690,6 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *操作系统
-       * 
- * - * string operating_sytem = 45; - * @param value The bytes for operatingSytem to set. - * @return This builder for chaining. - */ - public Builder setOperatingSytemBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - operatingSytem_ = value; - onChanged(); - return this; - } private int serverResCode_ ; /** @@ -6824,59 +5734,29 @@ public final class BussFlowWebOuterClass { return this; } - private java.lang.Object browser_ = ""; + private com.google.protobuf.ByteString browser_ = com.google.protobuf.ByteString.EMPTY; /** *
        *浏览器名称
        * 
* - * string browser = 47; + * bytes browser = 47; * @return The browser. */ - public java.lang.String getBrowser() { - java.lang.Object ref = browser_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - browser_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getBrowser() { + return browser_; } /** *
        *浏览器名称
        * 
* - * string browser = 47; - * @return The bytes for browser. - */ - public com.google.protobuf.ByteString - getBrowserBytes() { - java.lang.Object ref = browser_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - browser_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *浏览器名称
-       * 
- * - * string browser = 47; + * bytes browser = 47; * @param value The browser to set. * @return This builder for chaining. */ - public Builder setBrowser( - java.lang.String value) { + public Builder setBrowser(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -6890,7 +5770,7 @@ public final class BussFlowWebOuterClass { *浏览器名称 * * - * string browser = 47; + * bytes browser = 47; * @return This builder for chaining. */ public Builder clearBrowser() { @@ -6899,26 +5779,6 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *浏览器名称
-       * 
- * - * string browser = 47; - * @param value The bytes for browser to set. - * @return This builder for chaining. - */ - public Builder setBrowserBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - browser_ = value; - onChanged(); - return this; - } private int isUncomplete_ ; /** @@ -7338,59 +6198,29 @@ public final class BussFlowWebOuterClass { return this; } - private java.lang.Object bussinessDetailMesg_ = ""; + private com.google.protobuf.ByteString bussinessDetailMesg_ = com.google.protobuf.ByteString.EMPTY; /** *
        *业务纤细信息
        * 
* - * string bussiness_detail_mesg = 58; + * bytes bussiness_detail_mesg = 58; * @return The bussinessDetailMesg. */ - public java.lang.String getBussinessDetailMesg() { - java.lang.Object ref = bussinessDetailMesg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bussinessDetailMesg_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getBussinessDetailMesg() { + return bussinessDetailMesg_; } /** *
        *业务纤细信息
        * 
* - * string bussiness_detail_mesg = 58; - * @return The bytes for bussinessDetailMesg. - */ - public com.google.protobuf.ByteString - getBussinessDetailMesgBytes() { - java.lang.Object ref = bussinessDetailMesg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bussinessDetailMesg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *业务纤细信息
-       * 
- * - * string bussiness_detail_mesg = 58; + * bytes bussiness_detail_mesg = 58; * @param value The bussinessDetailMesg to set. * @return This builder for chaining. */ - public Builder setBussinessDetailMesg( - java.lang.String value) { + public Builder setBussinessDetailMesg(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -7404,7 +6234,7 @@ public final class BussFlowWebOuterClass { *业务纤细信息 * * - * string bussiness_detail_mesg = 58; + * bytes bussiness_detail_mesg = 58; * @return This builder for chaining. */ public Builder clearBussinessDetailMesg() { @@ -7413,80 +6243,30 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *业务纤细信息
-       * 
- * - * string bussiness_detail_mesg = 58; - * @param value The bytes for bussinessDetailMesg to set. - * @return This builder for chaining. - */ - public Builder setBussinessDetailMesgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bussinessDetailMesg_ = value; - onChanged(); - return this; - } - private java.lang.Object bussinessKeyMesg_ = ""; + private com.google.protobuf.ByteString bussinessKeyMesg_ = com.google.protobuf.ByteString.EMPTY; /** *
        *业务关键字
        * 
* - * string bussiness_key_mesg = 59; + * bytes bussiness_key_mesg = 59; * @return The bussinessKeyMesg. */ - public java.lang.String getBussinessKeyMesg() { - java.lang.Object ref = bussinessKeyMesg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bussinessKeyMesg_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getBussinessKeyMesg() { + return bussinessKeyMesg_; } /** *
        *业务关键字
        * 
* - * string bussiness_key_mesg = 59; - * @return The bytes for bussinessKeyMesg. - */ - public com.google.protobuf.ByteString - getBussinessKeyMesgBytes() { - java.lang.Object ref = bussinessKeyMesg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bussinessKeyMesg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *业务关键字
-       * 
- * - * string bussiness_key_mesg = 59; + * bytes bussiness_key_mesg = 59; * @param value The bussinessKeyMesg to set. * @return This builder for chaining. */ - public Builder setBussinessKeyMesg( - java.lang.String value) { + public Builder setBussinessKeyMesg(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -7500,7 +6280,7 @@ public final class BussFlowWebOuterClass { *业务关键字 * * - * string bussiness_key_mesg = 59; + * bytes bussiness_key_mesg = 59; * @return This builder for chaining. */ public Builder clearBussinessKeyMesg() { @@ -7509,80 +6289,30 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *业务关键字
-       * 
- * - * string bussiness_key_mesg = 59; - * @param value The bytes for bussinessKeyMesg to set. - * @return This builder for chaining. - */ - public Builder setBussinessKeyMesgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bussinessKeyMesg_ = value; - onChanged(); - return this; - } - private java.lang.Object reqData_ = ""; + private com.google.protobuf.ByteString reqData_ = com.google.protobuf.ByteString.EMPTY; /** *
        *请求详情报文
        * 
* - * string req_data = 60; + * bytes req_data = 60; * @return The reqData. */ - public java.lang.String getReqData() { - java.lang.Object ref = reqData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reqData_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getReqData() { + return reqData_; } /** *
        *请求详情报文
        * 
* - * string req_data = 60; - * @return The bytes for reqData. - */ - public com.google.protobuf.ByteString - getReqDataBytes() { - java.lang.Object ref = reqData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reqData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *请求详情报文
-       * 
- * - * string req_data = 60; + * bytes req_data = 60; * @param value The reqData to set. * @return This builder for chaining. */ - public Builder setReqData( - java.lang.String value) { + public Builder setReqData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -7596,7 +6326,7 @@ public final class BussFlowWebOuterClass { *请求详情报文 * * - * string req_data = 60; + * bytes req_data = 60; * @return This builder for chaining. */ public Builder clearReqData() { @@ -7605,80 +6335,30 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *请求详情报文
-       * 
- * - * string req_data = 60; - * @param value The bytes for reqData to set. - * @return This builder for chaining. - */ - public Builder setReqDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reqData_ = value; - onChanged(); - return this; - } - private java.lang.Object resData_ = ""; + private com.google.protobuf.ByteString resData_ = com.google.protobuf.ByteString.EMPTY; /** *
        *响应详情报文
        * 
* - * string res_data = 61; + * bytes res_data = 61; * @return The resData. */ - public java.lang.String getResData() { - java.lang.Object ref = resData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resData_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getResData() { + return resData_; } /** *
        *响应详情报文
        * 
* - * string res_data = 61; - * @return The bytes for resData. - */ - public com.google.protobuf.ByteString - getResDataBytes() { - java.lang.Object ref = resData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *响应详情报文
-       * 
- * - * string res_data = 61; + * bytes res_data = 61; * @param value The resData to set. * @return This builder for chaining. */ - public Builder setResData( - java.lang.String value) { + public Builder setResData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -7692,7 +6372,7 @@ public final class BussFlowWebOuterClass { *响应详情报文 * * - * string res_data = 61; + * bytes res_data = 61; * @return This builder for chaining. */ public Builder clearResData() { @@ -7701,80 +6381,30 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *响应详情报文
-       * 
- * - * string res_data = 61; - * @param value The bytes for resData to set. - * @return This builder for chaining. - */ - public Builder setResDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resData_ = value; - onChanged(); - return this; - } - private java.lang.Object cookieData_ = ""; + private com.google.protobuf.ByteString cookieData_ = com.google.protobuf.ByteString.EMPTY; /** *
        *cookie详情报文
        * 
* - * string cookie_data = 62; + * bytes cookie_data = 62; * @return The cookieData. */ - public java.lang.String getCookieData() { - java.lang.Object ref = cookieData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cookieData_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getCookieData() { + return cookieData_; } /** *
        *cookie详情报文
        * 
* - * string cookie_data = 62; - * @return The bytes for cookieData. - */ - public com.google.protobuf.ByteString - getCookieDataBytes() { - java.lang.Object ref = cookieData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cookieData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *cookie详情报文
-       * 
- * - * string cookie_data = 62; + * bytes cookie_data = 62; * @param value The cookieData to set. * @return This builder for chaining. */ - public Builder setCookieData( - java.lang.String value) { + public Builder setCookieData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -7788,7 +6418,7 @@ public final class BussFlowWebOuterClass { *cookie详情报文 * * - * string cookie_data = 62; + * bytes cookie_data = 62; * @return This builder for chaining. */ public Builder clearCookieData() { @@ -7797,80 +6427,30 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *cookie详情报文
-       * 
- * - * string cookie_data = 62; - * @param value The bytes for cookieData to set. - * @return This builder for chaining. - */ - public Builder setCookieDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cookieData_ = value; - onChanged(); - return this; - } - private java.lang.Object beginUrl_ = ""; + private com.google.protobuf.ByteString beginUrl_ = com.google.protobuf.ByteString.EMPTY; /** *
        *主url详情
        * 
* - * string begin_url = 63; + * bytes begin_url = 63; * @return The beginUrl. */ - public java.lang.String getBeginUrl() { - java.lang.Object ref = beginUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - beginUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getBeginUrl() { + return beginUrl_; } /** *
        *主url详情
        * 
* - * string begin_url = 63; - * @return The bytes for beginUrl. - */ - public com.google.protobuf.ByteString - getBeginUrlBytes() { - java.lang.Object ref = beginUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - beginUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *主url详情
-       * 
- * - * string begin_url = 63; + * bytes begin_url = 63; * @param value The beginUrl to set. * @return This builder for chaining. */ - public Builder setBeginUrl( - java.lang.String value) { + public Builder setBeginUrl(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -7884,7 +6464,7 @@ public final class BussFlowWebOuterClass { *主url详情 * * - * string begin_url = 63; + * bytes begin_url = 63; * @return This builder for chaining. */ public Builder clearBeginUrl() { @@ -7893,80 +6473,30 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *主url详情
-       * 
- * - * string begin_url = 63; - * @param value The bytes for beginUrl to set. - * @return This builder for chaining. - */ - public Builder setBeginUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - beginUrl_ = value; - onChanged(); - return this; - } - private java.lang.Object referUrl_ = ""; + private com.google.protobuf.ByteString referUrl_ = com.google.protobuf.ByteString.EMPTY; /** *
        *引用url详情
        * 
* - * string refer_url = 64; + * bytes refer_url = 64; * @return The referUrl. */ - public java.lang.String getReferUrl() { - java.lang.Object ref = referUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - referUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getReferUrl() { + return referUrl_; } /** *
        *引用url详情
        * 
* - * string refer_url = 64; - * @return The bytes for referUrl. - */ - public com.google.protobuf.ByteString - getReferUrlBytes() { - java.lang.Object ref = referUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - referUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *引用url详情
-       * 
- * - * string refer_url = 64; + * bytes refer_url = 64; * @param value The referUrl to set. * @return This builder for chaining. */ - public Builder setReferUrl( - java.lang.String value) { + public Builder setReferUrl(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -7980,7 +6510,7 @@ public final class BussFlowWebOuterClass { *引用url详情 * * - * string refer_url = 64; + * bytes refer_url = 64; * @return This builder for chaining. */ public Builder clearReferUrl() { @@ -7989,68 +6519,22 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - *
-       *引用url详情
-       * 
- * - * string refer_url = 64; - * @param value The bytes for referUrl to set. - * @return This builder for chaining. - */ - public Builder setReferUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - referUrl_ = value; - onChanged(); - return this; - } - private java.lang.Object remainData_ = ""; + private com.google.protobuf.ByteString remainData_ = com.google.protobuf.ByteString.EMPTY; /** - * string remain_data = 65; + * bytes remain_data = 65; * @return The remainData. */ - public java.lang.String getRemainData() { - java.lang.Object ref = remainData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remainData_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getRemainData() { + return remainData_; } /** - * string remain_data = 65; - * @return The bytes for remainData. - */ - public com.google.protobuf.ByteString - getRemainDataBytes() { - java.lang.Object ref = remainData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remainData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string remain_data = 65; + * bytes remain_data = 65; * @param value The remainData to set. * @return This builder for chaining. */ - public Builder setRemainData( - java.lang.String value) { + public Builder setRemainData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -8060,7 +6544,7 @@ public final class BussFlowWebOuterClass { return this; } /** - * string remain_data = 65; + * bytes remain_data = 65; * @return This builder for chaining. */ public Builder clearRemainData() { @@ -8069,22 +6553,6 @@ public final class BussFlowWebOuterClass { onChanged(); return this; } - /** - * string remain_data = 65; - * @param value The bytes for remainData to set. - * @return This builder for chaining. - */ - public Builder setRemainDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - remainData_ = value; - onChanged(); - return this; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8154,7 +6622,7 @@ public final class BussFlowWebOuterClass { java.lang.String[] descriptorData = { "\n\021BussFlowWeb.proto\022\010dataflow\032\nBase.prot" + "o\"\261\014\n\013BussFlowWeb\022\020\n\010table_id\030\001 \001(\005\022\020\n\010m" + - "sg_type\030\002 \001(\r\022\023\n\013msg_version\030\003 \001(\t\022\017\n\007ms" + + "sg_type\030\002 \001(\r\022\023\n\013msg_version\030\003 \001(\014\022\017\n\007ms" + "g_seq\030\004 \001(\r\022\017\n\007msg_len\030\005 \001(\r\022\017\n\007src_mac\030" + "\006 \001(\004\022\017\n\007dst_mac\030\007 \001(\004\022\017\n\007vlan_id\030\010 \001(\r\022" + "\013\n\003tos\030\t \001(\r\022\024\n\014retran_count\030\n \001(\r\022\023\n\013re" + @@ -8162,10 +6630,10 @@ public final class BussFlowWebOuterClass { "\n\010protocol\030\r \001(\r\022\026\n\016response_bytes\030\016 \001(\r" + "\022\025\n\rrequest_bytes\030\017 \001(\r\022\030\n\020response_pack" + "ets\030\020 \001(\r\022\027\n\017request_packets\030\021 \001(\r\022\017\n\007se" + - "q_ack\030\022 \001(\t\022\024\n\014recog_status\030\023 \001(\r\022\022\n\nreq" + - "_method\030\024 \001(\r\022\024\n\014content_type\030\025 \001(\t\022\016\n\006a" + - "ccept\030\026 \001(\t\022\020\n\010probe_if\030\027 \001(\r\022\017\n\007channel" + - "\030\030 \001(\t\022\021\n\tsessionid\030\031 \001(\t\022\'\n\nrequest_ip\030" + + "q_ack\030\022 \001(\014\022\024\n\014recog_status\030\023 \001(\r\022\022\n\nreq" + + "_method\030\024 \001(\r\022\024\n\014content_type\030\025 \001(\014\022\016\n\006a" + + "ccept\030\026 \001(\014\022\020\n\010probe_if\030\027 \001(\r\022\017\n\007channel" + + "\030\030 \001(\014\022\021\n\tsessionid\030\031 \001(\014\022\'\n\nrequest_ip\030" + "\032 \001(\0132\023.dataflow.IPAddress\022\024\n\014request_po" + "rt\030\033 \001(\r\022(\n\013response_ip\030\034 \001(\0132\023.dataflow" + ".IPAddress\022\025\n\rresponse_port\030\035 \001(\r\022\031\n\021sta" + @@ -8181,18 +6649,18 @@ public final class BussFlowWebOuterClass { "\003\022$\n\034locate_server_translate_time\030) \001(\003\022" + "#\n\033locate_server_response_time\030* \001(\003\022$\n\034" + "locate_client_translate_time\030+ \001(\003\022\030\n\020x_" + - "requested_with\030, \001(\t\022\027\n\017operating_sytem\030" + - "- \001(\t\022\027\n\017server_res_code\030. \001(\r\022\017\n\007browse" + - "r\030/ \001(\t\022\025\n\ris_uncomplete\0300 \001(\005\022\021\n\ttime_f" + + "requested_with\030, \001(\014\022\027\n\017operating_sytem\030" + + "- \001(\014\022\027\n\017server_res_code\030. \001(\r\022\017\n\007browse" + + "r\030/ \001(\014\022\025\n\ris_uncomplete\0300 \001(\005\022\021\n\ttime_f" + "lag\0301 \001(\r\022\026\n\016detail_msg_len\0302 \001(\r\022\023\n\013key" + "_msg_len\0303 \001(\r\022\017\n\007req_len\0304 \001(\r\022\017\n\007res_l" + "en\0305 \001(\r\022\022\n\ncookie_len\0306 \001(\r\022\025\n\rbegin_ur" + "l_len\0307 \001(\r\022\025\n\rrefer_url_len\0308 \001(\r\022\022\n\nre" + "main_len\0309 \001(\r\022\035\n\025bussiness_detail_mesg\030" + - ": \001(\t\022\032\n\022bussiness_key_mesg\030; \001(\t\022\020\n\010req" + - "_data\030< \001(\t\022\020\n\010res_data\030= \001(\t\022\023\n\013cookie_" + - "data\030> \001(\t\022\021\n\tbegin_url\030? \001(\t\022\021\n\trefer_u" + - "rl\030@ \001(\t\022\023\n\013remain_data\030A \001(\tB<\n#com.yua" + + ": \001(\014\022\032\n\022bussiness_key_mesg\030; \001(\014\022\020\n\010req" + + "_data\030< \001(\014\022\020\n\010res_data\030= \001(\014\022\023\n\013cookie_" + + "data\030> \001(\014\022\021\n\tbegin_url\030? \001(\014\022\021\n\trefer_u" + + "rl\030@ \001(\014\022\023\n\013remain_data\030A \001(\014B<\n#com.yua" + "ndian.dataflow.proto.msgtypeP\000Z\023../grpc-" + "gen;grpcgenb\006proto3" }; diff --git a/src/main/java/com/yuandian/dataflow/proto/msgtype/UsrFlowOuterClass.java b/src/main/java/com/yuandian/dataflow/proto/msgtype/UsrFlowOuterClass.java index a829cdc..096b9ca 100644 --- a/src/main/java/com/yuandian/dataflow/proto/msgtype/UsrFlowOuterClass.java +++ b/src/main/java/com/yuandian/dataflow/proto/msgtype/UsrFlowOuterClass.java @@ -131,28 +131,16 @@ public final class UsrFlowOuterClass { int getAppGroupId(); /** - * string request_url = 16; + * bytes request_url = 16; * @return The requestUrl. */ - java.lang.String getRequestUrl(); - /** - * string request_url = 16; - * @return The bytes for requestUrl. - */ - com.google.protobuf.ByteString - getRequestUrlBytes(); + com.google.protobuf.ByteString getRequestUrl(); /** - * string referer_url = 17; + * bytes referer_url = 17; * @return The refererUrl. */ - java.lang.String getRefererUrl(); - /** - * string referer_url = 17; - * @return The bytes for refererUrl. - */ - com.google.protobuf.ByteString - getRefererUrlBytes(); + com.google.protobuf.ByteString getRefererUrl(); /** * uint32 return_code = 18; @@ -209,28 +197,16 @@ public final class UsrFlowOuterClass { int getServerPackets(); /** - * string user_agent = 27; + * bytes user_agent = 27; * @return The userAgent. */ - java.lang.String getUserAgent(); - /** - * string user_agent = 27; - * @return The bytes for userAgent. - */ - com.google.protobuf.ByteString - getUserAgentBytes(); + com.google.protobuf.ByteString getUserAgent(); /** - * string content_type = 28; + * bytes content_type = 28; * @return The contentType. */ - java.lang.String getContentType(); - /** - * string content_type = 28; - * @return The bytes for contentType. - */ - com.google.protobuf.ByteString - getContentTypeBytes(); + com.google.protobuf.ByteString getContentType(); /** * uint32 request_transfer_tm = 29; @@ -257,10 +233,10 @@ public final class UsrFlowOuterClass { super(builder); } private UsrFlow() { - requestUrl_ = ""; - refererUrl_ = ""; - userAgent_ = ""; - contentType_ = ""; + requestUrl_ = com.google.protobuf.ByteString.EMPTY; + refererUrl_ = com.google.protobuf.ByteString.EMPTY; + userAgent_ = com.google.protobuf.ByteString.EMPTY; + contentType_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @@ -385,15 +361,13 @@ public final class UsrFlowOuterClass { break; } case 130: { - java.lang.String s = input.readStringRequireUtf8(); - requestUrl_ = s; + requestUrl_ = input.readBytes(); break; } case 138: { - java.lang.String s = input.readStringRequireUtf8(); - refererUrl_ = s; + refererUrl_ = input.readBytes(); break; } case 144: { @@ -442,15 +416,13 @@ public final class UsrFlowOuterClass { break; } case 218: { - java.lang.String s = input.readStringRequireUtf8(); - userAgent_ = s; + userAgent_ = input.readBytes(); break; } case 226: { - java.lang.String s = input.readStringRequireUtf8(); - contentType_ = s; + contentType_ = input.readBytes(); break; } case 232: { @@ -697,79 +669,25 @@ public final class UsrFlowOuterClass { } public static final int REQUEST_URL_FIELD_NUMBER = 16; - private volatile java.lang.Object requestUrl_; + private com.google.protobuf.ByteString requestUrl_; /** - * string request_url = 16; + * bytes request_url = 16; * @return The requestUrl. */ @java.lang.Override - public java.lang.String getRequestUrl() { - java.lang.Object ref = requestUrl_; - 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(); - requestUrl_ = s; - return s; - } - } - /** - * string request_url = 16; - * @return The bytes for requestUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestUrlBytes() { - java.lang.Object ref = requestUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getRequestUrl() { + return requestUrl_; } public static final int REFERER_URL_FIELD_NUMBER = 17; - private volatile java.lang.Object refererUrl_; + private com.google.protobuf.ByteString refererUrl_; /** - * string referer_url = 17; + * bytes referer_url = 17; * @return The refererUrl. */ @java.lang.Override - public java.lang.String getRefererUrl() { - java.lang.Object ref = refererUrl_; - 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(); - refererUrl_ = s; - return s; - } - } - /** - * string referer_url = 17; - * @return The bytes for refererUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRefererUrlBytes() { - java.lang.Object ref = refererUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - refererUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getRefererUrl() { + return refererUrl_; } public static final int RETURN_CODE_FIELD_NUMBER = 18; @@ -872,79 +790,25 @@ public final class UsrFlowOuterClass { } public static final int USER_AGENT_FIELD_NUMBER = 27; - private volatile java.lang.Object userAgent_; + private com.google.protobuf.ByteString userAgent_; /** - * string user_agent = 27; + * bytes user_agent = 27; * @return The userAgent. */ @java.lang.Override - public java.lang.String getUserAgent() { - java.lang.Object ref = userAgent_; - 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(); - userAgent_ = s; - return s; - } - } - /** - * string user_agent = 27; - * @return The bytes for userAgent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUserAgentBytes() { - java.lang.Object ref = userAgent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userAgent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getUserAgent() { + return userAgent_; } public static final int CONTENT_TYPE_FIELD_NUMBER = 28; - private volatile java.lang.Object contentType_; + private com.google.protobuf.ByteString contentType_; /** - * string content_type = 28; + * bytes content_type = 28; * @return The contentType. */ @java.lang.Override - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - 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(); - contentType_ = s; - return s; - } - } - /** - * string content_type = 28; - * @return The bytes for contentType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getContentType() { + return contentType_; } public static final int REQUEST_TRANSFER_TM_FIELD_NUMBER = 29; @@ -1028,11 +892,11 @@ public final class UsrFlowOuterClass { if (appGroupId_ != 0) { output.writeUInt32(15, appGroupId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, requestUrl_); + if (!requestUrl_.isEmpty()) { + output.writeBytes(16, requestUrl_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(refererUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, refererUrl_); + if (!refererUrl_.isEmpty()) { + output.writeBytes(17, refererUrl_); } if (returnCode_ != 0) { output.writeUInt32(18, returnCode_); @@ -1061,11 +925,11 @@ public final class UsrFlowOuterClass { if (serverPackets_ != 0) { output.writeUInt32(26, serverPackets_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 27, userAgent_); + if (!userAgent_.isEmpty()) { + output.writeBytes(27, userAgent_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 28, contentType_); + if (!contentType_.isEmpty()) { + output.writeBytes(28, contentType_); } if (requestTransferTm_ != 0) { output.writeUInt32(29, requestTransferTm_); @@ -1142,11 +1006,13 @@ public final class UsrFlowOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(15, appGroupId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, requestUrl_); + if (!requestUrl_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(16, requestUrl_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(refererUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, refererUrl_); + if (!refererUrl_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(17, refererUrl_); } if (returnCode_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -1184,11 +1050,13 @@ public final class UsrFlowOuterClass { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(26, serverPackets_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userAgent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, userAgent_); + if (!userAgent_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(27, userAgent_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, contentType_); + if (!contentType_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(28, contentType_); } if (requestTransferTm_ != 0) { size += com.google.protobuf.CodedOutputStream @@ -1525,9 +1393,9 @@ public final class UsrFlowOuterClass { appGroupId_ = 0; - requestUrl_ = ""; + requestUrl_ = com.google.protobuf.ByteString.EMPTY; - refererUrl_ = ""; + refererUrl_ = com.google.protobuf.ByteString.EMPTY; returnCode_ = 0; @@ -1547,9 +1415,9 @@ public final class UsrFlowOuterClass { serverPackets_ = 0; - userAgent_ = ""; + userAgent_ = com.google.protobuf.ByteString.EMPTY; - contentType_ = ""; + contentType_ = com.google.protobuf.ByteString.EMPTY; requestTransferTm_ = 0; @@ -1712,13 +1580,11 @@ public final class UsrFlowOuterClass { if (other.getAppGroupId() != 0) { setAppGroupId(other.getAppGroupId()); } - if (!other.getRequestUrl().isEmpty()) { - requestUrl_ = other.requestUrl_; - onChanged(); + if (other.getRequestUrl() != com.google.protobuf.ByteString.EMPTY) { + setRequestUrl(other.getRequestUrl()); } - if (!other.getRefererUrl().isEmpty()) { - refererUrl_ = other.refererUrl_; - onChanged(); + if (other.getRefererUrl() != com.google.protobuf.ByteString.EMPTY) { + setRefererUrl(other.getRefererUrl()); } if (other.getReturnCode() != 0) { setReturnCode(other.getReturnCode()); @@ -1747,13 +1613,11 @@ public final class UsrFlowOuterClass { if (other.getServerPackets() != 0) { setServerPackets(other.getServerPackets()); } - if (!other.getUserAgent().isEmpty()) { - userAgent_ = other.userAgent_; - onChanged(); + if (other.getUserAgent() != com.google.protobuf.ByteString.EMPTY) { + setUserAgent(other.getUserAgent()); } - if (!other.getContentType().isEmpty()) { - contentType_ = other.contentType_; - onChanged(); + if (other.getContentType() != com.google.protobuf.ByteString.EMPTY) { + setContentType(other.getContentType()); } if (other.getRequestTransferTm() != 0) { setRequestTransferTm(other.getRequestTransferTm()); @@ -2443,47 +2307,21 @@ public final class UsrFlowOuterClass { return this; } - private java.lang.Object requestUrl_ = ""; + private com.google.protobuf.ByteString requestUrl_ = com.google.protobuf.ByteString.EMPTY; /** - * string request_url = 16; + * bytes request_url = 16; * @return The requestUrl. */ - public java.lang.String getRequestUrl() { - java.lang.Object ref = requestUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getRequestUrl() { + return requestUrl_; } /** - * string request_url = 16; - * @return The bytes for requestUrl. - */ - public com.google.protobuf.ByteString - getRequestUrlBytes() { - java.lang.Object ref = requestUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string request_url = 16; + * bytes request_url = 16; * @param value The requestUrl to set. * @return This builder for chaining. */ - public Builder setRequestUrl( - java.lang.String value) { + public Builder setRequestUrl(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -2493,7 +2331,7 @@ public final class UsrFlowOuterClass { return this; } /** - * string request_url = 16; + * bytes request_url = 16; * @return This builder for chaining. */ public Builder clearRequestUrl() { @@ -2502,64 +2340,22 @@ public final class UsrFlowOuterClass { onChanged(); return this; } - /** - * string request_url = 16; - * @param value The bytes for requestUrl to set. - * @return This builder for chaining. - */ - public Builder setRequestUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestUrl_ = value; - onChanged(); - return this; - } - private java.lang.Object refererUrl_ = ""; + private com.google.protobuf.ByteString refererUrl_ = com.google.protobuf.ByteString.EMPTY; /** - * string referer_url = 17; + * bytes referer_url = 17; * @return The refererUrl. */ - public java.lang.String getRefererUrl() { - java.lang.Object ref = refererUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - refererUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getRefererUrl() { + return refererUrl_; } /** - * string referer_url = 17; - * @return The bytes for refererUrl. - */ - public com.google.protobuf.ByteString - getRefererUrlBytes() { - java.lang.Object ref = refererUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - refererUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string referer_url = 17; + * bytes referer_url = 17; * @param value The refererUrl to set. * @return This builder for chaining. */ - public Builder setRefererUrl( - java.lang.String value) { + public Builder setRefererUrl(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -2569,7 +2365,7 @@ public final class UsrFlowOuterClass { return this; } /** - * string referer_url = 17; + * bytes referer_url = 17; * @return This builder for chaining. */ public Builder clearRefererUrl() { @@ -2578,22 +2374,6 @@ public final class UsrFlowOuterClass { onChanged(); return this; } - /** - * string referer_url = 17; - * @param value The bytes for refererUrl to set. - * @return This builder for chaining. - */ - public Builder setRefererUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - refererUrl_ = value; - onChanged(); - return this; - } private int returnCode_ ; /** @@ -2874,47 +2654,21 @@ public final class UsrFlowOuterClass { return this; } - private java.lang.Object userAgent_ = ""; + private com.google.protobuf.ByteString userAgent_ = com.google.protobuf.ByteString.EMPTY; /** - * string user_agent = 27; + * bytes user_agent = 27; * @return The userAgent. */ - public java.lang.String getUserAgent() { - java.lang.Object ref = userAgent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userAgent_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getUserAgent() { + return userAgent_; } /** - * string user_agent = 27; - * @return The bytes for userAgent. - */ - public com.google.protobuf.ByteString - getUserAgentBytes() { - java.lang.Object ref = userAgent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userAgent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string user_agent = 27; + * bytes user_agent = 27; * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent( - java.lang.String value) { + public Builder setUserAgent(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -2924,7 +2678,7 @@ public final class UsrFlowOuterClass { return this; } /** - * string user_agent = 27; + * bytes user_agent = 27; * @return This builder for chaining. */ public Builder clearUserAgent() { @@ -2933,64 +2687,22 @@ public final class UsrFlowOuterClass { onChanged(); return this; } - /** - * string user_agent = 27; - * @param value The bytes for userAgent to set. - * @return This builder for chaining. - */ - public Builder setUserAgentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - userAgent_ = value; - onChanged(); - return this; - } - private java.lang.Object contentType_ = ""; + private com.google.protobuf.ByteString contentType_ = com.google.protobuf.ByteString.EMPTY; /** - * string content_type = 28; + * bytes content_type = 28; * @return The contentType. */ - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contentType_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.ByteString getContentType() { + return contentType_; } /** - * string content_type = 28; - * @return The bytes for contentType. - */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string content_type = 28; + * bytes content_type = 28; * @param value The contentType to set. * @return This builder for chaining. */ - public Builder setContentType( - java.lang.String value) { + public Builder setContentType(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } @@ -3000,7 +2712,7 @@ public final class UsrFlowOuterClass { return this; } /** - * string content_type = 28; + * bytes content_type = 28; * @return This builder for chaining. */ public Builder clearContentType() { @@ -3009,22 +2721,6 @@ public final class UsrFlowOuterClass { onChanged(); return this; } - /** - * string content_type = 28; - * @param value The bytes for contentType to set. - * @return This builder for chaining. - */ - public Builder setContentTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contentType_ = value; - onChanged(); - return this; - } private int requestTransferTm_ ; /** @@ -3163,14 +2859,14 @@ public final class UsrFlowOuterClass { " \001(\r\022\021\n\ts_tv_usec\030\t \001(\r\022\020\n\010e_tv_sec\030\n \001(" + "\r\022\021\n\te_tv_usec\030\013 \001(\r\022\024\n\014server_think\030\014 \001" + "(\r\022\021\n\tpage_size\030\r \001(\r\022\016\n\006app_id\030\016 \001(\r\022\024\n" + - "\014app_group_id\030\017 \001(\r\022\023\n\013request_url\030\020 \001(\t" + - "\022\023\n\013referer_url\030\021 \001(\t\022\023\n\013return_code\030\022 \001" + + "\014app_group_id\030\017 \001(\r\022\023\n\013request_url\030\020 \001(\014" + + "\022\023\n\013referer_url\030\021 \001(\014\022\023\n\013return_code\030\022 \001" + "(\r\022\022\n\nerr_tv_sec\030\023 \001(\r\022\023\n\013err_tv_usec\030\024 " + "\001(\r\022\027\n\017client_loss_pkt\030\025 \001(\r\022\027\n\017server_l" + "oss_pkt\030\026 \001(\r\022\024\n\014client_bytes\030\027 \001(\r\022\024\n\014s" + "erver_bytes\030\030 \001(\r\022\026\n\016client_packets\030\031 \001(" + "\r\022\026\n\016server_packets\030\032 \001(\r\022\022\n\nuser_agent\030" + - "\033 \001(\t\022\024\n\014content_type\030\034 \001(\t\022\033\n\023request_t" + + "\033 \001(\014\022\024\n\014content_type\030\034 \001(\014\022\033\n\023request_t" + "ransfer_tm\030\035 \001(\r\022\021\n\ttime_flag\030\036 \001(\rB<\n#c" + "om.yuandian.dataflow.proto.msgtypeP\000Z\023.." + "/grpc-gen;grpcgenb\006proto3" diff --git a/src/main/proto b/src/main/proto index bc99744..f6e1792 160000 --- a/src/main/proto +++ b/src/main/proto @@ -1 +1 @@ -Subproject commit bc997440f085ce75fadc071803b0b359bbf6ccb3 +Subproject commit f6e1792ff1747e23ad9963910991be43e96bd2bd