From faa20d8bf86bafd2d7fbb42a62695fc7c64fbe0c Mon Sep 17 00:00:00 2001
From: huangsimin <474420502@qq.com>
Date: Thu, 28 Jul 2022 16:10:55 +0800
Subject: [PATCH] =?UTF-8?q?1.=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81=202.?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0protoc=E8=87=AA=E5=8A=A8=E5=A4=84=E7=90=86?=
=?UTF-8?q?=E7=9A=84protoc?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 26 +
.../dataflow/controller/PacketsProcessor.java | 11 +-
.../controller/TransferLeaderProcessor.java | 1 -
.../dataflow/grpc/CollectPacketsServer.java | 18 +-
.../java/com/yuandian/dataflow/projo/Doc.java | 22 +-
.../msgtype/BasicTrafficFlowOuterClass.java | 1597 ------
.../msgtype/BusinessBodyDataOuterClass.java | 2466 ---------
.../proto/msgtype/BussFlowOrlOuterClass.java | 3382 -------------
.../proto/msgtype/DataFlowOuterClass.java | 4468 -----------------
.../proto/msgtype/SstFlowOuterClass.java | 3155 ------------
.../dataflow/statemachine/StateFactory.java | 7 +-
.../dataflow/statemachine/StateMachine.java | 13 +-
.../statemachine/closure/GenericClosure.java | 7 -
.../statemachine/operate/Operate.java | 7 +-
.../statemachine/rpc/OperateProcessor.java | 10 -
.../statemachine/rpc/RaftResponse.java | 2 -
.../java/com/yuandian/dataflow/AppTest.java | 24 -
.../com/yuandian/dataflow/MongodbTest.java | 11 -
.../statemachine/StateMachineTest.java | 10 -
19 files changed, 49 insertions(+), 15188 deletions(-)
delete mode 100644 src/main/java/com/yuandian/dataflow/proto/msgtype/BasicTrafficFlowOuterClass.java
delete mode 100644 src/main/java/com/yuandian/dataflow/proto/msgtype/BusinessBodyDataOuterClass.java
delete mode 100644 src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowOrlOuterClass.java
delete mode 100644 src/main/java/com/yuandian/dataflow/proto/msgtype/DataFlowOuterClass.java
delete mode 100644 src/main/java/com/yuandian/dataflow/proto/msgtype/SstFlowOuterClass.java
diff --git a/pom.xml b/pom.xml
index 2d4aaf4..05b5a17 100644
--- a/pom.xml
+++ b/pom.xml
@@ -216,6 +216,32 @@
1.6.2
+
+ org.xolstice.maven.plugins
+ protobuf-maven-plugin
+ 0.6.1
+
+
+ grpc-java
+ com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
+ io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
+ ${basedir}/src/main/java
+ false
+
+
+
+
+ compile
+ compile-custom
+ test-compile
+ test-compile-custom
+
+
+
+
+
+
+
org.apache.maven.plugins
maven-jar-plugin
diff --git a/src/main/java/com/yuandian/dataflow/controller/PacketsProcessor.java b/src/main/java/com/yuandian/dataflow/controller/PacketsProcessor.java
index 2163df5..b215770 100644
--- a/src/main/java/com/yuandian/dataflow/controller/PacketsProcessor.java
+++ b/src/main/java/com/yuandian/dataflow/controller/PacketsProcessor.java
@@ -10,13 +10,7 @@ import java.io.Serializable;
import java.time.Instant;
import java.util.ArrayList;
-import org.slf4j.Marker;
-import org.slf4j.MarkerFactory;
-
import com.alipay.sofa.jraft.Status;
-import com.alipay.sofa.jraft.entity.PeerId;
-import com.alipay.sofa.jraft.error.RemotingException;
-import com.alipay.sofa.jraft.rpc.InvokeCallback;
import com.alipay.sofa.jraft.rpc.RpcContext;
import com.alipay.sofa.jraft.rpc.RpcProcessor;
import com.google.protobuf.Any;
@@ -25,14 +19,11 @@ import com.yuandian.dataflow.statemachine.closure.GenericClosure;
import com.yuandian.dataflow.statemachine.operate.Operate;
import com.yuandian.dataflow.statemachine.operate.Operate.OperateType;
import com.yuandian.dataflow.statemachine.rpc.RaftResponse;
-import com.yuandian.dataflow.statemachine.rpc.OperateProcessor;
-
import com.yuandian.dataflow.statemachine.rpc.annotations.ProcessorRaft;
import com.yuandian.dataflow.statemachine.state.State;
import lombok.Getter;
import lombok.Setter;
-
import lombok.extern.slf4j.Slf4j;
/**
@@ -63,7 +54,7 @@ public class PacketsProcessor implements RpcProcessorint32 table_id = 1;
- * @return The tableId.
- */
- int getTableId();
-
- /**
- * int32 cap_port = 2;
- * @return The capPort.
- */
- int getCapPort();
-
- /**
- * int32 request_port = 3;
- * @return The requestPort.
- */
- int getRequestPort();
-
- /**
- * int32 response_port = 4;
- * @return The responsePort.
- */
- int getResponsePort();
-
- /**
- * int32 request_ip = 5;
- * @return The requestIp.
- */
- int getRequestIp();
-
- /**
- * int32 response_ip = 6;
- * @return The responseIp.
- */
- int getResponseIp();
-
- /**
- * int32 start_time = 7;
- * @return The startTime.
- */
- int getStartTime();
-
- /**
- * int32 total_bytes = 8;
- * @return The totalBytes.
- */
- int getTotalBytes();
-
- /**
- * int32 total_packets = 9;
- * @return The totalPackets.
- */
- int getTotalPackets();
-
- /**
- * int32 spackets64 = 10;
- * @return The spackets64.
- */
- int getSpackets64();
-
- /**
- * int32 spackets128 = 11;
- * @return The spackets128.
- */
- int getSpackets128();
-
- /**
- * int32 spackets256 = 12;
- * @return The spackets256.
- */
- int getSpackets256();
-
- /**
- * int32 spackets512 = 13;
- * @return The spackets512.
- */
- int getSpackets512();
-
- /**
- * int32 spackets1024 = 14;
- * @return The spackets1024.
- */
- int getSpackets1024();
-
- /**
- * int32 spackets = 15;
- * @return The spackets.
- */
- int getSpackets();
-
- /**
- * int32 send_time = 16;
- * @return The sendTime.
- */
- int getSendTime();
- }
- /**
- * Protobuf type {@code dataflow.BasicTrafficFlow}
- */
- public static final class BasicTrafficFlow extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:dataflow.BasicTrafficFlow)
- BasicTrafficFlowOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use BasicTrafficFlow.newBuilder() to construct.
- private BasicTrafficFlow(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private BasicTrafficFlow() {
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new BasicTrafficFlow();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private BasicTrafficFlow(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
-
- tableId_ = input.readInt32();
- break;
- }
- case 16: {
-
- capPort_ = input.readInt32();
- break;
- }
- case 24: {
-
- requestPort_ = input.readInt32();
- break;
- }
- case 32: {
-
- responsePort_ = input.readInt32();
- break;
- }
- case 40: {
-
- requestIp_ = input.readInt32();
- break;
- }
- case 48: {
-
- responseIp_ = input.readInt32();
- break;
- }
- case 56: {
-
- startTime_ = input.readInt32();
- break;
- }
- case 64: {
-
- totalBytes_ = input.readInt32();
- break;
- }
- case 72: {
-
- totalPackets_ = input.readInt32();
- break;
- }
- case 80: {
-
- spackets64_ = input.readInt32();
- break;
- }
- case 88: {
-
- spackets128_ = input.readInt32();
- break;
- }
- case 96: {
-
- spackets256_ = input.readInt32();
- break;
- }
- case 104: {
-
- spackets512_ = input.readInt32();
- break;
- }
- case 112: {
-
- spackets1024_ = input.readInt32();
- break;
- }
- case 120: {
-
- spackets_ = input.readInt32();
- break;
- }
- case 128: {
-
- sendTime_ = input.readInt32();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.internal_static_dataflow_BasicTrafficFlow_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.internal_static_dataflow_BasicTrafficFlow_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow.class, com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow.Builder.class);
- }
-
- public static final int TABLE_ID_FIELD_NUMBER = 1;
- private int tableId_;
- /**
- * int32 table_id = 1;
- * @return The tableId.
- */
- @java.lang.Override
- public int getTableId() {
- return tableId_;
- }
-
- public static final int CAP_PORT_FIELD_NUMBER = 2;
- private int capPort_;
- /**
- * int32 cap_port = 2;
- * @return The capPort.
- */
- @java.lang.Override
- public int getCapPort() {
- return capPort_;
- }
-
- public static final int REQUEST_PORT_FIELD_NUMBER = 3;
- private int requestPort_;
- /**
- * int32 request_port = 3;
- * @return The requestPort.
- */
- @java.lang.Override
- public int getRequestPort() {
- return requestPort_;
- }
-
- public static final int RESPONSE_PORT_FIELD_NUMBER = 4;
- private int responsePort_;
- /**
- * int32 response_port = 4;
- * @return The responsePort.
- */
- @java.lang.Override
- public int getResponsePort() {
- return responsePort_;
- }
-
- public static final int REQUEST_IP_FIELD_NUMBER = 5;
- private int requestIp_;
- /**
- * int32 request_ip = 5;
- * @return The requestIp.
- */
- @java.lang.Override
- public int getRequestIp() {
- return requestIp_;
- }
-
- public static final int RESPONSE_IP_FIELD_NUMBER = 6;
- private int responseIp_;
- /**
- * int32 response_ip = 6;
- * @return The responseIp.
- */
- @java.lang.Override
- public int getResponseIp() {
- return responseIp_;
- }
-
- public static final int START_TIME_FIELD_NUMBER = 7;
- private int startTime_;
- /**
- * int32 start_time = 7;
- * @return The startTime.
- */
- @java.lang.Override
- public int getStartTime() {
- return startTime_;
- }
-
- public static final int TOTAL_BYTES_FIELD_NUMBER = 8;
- private int totalBytes_;
- /**
- * int32 total_bytes = 8;
- * @return The totalBytes.
- */
- @java.lang.Override
- public int getTotalBytes() {
- return totalBytes_;
- }
-
- public static final int TOTAL_PACKETS_FIELD_NUMBER = 9;
- private int totalPackets_;
- /**
- * int32 total_packets = 9;
- * @return The totalPackets.
- */
- @java.lang.Override
- public int getTotalPackets() {
- return totalPackets_;
- }
-
- public static final int SPACKETS64_FIELD_NUMBER = 10;
- private int spackets64_;
- /**
- * int32 spackets64 = 10;
- * @return The spackets64.
- */
- @java.lang.Override
- public int getSpackets64() {
- return spackets64_;
- }
-
- public static final int SPACKETS128_FIELD_NUMBER = 11;
- private int spackets128_;
- /**
- * int32 spackets128 = 11;
- * @return The spackets128.
- */
- @java.lang.Override
- public int getSpackets128() {
- return spackets128_;
- }
-
- public static final int SPACKETS256_FIELD_NUMBER = 12;
- private int spackets256_;
- /**
- * int32 spackets256 = 12;
- * @return The spackets256.
- */
- @java.lang.Override
- public int getSpackets256() {
- return spackets256_;
- }
-
- public static final int SPACKETS512_FIELD_NUMBER = 13;
- private int spackets512_;
- /**
- * int32 spackets512 = 13;
- * @return The spackets512.
- */
- @java.lang.Override
- public int getSpackets512() {
- return spackets512_;
- }
-
- public static final int SPACKETS1024_FIELD_NUMBER = 14;
- private int spackets1024_;
- /**
- * int32 spackets1024 = 14;
- * @return The spackets1024.
- */
- @java.lang.Override
- public int getSpackets1024() {
- return spackets1024_;
- }
-
- public static final int SPACKETS_FIELD_NUMBER = 15;
- private int spackets_;
- /**
- * int32 spackets = 15;
- * @return The spackets.
- */
- @java.lang.Override
- public int getSpackets() {
- return spackets_;
- }
-
- public static final int SEND_TIME_FIELD_NUMBER = 16;
- private int sendTime_;
- /**
- * int32 send_time = 16;
- * @return The sendTime.
- */
- @java.lang.Override
- public int getSendTime() {
- return sendTime_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (tableId_ != 0) {
- output.writeInt32(1, tableId_);
- }
- if (capPort_ != 0) {
- output.writeInt32(2, capPort_);
- }
- if (requestPort_ != 0) {
- output.writeInt32(3, requestPort_);
- }
- if (responsePort_ != 0) {
- output.writeInt32(4, responsePort_);
- }
- if (requestIp_ != 0) {
- output.writeInt32(5, requestIp_);
- }
- if (responseIp_ != 0) {
- output.writeInt32(6, responseIp_);
- }
- if (startTime_ != 0) {
- output.writeInt32(7, startTime_);
- }
- if (totalBytes_ != 0) {
- output.writeInt32(8, totalBytes_);
- }
- if (totalPackets_ != 0) {
- output.writeInt32(9, totalPackets_);
- }
- if (spackets64_ != 0) {
- output.writeInt32(10, spackets64_);
- }
- if (spackets128_ != 0) {
- output.writeInt32(11, spackets128_);
- }
- if (spackets256_ != 0) {
- output.writeInt32(12, spackets256_);
- }
- if (spackets512_ != 0) {
- output.writeInt32(13, spackets512_);
- }
- if (spackets1024_ != 0) {
- output.writeInt32(14, spackets1024_);
- }
- if (spackets_ != 0) {
- output.writeInt32(15, spackets_);
- }
- if (sendTime_ != 0) {
- output.writeInt32(16, sendTime_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (tableId_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, tableId_);
- }
- if (capPort_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(2, capPort_);
- }
- if (requestPort_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(3, requestPort_);
- }
- if (responsePort_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(4, responsePort_);
- }
- if (requestIp_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(5, requestIp_);
- }
- if (responseIp_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(6, responseIp_);
- }
- if (startTime_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(7, startTime_);
- }
- if (totalBytes_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(8, totalBytes_);
- }
- if (totalPackets_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(9, totalPackets_);
- }
- if (spackets64_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(10, spackets64_);
- }
- if (spackets128_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(11, spackets128_);
- }
- if (spackets256_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(12, spackets256_);
- }
- if (spackets512_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(13, spackets512_);
- }
- if (spackets1024_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(14, spackets1024_);
- }
- if (spackets_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(15, spackets_);
- }
- if (sendTime_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(16, sendTime_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow)) {
- return super.equals(obj);
- }
- com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow other = (com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow) obj;
-
- if (getTableId()
- != other.getTableId()) return false;
- if (getCapPort()
- != other.getCapPort()) return false;
- if (getRequestPort()
- != other.getRequestPort()) return false;
- if (getResponsePort()
- != other.getResponsePort()) return false;
- if (getRequestIp()
- != other.getRequestIp()) return false;
- if (getResponseIp()
- != other.getResponseIp()) return false;
- if (getStartTime()
- != other.getStartTime()) return false;
- if (getTotalBytes()
- != other.getTotalBytes()) return false;
- if (getTotalPackets()
- != other.getTotalPackets()) return false;
- if (getSpackets64()
- != other.getSpackets64()) return false;
- if (getSpackets128()
- != other.getSpackets128()) return false;
- if (getSpackets256()
- != other.getSpackets256()) return false;
- if (getSpackets512()
- != other.getSpackets512()) return false;
- if (getSpackets1024()
- != other.getSpackets1024()) return false;
- if (getSpackets()
- != other.getSpackets()) return false;
- if (getSendTime()
- != other.getSendTime()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + TABLE_ID_FIELD_NUMBER;
- hash = (53 * hash) + getTableId();
- hash = (37 * hash) + CAP_PORT_FIELD_NUMBER;
- hash = (53 * hash) + getCapPort();
- hash = (37 * hash) + REQUEST_PORT_FIELD_NUMBER;
- hash = (53 * hash) + getRequestPort();
- hash = (37 * hash) + RESPONSE_PORT_FIELD_NUMBER;
- hash = (53 * hash) + getResponsePort();
- hash = (37 * hash) + REQUEST_IP_FIELD_NUMBER;
- hash = (53 * hash) + getRequestIp();
- hash = (37 * hash) + RESPONSE_IP_FIELD_NUMBER;
- hash = (53 * hash) + getResponseIp();
- hash = (37 * hash) + START_TIME_FIELD_NUMBER;
- hash = (53 * hash) + getStartTime();
- hash = (37 * hash) + TOTAL_BYTES_FIELD_NUMBER;
- hash = (53 * hash) + getTotalBytes();
- hash = (37 * hash) + TOTAL_PACKETS_FIELD_NUMBER;
- hash = (53 * hash) + getTotalPackets();
- hash = (37 * hash) + SPACKETS64_FIELD_NUMBER;
- hash = (53 * hash) + getSpackets64();
- hash = (37 * hash) + SPACKETS128_FIELD_NUMBER;
- hash = (53 * hash) + getSpackets128();
- hash = (37 * hash) + SPACKETS256_FIELD_NUMBER;
- hash = (53 * hash) + getSpackets256();
- hash = (37 * hash) + SPACKETS512_FIELD_NUMBER;
- hash = (53 * hash) + getSpackets512();
- hash = (37 * hash) + SPACKETS1024_FIELD_NUMBER;
- hash = (53 * hash) + getSpackets1024();
- hash = (37 * hash) + SPACKETS_FIELD_NUMBER;
- hash = (53 * hash) + getSpackets();
- hash = (37 * hash) + SEND_TIME_FIELD_NUMBER;
- hash = (53 * hash) + getSendTime();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code dataflow.BasicTrafficFlow}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:dataflow.BasicTrafficFlow)
- com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlowOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.internal_static_dataflow_BasicTrafficFlow_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.internal_static_dataflow_BasicTrafficFlow_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow.class, com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow.Builder.class);
- }
-
- // Construct using com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- tableId_ = 0;
-
- capPort_ = 0;
-
- requestPort_ = 0;
-
- responsePort_ = 0;
-
- requestIp_ = 0;
-
- responseIp_ = 0;
-
- startTime_ = 0;
-
- totalBytes_ = 0;
-
- totalPackets_ = 0;
-
- spackets64_ = 0;
-
- spackets128_ = 0;
-
- spackets256_ = 0;
-
- spackets512_ = 0;
-
- spackets1024_ = 0;
-
- spackets_ = 0;
-
- sendTime_ = 0;
-
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.internal_static_dataflow_BasicTrafficFlow_descriptor;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow getDefaultInstanceForType() {
- return com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow.getDefaultInstance();
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow build() {
- com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow buildPartial() {
- com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow result = new com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow(this);
- result.tableId_ = tableId_;
- result.capPort_ = capPort_;
- result.requestPort_ = requestPort_;
- result.responsePort_ = responsePort_;
- result.requestIp_ = requestIp_;
- result.responseIp_ = responseIp_;
- result.startTime_ = startTime_;
- result.totalBytes_ = totalBytes_;
- result.totalPackets_ = totalPackets_;
- result.spackets64_ = spackets64_;
- result.spackets128_ = spackets128_;
- result.spackets256_ = spackets256_;
- result.spackets512_ = spackets512_;
- result.spackets1024_ = spackets1024_;
- result.spackets_ = spackets_;
- result.sendTime_ = sendTime_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow) {
- return mergeFrom((com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow other) {
- if (other == com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow.getDefaultInstance()) return this;
- if (other.getTableId() != 0) {
- setTableId(other.getTableId());
- }
- if (other.getCapPort() != 0) {
- setCapPort(other.getCapPort());
- }
- if (other.getRequestPort() != 0) {
- setRequestPort(other.getRequestPort());
- }
- if (other.getResponsePort() != 0) {
- setResponsePort(other.getResponsePort());
- }
- if (other.getRequestIp() != 0) {
- setRequestIp(other.getRequestIp());
- }
- if (other.getResponseIp() != 0) {
- setResponseIp(other.getResponseIp());
- }
- if (other.getStartTime() != 0) {
- setStartTime(other.getStartTime());
- }
- if (other.getTotalBytes() != 0) {
- setTotalBytes(other.getTotalBytes());
- }
- if (other.getTotalPackets() != 0) {
- setTotalPackets(other.getTotalPackets());
- }
- if (other.getSpackets64() != 0) {
- setSpackets64(other.getSpackets64());
- }
- if (other.getSpackets128() != 0) {
- setSpackets128(other.getSpackets128());
- }
- if (other.getSpackets256() != 0) {
- setSpackets256(other.getSpackets256());
- }
- if (other.getSpackets512() != 0) {
- setSpackets512(other.getSpackets512());
- }
- if (other.getSpackets1024() != 0) {
- setSpackets1024(other.getSpackets1024());
- }
- if (other.getSpackets() != 0) {
- setSpackets(other.getSpackets());
- }
- if (other.getSendTime() != 0) {
- setSendTime(other.getSendTime());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int tableId_ ;
- /**
- * int32 table_id = 1;
- * @return The tableId.
- */
- @java.lang.Override
- public int getTableId() {
- return tableId_;
- }
- /**
- * int32 table_id = 1;
- * @param value The tableId to set.
- * @return This builder for chaining.
- */
- public Builder setTableId(int value) {
-
- tableId_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 table_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearTableId() {
-
- tableId_ = 0;
- onChanged();
- return this;
- }
-
- private int capPort_ ;
- /**
- * int32 cap_port = 2;
- * @return The capPort.
- */
- @java.lang.Override
- public int getCapPort() {
- return capPort_;
- }
- /**
- * int32 cap_port = 2;
- * @param value The capPort to set.
- * @return This builder for chaining.
- */
- public Builder setCapPort(int value) {
-
- capPort_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 cap_port = 2;
- * @return This builder for chaining.
- */
- public Builder clearCapPort() {
-
- capPort_ = 0;
- onChanged();
- return this;
- }
-
- private int requestPort_ ;
- /**
- * int32 request_port = 3;
- * @return The requestPort.
- */
- @java.lang.Override
- public int getRequestPort() {
- return requestPort_;
- }
- /**
- * int32 request_port = 3;
- * @param value The requestPort to set.
- * @return This builder for chaining.
- */
- public Builder setRequestPort(int value) {
-
- requestPort_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 request_port = 3;
- * @return This builder for chaining.
- */
- public Builder clearRequestPort() {
-
- requestPort_ = 0;
- onChanged();
- return this;
- }
-
- private int responsePort_ ;
- /**
- * int32 response_port = 4;
- * @return The responsePort.
- */
- @java.lang.Override
- public int getResponsePort() {
- return responsePort_;
- }
- /**
- * int32 response_port = 4;
- * @param value The responsePort to set.
- * @return This builder for chaining.
- */
- public Builder setResponsePort(int value) {
-
- responsePort_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 response_port = 4;
- * @return This builder for chaining.
- */
- public Builder clearResponsePort() {
-
- responsePort_ = 0;
- onChanged();
- return this;
- }
-
- private int requestIp_ ;
- /**
- * int32 request_ip = 5;
- * @return The requestIp.
- */
- @java.lang.Override
- public int getRequestIp() {
- return requestIp_;
- }
- /**
- * int32 request_ip = 5;
- * @param value The requestIp to set.
- * @return This builder for chaining.
- */
- public Builder setRequestIp(int value) {
-
- requestIp_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 request_ip = 5;
- * @return This builder for chaining.
- */
- public Builder clearRequestIp() {
-
- requestIp_ = 0;
- onChanged();
- return this;
- }
-
- private int responseIp_ ;
- /**
- * int32 response_ip = 6;
- * @return The responseIp.
- */
- @java.lang.Override
- public int getResponseIp() {
- return responseIp_;
- }
- /**
- * int32 response_ip = 6;
- * @param value The responseIp to set.
- * @return This builder for chaining.
- */
- public Builder setResponseIp(int value) {
-
- responseIp_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 response_ip = 6;
- * @return This builder for chaining.
- */
- public Builder clearResponseIp() {
-
- responseIp_ = 0;
- onChanged();
- return this;
- }
-
- private int startTime_ ;
- /**
- * int32 start_time = 7;
- * @return The startTime.
- */
- @java.lang.Override
- public int getStartTime() {
- return startTime_;
- }
- /**
- * int32 start_time = 7;
- * @param value The startTime to set.
- * @return This builder for chaining.
- */
- public Builder setStartTime(int value) {
-
- startTime_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 start_time = 7;
- * @return This builder for chaining.
- */
- public Builder clearStartTime() {
-
- startTime_ = 0;
- onChanged();
- return this;
- }
-
- private int totalBytes_ ;
- /**
- * int32 total_bytes = 8;
- * @return The totalBytes.
- */
- @java.lang.Override
- public int getTotalBytes() {
- return totalBytes_;
- }
- /**
- * int32 total_bytes = 8;
- * @param value The totalBytes to set.
- * @return This builder for chaining.
- */
- public Builder setTotalBytes(int value) {
-
- totalBytes_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 total_bytes = 8;
- * @return This builder for chaining.
- */
- public Builder clearTotalBytes() {
-
- totalBytes_ = 0;
- onChanged();
- return this;
- }
-
- private int totalPackets_ ;
- /**
- * int32 total_packets = 9;
- * @return The totalPackets.
- */
- @java.lang.Override
- public int getTotalPackets() {
- return totalPackets_;
- }
- /**
- * int32 total_packets = 9;
- * @param value The totalPackets to set.
- * @return This builder for chaining.
- */
- public Builder setTotalPackets(int value) {
-
- totalPackets_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 total_packets = 9;
- * @return This builder for chaining.
- */
- public Builder clearTotalPackets() {
-
- totalPackets_ = 0;
- onChanged();
- return this;
- }
-
- private int spackets64_ ;
- /**
- * int32 spackets64 = 10;
- * @return The spackets64.
- */
- @java.lang.Override
- public int getSpackets64() {
- return spackets64_;
- }
- /**
- * int32 spackets64 = 10;
- * @param value The spackets64 to set.
- * @return This builder for chaining.
- */
- public Builder setSpackets64(int value) {
-
- spackets64_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 spackets64 = 10;
- * @return This builder for chaining.
- */
- public Builder clearSpackets64() {
-
- spackets64_ = 0;
- onChanged();
- return this;
- }
-
- private int spackets128_ ;
- /**
- * int32 spackets128 = 11;
- * @return The spackets128.
- */
- @java.lang.Override
- public int getSpackets128() {
- return spackets128_;
- }
- /**
- * int32 spackets128 = 11;
- * @param value The spackets128 to set.
- * @return This builder for chaining.
- */
- public Builder setSpackets128(int value) {
-
- spackets128_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 spackets128 = 11;
- * @return This builder for chaining.
- */
- public Builder clearSpackets128() {
-
- spackets128_ = 0;
- onChanged();
- return this;
- }
-
- private int spackets256_ ;
- /**
- * int32 spackets256 = 12;
- * @return The spackets256.
- */
- @java.lang.Override
- public int getSpackets256() {
- return spackets256_;
- }
- /**
- * int32 spackets256 = 12;
- * @param value The spackets256 to set.
- * @return This builder for chaining.
- */
- public Builder setSpackets256(int value) {
-
- spackets256_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 spackets256 = 12;
- * @return This builder for chaining.
- */
- public Builder clearSpackets256() {
-
- spackets256_ = 0;
- onChanged();
- return this;
- }
-
- private int spackets512_ ;
- /**
- * int32 spackets512 = 13;
- * @return The spackets512.
- */
- @java.lang.Override
- public int getSpackets512() {
- return spackets512_;
- }
- /**
- * int32 spackets512 = 13;
- * @param value The spackets512 to set.
- * @return This builder for chaining.
- */
- public Builder setSpackets512(int value) {
-
- spackets512_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 spackets512 = 13;
- * @return This builder for chaining.
- */
- public Builder clearSpackets512() {
-
- spackets512_ = 0;
- onChanged();
- return this;
- }
-
- private int spackets1024_ ;
- /**
- * int32 spackets1024 = 14;
- * @return The spackets1024.
- */
- @java.lang.Override
- public int getSpackets1024() {
- return spackets1024_;
- }
- /**
- * int32 spackets1024 = 14;
- * @param value The spackets1024 to set.
- * @return This builder for chaining.
- */
- public Builder setSpackets1024(int value) {
-
- spackets1024_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 spackets1024 = 14;
- * @return This builder for chaining.
- */
- public Builder clearSpackets1024() {
-
- spackets1024_ = 0;
- onChanged();
- return this;
- }
-
- private int spackets_ ;
- /**
- * int32 spackets = 15;
- * @return The spackets.
- */
- @java.lang.Override
- public int getSpackets() {
- return spackets_;
- }
- /**
- * int32 spackets = 15;
- * @param value The spackets to set.
- * @return This builder for chaining.
- */
- public Builder setSpackets(int value) {
-
- spackets_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 spackets = 15;
- * @return This builder for chaining.
- */
- public Builder clearSpackets() {
-
- spackets_ = 0;
- onChanged();
- return this;
- }
-
- private int sendTime_ ;
- /**
- * int32 send_time = 16;
- * @return The sendTime.
- */
- @java.lang.Override
- public int getSendTime() {
- return sendTime_;
- }
- /**
- * int32 send_time = 16;
- * @param value The sendTime to set.
- * @return This builder for chaining.
- */
- public Builder setSendTime(int value) {
-
- sendTime_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 send_time = 16;
- * @return This builder for chaining.
- */
- public Builder clearSendTime() {
-
- sendTime_ = 0;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:dataflow.BasicTrafficFlow)
- }
-
- // @@protoc_insertion_point(class_scope:dataflow.BasicTrafficFlow)
- private static final com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow();
- }
-
- public static com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public BasicTrafficFlow parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new BasicTrafficFlow(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.BasicTrafficFlowOuterClass.BasicTrafficFlow getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_dataflow_BasicTrafficFlow_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_dataflow_BasicTrafficFlow_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\026BasicTrafficFlow.proto\022\010dataflow\"\332\002\n\020B" +
- "asicTrafficFlow\022\020\n\010table_id\030\001 \001(\005\022\020\n\010cap" +
- "_port\030\002 \001(\005\022\024\n\014request_port\030\003 \001(\005\022\025\n\rres" +
- "ponse_port\030\004 \001(\005\022\022\n\nrequest_ip\030\005 \001(\005\022\023\n\013" +
- "response_ip\030\006 \001(\005\022\022\n\nstart_time\030\007 \001(\005\022\023\n" +
- "\013total_bytes\030\010 \001(\005\022\025\n\rtotal_packets\030\t \001(" +
- "\005\022\022\n\nspackets64\030\n \001(\005\022\023\n\013spackets128\030\013 \001" +
- "(\005\022\023\n\013spackets256\030\014 \001(\005\022\023\n\013spackets512\030\r" +
- " \001(\005\022\024\n\014spackets1024\030\016 \001(\005\022\020\n\010spackets\030\017" +
- " \001(\005\022\021\n\tsend_time\030\020 \001(\005B<\n#com.yuandian." +
- "dataflow.proto.msgtypeP\000Z\023../grpc-gen;gr" +
- "pcgenb\006proto3"
- };
- descriptor = com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- });
- internal_static_dataflow_BasicTrafficFlow_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_dataflow_BasicTrafficFlow_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_dataflow_BasicTrafficFlow_descriptor,
- new java.lang.String[] { "TableId", "CapPort", "RequestPort", "ResponsePort", "RequestIp", "ResponseIp", "StartTime", "TotalBytes", "TotalPackets", "Spackets64", "Spackets128", "Spackets256", "Spackets512", "Spackets1024", "Spackets", "SendTime", });
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/src/main/java/com/yuandian/dataflow/proto/msgtype/BusinessBodyDataOuterClass.java b/src/main/java/com/yuandian/dataflow/proto/msgtype/BusinessBodyDataOuterClass.java
deleted file mode 100644
index 1faa582..0000000
--- a/src/main/java/com/yuandian/dataflow/proto/msgtype/BusinessBodyDataOuterClass.java
+++ /dev/null
@@ -1,2466 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: BusinessBodyData.proto
-
-package com.yuandian.dataflow.proto.msgtype;
-
-public final class BusinessBodyDataOuterClass {
- private BusinessBodyDataOuterClass() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- public interface BusinessBodyDataOrBuilder extends
- // @@protoc_insertion_point(interface_extends:dataflow.BusinessBodyData)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * int32 table_id = 1;
- * @return The tableId.
- */
- int getTableId();
-
- /**
- * string relvance_data_id = 2;
- * @return The relvanceDataId.
- */
- java.lang.String getRelvanceDataId();
- /**
- * string relvance_data_id = 2;
- * @return The bytes for relvanceDataId.
- */
- com.google.protobuf.ByteString
- getRelvanceDataIdBytes();
-
- /**
- * int64 request_ip = 3;
- * @return The requestIp.
- */
- long getRequestIp();
-
- /**
- * int32 request_port = 4;
- * @return The requestPort.
- */
- int getRequestPort();
-
- /**
- * int64 response_ip = 5;
- * @return The responseIp.
- */
- long getResponseIp();
-
- /**
- * int32 response_port = 6;
- * @return The responsePort.
- */
- int getResponsePort();
-
- /**
- *
- *开始时间秒
- *
- *
- * int64 start_tv_sec = 7;
- * @return The startTvSec.
- */
- long getStartTvSec();
-
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 8;
- * @return The startTvUsec.
- */
- long getStartTvUsec();
-
- /**
- *
- *结束时间秒
- *
- *
- * int64 end_tv_sec = 9;
- * @return The endTvSec.
- */
- long getEndTvSec();
-
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 10;
- * @return The endTvUsec.
- */
- long getEndTvUsec();
-
- /**
- * string resource_code = 11;
- * @return The resourceCode.
- */
- java.lang.String getResourceCode();
- /**
- * string resource_code = 11;
- * @return The bytes for resourceCode.
- */
- com.google.protobuf.ByteString
- getResourceCodeBytes();
-
- /**
- * string no_parameter_recognition = 12;
- * @return The noParameterRecognition.
- */
- java.lang.String getNoParameterRecognition();
- /**
- * string no_parameter_recognition = 12;
- * @return The bytes for noParameterRecognition.
- */
- com.google.protobuf.ByteString
- getNoParameterRecognitionBytes();
-
- /**
- * string original_recognition = 13;
- * @return The originalRecognition.
- */
- java.lang.String getOriginalRecognition();
- /**
- * string original_recognition = 13;
- * @return The bytes for originalRecognition.
- */
- com.google.protobuf.ByteString
- getOriginalRecognitionBytes();
-
- /**
- * string request_cookie = 14;
- * @return The requestCookie.
- */
- java.lang.String getRequestCookie();
- /**
- * string request_cookie = 14;
- * @return The bytes for requestCookie.
- */
- com.google.protobuf.ByteString
- getRequestCookieBytes();
-
- /**
- * string request_body_context = 15;
- * @return The requestBodyContext.
- */
- java.lang.String getRequestBodyContext();
- /**
- * string request_body_context = 15;
- * @return The bytes for requestBodyContext.
- */
- com.google.protobuf.ByteString
- getRequestBodyContextBytes();
-
- /**
- * string response_body_context = 16;
- * @return The responseBodyContext.
- */
- java.lang.String getResponseBodyContext();
- /**
- * string response_body_context = 16;
- * @return The bytes for responseBodyContext.
- */
- com.google.protobuf.ByteString
- getResponseBodyContextBytes();
-
- /**
- * int32 filter_id = 17;
- * @return The filterId.
- */
- int getFilterId();
-
- /**
- * string business_detail_mesg = 18;
- * @return The businessDetailMesg.
- */
- java.lang.String getBusinessDetailMesg();
- /**
- * string business_detail_mesg = 18;
- * @return The bytes for businessDetailMesg.
- */
- com.google.protobuf.ByteString
- getBusinessDetailMesgBytes();
- }
- /**
- * Protobuf type {@code dataflow.BusinessBodyData}
- */
- public static final class BusinessBodyData extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:dataflow.BusinessBodyData)
- BusinessBodyDataOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use BusinessBodyData.newBuilder() to construct.
- private BusinessBodyData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private BusinessBodyData() {
- relvanceDataId_ = "";
- resourceCode_ = "";
- noParameterRecognition_ = "";
- originalRecognition_ = "";
- requestCookie_ = "";
- requestBodyContext_ = "";
- responseBodyContext_ = "";
- businessDetailMesg_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new BusinessBodyData();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private BusinessBodyData(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
-
- tableId_ = input.readInt32();
- break;
- }
- case 18: {
- java.lang.String s = input.readStringRequireUtf8();
-
- relvanceDataId_ = s;
- break;
- }
- case 24: {
-
- requestIp_ = input.readInt64();
- break;
- }
- case 32: {
-
- requestPort_ = input.readInt32();
- break;
- }
- case 40: {
-
- responseIp_ = input.readInt64();
- break;
- }
- case 48: {
-
- responsePort_ = input.readInt32();
- break;
- }
- case 56: {
-
- startTvSec_ = input.readInt64();
- break;
- }
- case 64: {
-
- startTvUsec_ = input.readInt64();
- break;
- }
- case 72: {
-
- endTvSec_ = input.readInt64();
- break;
- }
- case 80: {
-
- endTvUsec_ = input.readInt64();
- break;
- }
- case 90: {
- java.lang.String s = input.readStringRequireUtf8();
-
- resourceCode_ = s;
- break;
- }
- case 98: {
- java.lang.String s = input.readStringRequireUtf8();
-
- noParameterRecognition_ = s;
- break;
- }
- case 106: {
- java.lang.String s = input.readStringRequireUtf8();
-
- originalRecognition_ = s;
- break;
- }
- case 114: {
- java.lang.String s = input.readStringRequireUtf8();
-
- requestCookie_ = s;
- break;
- }
- case 122: {
- java.lang.String s = input.readStringRequireUtf8();
-
- requestBodyContext_ = s;
- break;
- }
- case 130: {
- java.lang.String s = input.readStringRequireUtf8();
-
- responseBodyContext_ = s;
- break;
- }
- case 136: {
-
- filterId_ = input.readInt32();
- break;
- }
- case 146: {
- java.lang.String s = input.readStringRequireUtf8();
-
- businessDetailMesg_ = s;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.internal_static_dataflow_BusinessBodyData_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.internal_static_dataflow_BusinessBodyData_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData.class, com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData.Builder.class);
- }
-
- public static final int TABLE_ID_FIELD_NUMBER = 1;
- private int tableId_;
- /**
- * int32 table_id = 1;
- * @return The tableId.
- */
- @java.lang.Override
- public int getTableId() {
- return tableId_;
- }
-
- public static final int RELVANCE_DATA_ID_FIELD_NUMBER = 2;
- private volatile java.lang.Object relvanceDataId_;
- /**
- * string relvance_data_id = 2;
- * @return The relvanceDataId.
- */
- @java.lang.Override
- public java.lang.String getRelvanceDataId() {
- java.lang.Object ref = relvanceDataId_;
- 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();
- relvanceDataId_ = s;
- return s;
- }
- }
- /**
- * string relvance_data_id = 2;
- * @return The bytes for relvanceDataId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRelvanceDataIdBytes() {
- java.lang.Object ref = relvanceDataId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- relvanceDataId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int REQUEST_IP_FIELD_NUMBER = 3;
- private long requestIp_;
- /**
- * int64 request_ip = 3;
- * @return The requestIp.
- */
- @java.lang.Override
- public long getRequestIp() {
- return requestIp_;
- }
-
- public static final int REQUEST_PORT_FIELD_NUMBER = 4;
- private int requestPort_;
- /**
- * int32 request_port = 4;
- * @return The requestPort.
- */
- @java.lang.Override
- public int getRequestPort() {
- return requestPort_;
- }
-
- public static final int RESPONSE_IP_FIELD_NUMBER = 5;
- private long responseIp_;
- /**
- * int64 response_ip = 5;
- * @return The responseIp.
- */
- @java.lang.Override
- public long getResponseIp() {
- return responseIp_;
- }
-
- public static final int RESPONSE_PORT_FIELD_NUMBER = 6;
- private int responsePort_;
- /**
- * int32 response_port = 6;
- * @return The responsePort.
- */
- @java.lang.Override
- public int getResponsePort() {
- return responsePort_;
- }
-
- public static final int START_TV_SEC_FIELD_NUMBER = 7;
- private long startTvSec_;
- /**
- *
- *开始时间秒
- *
- *
- * int64 start_tv_sec = 7;
- * @return The startTvSec.
- */
- @java.lang.Override
- public long getStartTvSec() {
- return startTvSec_;
- }
-
- public static final int START_TV_USEC_FIELD_NUMBER = 8;
- private long startTvUsec_;
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 8;
- * @return The startTvUsec.
- */
- @java.lang.Override
- public long getStartTvUsec() {
- return startTvUsec_;
- }
-
- public static final int END_TV_SEC_FIELD_NUMBER = 9;
- private long endTvSec_;
- /**
- *
- *结束时间秒
- *
- *
- * int64 end_tv_sec = 9;
- * @return The endTvSec.
- */
- @java.lang.Override
- public long getEndTvSec() {
- return endTvSec_;
- }
-
- public static final int END_TV_USEC_FIELD_NUMBER = 10;
- private long endTvUsec_;
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 10;
- * @return The endTvUsec.
- */
- @java.lang.Override
- public long getEndTvUsec() {
- return endTvUsec_;
- }
-
- public static final int RESOURCE_CODE_FIELD_NUMBER = 11;
- private volatile java.lang.Object resourceCode_;
- /**
- * string resource_code = 11;
- * @return The resourceCode.
- */
- @java.lang.Override
- public java.lang.String getResourceCode() {
- java.lang.Object ref = resourceCode_;
- 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();
- resourceCode_ = s;
- return s;
- }
- }
- /**
- * string resource_code = 11;
- * @return The bytes for resourceCode.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getResourceCodeBytes() {
- java.lang.Object ref = resourceCode_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- resourceCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int NO_PARAMETER_RECOGNITION_FIELD_NUMBER = 12;
- private volatile java.lang.Object noParameterRecognition_;
- /**
- * string no_parameter_recognition = 12;
- * @return The noParameterRecognition.
- */
- @java.lang.Override
- public java.lang.String getNoParameterRecognition() {
- java.lang.Object ref = noParameterRecognition_;
- 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();
- noParameterRecognition_ = s;
- return s;
- }
- }
- /**
- * string no_parameter_recognition = 12;
- * @return The bytes for noParameterRecognition.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getNoParameterRecognitionBytes() {
- java.lang.Object ref = noParameterRecognition_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- noParameterRecognition_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int ORIGINAL_RECOGNITION_FIELD_NUMBER = 13;
- private volatile java.lang.Object originalRecognition_;
- /**
- * string original_recognition = 13;
- * @return The originalRecognition.
- */
- @java.lang.Override
- public java.lang.String getOriginalRecognition() {
- java.lang.Object ref = originalRecognition_;
- 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();
- originalRecognition_ = s;
- return s;
- }
- }
- /**
- * string original_recognition = 13;
- * @return The bytes for originalRecognition.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getOriginalRecognitionBytes() {
- java.lang.Object ref = originalRecognition_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- originalRecognition_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int REQUEST_COOKIE_FIELD_NUMBER = 14;
- private volatile java.lang.Object requestCookie_;
- /**
- * string request_cookie = 14;
- * @return The requestCookie.
- */
- @java.lang.Override
- public java.lang.String getRequestCookie() {
- java.lang.Object ref = requestCookie_;
- 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();
- requestCookie_ = s;
- return s;
- }
- }
- /**
- * string request_cookie = 14;
- * @return The bytes for requestCookie.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRequestCookieBytes() {
- java.lang.Object ref = requestCookie_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- requestCookie_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int REQUEST_BODY_CONTEXT_FIELD_NUMBER = 15;
- private volatile java.lang.Object requestBodyContext_;
- /**
- * string request_body_context = 15;
- * @return The requestBodyContext.
- */
- @java.lang.Override
- public java.lang.String getRequestBodyContext() {
- java.lang.Object ref = requestBodyContext_;
- 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();
- requestBodyContext_ = s;
- return s;
- }
- }
- /**
- * string request_body_context = 15;
- * @return The bytes for requestBodyContext.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRequestBodyContextBytes() {
- java.lang.Object ref = requestBodyContext_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- requestBodyContext_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int RESPONSE_BODY_CONTEXT_FIELD_NUMBER = 16;
- private volatile java.lang.Object responseBodyContext_;
- /**
- * string response_body_context = 16;
- * @return The responseBodyContext.
- */
- @java.lang.Override
- public java.lang.String getResponseBodyContext() {
- java.lang.Object ref = responseBodyContext_;
- 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();
- responseBodyContext_ = s;
- return s;
- }
- }
- /**
- * string response_body_context = 16;
- * @return The bytes for responseBodyContext.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getResponseBodyContextBytes() {
- java.lang.Object ref = responseBodyContext_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- responseBodyContext_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int FILTER_ID_FIELD_NUMBER = 17;
- private int filterId_;
- /**
- * int32 filter_id = 17;
- * @return The filterId.
- */
- @java.lang.Override
- public int getFilterId() {
- return filterId_;
- }
-
- public static final int BUSINESS_DETAIL_MESG_FIELD_NUMBER = 18;
- private volatile java.lang.Object businessDetailMesg_;
- /**
- * string business_detail_mesg = 18;
- * @return The businessDetailMesg.
- */
- @java.lang.Override
- public java.lang.String getBusinessDetailMesg() {
- java.lang.Object ref = businessDetailMesg_;
- 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();
- businessDetailMesg_ = s;
- return s;
- }
- }
- /**
- * string business_detail_mesg = 18;
- * @return The bytes for businessDetailMesg.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getBusinessDetailMesgBytes() {
- java.lang.Object ref = businessDetailMesg_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- businessDetailMesg_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (tableId_ != 0) {
- output.writeInt32(1, tableId_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relvanceDataId_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, relvanceDataId_);
- }
- if (requestIp_ != 0L) {
- output.writeInt64(3, requestIp_);
- }
- if (requestPort_ != 0) {
- output.writeInt32(4, requestPort_);
- }
- if (responseIp_ != 0L) {
- output.writeInt64(5, responseIp_);
- }
- if (responsePort_ != 0) {
- output.writeInt32(6, responsePort_);
- }
- if (startTvSec_ != 0L) {
- output.writeInt64(7, startTvSec_);
- }
- if (startTvUsec_ != 0L) {
- output.writeInt64(8, startTvUsec_);
- }
- if (endTvSec_ != 0L) {
- output.writeInt64(9, endTvSec_);
- }
- if (endTvUsec_ != 0L) {
- output.writeInt64(10, endTvUsec_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceCode_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 11, resourceCode_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(noParameterRecognition_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 12, noParameterRecognition_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalRecognition_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 13, originalRecognition_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestCookie_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 14, requestCookie_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestBodyContext_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 15, requestBodyContext_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseBodyContext_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 16, responseBodyContext_);
- }
- if (filterId_ != 0) {
- output.writeInt32(17, filterId_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessDetailMesg_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 18, businessDetailMesg_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (tableId_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, tableId_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relvanceDataId_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, relvanceDataId_);
- }
- if (requestIp_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(3, requestIp_);
- }
- if (requestPort_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(4, requestPort_);
- }
- if (responseIp_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(5, responseIp_);
- }
- if (responsePort_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(6, responsePort_);
- }
- if (startTvSec_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(7, startTvSec_);
- }
- if (startTvUsec_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(8, startTvUsec_);
- }
- if (endTvSec_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(9, endTvSec_);
- }
- if (endTvUsec_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(10, endTvUsec_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceCode_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, resourceCode_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(noParameterRecognition_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, noParameterRecognition_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalRecognition_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, originalRecognition_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestCookie_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, requestCookie_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestBodyContext_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, requestBodyContext_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseBodyContext_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, responseBodyContext_);
- }
- if (filterId_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(17, filterId_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessDetailMesg_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, businessDetailMesg_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData)) {
- return super.equals(obj);
- }
- com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData other = (com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData) obj;
-
- if (getTableId()
- != other.getTableId()) return false;
- if (!getRelvanceDataId()
- .equals(other.getRelvanceDataId())) return false;
- if (getRequestIp()
- != other.getRequestIp()) return false;
- if (getRequestPort()
- != other.getRequestPort()) return false;
- if (getResponseIp()
- != other.getResponseIp()) return false;
- if (getResponsePort()
- != other.getResponsePort()) return false;
- if (getStartTvSec()
- != other.getStartTvSec()) return false;
- if (getStartTvUsec()
- != other.getStartTvUsec()) return false;
- if (getEndTvSec()
- != other.getEndTvSec()) return false;
- if (getEndTvUsec()
- != other.getEndTvUsec()) return false;
- if (!getResourceCode()
- .equals(other.getResourceCode())) return false;
- if (!getNoParameterRecognition()
- .equals(other.getNoParameterRecognition())) return false;
- if (!getOriginalRecognition()
- .equals(other.getOriginalRecognition())) return false;
- if (!getRequestCookie()
- .equals(other.getRequestCookie())) return false;
- if (!getRequestBodyContext()
- .equals(other.getRequestBodyContext())) return false;
- if (!getResponseBodyContext()
- .equals(other.getResponseBodyContext())) return false;
- if (getFilterId()
- != other.getFilterId()) return false;
- if (!getBusinessDetailMesg()
- .equals(other.getBusinessDetailMesg())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + TABLE_ID_FIELD_NUMBER;
- hash = (53 * hash) + getTableId();
- hash = (37 * hash) + RELVANCE_DATA_ID_FIELD_NUMBER;
- hash = (53 * hash) + getRelvanceDataId().hashCode();
- hash = (37 * hash) + REQUEST_IP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getRequestIp());
- hash = (37 * hash) + REQUEST_PORT_FIELD_NUMBER;
- hash = (53 * hash) + getRequestPort();
- hash = (37 * hash) + RESPONSE_IP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getResponseIp());
- hash = (37 * hash) + RESPONSE_PORT_FIELD_NUMBER;
- hash = (53 * hash) + getResponsePort();
- hash = (37 * hash) + START_TV_SEC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getStartTvSec());
- hash = (37 * hash) + START_TV_USEC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getStartTvUsec());
- hash = (37 * hash) + END_TV_SEC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getEndTvSec());
- hash = (37 * hash) + END_TV_USEC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getEndTvUsec());
- hash = (37 * hash) + RESOURCE_CODE_FIELD_NUMBER;
- hash = (53 * hash) + getResourceCode().hashCode();
- hash = (37 * hash) + NO_PARAMETER_RECOGNITION_FIELD_NUMBER;
- hash = (53 * hash) + getNoParameterRecognition().hashCode();
- hash = (37 * hash) + ORIGINAL_RECOGNITION_FIELD_NUMBER;
- hash = (53 * hash) + getOriginalRecognition().hashCode();
- hash = (37 * hash) + REQUEST_COOKIE_FIELD_NUMBER;
- hash = (53 * hash) + getRequestCookie().hashCode();
- hash = (37 * hash) + REQUEST_BODY_CONTEXT_FIELD_NUMBER;
- hash = (53 * hash) + getRequestBodyContext().hashCode();
- hash = (37 * hash) + RESPONSE_BODY_CONTEXT_FIELD_NUMBER;
- hash = (53 * hash) + getResponseBodyContext().hashCode();
- hash = (37 * hash) + FILTER_ID_FIELD_NUMBER;
- hash = (53 * hash) + getFilterId();
- hash = (37 * hash) + BUSINESS_DETAIL_MESG_FIELD_NUMBER;
- hash = (53 * hash) + getBusinessDetailMesg().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code dataflow.BusinessBodyData}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:dataflow.BusinessBodyData)
- com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyDataOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.internal_static_dataflow_BusinessBodyData_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.internal_static_dataflow_BusinessBodyData_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData.class, com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData.Builder.class);
- }
-
- // Construct using com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- tableId_ = 0;
-
- relvanceDataId_ = "";
-
- requestIp_ = 0L;
-
- requestPort_ = 0;
-
- responseIp_ = 0L;
-
- responsePort_ = 0;
-
- startTvSec_ = 0L;
-
- startTvUsec_ = 0L;
-
- endTvSec_ = 0L;
-
- endTvUsec_ = 0L;
-
- resourceCode_ = "";
-
- noParameterRecognition_ = "";
-
- originalRecognition_ = "";
-
- requestCookie_ = "";
-
- requestBodyContext_ = "";
-
- responseBodyContext_ = "";
-
- filterId_ = 0;
-
- businessDetailMesg_ = "";
-
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.internal_static_dataflow_BusinessBodyData_descriptor;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData getDefaultInstanceForType() {
- return com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData.getDefaultInstance();
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData build() {
- com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData buildPartial() {
- com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData result = new com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData(this);
- result.tableId_ = tableId_;
- result.relvanceDataId_ = relvanceDataId_;
- result.requestIp_ = requestIp_;
- result.requestPort_ = requestPort_;
- result.responseIp_ = responseIp_;
- result.responsePort_ = responsePort_;
- result.startTvSec_ = startTvSec_;
- result.startTvUsec_ = startTvUsec_;
- result.endTvSec_ = endTvSec_;
- result.endTvUsec_ = endTvUsec_;
- result.resourceCode_ = resourceCode_;
- result.noParameterRecognition_ = noParameterRecognition_;
- result.originalRecognition_ = originalRecognition_;
- result.requestCookie_ = requestCookie_;
- result.requestBodyContext_ = requestBodyContext_;
- result.responseBodyContext_ = responseBodyContext_;
- result.filterId_ = filterId_;
- result.businessDetailMesg_ = businessDetailMesg_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData) {
- return mergeFrom((com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData other) {
- if (other == com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData.getDefaultInstance()) return this;
- if (other.getTableId() != 0) {
- setTableId(other.getTableId());
- }
- if (!other.getRelvanceDataId().isEmpty()) {
- relvanceDataId_ = other.relvanceDataId_;
- onChanged();
- }
- if (other.getRequestIp() != 0L) {
- setRequestIp(other.getRequestIp());
- }
- if (other.getRequestPort() != 0) {
- setRequestPort(other.getRequestPort());
- }
- if (other.getResponseIp() != 0L) {
- setResponseIp(other.getResponseIp());
- }
- if (other.getResponsePort() != 0) {
- setResponsePort(other.getResponsePort());
- }
- if (other.getStartTvSec() != 0L) {
- setStartTvSec(other.getStartTvSec());
- }
- if (other.getStartTvUsec() != 0L) {
- setStartTvUsec(other.getStartTvUsec());
- }
- if (other.getEndTvSec() != 0L) {
- setEndTvSec(other.getEndTvSec());
- }
- if (other.getEndTvUsec() != 0L) {
- setEndTvUsec(other.getEndTvUsec());
- }
- if (!other.getResourceCode().isEmpty()) {
- resourceCode_ = other.resourceCode_;
- onChanged();
- }
- if (!other.getNoParameterRecognition().isEmpty()) {
- noParameterRecognition_ = other.noParameterRecognition_;
- onChanged();
- }
- if (!other.getOriginalRecognition().isEmpty()) {
- originalRecognition_ = other.originalRecognition_;
- onChanged();
- }
- if (!other.getRequestCookie().isEmpty()) {
- requestCookie_ = other.requestCookie_;
- onChanged();
- }
- if (!other.getRequestBodyContext().isEmpty()) {
- requestBodyContext_ = other.requestBodyContext_;
- onChanged();
- }
- if (!other.getResponseBodyContext().isEmpty()) {
- responseBodyContext_ = other.responseBodyContext_;
- onChanged();
- }
- if (other.getFilterId() != 0) {
- setFilterId(other.getFilterId());
- }
- if (!other.getBusinessDetailMesg().isEmpty()) {
- businessDetailMesg_ = other.businessDetailMesg_;
- onChanged();
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int tableId_ ;
- /**
- * int32 table_id = 1;
- * @return The tableId.
- */
- @java.lang.Override
- public int getTableId() {
- return tableId_;
- }
- /**
- * int32 table_id = 1;
- * @param value The tableId to set.
- * @return This builder for chaining.
- */
- public Builder setTableId(int value) {
-
- tableId_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 table_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearTableId() {
-
- tableId_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object relvanceDataId_ = "";
- /**
- * string relvance_data_id = 2;
- * @return The relvanceDataId.
- */
- public java.lang.String getRelvanceDataId() {
- java.lang.Object ref = relvanceDataId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- relvanceDataId_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string relvance_data_id = 2;
- * @return The bytes for relvanceDataId.
- */
- public com.google.protobuf.ByteString
- getRelvanceDataIdBytes() {
- java.lang.Object ref = relvanceDataId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- relvanceDataId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string relvance_data_id = 2;
- * @param value The relvanceDataId to set.
- * @return This builder for chaining.
- */
- public Builder setRelvanceDataId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- relvanceDataId_ = value;
- onChanged();
- return this;
- }
- /**
- * string relvance_data_id = 2;
- * @return This builder for chaining.
- */
- public Builder clearRelvanceDataId() {
-
- relvanceDataId_ = getDefaultInstance().getRelvanceDataId();
- onChanged();
- return this;
- }
- /**
- * string relvance_data_id = 2;
- * @param value The bytes for relvanceDataId to set.
- * @return This builder for chaining.
- */
- public Builder setRelvanceDataIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- relvanceDataId_ = value;
- onChanged();
- return this;
- }
-
- private long requestIp_ ;
- /**
- * int64 request_ip = 3;
- * @return The requestIp.
- */
- @java.lang.Override
- public long getRequestIp() {
- return requestIp_;
- }
- /**
- * int64 request_ip = 3;
- * @param value The requestIp to set.
- * @return This builder for chaining.
- */
- public Builder setRequestIp(long value) {
-
- requestIp_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 request_ip = 3;
- * @return This builder for chaining.
- */
- public Builder clearRequestIp() {
-
- requestIp_ = 0L;
- onChanged();
- return this;
- }
-
- private int requestPort_ ;
- /**
- * int32 request_port = 4;
- * @return The requestPort.
- */
- @java.lang.Override
- public int getRequestPort() {
- return requestPort_;
- }
- /**
- * int32 request_port = 4;
- * @param value The requestPort to set.
- * @return This builder for chaining.
- */
- public Builder setRequestPort(int value) {
-
- requestPort_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 request_port = 4;
- * @return This builder for chaining.
- */
- public Builder clearRequestPort() {
-
- requestPort_ = 0;
- onChanged();
- return this;
- }
-
- private long responseIp_ ;
- /**
- * int64 response_ip = 5;
- * @return The responseIp.
- */
- @java.lang.Override
- public long getResponseIp() {
- return responseIp_;
- }
- /**
- * int64 response_ip = 5;
- * @param value The responseIp to set.
- * @return This builder for chaining.
- */
- public Builder setResponseIp(long value) {
-
- responseIp_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 response_ip = 5;
- * @return This builder for chaining.
- */
- public Builder clearResponseIp() {
-
- responseIp_ = 0L;
- onChanged();
- return this;
- }
-
- private int responsePort_ ;
- /**
- * int32 response_port = 6;
- * @return The responsePort.
- */
- @java.lang.Override
- public int getResponsePort() {
- return responsePort_;
- }
- /**
- * int32 response_port = 6;
- * @param value The responsePort to set.
- * @return This builder for chaining.
- */
- public Builder setResponsePort(int value) {
-
- responsePort_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 response_port = 6;
- * @return This builder for chaining.
- */
- public Builder clearResponsePort() {
-
- responsePort_ = 0;
- onChanged();
- return this;
- }
-
- private long startTvSec_ ;
- /**
- *
- *开始时间秒
- *
- *
- * int64 start_tv_sec = 7;
- * @return The startTvSec.
- */
- @java.lang.Override
- public long getStartTvSec() {
- return startTvSec_;
- }
- /**
- *
- *开始时间秒
- *
- *
- * int64 start_tv_sec = 7;
- * @param value The startTvSec to set.
- * @return This builder for chaining.
- */
- public Builder setStartTvSec(long value) {
-
- startTvSec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *开始时间秒
- *
- *
- * int64 start_tv_sec = 7;
- * @return This builder for chaining.
- */
- public Builder clearStartTvSec() {
-
- startTvSec_ = 0L;
- onChanged();
- return this;
- }
-
- private long startTvUsec_ ;
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 8;
- * @return The startTvUsec.
- */
- @java.lang.Override
- public long getStartTvUsec() {
- return startTvUsec_;
- }
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 8;
- * @param value The startTvUsec to set.
- * @return This builder for chaining.
- */
- public Builder setStartTvUsec(long value) {
-
- startTvUsec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 8;
- * @return This builder for chaining.
- */
- public Builder clearStartTvUsec() {
-
- startTvUsec_ = 0L;
- onChanged();
- return this;
- }
-
- private long endTvSec_ ;
- /**
- *
- *结束时间秒
- *
- *
- * int64 end_tv_sec = 9;
- * @return The endTvSec.
- */
- @java.lang.Override
- public long getEndTvSec() {
- return endTvSec_;
- }
- /**
- *
- *结束时间秒
- *
- *
- * int64 end_tv_sec = 9;
- * @param value The endTvSec to set.
- * @return This builder for chaining.
- */
- public Builder setEndTvSec(long value) {
-
- endTvSec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *结束时间秒
- *
- *
- * int64 end_tv_sec = 9;
- * @return This builder for chaining.
- */
- public Builder clearEndTvSec() {
-
- endTvSec_ = 0L;
- onChanged();
- return this;
- }
-
- private long endTvUsec_ ;
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 10;
- * @return The endTvUsec.
- */
- @java.lang.Override
- public long getEndTvUsec() {
- return endTvUsec_;
- }
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 10;
- * @param value The endTvUsec to set.
- * @return This builder for chaining.
- */
- public Builder setEndTvUsec(long value) {
-
- endTvUsec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 10;
- * @return This builder for chaining.
- */
- public Builder clearEndTvUsec() {
-
- endTvUsec_ = 0L;
- onChanged();
- return this;
- }
-
- private java.lang.Object resourceCode_ = "";
- /**
- * string resource_code = 11;
- * @return The resourceCode.
- */
- public java.lang.String getResourceCode() {
- java.lang.Object ref = resourceCode_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- resourceCode_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string resource_code = 11;
- * @return The bytes for resourceCode.
- */
- public com.google.protobuf.ByteString
- getResourceCodeBytes() {
- java.lang.Object ref = resourceCode_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- resourceCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string resource_code = 11;
- * @param value The resourceCode to set.
- * @return This builder for chaining.
- */
- public Builder setResourceCode(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- resourceCode_ = value;
- onChanged();
- return this;
- }
- /**
- * string resource_code = 11;
- * @return This builder for chaining.
- */
- public Builder clearResourceCode() {
-
- resourceCode_ = getDefaultInstance().getResourceCode();
- onChanged();
- return this;
- }
- /**
- * string resource_code = 11;
- * @param value The bytes for resourceCode to set.
- * @return This builder for chaining.
- */
- public Builder setResourceCodeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- resourceCode_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object noParameterRecognition_ = "";
- /**
- * string no_parameter_recognition = 12;
- * @return The noParameterRecognition.
- */
- public java.lang.String getNoParameterRecognition() {
- java.lang.Object ref = noParameterRecognition_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- noParameterRecognition_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string no_parameter_recognition = 12;
- * @return The bytes for noParameterRecognition.
- */
- public com.google.protobuf.ByteString
- getNoParameterRecognitionBytes() {
- java.lang.Object ref = noParameterRecognition_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- noParameterRecognition_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string no_parameter_recognition = 12;
- * @param value The noParameterRecognition to set.
- * @return This builder for chaining.
- */
- public Builder setNoParameterRecognition(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- noParameterRecognition_ = value;
- onChanged();
- return this;
- }
- /**
- * string no_parameter_recognition = 12;
- * @return This builder for chaining.
- */
- public Builder clearNoParameterRecognition() {
-
- noParameterRecognition_ = getDefaultInstance().getNoParameterRecognition();
- onChanged();
- return this;
- }
- /**
- * string no_parameter_recognition = 12;
- * @param value The bytes for noParameterRecognition to set.
- * @return This builder for chaining.
- */
- public Builder setNoParameterRecognitionBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- noParameterRecognition_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object originalRecognition_ = "";
- /**
- * string original_recognition = 13;
- * @return The originalRecognition.
- */
- public java.lang.String getOriginalRecognition() {
- java.lang.Object ref = originalRecognition_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- originalRecognition_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string original_recognition = 13;
- * @return The bytes for originalRecognition.
- */
- public com.google.protobuf.ByteString
- getOriginalRecognitionBytes() {
- java.lang.Object ref = originalRecognition_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- originalRecognition_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string original_recognition = 13;
- * @param value The originalRecognition to set.
- * @return This builder for chaining.
- */
- public Builder setOriginalRecognition(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- originalRecognition_ = value;
- onChanged();
- return this;
- }
- /**
- * string original_recognition = 13;
- * @return This builder for chaining.
- */
- public Builder clearOriginalRecognition() {
-
- originalRecognition_ = getDefaultInstance().getOriginalRecognition();
- onChanged();
- return this;
- }
- /**
- * string original_recognition = 13;
- * @param value The bytes for originalRecognition to set.
- * @return This builder for chaining.
- */
- public Builder setOriginalRecognitionBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- originalRecognition_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object requestCookie_ = "";
- /**
- * string request_cookie = 14;
- * @return The requestCookie.
- */
- public java.lang.String getRequestCookie() {
- java.lang.Object ref = requestCookie_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- requestCookie_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string request_cookie = 14;
- * @return The bytes for requestCookie.
- */
- public com.google.protobuf.ByteString
- getRequestCookieBytes() {
- java.lang.Object ref = requestCookie_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- requestCookie_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string request_cookie = 14;
- * @param value The requestCookie to set.
- * @return This builder for chaining.
- */
- public Builder setRequestCookie(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- requestCookie_ = value;
- onChanged();
- return this;
- }
- /**
- * string request_cookie = 14;
- * @return This builder for chaining.
- */
- public Builder clearRequestCookie() {
-
- requestCookie_ = getDefaultInstance().getRequestCookie();
- onChanged();
- return this;
- }
- /**
- * string request_cookie = 14;
- * @param value The bytes for requestCookie to set.
- * @return This builder for chaining.
- */
- public Builder setRequestCookieBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- requestCookie_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object requestBodyContext_ = "";
- /**
- * string request_body_context = 15;
- * @return The requestBodyContext.
- */
- public java.lang.String getRequestBodyContext() {
- java.lang.Object ref = requestBodyContext_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- requestBodyContext_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string request_body_context = 15;
- * @return The bytes for requestBodyContext.
- */
- public com.google.protobuf.ByteString
- getRequestBodyContextBytes() {
- java.lang.Object ref = requestBodyContext_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- requestBodyContext_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string request_body_context = 15;
- * @param value The requestBodyContext to set.
- * @return This builder for chaining.
- */
- public Builder setRequestBodyContext(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- requestBodyContext_ = value;
- onChanged();
- return this;
- }
- /**
- * string request_body_context = 15;
- * @return This builder for chaining.
- */
- public Builder clearRequestBodyContext() {
-
- requestBodyContext_ = getDefaultInstance().getRequestBodyContext();
- onChanged();
- return this;
- }
- /**
- * string request_body_context = 15;
- * @param value The bytes for requestBodyContext to set.
- * @return This builder for chaining.
- */
- public Builder setRequestBodyContextBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- requestBodyContext_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object responseBodyContext_ = "";
- /**
- * string response_body_context = 16;
- * @return The responseBodyContext.
- */
- public java.lang.String getResponseBodyContext() {
- java.lang.Object ref = responseBodyContext_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- responseBodyContext_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string response_body_context = 16;
- * @return The bytes for responseBodyContext.
- */
- public com.google.protobuf.ByteString
- getResponseBodyContextBytes() {
- java.lang.Object ref = responseBodyContext_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- responseBodyContext_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string response_body_context = 16;
- * @param value The responseBodyContext to set.
- * @return This builder for chaining.
- */
- public Builder setResponseBodyContext(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- responseBodyContext_ = value;
- onChanged();
- return this;
- }
- /**
- * string response_body_context = 16;
- * @return This builder for chaining.
- */
- public Builder clearResponseBodyContext() {
-
- responseBodyContext_ = getDefaultInstance().getResponseBodyContext();
- onChanged();
- return this;
- }
- /**
- * string response_body_context = 16;
- * @param value The bytes for responseBodyContext to set.
- * @return This builder for chaining.
- */
- public Builder setResponseBodyContextBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- responseBodyContext_ = value;
- onChanged();
- return this;
- }
-
- private int filterId_ ;
- /**
- * int32 filter_id = 17;
- * @return The filterId.
- */
- @java.lang.Override
- public int getFilterId() {
- return filterId_;
- }
- /**
- * int32 filter_id = 17;
- * @param value The filterId to set.
- * @return This builder for chaining.
- */
- public Builder setFilterId(int value) {
-
- filterId_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 filter_id = 17;
- * @return This builder for chaining.
- */
- public Builder clearFilterId() {
-
- filterId_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object businessDetailMesg_ = "";
- /**
- * string business_detail_mesg = 18;
- * @return The businessDetailMesg.
- */
- public java.lang.String getBusinessDetailMesg() {
- java.lang.Object ref = businessDetailMesg_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- businessDetailMesg_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string business_detail_mesg = 18;
- * @return The bytes for businessDetailMesg.
- */
- public com.google.protobuf.ByteString
- getBusinessDetailMesgBytes() {
- java.lang.Object ref = businessDetailMesg_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- businessDetailMesg_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string business_detail_mesg = 18;
- * @param value The businessDetailMesg to set.
- * @return This builder for chaining.
- */
- public Builder setBusinessDetailMesg(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- businessDetailMesg_ = value;
- onChanged();
- return this;
- }
- /**
- * string business_detail_mesg = 18;
- * @return This builder for chaining.
- */
- public Builder clearBusinessDetailMesg() {
-
- businessDetailMesg_ = getDefaultInstance().getBusinessDetailMesg();
- onChanged();
- return this;
- }
- /**
- * string business_detail_mesg = 18;
- * @param value The bytes for businessDetailMesg to set.
- * @return This builder for chaining.
- */
- public Builder setBusinessDetailMesgBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- businessDetailMesg_ = value;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:dataflow.BusinessBodyData)
- }
-
- // @@protoc_insertion_point(class_scope:dataflow.BusinessBodyData)
- private static final com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData();
- }
-
- public static com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public BusinessBodyData parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new BusinessBodyData(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.BusinessBodyDataOuterClass.BusinessBodyData getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_dataflow_BusinessBodyData_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_dataflow_BusinessBodyData_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\026BusinessBodyData.proto\022\010dataflow\"\307\003\n\020B" +
- "usinessBodyData\022\020\n\010table_id\030\001 \001(\005\022\030\n\020rel" +
- "vance_data_id\030\002 \001(\t\022\022\n\nrequest_ip\030\003 \001(\003\022" +
- "\024\n\014request_port\030\004 \001(\005\022\023\n\013response_ip\030\005 \001" +
- "(\003\022\025\n\rresponse_port\030\006 \001(\005\022\024\n\014start_tv_se" +
- "c\030\007 \001(\003\022\025\n\rstart_tv_usec\030\010 \001(\003\022\022\n\nend_tv" +
- "_sec\030\t \001(\003\022\023\n\013end_tv_usec\030\n \001(\003\022\025\n\rresou" +
- "rce_code\030\013 \001(\t\022 \n\030no_parameter_recogniti" +
- "on\030\014 \001(\t\022\034\n\024original_recognition\030\r \001(\t\022\026" +
- "\n\016request_cookie\030\016 \001(\t\022\034\n\024request_body_c" +
- "ontext\030\017 \001(\t\022\035\n\025response_body_context\030\020 " +
- "\001(\t\022\021\n\tfilter_id\030\021 \001(\005\022\034\n\024business_detai" +
- "l_mesg\030\022 \001(\tB<\n#com.yuandian.dataflow.pr" +
- "oto.msgtypeP\000Z\023../grpc-gen;grpcgenb\006prot" +
- "o3"
- };
- descriptor = com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- });
- internal_static_dataflow_BusinessBodyData_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_dataflow_BusinessBodyData_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_dataflow_BusinessBodyData_descriptor,
- new java.lang.String[] { "TableId", "RelvanceDataId", "RequestIp", "RequestPort", "ResponseIp", "ResponsePort", "StartTvSec", "StartTvUsec", "EndTvSec", "EndTvUsec", "ResourceCode", "NoParameterRecognition", "OriginalRecognition", "RequestCookie", "RequestBodyContext", "ResponseBodyContext", "FilterId", "BusinessDetailMesg", });
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowOrlOuterClass.java b/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowOrlOuterClass.java
deleted file mode 100644
index 1df5109..0000000
--- a/src/main/java/com/yuandian/dataflow/proto/msgtype/BussFlowOrlOuterClass.java
+++ /dev/null
@@ -1,3382 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: BussFlowOrl.proto
-
-package com.yuandian.dataflow.proto.msgtype;
-
-public final class BussFlowOrlOuterClass {
- private BussFlowOrlOuterClass() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- public interface BussFlowOrlOrBuilder extends
- // @@protoc_insertion_point(interface_extends:dataflow.BussFlowOrl)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * int32 table_id = 1;
- * @return The tableId.
- */
- int getTableId();
-
- /**
- * int32 msg_type = 2;
- * @return The msgType.
- */
- int getMsgType();
-
- /**
- * int32 msg_version = 3;
- * @return The msgVersion.
- */
- int getMsgVersion();
-
- /**
- * int32 msg_seq = 4;
- * @return The msgSeq.
- */
- int getMsgSeq();
-
- /**
- * int32 msg_len = 5;
- * @return The msgLen.
- */
- int getMsgLen();
-
- /**
- * int64 request_mac = 6;
- * @return The requestMac.
- */
- long getRequestMac();
-
- /**
- * int64 response_mac = 7;
- * @return The responseMac.
- */
- long getResponseMac();
-
- /**
- * int64 request_ip = 8;
- * @return The requestIp.
- */
- long getRequestIp();
-
- /**
- * int32 request_port = 9;
- * @return The requestPort.
- */
- int getRequestPort();
-
- /**
- * int64 response_ip = 10;
- * @return The responseIp.
- */
- long getResponseIp();
-
- /**
- * int32 response_port = 11;
- * @return The responsePort.
- */
- int getResponsePort();
-
- /**
- * int32 probe_if = 12;
- * @return The probeIf.
- */
- int getProbeIf();
-
- /**
- * int32 protocol = 13;
- * @return The protocol.
- */
- int getProtocol();
-
- /**
- *
- *Web开始时间秒
- *
- *
- * int64 start_tv_sec = 14;
- * @return The startTvSec.
- */
- long getStartTvSec();
-
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 15;
- * @return The startTvUsec.
- */
- long getStartTvUsec();
-
- /**
- *
- *结束时间秒
- *
- *
- * int64 end_tv_sec = 16;
- * @return The endTvSec.
- */
- long getEndTvSec();
-
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 17;
- * @return The endTvUsec.
- */
- long getEndTvUsec();
-
- /**
- * int32 req_len = 18;
- * @return The reqLen.
- */
- int getReqLen();
-
- /**
- * int32 res_len = 19;
- * @return The resLen.
- */
- int getResLen();
-
- /**
- * int32 busi_msg_len = 20;
- * @return The busiMsgLen.
- */
- int getBusiMsgLen();
-
- /**
- * int32 key_msg_len = 21;
- * @return The keyMsgLen.
- */
- int getKeyMsgLen();
-
- /**
- * int32 detail_msg_len = 22;
- * @return The detailMsgLen.
- */
- int getDetailMsgLen();
-
- /**
- * int32 remain_len = 23;
- * @return The remainLen.
- */
- int getRemainLen();
-
- /**
- * string business_code = 24;
- * @return The businessCode.
- */
- java.lang.String getBusinessCode();
- /**
- * string business_code = 24;
- * @return The bytes for businessCode.
- */
- com.google.protobuf.ByteString
- getBusinessCodeBytes();
-
- /**
- * string session_id = 25;
- * @return The sessionId.
- */
- java.lang.String getSessionId();
- /**
- * string session_id = 25;
- * @return The bytes for sessionId.
- */
- com.google.protobuf.ByteString
- getSessionIdBytes();
-
- /**
- * string req_data = 26;
- * @return The reqData.
- */
- java.lang.String getReqData();
- /**
- * string req_data = 26;
- * @return The bytes for reqData.
- */
- com.google.protobuf.ByteString
- getReqDataBytes();
-
- /**
- * string res_data = 27;
- * @return The resData.
- */
- java.lang.String getResData();
- /**
- * string res_data = 27;
- * @return The bytes for resData.
- */
- com.google.protobuf.ByteString
- getResDataBytes();
-
- /**
- * string busi_msg = 28;
- * @return The busiMsg.
- */
- java.lang.String getBusiMsg();
- /**
- * string busi_msg = 28;
- * @return The bytes for busiMsg.
- */
- com.google.protobuf.ByteString
- getBusiMsgBytes();
-
- /**
- * string 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();
-
- /**
- * string 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();
-
- /**
- * string remain_data = 31;
- * @return The remainData.
- */
- java.lang.String getRemainData();
- /**
- * string remain_data = 31;
- * @return The bytes for remainData.
- */
- com.google.protobuf.ByteString
- getRemainDataBytes();
- }
- /**
- * Protobuf type {@code dataflow.BussFlowOrl}
- */
- public static final class BussFlowOrl extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:dataflow.BussFlowOrl)
- BussFlowOrlOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use BussFlowOrl.newBuilder() to construct.
- private BussFlowOrl(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private BussFlowOrl() {
- businessCode_ = "";
- sessionId_ = "";
- reqData_ = "";
- resData_ = "";
- busiMsg_ = "";
- busiKeyMsg_ = "";
- busiDetailMsg_ = "";
- remainData_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new BussFlowOrl();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private BussFlowOrl(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
-
- tableId_ = input.readInt32();
- break;
- }
- case 16: {
-
- msgType_ = input.readInt32();
- break;
- }
- case 24: {
-
- msgVersion_ = input.readInt32();
- break;
- }
- case 32: {
-
- msgSeq_ = input.readInt32();
- break;
- }
- case 40: {
-
- msgLen_ = input.readInt32();
- break;
- }
- case 48: {
-
- requestMac_ = input.readInt64();
- break;
- }
- case 56: {
-
- responseMac_ = input.readInt64();
- break;
- }
- case 64: {
-
- requestIp_ = input.readInt64();
- break;
- }
- case 72: {
-
- requestPort_ = input.readInt32();
- break;
- }
- case 80: {
-
- responseIp_ = input.readInt64();
- break;
- }
- case 88: {
-
- responsePort_ = input.readInt32();
- break;
- }
- case 96: {
-
- probeIf_ = input.readInt32();
- break;
- }
- case 104: {
-
- protocol_ = input.readInt32();
- break;
- }
- case 112: {
-
- startTvSec_ = input.readInt64();
- break;
- }
- case 120: {
-
- startTvUsec_ = input.readInt64();
- break;
- }
- case 128: {
-
- endTvSec_ = input.readInt64();
- break;
- }
- case 136: {
-
- endTvUsec_ = input.readInt64();
- break;
- }
- case 144: {
-
- reqLen_ = input.readInt32();
- break;
- }
- case 152: {
-
- resLen_ = input.readInt32();
- break;
- }
- case 160: {
-
- busiMsgLen_ = input.readInt32();
- break;
- }
- case 168: {
-
- keyMsgLen_ = input.readInt32();
- break;
- }
- case 176: {
-
- detailMsgLen_ = input.readInt32();
- break;
- }
- case 184: {
-
- remainLen_ = input.readInt32();
- break;
- }
- case 194: {
- java.lang.String s = input.readStringRequireUtf8();
-
- businessCode_ = s;
- break;
- }
- case 202: {
- java.lang.String s = input.readStringRequireUtf8();
-
- sessionId_ = s;
- break;
- }
- case 210: {
- java.lang.String s = input.readStringRequireUtf8();
-
- reqData_ = s;
- break;
- }
- case 218: {
- java.lang.String s = input.readStringRequireUtf8();
-
- resData_ = s;
- break;
- }
- case 226: {
- java.lang.String s = input.readStringRequireUtf8();
-
- busiMsg_ = s;
- break;
- }
- case 234: {
- java.lang.String s = input.readStringRequireUtf8();
-
- busiKeyMsg_ = s;
- break;
- }
- case 242: {
- java.lang.String s = input.readStringRequireUtf8();
-
- busiDetailMsg_ = s;
- break;
- }
- case 250: {
- java.lang.String s = input.readStringRequireUtf8();
-
- remainData_ = s;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.internal_static_dataflow_BussFlowOrl_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.internal_static_dataflow_BussFlowOrl_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl.class, com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl.Builder.class);
- }
-
- public static final int TABLE_ID_FIELD_NUMBER = 1;
- private int tableId_;
- /**
- * int32 table_id = 1;
- * @return The tableId.
- */
- @java.lang.Override
- public int getTableId() {
- return tableId_;
- }
-
- public static final int MSG_TYPE_FIELD_NUMBER = 2;
- private int msgType_;
- /**
- * int32 msg_type = 2;
- * @return The msgType.
- */
- @java.lang.Override
- public int getMsgType() {
- return msgType_;
- }
-
- public static final int MSG_VERSION_FIELD_NUMBER = 3;
- private int msgVersion_;
- /**
- * int32 msg_version = 3;
- * @return The msgVersion.
- */
- @java.lang.Override
- public int getMsgVersion() {
- return msgVersion_;
- }
-
- public static final int MSG_SEQ_FIELD_NUMBER = 4;
- private int msgSeq_;
- /**
- * int32 msg_seq = 4;
- * @return The msgSeq.
- */
- @java.lang.Override
- public int getMsgSeq() {
- return msgSeq_;
- }
-
- public static final int MSG_LEN_FIELD_NUMBER = 5;
- private int msgLen_;
- /**
- * int32 msg_len = 5;
- * @return The msgLen.
- */
- @java.lang.Override
- public int getMsgLen() {
- return msgLen_;
- }
-
- public static final int REQUEST_MAC_FIELD_NUMBER = 6;
- private long requestMac_;
- /**
- * int64 request_mac = 6;
- * @return The requestMac.
- */
- @java.lang.Override
- public long getRequestMac() {
- return requestMac_;
- }
-
- public static final int RESPONSE_MAC_FIELD_NUMBER = 7;
- private long responseMac_;
- /**
- * int64 response_mac = 7;
- * @return The responseMac.
- */
- @java.lang.Override
- public long getResponseMac() {
- return responseMac_;
- }
-
- public static final int REQUEST_IP_FIELD_NUMBER = 8;
- private long requestIp_;
- /**
- * int64 request_ip = 8;
- * @return The requestIp.
- */
- @java.lang.Override
- public long getRequestIp() {
- return requestIp_;
- }
-
- public static final int REQUEST_PORT_FIELD_NUMBER = 9;
- private int requestPort_;
- /**
- * int32 request_port = 9;
- * @return The requestPort.
- */
- @java.lang.Override
- public int getRequestPort() {
- return requestPort_;
- }
-
- public static final int RESPONSE_IP_FIELD_NUMBER = 10;
- private long responseIp_;
- /**
- * int64 response_ip = 10;
- * @return The responseIp.
- */
- @java.lang.Override
- public long getResponseIp() {
- return responseIp_;
- }
-
- public static final int RESPONSE_PORT_FIELD_NUMBER = 11;
- private int responsePort_;
- /**
- * int32 response_port = 11;
- * @return The responsePort.
- */
- @java.lang.Override
- public int getResponsePort() {
- return responsePort_;
- }
-
- public static final int PROBE_IF_FIELD_NUMBER = 12;
- private int probeIf_;
- /**
- * int32 probe_if = 12;
- * @return The probeIf.
- */
- @java.lang.Override
- public int getProbeIf() {
- return probeIf_;
- }
-
- public static final int PROTOCOL_FIELD_NUMBER = 13;
- private int protocol_;
- /**
- * int32 protocol = 13;
- * @return The protocol.
- */
- @java.lang.Override
- public int getProtocol() {
- return protocol_;
- }
-
- public static final int START_TV_SEC_FIELD_NUMBER = 14;
- private long startTvSec_;
- /**
- *
- *Web开始时间秒
- *
- *
- * int64 start_tv_sec = 14;
- * @return The startTvSec.
- */
- @java.lang.Override
- public long getStartTvSec() {
- return startTvSec_;
- }
-
- public static final int START_TV_USEC_FIELD_NUMBER = 15;
- private long startTvUsec_;
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 15;
- * @return The startTvUsec.
- */
- @java.lang.Override
- public long getStartTvUsec() {
- return startTvUsec_;
- }
-
- public static final int END_TV_SEC_FIELD_NUMBER = 16;
- private long endTvSec_;
- /**
- *
- *结束时间秒
- *
- *
- * int64 end_tv_sec = 16;
- * @return The endTvSec.
- */
- @java.lang.Override
- public long getEndTvSec() {
- return endTvSec_;
- }
-
- public static final int END_TV_USEC_FIELD_NUMBER = 17;
- private long endTvUsec_;
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 17;
- * @return The endTvUsec.
- */
- @java.lang.Override
- public long getEndTvUsec() {
- return endTvUsec_;
- }
-
- public static final int REQ_LEN_FIELD_NUMBER = 18;
- private int reqLen_;
- /**
- * int32 req_len = 18;
- * @return The reqLen.
- */
- @java.lang.Override
- public int getReqLen() {
- return reqLen_;
- }
-
- public static final int RES_LEN_FIELD_NUMBER = 19;
- private int resLen_;
- /**
- * int32 res_len = 19;
- * @return The resLen.
- */
- @java.lang.Override
- public int getResLen() {
- return resLen_;
- }
-
- public static final int BUSI_MSG_LEN_FIELD_NUMBER = 20;
- private int busiMsgLen_;
- /**
- * int32 busi_msg_len = 20;
- * @return The busiMsgLen.
- */
- @java.lang.Override
- public int getBusiMsgLen() {
- return busiMsgLen_;
- }
-
- public static final int KEY_MSG_LEN_FIELD_NUMBER = 21;
- private int keyMsgLen_;
- /**
- * int32 key_msg_len = 21;
- * @return The keyMsgLen.
- */
- @java.lang.Override
- public int getKeyMsgLen() {
- return keyMsgLen_;
- }
-
- public static final int DETAIL_MSG_LEN_FIELD_NUMBER = 22;
- private int detailMsgLen_;
- /**
- * int32 detail_msg_len = 22;
- * @return The detailMsgLen.
- */
- @java.lang.Override
- public int getDetailMsgLen() {
- return detailMsgLen_;
- }
-
- public static final int REMAIN_LEN_FIELD_NUMBER = 23;
- private int remainLen_;
- /**
- * int32 remain_len = 23;
- * @return The remainLen.
- */
- @java.lang.Override
- public int getRemainLen() {
- return remainLen_;
- }
-
- public static final int BUSINESS_CODE_FIELD_NUMBER = 24;
- private volatile java.lang.Object businessCode_;
- /**
- * string business_code = 24;
- * @return The businessCode.
- */
- @java.lang.Override
- public java.lang.String getBusinessCode() {
- java.lang.Object ref = businessCode_;
- 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();
- businessCode_ = s;
- return s;
- }
- }
- /**
- * string business_code = 24;
- * @return The bytes for businessCode.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getBusinessCodeBytes() {
- java.lang.Object ref = businessCode_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- businessCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SESSION_ID_FIELD_NUMBER = 25;
- private volatile java.lang.Object sessionId_;
- /**
- * string session_id = 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 session_id = 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 static final int REQ_DATA_FIELD_NUMBER = 26;
- private volatile java.lang.Object reqData_;
- /**
- * string 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 static final int RES_DATA_FIELD_NUMBER = 27;
- private volatile java.lang.Object resData_;
- /**
- * string 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 static final int BUSI_MSG_FIELD_NUMBER = 28;
- private volatile java.lang.Object busiMsg_;
- /**
- * string 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 static final int BUSI_KEY_MSG_FIELD_NUMBER = 29;
- private volatile java.lang.Object busiKeyMsg_;
- /**
- * string 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 static final int BUSI_DETAIL_MSG_FIELD_NUMBER = 30;
- private volatile java.lang.Object busiDetailMsg_;
- /**
- * string 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 static final int REMAIN_DATA_FIELD_NUMBER = 31;
- private volatile java.lang.Object remainData_;
- /**
- * string 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;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (tableId_ != 0) {
- output.writeInt32(1, tableId_);
- }
- if (msgType_ != 0) {
- output.writeInt32(2, msgType_);
- }
- if (msgVersion_ != 0) {
- output.writeInt32(3, msgVersion_);
- }
- if (msgSeq_ != 0) {
- output.writeInt32(4, msgSeq_);
- }
- if (msgLen_ != 0) {
- output.writeInt32(5, msgLen_);
- }
- if (requestMac_ != 0L) {
- output.writeInt64(6, requestMac_);
- }
- if (responseMac_ != 0L) {
- output.writeInt64(7, responseMac_);
- }
- if (requestIp_ != 0L) {
- output.writeInt64(8, requestIp_);
- }
- if (requestPort_ != 0) {
- output.writeInt32(9, requestPort_);
- }
- if (responseIp_ != 0L) {
- output.writeInt64(10, responseIp_);
- }
- if (responsePort_ != 0) {
- output.writeInt32(11, responsePort_);
- }
- if (probeIf_ != 0) {
- output.writeInt32(12, probeIf_);
- }
- if (protocol_ != 0) {
- output.writeInt32(13, protocol_);
- }
- if (startTvSec_ != 0L) {
- output.writeInt64(14, startTvSec_);
- }
- if (startTvUsec_ != 0L) {
- output.writeInt64(15, startTvUsec_);
- }
- if (endTvSec_ != 0L) {
- output.writeInt64(16, endTvSec_);
- }
- if (endTvUsec_ != 0L) {
- output.writeInt64(17, endTvUsec_);
- }
- if (reqLen_ != 0) {
- output.writeInt32(18, reqLen_);
- }
- if (resLen_ != 0) {
- output.writeInt32(19, resLen_);
- }
- if (busiMsgLen_ != 0) {
- output.writeInt32(20, busiMsgLen_);
- }
- if (keyMsgLen_ != 0) {
- output.writeInt32(21, keyMsgLen_);
- }
- if (detailMsgLen_ != 0) {
- output.writeInt32(22, detailMsgLen_);
- }
- if (remainLen_ != 0) {
- output.writeInt32(23, remainLen_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessCode_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 24, businessCode_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 25, sessionId_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqData_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 26, reqData_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resData_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 27, resData_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busiMsg_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 28, busiMsg_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busiKeyMsg_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 29, busiKeyMsg_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busiDetailMsg_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 30, busiDetailMsg_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remainData_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 31, remainData_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (tableId_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, tableId_);
- }
- if (msgType_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(2, msgType_);
- }
- if (msgVersion_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(3, msgVersion_);
- }
- if (msgSeq_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(4, msgSeq_);
- }
- if (msgLen_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(5, msgLen_);
- }
- if (requestMac_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(6, requestMac_);
- }
- if (responseMac_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(7, responseMac_);
- }
- if (requestIp_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(8, requestIp_);
- }
- if (requestPort_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(9, requestPort_);
- }
- if (responseIp_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(10, responseIp_);
- }
- if (responsePort_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(11, responsePort_);
- }
- if (probeIf_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(12, probeIf_);
- }
- if (protocol_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(13, protocol_);
- }
- if (startTvSec_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(14, startTvSec_);
- }
- if (startTvUsec_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(15, startTvUsec_);
- }
- if (endTvSec_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(16, endTvSec_);
- }
- if (endTvUsec_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(17, endTvUsec_);
- }
- if (reqLen_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(18, reqLen_);
- }
- if (resLen_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(19, resLen_);
- }
- if (busiMsgLen_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(20, busiMsgLen_);
- }
- if (keyMsgLen_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(21, keyMsgLen_);
- }
- if (detailMsgLen_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(22, detailMsgLen_);
- }
- if (remainLen_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(23, remainLen_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessCode_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, businessCode_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, sessionId_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reqData_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, reqData_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resData_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, resData_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busiMsg_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, busiMsg_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busiKeyMsg_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, busiKeyMsg_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(busiDetailMsg_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, busiDetailMsg_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remainData_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, remainData_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl)) {
- return super.equals(obj);
- }
- com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl other = (com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl) obj;
-
- if (getTableId()
- != other.getTableId()) return false;
- if (getMsgType()
- != other.getMsgType()) return false;
- if (getMsgVersion()
- != other.getMsgVersion()) return false;
- if (getMsgSeq()
- != other.getMsgSeq()) return false;
- if (getMsgLen()
- != other.getMsgLen()) return false;
- if (getRequestMac()
- != other.getRequestMac()) return false;
- if (getResponseMac()
- != other.getResponseMac()) return false;
- if (getRequestIp()
- != other.getRequestIp()) return false;
- if (getRequestPort()
- != other.getRequestPort()) return false;
- if (getResponseIp()
- != other.getResponseIp()) return false;
- if (getResponsePort()
- != other.getResponsePort()) return false;
- if (getProbeIf()
- != other.getProbeIf()) return false;
- if (getProtocol()
- != other.getProtocol()) return false;
- if (getStartTvSec()
- != other.getStartTvSec()) return false;
- if (getStartTvUsec()
- != other.getStartTvUsec()) return false;
- if (getEndTvSec()
- != other.getEndTvSec()) return false;
- if (getEndTvUsec()
- != other.getEndTvUsec()) return false;
- if (getReqLen()
- != other.getReqLen()) return false;
- if (getResLen()
- != other.getResLen()) return false;
- if (getBusiMsgLen()
- != other.getBusiMsgLen()) return false;
- if (getKeyMsgLen()
- != other.getKeyMsgLen()) return false;
- if (getDetailMsgLen()
- != other.getDetailMsgLen()) return false;
- if (getRemainLen()
- != other.getRemainLen()) return false;
- if (!getBusinessCode()
- .equals(other.getBusinessCode())) return false;
- if (!getSessionId()
- .equals(other.getSessionId())) return false;
- if (!getReqData()
- .equals(other.getReqData())) return false;
- if (!getResData()
- .equals(other.getResData())) return false;
- if (!getBusiMsg()
- .equals(other.getBusiMsg())) return false;
- if (!getBusiKeyMsg()
- .equals(other.getBusiKeyMsg())) return false;
- if (!getBusiDetailMsg()
- .equals(other.getBusiDetailMsg())) return false;
- if (!getRemainData()
- .equals(other.getRemainData())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + TABLE_ID_FIELD_NUMBER;
- hash = (53 * hash) + getTableId();
- hash = (37 * hash) + MSG_TYPE_FIELD_NUMBER;
- hash = (53 * hash) + getMsgType();
- hash = (37 * hash) + MSG_VERSION_FIELD_NUMBER;
- hash = (53 * hash) + getMsgVersion();
- hash = (37 * hash) + MSG_SEQ_FIELD_NUMBER;
- hash = (53 * hash) + getMsgSeq();
- hash = (37 * hash) + MSG_LEN_FIELD_NUMBER;
- hash = (53 * hash) + getMsgLen();
- hash = (37 * hash) + REQUEST_MAC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getRequestMac());
- hash = (37 * hash) + RESPONSE_MAC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getResponseMac());
- hash = (37 * hash) + REQUEST_IP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getRequestIp());
- hash = (37 * hash) + REQUEST_PORT_FIELD_NUMBER;
- hash = (53 * hash) + getRequestPort();
- hash = (37 * hash) + RESPONSE_IP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getResponseIp());
- hash = (37 * hash) + RESPONSE_PORT_FIELD_NUMBER;
- hash = (53 * hash) + getResponsePort();
- hash = (37 * hash) + PROBE_IF_FIELD_NUMBER;
- hash = (53 * hash) + getProbeIf();
- hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
- hash = (53 * hash) + getProtocol();
- hash = (37 * hash) + START_TV_SEC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getStartTvSec());
- hash = (37 * hash) + START_TV_USEC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getStartTvUsec());
- hash = (37 * hash) + END_TV_SEC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getEndTvSec());
- hash = (37 * hash) + END_TV_USEC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getEndTvUsec());
- hash = (37 * hash) + REQ_LEN_FIELD_NUMBER;
- hash = (53 * hash) + getReqLen();
- hash = (37 * hash) + RES_LEN_FIELD_NUMBER;
- hash = (53 * hash) + getResLen();
- hash = (37 * hash) + BUSI_MSG_LEN_FIELD_NUMBER;
- hash = (53 * hash) + getBusiMsgLen();
- hash = (37 * hash) + KEY_MSG_LEN_FIELD_NUMBER;
- hash = (53 * hash) + getKeyMsgLen();
- hash = (37 * hash) + DETAIL_MSG_LEN_FIELD_NUMBER;
- hash = (53 * hash) + getDetailMsgLen();
- hash = (37 * hash) + REMAIN_LEN_FIELD_NUMBER;
- hash = (53 * hash) + getRemainLen();
- hash = (37 * hash) + BUSINESS_CODE_FIELD_NUMBER;
- hash = (53 * hash) + getBusinessCode().hashCode();
- hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
- hash = (53 * hash) + getSessionId().hashCode();
- hash = (37 * hash) + REQ_DATA_FIELD_NUMBER;
- hash = (53 * hash) + getReqData().hashCode();
- hash = (37 * hash) + RES_DATA_FIELD_NUMBER;
- hash = (53 * hash) + getResData().hashCode();
- hash = (37 * hash) + BUSI_MSG_FIELD_NUMBER;
- hash = (53 * hash) + getBusiMsg().hashCode();
- hash = (37 * hash) + BUSI_KEY_MSG_FIELD_NUMBER;
- hash = (53 * hash) + getBusiKeyMsg().hashCode();
- hash = (37 * hash) + BUSI_DETAIL_MSG_FIELD_NUMBER;
- hash = (53 * hash) + getBusiDetailMsg().hashCode();
- hash = (37 * hash) + REMAIN_DATA_FIELD_NUMBER;
- hash = (53 * hash) + getRemainData().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code dataflow.BussFlowOrl}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:dataflow.BussFlowOrl)
- com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrlOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.internal_static_dataflow_BussFlowOrl_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.internal_static_dataflow_BussFlowOrl_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl.class, com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl.Builder.class);
- }
-
- // Construct using com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- tableId_ = 0;
-
- msgType_ = 0;
-
- msgVersion_ = 0;
-
- msgSeq_ = 0;
-
- msgLen_ = 0;
-
- requestMac_ = 0L;
-
- responseMac_ = 0L;
-
- requestIp_ = 0L;
-
- requestPort_ = 0;
-
- responseIp_ = 0L;
-
- responsePort_ = 0;
-
- probeIf_ = 0;
-
- protocol_ = 0;
-
- startTvSec_ = 0L;
-
- startTvUsec_ = 0L;
-
- endTvSec_ = 0L;
-
- endTvUsec_ = 0L;
-
- reqLen_ = 0;
-
- resLen_ = 0;
-
- busiMsgLen_ = 0;
-
- keyMsgLen_ = 0;
-
- detailMsgLen_ = 0;
-
- remainLen_ = 0;
-
- businessCode_ = "";
-
- sessionId_ = "";
-
- reqData_ = "";
-
- resData_ = "";
-
- busiMsg_ = "";
-
- busiKeyMsg_ = "";
-
- busiDetailMsg_ = "";
-
- remainData_ = "";
-
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.internal_static_dataflow_BussFlowOrl_descriptor;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl getDefaultInstanceForType() {
- return com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl.getDefaultInstance();
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl build() {
- com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl buildPartial() {
- com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl result = new com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl(this);
- result.tableId_ = tableId_;
- result.msgType_ = msgType_;
- result.msgVersion_ = msgVersion_;
- result.msgSeq_ = msgSeq_;
- result.msgLen_ = msgLen_;
- result.requestMac_ = requestMac_;
- result.responseMac_ = responseMac_;
- result.requestIp_ = requestIp_;
- result.requestPort_ = requestPort_;
- result.responseIp_ = responseIp_;
- result.responsePort_ = responsePort_;
- result.probeIf_ = probeIf_;
- result.protocol_ = protocol_;
- result.startTvSec_ = startTvSec_;
- result.startTvUsec_ = startTvUsec_;
- result.endTvSec_ = endTvSec_;
- result.endTvUsec_ = endTvUsec_;
- result.reqLen_ = reqLen_;
- result.resLen_ = resLen_;
- result.busiMsgLen_ = busiMsgLen_;
- result.keyMsgLen_ = keyMsgLen_;
- result.detailMsgLen_ = detailMsgLen_;
- result.remainLen_ = remainLen_;
- result.businessCode_ = businessCode_;
- result.sessionId_ = sessionId_;
- result.reqData_ = reqData_;
- result.resData_ = resData_;
- result.busiMsg_ = busiMsg_;
- result.busiKeyMsg_ = busiKeyMsg_;
- result.busiDetailMsg_ = busiDetailMsg_;
- result.remainData_ = remainData_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl) {
- return mergeFrom((com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl other) {
- if (other == com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl.getDefaultInstance()) return this;
- if (other.getTableId() != 0) {
- setTableId(other.getTableId());
- }
- if (other.getMsgType() != 0) {
- setMsgType(other.getMsgType());
- }
- if (other.getMsgVersion() != 0) {
- setMsgVersion(other.getMsgVersion());
- }
- if (other.getMsgSeq() != 0) {
- setMsgSeq(other.getMsgSeq());
- }
- if (other.getMsgLen() != 0) {
- setMsgLen(other.getMsgLen());
- }
- if (other.getRequestMac() != 0L) {
- setRequestMac(other.getRequestMac());
- }
- if (other.getResponseMac() != 0L) {
- setResponseMac(other.getResponseMac());
- }
- if (other.getRequestIp() != 0L) {
- setRequestIp(other.getRequestIp());
- }
- if (other.getRequestPort() != 0) {
- setRequestPort(other.getRequestPort());
- }
- if (other.getResponseIp() != 0L) {
- setResponseIp(other.getResponseIp());
- }
- if (other.getResponsePort() != 0) {
- setResponsePort(other.getResponsePort());
- }
- if (other.getProbeIf() != 0) {
- setProbeIf(other.getProbeIf());
- }
- if (other.getProtocol() != 0) {
- setProtocol(other.getProtocol());
- }
- if (other.getStartTvSec() != 0L) {
- setStartTvSec(other.getStartTvSec());
- }
- if (other.getStartTvUsec() != 0L) {
- setStartTvUsec(other.getStartTvUsec());
- }
- if (other.getEndTvSec() != 0L) {
- setEndTvSec(other.getEndTvSec());
- }
- if (other.getEndTvUsec() != 0L) {
- setEndTvUsec(other.getEndTvUsec());
- }
- if (other.getReqLen() != 0) {
- setReqLen(other.getReqLen());
- }
- if (other.getResLen() != 0) {
- setResLen(other.getResLen());
- }
- if (other.getBusiMsgLen() != 0) {
- setBusiMsgLen(other.getBusiMsgLen());
- }
- if (other.getKeyMsgLen() != 0) {
- setKeyMsgLen(other.getKeyMsgLen());
- }
- if (other.getDetailMsgLen() != 0) {
- setDetailMsgLen(other.getDetailMsgLen());
- }
- if (other.getRemainLen() != 0) {
- setRemainLen(other.getRemainLen());
- }
- if (!other.getBusinessCode().isEmpty()) {
- businessCode_ = other.businessCode_;
- onChanged();
- }
- if (!other.getSessionId().isEmpty()) {
- sessionId_ = other.sessionId_;
- onChanged();
- }
- if (!other.getReqData().isEmpty()) {
- reqData_ = other.reqData_;
- onChanged();
- }
- if (!other.getResData().isEmpty()) {
- resData_ = other.resData_;
- onChanged();
- }
- if (!other.getBusiMsg().isEmpty()) {
- busiMsg_ = other.busiMsg_;
- onChanged();
- }
- if (!other.getBusiKeyMsg().isEmpty()) {
- busiKeyMsg_ = other.busiKeyMsg_;
- onChanged();
- }
- if (!other.getBusiDetailMsg().isEmpty()) {
- busiDetailMsg_ = other.busiDetailMsg_;
- onChanged();
- }
- if (!other.getRemainData().isEmpty()) {
- remainData_ = other.remainData_;
- onChanged();
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int tableId_ ;
- /**
- * int32 table_id = 1;
- * @return The tableId.
- */
- @java.lang.Override
- public int getTableId() {
- return tableId_;
- }
- /**
- * int32 table_id = 1;
- * @param value The tableId to set.
- * @return This builder for chaining.
- */
- public Builder setTableId(int value) {
-
- tableId_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 table_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearTableId() {
-
- tableId_ = 0;
- onChanged();
- return this;
- }
-
- private int msgType_ ;
- /**
- * int32 msg_type = 2;
- * @return The msgType.
- */
- @java.lang.Override
- public int getMsgType() {
- return msgType_;
- }
- /**
- * int32 msg_type = 2;
- * @param value The msgType to set.
- * @return This builder for chaining.
- */
- public Builder setMsgType(int value) {
-
- msgType_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 msg_type = 2;
- * @return This builder for chaining.
- */
- public Builder clearMsgType() {
-
- msgType_ = 0;
- onChanged();
- return this;
- }
-
- private int msgVersion_ ;
- /**
- * int32 msg_version = 3;
- * @return The msgVersion.
- */
- @java.lang.Override
- public int getMsgVersion() {
- return msgVersion_;
- }
- /**
- * int32 msg_version = 3;
- * @param value The msgVersion to set.
- * @return This builder for chaining.
- */
- public Builder setMsgVersion(int value) {
-
- msgVersion_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 msg_version = 3;
- * @return This builder for chaining.
- */
- public Builder clearMsgVersion() {
-
- msgVersion_ = 0;
- onChanged();
- return this;
- }
-
- private int msgSeq_ ;
- /**
- * int32 msg_seq = 4;
- * @return The msgSeq.
- */
- @java.lang.Override
- public int getMsgSeq() {
- return msgSeq_;
- }
- /**
- * int32 msg_seq = 4;
- * @param value The msgSeq to set.
- * @return This builder for chaining.
- */
- public Builder setMsgSeq(int value) {
-
- msgSeq_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 msg_seq = 4;
- * @return This builder for chaining.
- */
- public Builder clearMsgSeq() {
-
- msgSeq_ = 0;
- onChanged();
- return this;
- }
-
- private int msgLen_ ;
- /**
- * int32 msg_len = 5;
- * @return The msgLen.
- */
- @java.lang.Override
- public int getMsgLen() {
- return msgLen_;
- }
- /**
- * int32 msg_len = 5;
- * @param value The msgLen to set.
- * @return This builder for chaining.
- */
- public Builder setMsgLen(int value) {
-
- msgLen_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 msg_len = 5;
- * @return This builder for chaining.
- */
- public Builder clearMsgLen() {
-
- msgLen_ = 0;
- onChanged();
- return this;
- }
-
- private long requestMac_ ;
- /**
- * int64 request_mac = 6;
- * @return The requestMac.
- */
- @java.lang.Override
- public long getRequestMac() {
- return requestMac_;
- }
- /**
- * int64 request_mac = 6;
- * @param value The requestMac to set.
- * @return This builder for chaining.
- */
- public Builder setRequestMac(long value) {
-
- requestMac_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 request_mac = 6;
- * @return This builder for chaining.
- */
- public Builder clearRequestMac() {
-
- requestMac_ = 0L;
- onChanged();
- return this;
- }
-
- private long responseMac_ ;
- /**
- * int64 response_mac = 7;
- * @return The responseMac.
- */
- @java.lang.Override
- public long getResponseMac() {
- return responseMac_;
- }
- /**
- * int64 response_mac = 7;
- * @param value The responseMac to set.
- * @return This builder for chaining.
- */
- public Builder setResponseMac(long value) {
-
- responseMac_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 response_mac = 7;
- * @return This builder for chaining.
- */
- public Builder clearResponseMac() {
-
- responseMac_ = 0L;
- onChanged();
- return this;
- }
-
- private long requestIp_ ;
- /**
- * int64 request_ip = 8;
- * @return The requestIp.
- */
- @java.lang.Override
- public long getRequestIp() {
- return requestIp_;
- }
- /**
- * int64 request_ip = 8;
- * @param value The requestIp to set.
- * @return This builder for chaining.
- */
- public Builder setRequestIp(long value) {
-
- requestIp_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 request_ip = 8;
- * @return This builder for chaining.
- */
- public Builder clearRequestIp() {
-
- requestIp_ = 0L;
- onChanged();
- return this;
- }
-
- private int requestPort_ ;
- /**
- * int32 request_port = 9;
- * @return The requestPort.
- */
- @java.lang.Override
- public int getRequestPort() {
- return requestPort_;
- }
- /**
- * int32 request_port = 9;
- * @param value The requestPort to set.
- * @return This builder for chaining.
- */
- public Builder setRequestPort(int value) {
-
- requestPort_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 request_port = 9;
- * @return This builder for chaining.
- */
- public Builder clearRequestPort() {
-
- requestPort_ = 0;
- onChanged();
- return this;
- }
-
- private long responseIp_ ;
- /**
- * int64 response_ip = 10;
- * @return The responseIp.
- */
- @java.lang.Override
- public long getResponseIp() {
- return responseIp_;
- }
- /**
- * int64 response_ip = 10;
- * @param value The responseIp to set.
- * @return This builder for chaining.
- */
- public Builder setResponseIp(long value) {
-
- responseIp_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 response_ip = 10;
- * @return This builder for chaining.
- */
- public Builder clearResponseIp() {
-
- responseIp_ = 0L;
- onChanged();
- return this;
- }
-
- private int responsePort_ ;
- /**
- * int32 response_port = 11;
- * @return The responsePort.
- */
- @java.lang.Override
- public int getResponsePort() {
- return responsePort_;
- }
- /**
- * int32 response_port = 11;
- * @param value The responsePort to set.
- * @return This builder for chaining.
- */
- public Builder setResponsePort(int value) {
-
- responsePort_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 response_port = 11;
- * @return This builder for chaining.
- */
- public Builder clearResponsePort() {
-
- responsePort_ = 0;
- onChanged();
- return this;
- }
-
- private int probeIf_ ;
- /**
- * int32 probe_if = 12;
- * @return The probeIf.
- */
- @java.lang.Override
- public int getProbeIf() {
- return probeIf_;
- }
- /**
- * int32 probe_if = 12;
- * @param value The probeIf to set.
- * @return This builder for chaining.
- */
- public Builder setProbeIf(int value) {
-
- probeIf_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 probe_if = 12;
- * @return This builder for chaining.
- */
- public Builder clearProbeIf() {
-
- probeIf_ = 0;
- onChanged();
- return this;
- }
-
- private int protocol_ ;
- /**
- * int32 protocol = 13;
- * @return The protocol.
- */
- @java.lang.Override
- public int getProtocol() {
- return protocol_;
- }
- /**
- * int32 protocol = 13;
- * @param value The protocol to set.
- * @return This builder for chaining.
- */
- public Builder setProtocol(int value) {
-
- protocol_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 protocol = 13;
- * @return This builder for chaining.
- */
- public Builder clearProtocol() {
-
- protocol_ = 0;
- onChanged();
- return this;
- }
-
- private long startTvSec_ ;
- /**
- *
- *Web开始时间秒
- *
- *
- * int64 start_tv_sec = 14;
- * @return The startTvSec.
- */
- @java.lang.Override
- public long getStartTvSec() {
- return startTvSec_;
- }
- /**
- *
- *Web开始时间秒
- *
- *
- * int64 start_tv_sec = 14;
- * @param value The startTvSec to set.
- * @return This builder for chaining.
- */
- public Builder setStartTvSec(long value) {
-
- startTvSec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *Web开始时间秒
- *
- *
- * int64 start_tv_sec = 14;
- * @return This builder for chaining.
- */
- public Builder clearStartTvSec() {
-
- startTvSec_ = 0L;
- onChanged();
- return this;
- }
-
- private long startTvUsec_ ;
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 15;
- * @return The startTvUsec.
- */
- @java.lang.Override
- public long getStartTvUsec() {
- return startTvUsec_;
- }
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 15;
- * @param value The startTvUsec to set.
- * @return This builder for chaining.
- */
- public Builder setStartTvUsec(long value) {
-
- startTvUsec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 15;
- * @return This builder for chaining.
- */
- public Builder clearStartTvUsec() {
-
- startTvUsec_ = 0L;
- onChanged();
- return this;
- }
-
- private long endTvSec_ ;
- /**
- *
- *结束时间秒
- *
- *
- * int64 end_tv_sec = 16;
- * @return The endTvSec.
- */
- @java.lang.Override
- public long getEndTvSec() {
- return endTvSec_;
- }
- /**
- *
- *结束时间秒
- *
- *
- * int64 end_tv_sec = 16;
- * @param value The endTvSec to set.
- * @return This builder for chaining.
- */
- public Builder setEndTvSec(long value) {
-
- endTvSec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *结束时间秒
- *
- *
- * int64 end_tv_sec = 16;
- * @return This builder for chaining.
- */
- public Builder clearEndTvSec() {
-
- endTvSec_ = 0L;
- onChanged();
- return this;
- }
-
- private long endTvUsec_ ;
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 17;
- * @return The endTvUsec.
- */
- @java.lang.Override
- public long getEndTvUsec() {
- return endTvUsec_;
- }
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 17;
- * @param value The endTvUsec to set.
- * @return This builder for chaining.
- */
- public Builder setEndTvUsec(long value) {
-
- endTvUsec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 17;
- * @return This builder for chaining.
- */
- public Builder clearEndTvUsec() {
-
- endTvUsec_ = 0L;
- onChanged();
- return this;
- }
-
- private int reqLen_ ;
- /**
- * int32 req_len = 18;
- * @return The reqLen.
- */
- @java.lang.Override
- public int getReqLen() {
- return reqLen_;
- }
- /**
- * int32 req_len = 18;
- * @param value The reqLen to set.
- * @return This builder for chaining.
- */
- public Builder setReqLen(int value) {
-
- reqLen_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 req_len = 18;
- * @return This builder for chaining.
- */
- public Builder clearReqLen() {
-
- reqLen_ = 0;
- onChanged();
- return this;
- }
-
- private int resLen_ ;
- /**
- * int32 res_len = 19;
- * @return The resLen.
- */
- @java.lang.Override
- public int getResLen() {
- return resLen_;
- }
- /**
- * int32 res_len = 19;
- * @param value The resLen to set.
- * @return This builder for chaining.
- */
- public Builder setResLen(int value) {
-
- resLen_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 res_len = 19;
- * @return This builder for chaining.
- */
- public Builder clearResLen() {
-
- resLen_ = 0;
- onChanged();
- return this;
- }
-
- private int busiMsgLen_ ;
- /**
- * int32 busi_msg_len = 20;
- * @return The busiMsgLen.
- */
- @java.lang.Override
- public int getBusiMsgLen() {
- return busiMsgLen_;
- }
- /**
- * int32 busi_msg_len = 20;
- * @param value The busiMsgLen to set.
- * @return This builder for chaining.
- */
- public Builder setBusiMsgLen(int value) {
-
- busiMsgLen_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 busi_msg_len = 20;
- * @return This builder for chaining.
- */
- public Builder clearBusiMsgLen() {
-
- busiMsgLen_ = 0;
- onChanged();
- return this;
- }
-
- private int keyMsgLen_ ;
- /**
- * int32 key_msg_len = 21;
- * @return The keyMsgLen.
- */
- @java.lang.Override
- public int getKeyMsgLen() {
- return keyMsgLen_;
- }
- /**
- * int32 key_msg_len = 21;
- * @param value The keyMsgLen to set.
- * @return This builder for chaining.
- */
- public Builder setKeyMsgLen(int value) {
-
- keyMsgLen_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 key_msg_len = 21;
- * @return This builder for chaining.
- */
- public Builder clearKeyMsgLen() {
-
- keyMsgLen_ = 0;
- onChanged();
- return this;
- }
-
- private int detailMsgLen_ ;
- /**
- * int32 detail_msg_len = 22;
- * @return The detailMsgLen.
- */
- @java.lang.Override
- public int getDetailMsgLen() {
- return detailMsgLen_;
- }
- /**
- * int32 detail_msg_len = 22;
- * @param value The detailMsgLen to set.
- * @return This builder for chaining.
- */
- public Builder setDetailMsgLen(int value) {
-
- detailMsgLen_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 detail_msg_len = 22;
- * @return This builder for chaining.
- */
- public Builder clearDetailMsgLen() {
-
- detailMsgLen_ = 0;
- onChanged();
- return this;
- }
-
- private int remainLen_ ;
- /**
- * int32 remain_len = 23;
- * @return The remainLen.
- */
- @java.lang.Override
- public int getRemainLen() {
- return remainLen_;
- }
- /**
- * int32 remain_len = 23;
- * @param value The remainLen to set.
- * @return This builder for chaining.
- */
- public Builder setRemainLen(int value) {
-
- remainLen_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 remain_len = 23;
- * @return This builder for chaining.
- */
- public Builder clearRemainLen() {
-
- remainLen_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object businessCode_ = "";
- /**
- * string business_code = 24;
- * @return The businessCode.
- */
- public java.lang.String getBusinessCode() {
- java.lang.Object ref = businessCode_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- businessCode_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string business_code = 24;
- * @return The bytes for businessCode.
- */
- public com.google.protobuf.ByteString
- getBusinessCodeBytes() {
- java.lang.Object ref = businessCode_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- businessCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string business_code = 24;
- * @param value The businessCode to set.
- * @return This builder for chaining.
- */
- public Builder setBusinessCode(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- businessCode_ = value;
- onChanged();
- return this;
- }
- /**
- * string business_code = 24;
- * @return This builder for chaining.
- */
- public Builder clearBusinessCode() {
-
- businessCode_ = getDefaultInstance().getBusinessCode();
- onChanged();
- return this;
- }
- /**
- * string business_code = 24;
- * @param value The bytes for businessCode to set.
- * @return This builder for chaining.
- */
- public Builder setBusinessCodeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- businessCode_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object sessionId_ = "";
- /**
- * string session_id = 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;
- }
- }
- /**
- * string session_id = 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 session_id = 25;
- * @param value The sessionId to set.
- * @return This builder for chaining.
- */
- public Builder setSessionId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- sessionId_ = value;
- onChanged();
- return this;
- }
- /**
- * string session_id = 25;
- * @return This builder for chaining.
- */
- public Builder clearSessionId() {
-
- sessionId_ = getDefaultInstance().getSessionId();
- onChanged();
- return this;
- }
- /**
- * string session_id = 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_ = "";
- /**
- * string 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;
- }
- }
- /**
- * 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;
- * @param value The reqData to set.
- * @return This builder for chaining.
- */
- public Builder setReqData(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- reqData_ = value;
- onChanged();
- return this;
- }
- /**
- * string req_data = 26;
- * @return This builder for chaining.
- */
- public Builder clearReqData() {
-
- reqData_ = getDefaultInstance().getReqData();
- 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_ = "";
- /**
- * string 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;
- }
- }
- /**
- * 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;
- * @param value The resData to set.
- * @return This builder for chaining.
- */
- public Builder setResData(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- resData_ = value;
- onChanged();
- return this;
- }
- /**
- * string res_data = 27;
- * @return This builder for chaining.
- */
- public Builder clearResData() {
-
- resData_ = getDefaultInstance().getResData();
- 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_ = "";
- /**
- * string 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;
- }
- }
- /**
- * 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;
- * @param value The busiMsg to set.
- * @return This builder for chaining.
- */
- public Builder setBusiMsg(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- busiMsg_ = value;
- onChanged();
- return this;
- }
- /**
- * string busi_msg = 28;
- * @return This builder for chaining.
- */
- public Builder clearBusiMsg() {
-
- busiMsg_ = getDefaultInstance().getBusiMsg();
- 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_ = "";
- /**
- * string 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;
- }
- }
- /**
- * 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;
- * @param value The busiKeyMsg to set.
- * @return This builder for chaining.
- */
- public Builder setBusiKeyMsg(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- busiKeyMsg_ = value;
- onChanged();
- return this;
- }
- /**
- * string busi_key_msg = 29;
- * @return This builder for chaining.
- */
- public Builder clearBusiKeyMsg() {
-
- busiKeyMsg_ = getDefaultInstance().getBusiKeyMsg();
- 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_ = "";
- /**
- * string 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;
- }
- }
- /**
- * 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;
- * @param value The busiDetailMsg to set.
- * @return This builder for chaining.
- */
- public Builder setBusiDetailMsg(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- busiDetailMsg_ = value;
- onChanged();
- return this;
- }
- /**
- * string busi_detail_msg = 30;
- * @return This builder for chaining.
- */
- public Builder clearBusiDetailMsg() {
-
- busiDetailMsg_ = getDefaultInstance().getBusiDetailMsg();
- 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_ = "";
- /**
- * string 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;
- }
- }
- /**
- * 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;
- * @param value The remainData to set.
- * @return This builder for chaining.
- */
- public Builder setRemainData(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- remainData_ = value;
- onChanged();
- return this;
- }
- /**
- * string remain_data = 31;
- * @return This builder for chaining.
- */
- public Builder clearRemainData() {
-
- remainData_ = getDefaultInstance().getRemainData();
- 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) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:dataflow.BussFlowOrl)
- }
-
- // @@protoc_insertion_point(class_scope:dataflow.BussFlowOrl)
- private static final com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl();
- }
-
- public static com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public BussFlowOrl parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new BussFlowOrl(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.BussFlowOrlOuterClass.BussFlowOrl getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_dataflow_BussFlowOrl_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_dataflow_BussFlowOrl_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\021BussFlowOrl.proto\022\010dataflow\"\201\005\n\013BussFl" +
- "owOrl\022\020\n\010table_id\030\001 \001(\005\022\020\n\010msg_type\030\002 \001(" +
- "\005\022\023\n\013msg_version\030\003 \001(\005\022\017\n\007msg_seq\030\004 \001(\005\022" +
- "\017\n\007msg_len\030\005 \001(\005\022\023\n\013request_mac\030\006 \001(\003\022\024\n" +
- "\014response_mac\030\007 \001(\003\022\022\n\nrequest_ip\030\010 \001(\003\022" +
- "\024\n\014request_port\030\t \001(\005\022\023\n\013response_ip\030\n \001" +
- "(\003\022\025\n\rresponse_port\030\013 \001(\005\022\020\n\010probe_if\030\014 " +
- "\001(\005\022\020\n\010protocol\030\r \001(\005\022\024\n\014start_tv_sec\030\016 " +
- "\001(\003\022\025\n\rstart_tv_usec\030\017 \001(\003\022\022\n\nend_tv_sec" +
- "\030\020 \001(\003\022\023\n\013end_tv_usec\030\021 \001(\003\022\017\n\007req_len\030\022" +
- " \001(\005\022\017\n\007res_len\030\023 \001(\005\022\024\n\014busi_msg_len\030\024 " +
- "\001(\005\022\023\n\013key_msg_len\030\025 \001(\005\022\026\n\016detail_msg_l" +
- "en\030\026 \001(\005\022\022\n\nremain_len\030\027 \001(\005\022\025\n\rbusiness" +
- "_code\030\030 \001(\t\022\022\n\nsession_id\030\031 \001(\t\022\020\n\010req_d" +
- "ata\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\014busi_key_msg\030\035 \001(\t\022\027\n\017busi_deta" +
- "il_msg\030\036 \001(\t\022\023\n\013remain_data\030\037 \001(\tB<\n#com" +
- ".yuandian.dataflow.proto.msgtypeP\000Z\023../g" +
- "rpc-gen;grpcgenb\006proto3"
- };
- descriptor = com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- });
- internal_static_dataflow_BussFlowOrl_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_dataflow_BussFlowOrl_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_dataflow_BussFlowOrl_descriptor,
- new java.lang.String[] { "TableId", "MsgType", "MsgVersion", "MsgSeq", "MsgLen", "RequestMac", "ResponseMac", "RequestIp", "RequestPort", "ResponseIp", "ResponsePort", "ProbeIf", "Protocol", "StartTvSec", "StartTvUsec", "EndTvSec", "EndTvUsec", "ReqLen", "ResLen", "BusiMsgLen", "KeyMsgLen", "DetailMsgLen", "RemainLen", "BusinessCode", "SessionId", "ReqData", "ResData", "BusiMsg", "BusiKeyMsg", "BusiDetailMsg", "RemainData", });
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/src/main/java/com/yuandian/dataflow/proto/msgtype/DataFlowOuterClass.java b/src/main/java/com/yuandian/dataflow/proto/msgtype/DataFlowOuterClass.java
deleted file mode 100644
index 7baec76..0000000
--- a/src/main/java/com/yuandian/dataflow/proto/msgtype/DataFlowOuterClass.java
+++ /dev/null
@@ -1,4468 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: DataFlow.proto
-
-package com.yuandian.dataflow.proto.msgtype;
-
-public final class DataFlowOuterClass {
- private DataFlowOuterClass() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- public interface DataFlowOrBuilder extends
- // @@protoc_insertion_point(interface_extends:dataflow.DataFlow)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * int32 table_id = 1;
- * @return The tableId.
- */
- int getTableId();
-
- /**
- * string id = 2;
- * @return The id.
- */
- java.lang.String getId();
- /**
- * string id = 2;
- * @return The bytes for id.
- */
- com.google.protobuf.ByteString
- getIdBytes();
-
- /**
- *
- *消息类型
- *
- *
- * int32 msg_type = 3;
- * @return The msgType.
- */
- int getMsgType();
-
- /**
- *
- *消息版本
- *
- *
- * int32 msg_version = 4;
- * @return The msgVersion.
- */
- int getMsgVersion();
-
- /**
- *
- *序列号
- *
- *
- * int32 msg_seq = 5;
- * @return The msgSeq.
- */
- int getMsgSeq();
-
- /**
- *
- *消息长度
- *
- *
- * int32 msg_len = 6;
- * @return The msgLen.
- */
- int getMsgLen();
-
- /**
- *
- *接口号
- *
- *
- * int32 probe_if = 7;
- * @return The probeIf.
- */
- int getProbeIf();
-
- /**
- *
- *时间戳
- *
- *
- * int64 timestamp = 8;
- * @return The timestamp.
- */
- long getTimestamp();
-
- /**
- *
- *源物理地址
- *
- *
- * int64 mac_src = 9;
- * @return The macSrc.
- */
- long getMacSrc();
-
- /**
- *
- *目的物理地址
- *
- *
- * int64 mac_dst = 10;
- * @return The macDst.
- */
- long getMacDst();
-
- /**
- *
- *vlan_id
- *
- *
- * int32 vlan_id = 11;
- * @return The vlanId.
- */
- int getVlanId();
-
- /**
- *
- *l3层协议
- *
- *
- * int64 l3_proto = 12;
- * @return The l3Proto.
- */
- long getL3Proto();
-
- /**
- *
- *l4层协议
- *
- *
- * int64 l4_proto = 13;
- * @return The l4Proto.
- */
- long getL4Proto();
-
- /**
- *
- *tos
- *
- *
- * int32 tos = 14;
- * @return The tos.
- */
- int getTos();
-
- /**
- *
- *重传次数
- *
- *
- * int32 retran_count = 15;
- * @return The retranCount.
- */
- int getRetranCount();
-
- /**
- *
- *重置次数
- *
- *
- * int32 reset_count = 16;
- * @return The resetCount.
- */
- int getResetCount();
-
- /**
- *
- *零窗口次数
- *
- *
- * int32 zerowin_count = 17;
- * @return The zerowinCount.
- */
- int getZerowinCount();
-
- /**
- *
- *协议名
- *
- *
- * int32 protocol = 18;
- * @return The protocol.
- */
- int getProtocol();
-
- /**
- * int64 seq = 19;
- * @return The seq.
- */
- long getSeq();
-
- /**
- * int64 ack = 20;
- * @return The ack.
- */
- long getAck();
-
- /**
- *
- *识别类型标识
- *
- *
- * int32 recog_status = 21;
- * @return The recogStatus.
- */
- int getRecogStatus();
-
- /**
- *
- *总字节
- *
- *
- * int64 bytes = 22;
- * @return The bytes.
- */
- long getBytes();
-
- /**
- *
- *总包数
- *
- *
- * int64 packets = 23;
- * @return The packets.
- */
- long getPackets();
-
- /**
- *
- *Web开始时间秒
- *
- *
- * int32 start_tv_sec = 24;
- * @return The startTvSec.
- */
- int getStartTvSec();
-
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 25;
- * @return The startTvUsec.
- */
- long getStartTvUsec();
-
- /**
- *
- *结束时间秒
- *
- *
- * int32 end_tv_sec = 26;
- * @return The endTvSec.
- */
- int getEndTvSec();
-
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 27;
- * @return The endTvUsec.
- */
- long getEndTvUsec();
-
- /**
- *
- *服务器响应开始时间秒
- *
- *
- * int32 server_start_tv_sec = 28;
- * @return The serverStartTvSec.
- */
- int getServerStartTvSec();
-
- /**
- *
- *服务器响应开始时间毫秒
- *
- *
- * int64 server_start_tv_usec = 29;
- * @return The serverStartTvUsec.
- */
- long getServerStartTvUsec();
-
- /**
- *
- *服务器响应结束时间秒
- *
- *
- * int32 server_end_tv_sec = 30;
- * @return The serverEndTvSec.
- */
- int getServerEndTvSec();
-
- /**
- *
- *服务器响应结束时间微妙
- *
- *
- * int64 server_end_tv_usec = 31;
- * @return The serverEndTvUsec.
- */
- long getServerEndTvUsec();
-
- /**
- *
- *Web服务器响应时间
- *
- *
- * int64 server_response_time = 32;
- * @return The serverResponseTime.
- */
- long getServerResponseTime();
-
- /**
- *
- *Web客户端传输耗时
- *
- *
- * int64 client_translate_time = 33;
- * @return The clientTranslateTime.
- */
- long getClientTranslateTime();
-
- /**
- *
- *Web服务器传输耗时
- *
- *
- * int64 server_translate_time = 34;
- * @return The serverTranslateTime.
- */
- long getServerTranslateTime();
-
- /**
- * int64 bytes_in = 35;
- * @return The bytesIn.
- */
- long getBytesIn();
-
- /**
- * int64 bytes_out = 36;
- * @return The bytesOut.
- */
- long getBytesOut();
-
- /**
- * int64 packets_in = 37;
- * @return The packetsIn.
- */
- long getPacketsIn();
-
- /**
- * int64 packets_out = 38;
- * @return The packetsOut.
- */
- long getPacketsOut();
-
- /**
- *
- *源IP
- *
- *
- * int64 ip_src = 39;
- * @return The ipSrc.
- */
- long getIpSrc();
-
- /**
- *
- *目的IP
- *
- *
- * int64 ip_dst = 40;
- * @return The ipDst.
- */
- long getIpDst();
-
- /**
- *
- *源端口
- *
- *
- * int64 port_src = 41;
- * @return The portSrc.
- */
- long getPortSrc();
-
- /**
- *
- *目的端口
- *
- *
- * int64 port_dst = 42;
- * @return The portDst.
- */
- long getPortDst();
-
- /**
- *
- *探针IP
- *
- *
- * int64 probeIP = 43;
- * @return The probeIP.
- */
- long getProbeIP();
-
- /**
- * int64 intodb_time = 44;
- * @return The intodbTime.
- */
- long getIntodbTime();
-
- /**
- *
- * 默认为1
- *
- *
- * int64 count = 45;
- * @return The count.
- */
- long getCount();
- }
- /**
- * Protobuf type {@code dataflow.DataFlow}
- */
- public static final class DataFlow extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:dataflow.DataFlow)
- DataFlowOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use DataFlow.newBuilder() to construct.
- private DataFlow(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private DataFlow() {
- id_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new DataFlow();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private DataFlow(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
-
- tableId_ = input.readInt32();
- break;
- }
- case 18: {
- java.lang.String s = input.readStringRequireUtf8();
-
- id_ = s;
- break;
- }
- case 24: {
-
- msgType_ = input.readInt32();
- break;
- }
- case 32: {
-
- msgVersion_ = input.readInt32();
- break;
- }
- case 40: {
-
- msgSeq_ = input.readInt32();
- break;
- }
- case 48: {
-
- msgLen_ = input.readInt32();
- break;
- }
- case 56: {
-
- probeIf_ = input.readInt32();
- break;
- }
- case 64: {
-
- timestamp_ = input.readInt64();
- break;
- }
- case 72: {
-
- macSrc_ = input.readInt64();
- break;
- }
- case 80: {
-
- macDst_ = input.readInt64();
- break;
- }
- case 88: {
-
- vlanId_ = input.readInt32();
- break;
- }
- case 96: {
-
- l3Proto_ = input.readInt64();
- break;
- }
- case 104: {
-
- l4Proto_ = input.readInt64();
- break;
- }
- case 112: {
-
- tos_ = input.readInt32();
- break;
- }
- case 120: {
-
- retranCount_ = input.readInt32();
- break;
- }
- case 128: {
-
- resetCount_ = input.readInt32();
- break;
- }
- case 136: {
-
- zerowinCount_ = input.readInt32();
- break;
- }
- case 144: {
-
- protocol_ = input.readInt32();
- break;
- }
- case 152: {
-
- seq_ = input.readInt64();
- break;
- }
- case 160: {
-
- ack_ = input.readInt64();
- break;
- }
- case 168: {
-
- recogStatus_ = input.readInt32();
- break;
- }
- case 176: {
-
- bytes_ = input.readInt64();
- break;
- }
- case 184: {
-
- packets_ = input.readInt64();
- break;
- }
- case 192: {
-
- startTvSec_ = input.readInt32();
- break;
- }
- case 200: {
-
- startTvUsec_ = input.readInt64();
- break;
- }
- case 208: {
-
- endTvSec_ = input.readInt32();
- break;
- }
- case 216: {
-
- endTvUsec_ = input.readInt64();
- break;
- }
- case 224: {
-
- serverStartTvSec_ = input.readInt32();
- break;
- }
- case 232: {
-
- serverStartTvUsec_ = input.readInt64();
- break;
- }
- case 240: {
-
- serverEndTvSec_ = input.readInt32();
- break;
- }
- case 248: {
-
- serverEndTvUsec_ = input.readInt64();
- break;
- }
- case 256: {
-
- serverResponseTime_ = input.readInt64();
- break;
- }
- case 264: {
-
- clientTranslateTime_ = input.readInt64();
- break;
- }
- case 272: {
-
- serverTranslateTime_ = input.readInt64();
- break;
- }
- case 280: {
-
- bytesIn_ = input.readInt64();
- break;
- }
- case 288: {
-
- bytesOut_ = input.readInt64();
- break;
- }
- case 296: {
-
- packetsIn_ = input.readInt64();
- break;
- }
- case 304: {
-
- packetsOut_ = input.readInt64();
- break;
- }
- case 312: {
-
- ipSrc_ = input.readInt64();
- break;
- }
- case 320: {
-
- ipDst_ = input.readInt64();
- break;
- }
- case 328: {
-
- portSrc_ = input.readInt64();
- break;
- }
- case 336: {
-
- portDst_ = input.readInt64();
- break;
- }
- case 344: {
-
- probeIP_ = input.readInt64();
- break;
- }
- case 352: {
-
- intodbTime_ = input.readInt64();
- break;
- }
- case 360: {
-
- count_ = input.readInt64();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.internal_static_dataflow_DataFlow_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.internal_static_dataflow_DataFlow_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow.class, com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow.Builder.class);
- }
-
- public static final int TABLE_ID_FIELD_NUMBER = 1;
- private int tableId_;
- /**
- * int32 table_id = 1;
- * @return The tableId.
- */
- @java.lang.Override
- public int getTableId() {
- return tableId_;
- }
-
- public static final int ID_FIELD_NUMBER = 2;
- private volatile java.lang.Object id_;
- /**
- * string id = 2;
- * @return The id.
- */
- @java.lang.Override
- public java.lang.String getId() {
- java.lang.Object ref = id_;
- 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();
- id_ = s;
- return s;
- }
- }
- /**
- * string id = 2;
- * @return The bytes for id.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getIdBytes() {
- java.lang.Object ref = id_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- id_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int MSG_TYPE_FIELD_NUMBER = 3;
- private int msgType_;
- /**
- *
- *消息类型
- *
- *
- * int32 msg_type = 3;
- * @return The msgType.
- */
- @java.lang.Override
- public int getMsgType() {
- return msgType_;
- }
-
- public static final int MSG_VERSION_FIELD_NUMBER = 4;
- private int msgVersion_;
- /**
- *
- *消息版本
- *
- *
- * int32 msg_version = 4;
- * @return The msgVersion.
- */
- @java.lang.Override
- public int getMsgVersion() {
- return msgVersion_;
- }
-
- public static final int MSG_SEQ_FIELD_NUMBER = 5;
- private int msgSeq_;
- /**
- *
- *序列号
- *
- *
- * int32 msg_seq = 5;
- * @return The msgSeq.
- */
- @java.lang.Override
- public int getMsgSeq() {
- return msgSeq_;
- }
-
- public static final int MSG_LEN_FIELD_NUMBER = 6;
- private int msgLen_;
- /**
- *
- *消息长度
- *
- *
- * int32 msg_len = 6;
- * @return The msgLen.
- */
- @java.lang.Override
- public int getMsgLen() {
- return msgLen_;
- }
-
- public static final int PROBE_IF_FIELD_NUMBER = 7;
- private int probeIf_;
- /**
- *
- *接口号
- *
- *
- * int32 probe_if = 7;
- * @return The probeIf.
- */
- @java.lang.Override
- public int getProbeIf() {
- return probeIf_;
- }
-
- public static final int TIMESTAMP_FIELD_NUMBER = 8;
- private long timestamp_;
- /**
- *
- *时间戳
- *
- *
- * int64 timestamp = 8;
- * @return The timestamp.
- */
- @java.lang.Override
- public long getTimestamp() {
- return timestamp_;
- }
-
- public static final int MAC_SRC_FIELD_NUMBER = 9;
- private long macSrc_;
- /**
- *
- *源物理地址
- *
- *
- * int64 mac_src = 9;
- * @return The macSrc.
- */
- @java.lang.Override
- public long getMacSrc() {
- return macSrc_;
- }
-
- public static final int MAC_DST_FIELD_NUMBER = 10;
- private long macDst_;
- /**
- *
- *目的物理地址
- *
- *
- * int64 mac_dst = 10;
- * @return The macDst.
- */
- @java.lang.Override
- public long getMacDst() {
- return macDst_;
- }
-
- public static final int VLAN_ID_FIELD_NUMBER = 11;
- private int vlanId_;
- /**
- *
- *vlan_id
- *
- *
- * int32 vlan_id = 11;
- * @return The vlanId.
- */
- @java.lang.Override
- public int getVlanId() {
- return vlanId_;
- }
-
- public static final int L3_PROTO_FIELD_NUMBER = 12;
- private long l3Proto_;
- /**
- *
- *l3层协议
- *
- *
- * int64 l3_proto = 12;
- * @return The l3Proto.
- */
- @java.lang.Override
- public long getL3Proto() {
- return l3Proto_;
- }
-
- public static final int L4_PROTO_FIELD_NUMBER = 13;
- private long l4Proto_;
- /**
- *
- *l4层协议
- *
- *
- * int64 l4_proto = 13;
- * @return The l4Proto.
- */
- @java.lang.Override
- public long getL4Proto() {
- return l4Proto_;
- }
-
- public static final int TOS_FIELD_NUMBER = 14;
- private int tos_;
- /**
- *
- *tos
- *
- *
- * int32 tos = 14;
- * @return The tos.
- */
- @java.lang.Override
- public int getTos() {
- return tos_;
- }
-
- public static final int RETRAN_COUNT_FIELD_NUMBER = 15;
- private int retranCount_;
- /**
- *
- *重传次数
- *
- *
- * int32 retran_count = 15;
- * @return The retranCount.
- */
- @java.lang.Override
- public int getRetranCount() {
- return retranCount_;
- }
-
- public static final int RESET_COUNT_FIELD_NUMBER = 16;
- private int resetCount_;
- /**
- *
- *重置次数
- *
- *
- * int32 reset_count = 16;
- * @return The resetCount.
- */
- @java.lang.Override
- public int getResetCount() {
- return resetCount_;
- }
-
- public static final int ZEROWIN_COUNT_FIELD_NUMBER = 17;
- private int zerowinCount_;
- /**
- *
- *零窗口次数
- *
- *
- * int32 zerowin_count = 17;
- * @return The zerowinCount.
- */
- @java.lang.Override
- public int getZerowinCount() {
- return zerowinCount_;
- }
-
- public static final int PROTOCOL_FIELD_NUMBER = 18;
- private int protocol_;
- /**
- *
- *协议名
- *
- *
- * int32 protocol = 18;
- * @return The protocol.
- */
- @java.lang.Override
- public int getProtocol() {
- return protocol_;
- }
-
- public static final int SEQ_FIELD_NUMBER = 19;
- private long seq_;
- /**
- * int64 seq = 19;
- * @return The seq.
- */
- @java.lang.Override
- public long getSeq() {
- return seq_;
- }
-
- public static final int ACK_FIELD_NUMBER = 20;
- private long ack_;
- /**
- * int64 ack = 20;
- * @return The ack.
- */
- @java.lang.Override
- public long getAck() {
- return ack_;
- }
-
- public static final int RECOG_STATUS_FIELD_NUMBER = 21;
- private int recogStatus_;
- /**
- *
- *识别类型标识
- *
- *
- * int32 recog_status = 21;
- * @return The recogStatus.
- */
- @java.lang.Override
- public int getRecogStatus() {
- return recogStatus_;
- }
-
- public static final int BYTES_FIELD_NUMBER = 22;
- private long bytes_;
- /**
- *
- *总字节
- *
- *
- * int64 bytes = 22;
- * @return The bytes.
- */
- @java.lang.Override
- public long getBytes() {
- return bytes_;
- }
-
- public static final int PACKETS_FIELD_NUMBER = 23;
- private long packets_;
- /**
- *
- *总包数
- *
- *
- * int64 packets = 23;
- * @return The packets.
- */
- @java.lang.Override
- public long getPackets() {
- return packets_;
- }
-
- public static final int START_TV_SEC_FIELD_NUMBER = 24;
- private int startTvSec_;
- /**
- *
- *Web开始时间秒
- *
- *
- * int32 start_tv_sec = 24;
- * @return The startTvSec.
- */
- @java.lang.Override
- public int getStartTvSec() {
- return startTvSec_;
- }
-
- public static final int START_TV_USEC_FIELD_NUMBER = 25;
- private long startTvUsec_;
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 25;
- * @return The startTvUsec.
- */
- @java.lang.Override
- public long getStartTvUsec() {
- return startTvUsec_;
- }
-
- public static final int END_TV_SEC_FIELD_NUMBER = 26;
- private int endTvSec_;
- /**
- *
- *结束时间秒
- *
- *
- * int32 end_tv_sec = 26;
- * @return The endTvSec.
- */
- @java.lang.Override
- public int getEndTvSec() {
- return endTvSec_;
- }
-
- public static final int END_TV_USEC_FIELD_NUMBER = 27;
- private long endTvUsec_;
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 27;
- * @return The endTvUsec.
- */
- @java.lang.Override
- public long getEndTvUsec() {
- return endTvUsec_;
- }
-
- public static final int SERVER_START_TV_SEC_FIELD_NUMBER = 28;
- private int serverStartTvSec_;
- /**
- *
- *服务器响应开始时间秒
- *
- *
- * int32 server_start_tv_sec = 28;
- * @return The serverStartTvSec.
- */
- @java.lang.Override
- public int getServerStartTvSec() {
- return serverStartTvSec_;
- }
-
- public static final int SERVER_START_TV_USEC_FIELD_NUMBER = 29;
- private long serverStartTvUsec_;
- /**
- *
- *服务器响应开始时间毫秒
- *
- *
- * int64 server_start_tv_usec = 29;
- * @return The serverStartTvUsec.
- */
- @java.lang.Override
- public long getServerStartTvUsec() {
- return serverStartTvUsec_;
- }
-
- public static final int SERVER_END_TV_SEC_FIELD_NUMBER = 30;
- private int serverEndTvSec_;
- /**
- *
- *服务器响应结束时间秒
- *
- *
- * int32 server_end_tv_sec = 30;
- * @return The serverEndTvSec.
- */
- @java.lang.Override
- public int getServerEndTvSec() {
- return serverEndTvSec_;
- }
-
- public static final int SERVER_END_TV_USEC_FIELD_NUMBER = 31;
- private long serverEndTvUsec_;
- /**
- *
- *服务器响应结束时间微妙
- *
- *
- * int64 server_end_tv_usec = 31;
- * @return The serverEndTvUsec.
- */
- @java.lang.Override
- public long getServerEndTvUsec() {
- return serverEndTvUsec_;
- }
-
- public static final int SERVER_RESPONSE_TIME_FIELD_NUMBER = 32;
- private long serverResponseTime_;
- /**
- *
- *Web服务器响应时间
- *
- *
- * int64 server_response_time = 32;
- * @return The serverResponseTime.
- */
- @java.lang.Override
- public long getServerResponseTime() {
- return serverResponseTime_;
- }
-
- public static final int CLIENT_TRANSLATE_TIME_FIELD_NUMBER = 33;
- private long clientTranslateTime_;
- /**
- *
- *Web客户端传输耗时
- *
- *
- * int64 client_translate_time = 33;
- * @return The clientTranslateTime.
- */
- @java.lang.Override
- public long getClientTranslateTime() {
- return clientTranslateTime_;
- }
-
- public static final int SERVER_TRANSLATE_TIME_FIELD_NUMBER = 34;
- private long serverTranslateTime_;
- /**
- *
- *Web服务器传输耗时
- *
- *
- * int64 server_translate_time = 34;
- * @return The serverTranslateTime.
- */
- @java.lang.Override
- public long getServerTranslateTime() {
- return serverTranslateTime_;
- }
-
- public static final int BYTES_IN_FIELD_NUMBER = 35;
- private long bytesIn_;
- /**
- * int64 bytes_in = 35;
- * @return The bytesIn.
- */
- @java.lang.Override
- public long getBytesIn() {
- return bytesIn_;
- }
-
- public static final int BYTES_OUT_FIELD_NUMBER = 36;
- private long bytesOut_;
- /**
- * int64 bytes_out = 36;
- * @return The bytesOut.
- */
- @java.lang.Override
- public long getBytesOut() {
- return bytesOut_;
- }
-
- public static final int PACKETS_IN_FIELD_NUMBER = 37;
- private long packetsIn_;
- /**
- * int64 packets_in = 37;
- * @return The packetsIn.
- */
- @java.lang.Override
- public long getPacketsIn() {
- return packetsIn_;
- }
-
- public static final int PACKETS_OUT_FIELD_NUMBER = 38;
- private long packetsOut_;
- /**
- * int64 packets_out = 38;
- * @return The packetsOut.
- */
- @java.lang.Override
- public long getPacketsOut() {
- return packetsOut_;
- }
-
- public static final int IP_SRC_FIELD_NUMBER = 39;
- private long ipSrc_;
- /**
- *
- *源IP
- *
- *
- * int64 ip_src = 39;
- * @return The ipSrc.
- */
- @java.lang.Override
- public long getIpSrc() {
- return ipSrc_;
- }
-
- public static final int IP_DST_FIELD_NUMBER = 40;
- private long ipDst_;
- /**
- *
- *目的IP
- *
- *
- * int64 ip_dst = 40;
- * @return The ipDst.
- */
- @java.lang.Override
- public long getIpDst() {
- return ipDst_;
- }
-
- public static final int PORT_SRC_FIELD_NUMBER = 41;
- private long portSrc_;
- /**
- *
- *源端口
- *
- *
- * int64 port_src = 41;
- * @return The portSrc.
- */
- @java.lang.Override
- public long getPortSrc() {
- return portSrc_;
- }
-
- public static final int PORT_DST_FIELD_NUMBER = 42;
- private long portDst_;
- /**
- *
- *目的端口
- *
- *
- * int64 port_dst = 42;
- * @return The portDst.
- */
- @java.lang.Override
- public long getPortDst() {
- return portDst_;
- }
-
- public static final int PROBEIP_FIELD_NUMBER = 43;
- private long probeIP_;
- /**
- *
- *探针IP
- *
- *
- * int64 probeIP = 43;
- * @return The probeIP.
- */
- @java.lang.Override
- public long getProbeIP() {
- return probeIP_;
- }
-
- public static final int INTODB_TIME_FIELD_NUMBER = 44;
- private long intodbTime_;
- /**
- * int64 intodb_time = 44;
- * @return The intodbTime.
- */
- @java.lang.Override
- public long getIntodbTime() {
- return intodbTime_;
- }
-
- public static final int COUNT_FIELD_NUMBER = 45;
- private long count_;
- /**
- *
- * 默认为1
- *
- *
- * int64 count = 45;
- * @return The count.
- */
- @java.lang.Override
- public long getCount() {
- return count_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (tableId_ != 0) {
- output.writeInt32(1, tableId_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_);
- }
- if (msgType_ != 0) {
- output.writeInt32(3, msgType_);
- }
- if (msgVersion_ != 0) {
- output.writeInt32(4, msgVersion_);
- }
- if (msgSeq_ != 0) {
- output.writeInt32(5, msgSeq_);
- }
- if (msgLen_ != 0) {
- output.writeInt32(6, msgLen_);
- }
- if (probeIf_ != 0) {
- output.writeInt32(7, probeIf_);
- }
- if (timestamp_ != 0L) {
- output.writeInt64(8, timestamp_);
- }
- if (macSrc_ != 0L) {
- output.writeInt64(9, macSrc_);
- }
- if (macDst_ != 0L) {
- output.writeInt64(10, macDst_);
- }
- if (vlanId_ != 0) {
- output.writeInt32(11, vlanId_);
- }
- if (l3Proto_ != 0L) {
- output.writeInt64(12, l3Proto_);
- }
- if (l4Proto_ != 0L) {
- output.writeInt64(13, l4Proto_);
- }
- if (tos_ != 0) {
- output.writeInt32(14, tos_);
- }
- if (retranCount_ != 0) {
- output.writeInt32(15, retranCount_);
- }
- if (resetCount_ != 0) {
- output.writeInt32(16, resetCount_);
- }
- if (zerowinCount_ != 0) {
- output.writeInt32(17, zerowinCount_);
- }
- if (protocol_ != 0) {
- output.writeInt32(18, protocol_);
- }
- if (seq_ != 0L) {
- output.writeInt64(19, seq_);
- }
- if (ack_ != 0L) {
- output.writeInt64(20, ack_);
- }
- if (recogStatus_ != 0) {
- output.writeInt32(21, recogStatus_);
- }
- if (bytes_ != 0L) {
- output.writeInt64(22, bytes_);
- }
- if (packets_ != 0L) {
- output.writeInt64(23, packets_);
- }
- if (startTvSec_ != 0) {
- output.writeInt32(24, startTvSec_);
- }
- if (startTvUsec_ != 0L) {
- output.writeInt64(25, startTvUsec_);
- }
- if (endTvSec_ != 0) {
- output.writeInt32(26, endTvSec_);
- }
- if (endTvUsec_ != 0L) {
- output.writeInt64(27, endTvUsec_);
- }
- if (serverStartTvSec_ != 0) {
- output.writeInt32(28, serverStartTvSec_);
- }
- if (serverStartTvUsec_ != 0L) {
- output.writeInt64(29, serverStartTvUsec_);
- }
- if (serverEndTvSec_ != 0) {
- output.writeInt32(30, serverEndTvSec_);
- }
- if (serverEndTvUsec_ != 0L) {
- output.writeInt64(31, serverEndTvUsec_);
- }
- if (serverResponseTime_ != 0L) {
- output.writeInt64(32, serverResponseTime_);
- }
- if (clientTranslateTime_ != 0L) {
- output.writeInt64(33, clientTranslateTime_);
- }
- if (serverTranslateTime_ != 0L) {
- output.writeInt64(34, serverTranslateTime_);
- }
- if (bytesIn_ != 0L) {
- output.writeInt64(35, bytesIn_);
- }
- if (bytesOut_ != 0L) {
- output.writeInt64(36, bytesOut_);
- }
- if (packetsIn_ != 0L) {
- output.writeInt64(37, packetsIn_);
- }
- if (packetsOut_ != 0L) {
- output.writeInt64(38, packetsOut_);
- }
- if (ipSrc_ != 0L) {
- output.writeInt64(39, ipSrc_);
- }
- if (ipDst_ != 0L) {
- output.writeInt64(40, ipDst_);
- }
- if (portSrc_ != 0L) {
- output.writeInt64(41, portSrc_);
- }
- if (portDst_ != 0L) {
- output.writeInt64(42, portDst_);
- }
- if (probeIP_ != 0L) {
- output.writeInt64(43, probeIP_);
- }
- if (intodbTime_ != 0L) {
- output.writeInt64(44, intodbTime_);
- }
- if (count_ != 0L) {
- output.writeInt64(45, count_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (tableId_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, tableId_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
- }
- if (msgType_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(3, msgType_);
- }
- if (msgVersion_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(4, msgVersion_);
- }
- if (msgSeq_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(5, msgSeq_);
- }
- if (msgLen_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(6, msgLen_);
- }
- if (probeIf_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(7, probeIf_);
- }
- if (timestamp_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(8, timestamp_);
- }
- if (macSrc_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(9, macSrc_);
- }
- if (macDst_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(10, macDst_);
- }
- if (vlanId_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(11, vlanId_);
- }
- if (l3Proto_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(12, l3Proto_);
- }
- if (l4Proto_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(13, l4Proto_);
- }
- if (tos_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(14, tos_);
- }
- if (retranCount_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(15, retranCount_);
- }
- if (resetCount_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(16, resetCount_);
- }
- if (zerowinCount_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(17, zerowinCount_);
- }
- if (protocol_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(18, protocol_);
- }
- if (seq_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(19, seq_);
- }
- if (ack_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(20, ack_);
- }
- if (recogStatus_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(21, recogStatus_);
- }
- if (bytes_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(22, bytes_);
- }
- if (packets_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(23, packets_);
- }
- if (startTvSec_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(24, startTvSec_);
- }
- if (startTvUsec_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(25, startTvUsec_);
- }
- if (endTvSec_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(26, endTvSec_);
- }
- if (endTvUsec_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(27, endTvUsec_);
- }
- if (serverStartTvSec_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(28, serverStartTvSec_);
- }
- if (serverStartTvUsec_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(29, serverStartTvUsec_);
- }
- if (serverEndTvSec_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(30, serverEndTvSec_);
- }
- if (serverEndTvUsec_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(31, serverEndTvUsec_);
- }
- if (serverResponseTime_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(32, serverResponseTime_);
- }
- if (clientTranslateTime_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(33, clientTranslateTime_);
- }
- if (serverTranslateTime_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(34, serverTranslateTime_);
- }
- if (bytesIn_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(35, bytesIn_);
- }
- if (bytesOut_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(36, bytesOut_);
- }
- if (packetsIn_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(37, packetsIn_);
- }
- if (packetsOut_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(38, packetsOut_);
- }
- if (ipSrc_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(39, ipSrc_);
- }
- if (ipDst_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(40, ipDst_);
- }
- if (portSrc_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(41, portSrc_);
- }
- if (portDst_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(42, portDst_);
- }
- if (probeIP_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(43, probeIP_);
- }
- if (intodbTime_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(44, intodbTime_);
- }
- if (count_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(45, count_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow)) {
- return super.equals(obj);
- }
- com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow other = (com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow) obj;
-
- if (getTableId()
- != other.getTableId()) return false;
- if (!getId()
- .equals(other.getId())) return false;
- if (getMsgType()
- != other.getMsgType()) return false;
- if (getMsgVersion()
- != other.getMsgVersion()) return false;
- if (getMsgSeq()
- != other.getMsgSeq()) return false;
- if (getMsgLen()
- != other.getMsgLen()) return false;
- if (getProbeIf()
- != other.getProbeIf()) return false;
- if (getTimestamp()
- != other.getTimestamp()) return false;
- if (getMacSrc()
- != other.getMacSrc()) return false;
- if (getMacDst()
- != other.getMacDst()) return false;
- if (getVlanId()
- != other.getVlanId()) return false;
- if (getL3Proto()
- != other.getL3Proto()) return false;
- if (getL4Proto()
- != other.getL4Proto()) return false;
- if (getTos()
- != other.getTos()) return false;
- if (getRetranCount()
- != other.getRetranCount()) return false;
- if (getResetCount()
- != other.getResetCount()) return false;
- if (getZerowinCount()
- != other.getZerowinCount()) return false;
- if (getProtocol()
- != other.getProtocol()) return false;
- if (getSeq()
- != other.getSeq()) return false;
- if (getAck()
- != other.getAck()) return false;
- if (getRecogStatus()
- != other.getRecogStatus()) return false;
- if (getBytes()
- != other.getBytes()) return false;
- if (getPackets()
- != other.getPackets()) return false;
- if (getStartTvSec()
- != other.getStartTvSec()) return false;
- if (getStartTvUsec()
- != other.getStartTvUsec()) return false;
- if (getEndTvSec()
- != other.getEndTvSec()) return false;
- if (getEndTvUsec()
- != other.getEndTvUsec()) return false;
- if (getServerStartTvSec()
- != other.getServerStartTvSec()) return false;
- if (getServerStartTvUsec()
- != other.getServerStartTvUsec()) return false;
- if (getServerEndTvSec()
- != other.getServerEndTvSec()) return false;
- if (getServerEndTvUsec()
- != other.getServerEndTvUsec()) return false;
- if (getServerResponseTime()
- != other.getServerResponseTime()) return false;
- if (getClientTranslateTime()
- != other.getClientTranslateTime()) return false;
- if (getServerTranslateTime()
- != other.getServerTranslateTime()) return false;
- if (getBytesIn()
- != other.getBytesIn()) return false;
- if (getBytesOut()
- != other.getBytesOut()) return false;
- if (getPacketsIn()
- != other.getPacketsIn()) return false;
- if (getPacketsOut()
- != other.getPacketsOut()) return false;
- if (getIpSrc()
- != other.getIpSrc()) return false;
- if (getIpDst()
- != other.getIpDst()) return false;
- if (getPortSrc()
- != other.getPortSrc()) return false;
- if (getPortDst()
- != other.getPortDst()) return false;
- if (getProbeIP()
- != other.getProbeIP()) return false;
- if (getIntodbTime()
- != other.getIntodbTime()) return false;
- if (getCount()
- != other.getCount()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + TABLE_ID_FIELD_NUMBER;
- hash = (53 * hash) + getTableId();
- hash = (37 * hash) + ID_FIELD_NUMBER;
- hash = (53 * hash) + getId().hashCode();
- hash = (37 * hash) + MSG_TYPE_FIELD_NUMBER;
- hash = (53 * hash) + getMsgType();
- hash = (37 * hash) + MSG_VERSION_FIELD_NUMBER;
- hash = (53 * hash) + getMsgVersion();
- hash = (37 * hash) + MSG_SEQ_FIELD_NUMBER;
- hash = (53 * hash) + getMsgSeq();
- hash = (37 * hash) + MSG_LEN_FIELD_NUMBER;
- hash = (53 * hash) + getMsgLen();
- hash = (37 * hash) + PROBE_IF_FIELD_NUMBER;
- hash = (53 * hash) + getProbeIf();
- hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getTimestamp());
- hash = (37 * hash) + MAC_SRC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getMacSrc());
- hash = (37 * hash) + MAC_DST_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getMacDst());
- hash = (37 * hash) + VLAN_ID_FIELD_NUMBER;
- hash = (53 * hash) + getVlanId();
- hash = (37 * hash) + L3_PROTO_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getL3Proto());
- hash = (37 * hash) + L4_PROTO_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getL4Proto());
- hash = (37 * hash) + TOS_FIELD_NUMBER;
- hash = (53 * hash) + getTos();
- hash = (37 * hash) + RETRAN_COUNT_FIELD_NUMBER;
- hash = (53 * hash) + getRetranCount();
- hash = (37 * hash) + RESET_COUNT_FIELD_NUMBER;
- hash = (53 * hash) + getResetCount();
- hash = (37 * hash) + ZEROWIN_COUNT_FIELD_NUMBER;
- hash = (53 * hash) + getZerowinCount();
- hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
- hash = (53 * hash) + getProtocol();
- hash = (37 * hash) + SEQ_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getSeq());
- hash = (37 * hash) + ACK_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getAck());
- hash = (37 * hash) + RECOG_STATUS_FIELD_NUMBER;
- hash = (53 * hash) + getRecogStatus();
- hash = (37 * hash) + BYTES_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getBytes());
- hash = (37 * hash) + PACKETS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPackets());
- hash = (37 * hash) + START_TV_SEC_FIELD_NUMBER;
- hash = (53 * hash) + getStartTvSec();
- hash = (37 * hash) + START_TV_USEC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getStartTvUsec());
- hash = (37 * hash) + END_TV_SEC_FIELD_NUMBER;
- hash = (53 * hash) + getEndTvSec();
- hash = (37 * hash) + END_TV_USEC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getEndTvUsec());
- hash = (37 * hash) + SERVER_START_TV_SEC_FIELD_NUMBER;
- hash = (53 * hash) + getServerStartTvSec();
- hash = (37 * hash) + SERVER_START_TV_USEC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getServerStartTvUsec());
- hash = (37 * hash) + SERVER_END_TV_SEC_FIELD_NUMBER;
- hash = (53 * hash) + getServerEndTvSec();
- hash = (37 * hash) + SERVER_END_TV_USEC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getServerEndTvUsec());
- hash = (37 * hash) + SERVER_RESPONSE_TIME_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getServerResponseTime());
- hash = (37 * hash) + CLIENT_TRANSLATE_TIME_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getClientTranslateTime());
- hash = (37 * hash) + SERVER_TRANSLATE_TIME_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getServerTranslateTime());
- hash = (37 * hash) + BYTES_IN_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getBytesIn());
- hash = (37 * hash) + BYTES_OUT_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getBytesOut());
- hash = (37 * hash) + PACKETS_IN_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPacketsIn());
- hash = (37 * hash) + PACKETS_OUT_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPacketsOut());
- hash = (37 * hash) + IP_SRC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getIpSrc());
- hash = (37 * hash) + IP_DST_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getIpDst());
- hash = (37 * hash) + PORT_SRC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPortSrc());
- hash = (37 * hash) + PORT_DST_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPortDst());
- hash = (37 * hash) + PROBEIP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getProbeIP());
- hash = (37 * hash) + INTODB_TIME_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getIntodbTime());
- hash = (37 * hash) + COUNT_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getCount());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code dataflow.DataFlow}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:dataflow.DataFlow)
- com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlowOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.internal_static_dataflow_DataFlow_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.internal_static_dataflow_DataFlow_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow.class, com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow.Builder.class);
- }
-
- // Construct using com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- tableId_ = 0;
-
- id_ = "";
-
- msgType_ = 0;
-
- msgVersion_ = 0;
-
- msgSeq_ = 0;
-
- msgLen_ = 0;
-
- probeIf_ = 0;
-
- timestamp_ = 0L;
-
- macSrc_ = 0L;
-
- macDst_ = 0L;
-
- vlanId_ = 0;
-
- l3Proto_ = 0L;
-
- l4Proto_ = 0L;
-
- tos_ = 0;
-
- retranCount_ = 0;
-
- resetCount_ = 0;
-
- zerowinCount_ = 0;
-
- protocol_ = 0;
-
- seq_ = 0L;
-
- ack_ = 0L;
-
- recogStatus_ = 0;
-
- bytes_ = 0L;
-
- packets_ = 0L;
-
- startTvSec_ = 0;
-
- startTvUsec_ = 0L;
-
- endTvSec_ = 0;
-
- endTvUsec_ = 0L;
-
- serverStartTvSec_ = 0;
-
- serverStartTvUsec_ = 0L;
-
- serverEndTvSec_ = 0;
-
- serverEndTvUsec_ = 0L;
-
- serverResponseTime_ = 0L;
-
- clientTranslateTime_ = 0L;
-
- serverTranslateTime_ = 0L;
-
- bytesIn_ = 0L;
-
- bytesOut_ = 0L;
-
- packetsIn_ = 0L;
-
- packetsOut_ = 0L;
-
- ipSrc_ = 0L;
-
- ipDst_ = 0L;
-
- portSrc_ = 0L;
-
- portDst_ = 0L;
-
- probeIP_ = 0L;
-
- intodbTime_ = 0L;
-
- count_ = 0L;
-
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.internal_static_dataflow_DataFlow_descriptor;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow getDefaultInstanceForType() {
- return com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow.getDefaultInstance();
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow build() {
- com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow buildPartial() {
- com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow result = new com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow(this);
- result.tableId_ = tableId_;
- result.id_ = id_;
- result.msgType_ = msgType_;
- result.msgVersion_ = msgVersion_;
- result.msgSeq_ = msgSeq_;
- result.msgLen_ = msgLen_;
- result.probeIf_ = probeIf_;
- result.timestamp_ = timestamp_;
- result.macSrc_ = macSrc_;
- result.macDst_ = macDst_;
- result.vlanId_ = vlanId_;
- result.l3Proto_ = l3Proto_;
- result.l4Proto_ = l4Proto_;
- result.tos_ = tos_;
- result.retranCount_ = retranCount_;
- result.resetCount_ = resetCount_;
- result.zerowinCount_ = zerowinCount_;
- result.protocol_ = protocol_;
- result.seq_ = seq_;
- result.ack_ = ack_;
- result.recogStatus_ = recogStatus_;
- result.bytes_ = bytes_;
- result.packets_ = packets_;
- result.startTvSec_ = startTvSec_;
- result.startTvUsec_ = startTvUsec_;
- result.endTvSec_ = endTvSec_;
- result.endTvUsec_ = endTvUsec_;
- result.serverStartTvSec_ = serverStartTvSec_;
- result.serverStartTvUsec_ = serverStartTvUsec_;
- result.serverEndTvSec_ = serverEndTvSec_;
- result.serverEndTvUsec_ = serverEndTvUsec_;
- result.serverResponseTime_ = serverResponseTime_;
- result.clientTranslateTime_ = clientTranslateTime_;
- result.serverTranslateTime_ = serverTranslateTime_;
- result.bytesIn_ = bytesIn_;
- result.bytesOut_ = bytesOut_;
- result.packetsIn_ = packetsIn_;
- result.packetsOut_ = packetsOut_;
- result.ipSrc_ = ipSrc_;
- result.ipDst_ = ipDst_;
- result.portSrc_ = portSrc_;
- result.portDst_ = portDst_;
- result.probeIP_ = probeIP_;
- result.intodbTime_ = intodbTime_;
- result.count_ = count_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow) {
- return mergeFrom((com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow other) {
- if (other == com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow.getDefaultInstance()) return this;
- if (other.getTableId() != 0) {
- setTableId(other.getTableId());
- }
- if (!other.getId().isEmpty()) {
- id_ = other.id_;
- onChanged();
- }
- if (other.getMsgType() != 0) {
- setMsgType(other.getMsgType());
- }
- if (other.getMsgVersion() != 0) {
- setMsgVersion(other.getMsgVersion());
- }
- if (other.getMsgSeq() != 0) {
- setMsgSeq(other.getMsgSeq());
- }
- if (other.getMsgLen() != 0) {
- setMsgLen(other.getMsgLen());
- }
- if (other.getProbeIf() != 0) {
- setProbeIf(other.getProbeIf());
- }
- if (other.getTimestamp() != 0L) {
- setTimestamp(other.getTimestamp());
- }
- if (other.getMacSrc() != 0L) {
- setMacSrc(other.getMacSrc());
- }
- if (other.getMacDst() != 0L) {
- setMacDst(other.getMacDst());
- }
- if (other.getVlanId() != 0) {
- setVlanId(other.getVlanId());
- }
- if (other.getL3Proto() != 0L) {
- setL3Proto(other.getL3Proto());
- }
- if (other.getL4Proto() != 0L) {
- setL4Proto(other.getL4Proto());
- }
- if (other.getTos() != 0) {
- setTos(other.getTos());
- }
- if (other.getRetranCount() != 0) {
- setRetranCount(other.getRetranCount());
- }
- if (other.getResetCount() != 0) {
- setResetCount(other.getResetCount());
- }
- if (other.getZerowinCount() != 0) {
- setZerowinCount(other.getZerowinCount());
- }
- if (other.getProtocol() != 0) {
- setProtocol(other.getProtocol());
- }
- if (other.getSeq() != 0L) {
- setSeq(other.getSeq());
- }
- if (other.getAck() != 0L) {
- setAck(other.getAck());
- }
- if (other.getRecogStatus() != 0) {
- setRecogStatus(other.getRecogStatus());
- }
- if (other.getBytes() != 0L) {
- setBytes(other.getBytes());
- }
- if (other.getPackets() != 0L) {
- setPackets(other.getPackets());
- }
- if (other.getStartTvSec() != 0) {
- setStartTvSec(other.getStartTvSec());
- }
- if (other.getStartTvUsec() != 0L) {
- setStartTvUsec(other.getStartTvUsec());
- }
- if (other.getEndTvSec() != 0) {
- setEndTvSec(other.getEndTvSec());
- }
- if (other.getEndTvUsec() != 0L) {
- setEndTvUsec(other.getEndTvUsec());
- }
- if (other.getServerStartTvSec() != 0) {
- setServerStartTvSec(other.getServerStartTvSec());
- }
- if (other.getServerStartTvUsec() != 0L) {
- setServerStartTvUsec(other.getServerStartTvUsec());
- }
- if (other.getServerEndTvSec() != 0) {
- setServerEndTvSec(other.getServerEndTvSec());
- }
- if (other.getServerEndTvUsec() != 0L) {
- setServerEndTvUsec(other.getServerEndTvUsec());
- }
- if (other.getServerResponseTime() != 0L) {
- setServerResponseTime(other.getServerResponseTime());
- }
- if (other.getClientTranslateTime() != 0L) {
- setClientTranslateTime(other.getClientTranslateTime());
- }
- if (other.getServerTranslateTime() != 0L) {
- setServerTranslateTime(other.getServerTranslateTime());
- }
- if (other.getBytesIn() != 0L) {
- setBytesIn(other.getBytesIn());
- }
- if (other.getBytesOut() != 0L) {
- setBytesOut(other.getBytesOut());
- }
- if (other.getPacketsIn() != 0L) {
- setPacketsIn(other.getPacketsIn());
- }
- if (other.getPacketsOut() != 0L) {
- setPacketsOut(other.getPacketsOut());
- }
- if (other.getIpSrc() != 0L) {
- setIpSrc(other.getIpSrc());
- }
- if (other.getIpDst() != 0L) {
- setIpDst(other.getIpDst());
- }
- if (other.getPortSrc() != 0L) {
- setPortSrc(other.getPortSrc());
- }
- if (other.getPortDst() != 0L) {
- setPortDst(other.getPortDst());
- }
- if (other.getProbeIP() != 0L) {
- setProbeIP(other.getProbeIP());
- }
- if (other.getIntodbTime() != 0L) {
- setIntodbTime(other.getIntodbTime());
- }
- if (other.getCount() != 0L) {
- setCount(other.getCount());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int tableId_ ;
- /**
- * int32 table_id = 1;
- * @return The tableId.
- */
- @java.lang.Override
- public int getTableId() {
- return tableId_;
- }
- /**
- * int32 table_id = 1;
- * @param value The tableId to set.
- * @return This builder for chaining.
- */
- public Builder setTableId(int value) {
-
- tableId_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 table_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearTableId() {
-
- tableId_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object id_ = "";
- /**
- * string id = 2;
- * @return The id.
- */
- public java.lang.String getId() {
- java.lang.Object ref = id_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- id_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string id = 2;
- * @return The bytes for id.
- */
- public com.google.protobuf.ByteString
- getIdBytes() {
- java.lang.Object ref = id_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- id_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string id = 2;
- * @param value The id to set.
- * @return This builder for chaining.
- */
- public Builder setId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- id_ = value;
- onChanged();
- return this;
- }
- /**
- * string id = 2;
- * @return This builder for chaining.
- */
- public Builder clearId() {
-
- id_ = getDefaultInstance().getId();
- onChanged();
- return this;
- }
- /**
- * string id = 2;
- * @param value The bytes for id to set.
- * @return This builder for chaining.
- */
- public Builder setIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- id_ = value;
- onChanged();
- return this;
- }
-
- private int msgType_ ;
- /**
- *
- *消息类型
- *
- *
- * int32 msg_type = 3;
- * @return The msgType.
- */
- @java.lang.Override
- public int getMsgType() {
- return msgType_;
- }
- /**
- *
- *消息类型
- *
- *
- * int32 msg_type = 3;
- * @param value The msgType to set.
- * @return This builder for chaining.
- */
- public Builder setMsgType(int value) {
-
- msgType_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *消息类型
- *
- *
- * int32 msg_type = 3;
- * @return This builder for chaining.
- */
- public Builder clearMsgType() {
-
- msgType_ = 0;
- onChanged();
- return this;
- }
-
- private int msgVersion_ ;
- /**
- *
- *消息版本
- *
- *
- * int32 msg_version = 4;
- * @return The msgVersion.
- */
- @java.lang.Override
- public int getMsgVersion() {
- return msgVersion_;
- }
- /**
- *
- *消息版本
- *
- *
- * int32 msg_version = 4;
- * @param value The msgVersion to set.
- * @return This builder for chaining.
- */
- public Builder setMsgVersion(int value) {
-
- msgVersion_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *消息版本
- *
- *
- * int32 msg_version = 4;
- * @return This builder for chaining.
- */
- public Builder clearMsgVersion() {
-
- msgVersion_ = 0;
- onChanged();
- return this;
- }
-
- private int msgSeq_ ;
- /**
- *
- *序列号
- *
- *
- * int32 msg_seq = 5;
- * @return The msgSeq.
- */
- @java.lang.Override
- public int getMsgSeq() {
- return msgSeq_;
- }
- /**
- *
- *序列号
- *
- *
- * int32 msg_seq = 5;
- * @param value The msgSeq to set.
- * @return This builder for chaining.
- */
- public Builder setMsgSeq(int value) {
-
- msgSeq_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *序列号
- *
- *
- * int32 msg_seq = 5;
- * @return This builder for chaining.
- */
- public Builder clearMsgSeq() {
-
- msgSeq_ = 0;
- onChanged();
- return this;
- }
-
- private int msgLen_ ;
- /**
- *
- *消息长度
- *
- *
- * int32 msg_len = 6;
- * @return The msgLen.
- */
- @java.lang.Override
- public int getMsgLen() {
- return msgLen_;
- }
- /**
- *
- *消息长度
- *
- *
- * int32 msg_len = 6;
- * @param value The msgLen to set.
- * @return This builder for chaining.
- */
- public Builder setMsgLen(int value) {
-
- msgLen_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *消息长度
- *
- *
- * int32 msg_len = 6;
- * @return This builder for chaining.
- */
- public Builder clearMsgLen() {
-
- msgLen_ = 0;
- onChanged();
- return this;
- }
-
- private int probeIf_ ;
- /**
- *
- *接口号
- *
- *
- * int32 probe_if = 7;
- * @return The probeIf.
- */
- @java.lang.Override
- public int getProbeIf() {
- return probeIf_;
- }
- /**
- *
- *接口号
- *
- *
- * int32 probe_if = 7;
- * @param value The probeIf to set.
- * @return This builder for chaining.
- */
- public Builder setProbeIf(int value) {
-
- probeIf_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *接口号
- *
- *
- * int32 probe_if = 7;
- * @return This builder for chaining.
- */
- public Builder clearProbeIf() {
-
- probeIf_ = 0;
- onChanged();
- return this;
- }
-
- private long timestamp_ ;
- /**
- *
- *时间戳
- *
- *
- * int64 timestamp = 8;
- * @return The timestamp.
- */
- @java.lang.Override
- public long getTimestamp() {
- return timestamp_;
- }
- /**
- *
- *时间戳
- *
- *
- * int64 timestamp = 8;
- * @param value The timestamp to set.
- * @return This builder for chaining.
- */
- public Builder setTimestamp(long value) {
-
- timestamp_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *时间戳
- *
- *
- * int64 timestamp = 8;
- * @return This builder for chaining.
- */
- public Builder clearTimestamp() {
-
- timestamp_ = 0L;
- onChanged();
- return this;
- }
-
- private long macSrc_ ;
- /**
- *
- *源物理地址
- *
- *
- * int64 mac_src = 9;
- * @return The macSrc.
- */
- @java.lang.Override
- public long getMacSrc() {
- return macSrc_;
- }
- /**
- *
- *源物理地址
- *
- *
- * int64 mac_src = 9;
- * @param value The macSrc to set.
- * @return This builder for chaining.
- */
- public Builder setMacSrc(long value) {
-
- macSrc_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *源物理地址
- *
- *
- * int64 mac_src = 9;
- * @return This builder for chaining.
- */
- public Builder clearMacSrc() {
-
- macSrc_ = 0L;
- onChanged();
- return this;
- }
-
- private long macDst_ ;
- /**
- *
- *目的物理地址
- *
- *
- * int64 mac_dst = 10;
- * @return The macDst.
- */
- @java.lang.Override
- public long getMacDst() {
- return macDst_;
- }
- /**
- *
- *目的物理地址
- *
- *
- * int64 mac_dst = 10;
- * @param value The macDst to set.
- * @return This builder for chaining.
- */
- public Builder setMacDst(long value) {
-
- macDst_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *目的物理地址
- *
- *
- * int64 mac_dst = 10;
- * @return This builder for chaining.
- */
- public Builder clearMacDst() {
-
- macDst_ = 0L;
- onChanged();
- return this;
- }
-
- private int vlanId_ ;
- /**
- *
- *vlan_id
- *
- *
- * int32 vlan_id = 11;
- * @return The vlanId.
- */
- @java.lang.Override
- public int getVlanId() {
- return vlanId_;
- }
- /**
- *
- *vlan_id
- *
- *
- * int32 vlan_id = 11;
- * @param value The vlanId to set.
- * @return This builder for chaining.
- */
- public Builder setVlanId(int value) {
-
- vlanId_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *vlan_id
- *
- *
- * int32 vlan_id = 11;
- * @return This builder for chaining.
- */
- public Builder clearVlanId() {
-
- vlanId_ = 0;
- onChanged();
- return this;
- }
-
- private long l3Proto_ ;
- /**
- *
- *l3层协议
- *
- *
- * int64 l3_proto = 12;
- * @return The l3Proto.
- */
- @java.lang.Override
- public long getL3Proto() {
- return l3Proto_;
- }
- /**
- *
- *l3层协议
- *
- *
- * int64 l3_proto = 12;
- * @param value The l3Proto to set.
- * @return This builder for chaining.
- */
- public Builder setL3Proto(long value) {
-
- l3Proto_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *l3层协议
- *
- *
- * int64 l3_proto = 12;
- * @return This builder for chaining.
- */
- public Builder clearL3Proto() {
-
- l3Proto_ = 0L;
- onChanged();
- return this;
- }
-
- private long l4Proto_ ;
- /**
- *
- *l4层协议
- *
- *
- * int64 l4_proto = 13;
- * @return The l4Proto.
- */
- @java.lang.Override
- public long getL4Proto() {
- return l4Proto_;
- }
- /**
- *
- *l4层协议
- *
- *
- * int64 l4_proto = 13;
- * @param value The l4Proto to set.
- * @return This builder for chaining.
- */
- public Builder setL4Proto(long value) {
-
- l4Proto_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *l4层协议
- *
- *
- * int64 l4_proto = 13;
- * @return This builder for chaining.
- */
- public Builder clearL4Proto() {
-
- l4Proto_ = 0L;
- onChanged();
- return this;
- }
-
- private int tos_ ;
- /**
- *
- *tos
- *
- *
- * int32 tos = 14;
- * @return The tos.
- */
- @java.lang.Override
- public int getTos() {
- return tos_;
- }
- /**
- *
- *tos
- *
- *
- * int32 tos = 14;
- * @param value The tos to set.
- * @return This builder for chaining.
- */
- public Builder setTos(int value) {
-
- tos_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *tos
- *
- *
- * int32 tos = 14;
- * @return This builder for chaining.
- */
- public Builder clearTos() {
-
- tos_ = 0;
- onChanged();
- return this;
- }
-
- private int retranCount_ ;
- /**
- *
- *重传次数
- *
- *
- * int32 retran_count = 15;
- * @return The retranCount.
- */
- @java.lang.Override
- public int getRetranCount() {
- return retranCount_;
- }
- /**
- *
- *重传次数
- *
- *
- * int32 retran_count = 15;
- * @param value The retranCount to set.
- * @return This builder for chaining.
- */
- public Builder setRetranCount(int value) {
-
- retranCount_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *重传次数
- *
- *
- * int32 retran_count = 15;
- * @return This builder for chaining.
- */
- public Builder clearRetranCount() {
-
- retranCount_ = 0;
- onChanged();
- return this;
- }
-
- private int resetCount_ ;
- /**
- *
- *重置次数
- *
- *
- * int32 reset_count = 16;
- * @return The resetCount.
- */
- @java.lang.Override
- public int getResetCount() {
- return resetCount_;
- }
- /**
- *
- *重置次数
- *
- *
- * int32 reset_count = 16;
- * @param value The resetCount to set.
- * @return This builder for chaining.
- */
- public Builder setResetCount(int value) {
-
- resetCount_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *重置次数
- *
- *
- * int32 reset_count = 16;
- * @return This builder for chaining.
- */
- public Builder clearResetCount() {
-
- resetCount_ = 0;
- onChanged();
- return this;
- }
-
- private int zerowinCount_ ;
- /**
- *
- *零窗口次数
- *
- *
- * int32 zerowin_count = 17;
- * @return The zerowinCount.
- */
- @java.lang.Override
- public int getZerowinCount() {
- return zerowinCount_;
- }
- /**
- *
- *零窗口次数
- *
- *
- * int32 zerowin_count = 17;
- * @param value The zerowinCount to set.
- * @return This builder for chaining.
- */
- public Builder setZerowinCount(int value) {
-
- zerowinCount_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *零窗口次数
- *
- *
- * int32 zerowin_count = 17;
- * @return This builder for chaining.
- */
- public Builder clearZerowinCount() {
-
- zerowinCount_ = 0;
- onChanged();
- return this;
- }
-
- private int protocol_ ;
- /**
- *
- *协议名
- *
- *
- * int32 protocol = 18;
- * @return The protocol.
- */
- @java.lang.Override
- public int getProtocol() {
- return protocol_;
- }
- /**
- *
- *协议名
- *
- *
- * int32 protocol = 18;
- * @param value The protocol to set.
- * @return This builder for chaining.
- */
- public Builder setProtocol(int value) {
-
- protocol_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *协议名
- *
- *
- * int32 protocol = 18;
- * @return This builder for chaining.
- */
- public Builder clearProtocol() {
-
- protocol_ = 0;
- onChanged();
- return this;
- }
-
- private long seq_ ;
- /**
- * int64 seq = 19;
- * @return The seq.
- */
- @java.lang.Override
- public long getSeq() {
- return seq_;
- }
- /**
- * int64 seq = 19;
- * @param value The seq to set.
- * @return This builder for chaining.
- */
- public Builder setSeq(long value) {
-
- seq_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 seq = 19;
- * @return This builder for chaining.
- */
- public Builder clearSeq() {
-
- seq_ = 0L;
- onChanged();
- return this;
- }
-
- private long ack_ ;
- /**
- * int64 ack = 20;
- * @return The ack.
- */
- @java.lang.Override
- public long getAck() {
- return ack_;
- }
- /**
- * int64 ack = 20;
- * @param value The ack to set.
- * @return This builder for chaining.
- */
- public Builder setAck(long value) {
-
- ack_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 ack = 20;
- * @return This builder for chaining.
- */
- public Builder clearAck() {
-
- ack_ = 0L;
- onChanged();
- return this;
- }
-
- private int recogStatus_ ;
- /**
- *
- *识别类型标识
- *
- *
- * int32 recog_status = 21;
- * @return The recogStatus.
- */
- @java.lang.Override
- public int getRecogStatus() {
- return recogStatus_;
- }
- /**
- *
- *识别类型标识
- *
- *
- * int32 recog_status = 21;
- * @param value The recogStatus to set.
- * @return This builder for chaining.
- */
- public Builder setRecogStatus(int value) {
-
- recogStatus_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *识别类型标识
- *
- *
- * int32 recog_status = 21;
- * @return This builder for chaining.
- */
- public Builder clearRecogStatus() {
-
- recogStatus_ = 0;
- onChanged();
- return this;
- }
-
- private long bytes_ ;
- /**
- *
- *总字节
- *
- *
- * int64 bytes = 22;
- * @return The bytes.
- */
- @java.lang.Override
- public long getBytes() {
- return bytes_;
- }
- /**
- *
- *总字节
- *
- *
- * int64 bytes = 22;
- * @param value The bytes to set.
- * @return This builder for chaining.
- */
- public Builder setBytes(long value) {
-
- bytes_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *总字节
- *
- *
- * int64 bytes = 22;
- * @return This builder for chaining.
- */
- public Builder clearBytes() {
-
- bytes_ = 0L;
- onChanged();
- return this;
- }
-
- private long packets_ ;
- /**
- *
- *总包数
- *
- *
- * int64 packets = 23;
- * @return The packets.
- */
- @java.lang.Override
- public long getPackets() {
- return packets_;
- }
- /**
- *
- *总包数
- *
- *
- * int64 packets = 23;
- * @param value The packets to set.
- * @return This builder for chaining.
- */
- public Builder setPackets(long value) {
-
- packets_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *总包数
- *
- *
- * int64 packets = 23;
- * @return This builder for chaining.
- */
- public Builder clearPackets() {
-
- packets_ = 0L;
- onChanged();
- return this;
- }
-
- private int startTvSec_ ;
- /**
- *
- *Web开始时间秒
- *
- *
- * int32 start_tv_sec = 24;
- * @return The startTvSec.
- */
- @java.lang.Override
- public int getStartTvSec() {
- return startTvSec_;
- }
- /**
- *
- *Web开始时间秒
- *
- *
- * int32 start_tv_sec = 24;
- * @param value The startTvSec to set.
- * @return This builder for chaining.
- */
- public Builder setStartTvSec(int value) {
-
- startTvSec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *Web开始时间秒
- *
- *
- * int32 start_tv_sec = 24;
- * @return This builder for chaining.
- */
- public Builder clearStartTvSec() {
-
- startTvSec_ = 0;
- onChanged();
- return this;
- }
-
- private long startTvUsec_ ;
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 25;
- * @return The startTvUsec.
- */
- @java.lang.Override
- public long getStartTvUsec() {
- return startTvUsec_;
- }
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 25;
- * @param value The startTvUsec to set.
- * @return This builder for chaining.
- */
- public Builder setStartTvUsec(long value) {
-
- startTvUsec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *开始时间毫秒
- *
- *
- * int64 start_tv_usec = 25;
- * @return This builder for chaining.
- */
- public Builder clearStartTvUsec() {
-
- startTvUsec_ = 0L;
- onChanged();
- return this;
- }
-
- private int endTvSec_ ;
- /**
- *
- *结束时间秒
- *
- *
- * int32 end_tv_sec = 26;
- * @return The endTvSec.
- */
- @java.lang.Override
- public int getEndTvSec() {
- return endTvSec_;
- }
- /**
- *
- *结束时间秒
- *
- *
- * int32 end_tv_sec = 26;
- * @param value The endTvSec to set.
- * @return This builder for chaining.
- */
- public Builder setEndTvSec(int value) {
-
- endTvSec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *结束时间秒
- *
- *
- * int32 end_tv_sec = 26;
- * @return This builder for chaining.
- */
- public Builder clearEndTvSec() {
-
- endTvSec_ = 0;
- onChanged();
- return this;
- }
-
- private long endTvUsec_ ;
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 27;
- * @return The endTvUsec.
- */
- @java.lang.Override
- public long getEndTvUsec() {
- return endTvUsec_;
- }
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 27;
- * @param value The endTvUsec to set.
- * @return This builder for chaining.
- */
- public Builder setEndTvUsec(long value) {
-
- endTvUsec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *结束时间微妙
- *
- *
- * int64 end_tv_usec = 27;
- * @return This builder for chaining.
- */
- public Builder clearEndTvUsec() {
-
- endTvUsec_ = 0L;
- onChanged();
- return this;
- }
-
- private int serverStartTvSec_ ;
- /**
- *
- *服务器响应开始时间秒
- *
- *
- * int32 server_start_tv_sec = 28;
- * @return The serverStartTvSec.
- */
- @java.lang.Override
- public int getServerStartTvSec() {
- return serverStartTvSec_;
- }
- /**
- *
- *服务器响应开始时间秒
- *
- *
- * int32 server_start_tv_sec = 28;
- * @param value The serverStartTvSec to set.
- * @return This builder for chaining.
- */
- public Builder setServerStartTvSec(int value) {
-
- serverStartTvSec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *服务器响应开始时间秒
- *
- *
- * int32 server_start_tv_sec = 28;
- * @return This builder for chaining.
- */
- public Builder clearServerStartTvSec() {
-
- serverStartTvSec_ = 0;
- onChanged();
- return this;
- }
-
- private long serverStartTvUsec_ ;
- /**
- *
- *服务器响应开始时间毫秒
- *
- *
- * int64 server_start_tv_usec = 29;
- * @return The serverStartTvUsec.
- */
- @java.lang.Override
- public long getServerStartTvUsec() {
- return serverStartTvUsec_;
- }
- /**
- *
- *服务器响应开始时间毫秒
- *
- *
- * int64 server_start_tv_usec = 29;
- * @param value The serverStartTvUsec to set.
- * @return This builder for chaining.
- */
- public Builder setServerStartTvUsec(long value) {
-
- serverStartTvUsec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *服务器响应开始时间毫秒
- *
- *
- * int64 server_start_tv_usec = 29;
- * @return This builder for chaining.
- */
- public Builder clearServerStartTvUsec() {
-
- serverStartTvUsec_ = 0L;
- onChanged();
- return this;
- }
-
- private int serverEndTvSec_ ;
- /**
- *
- *服务器响应结束时间秒
- *
- *
- * int32 server_end_tv_sec = 30;
- * @return The serverEndTvSec.
- */
- @java.lang.Override
- public int getServerEndTvSec() {
- return serverEndTvSec_;
- }
- /**
- *
- *服务器响应结束时间秒
- *
- *
- * int32 server_end_tv_sec = 30;
- * @param value The serverEndTvSec to set.
- * @return This builder for chaining.
- */
- public Builder setServerEndTvSec(int value) {
-
- serverEndTvSec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *服务器响应结束时间秒
- *
- *
- * int32 server_end_tv_sec = 30;
- * @return This builder for chaining.
- */
- public Builder clearServerEndTvSec() {
-
- serverEndTvSec_ = 0;
- onChanged();
- return this;
- }
-
- private long serverEndTvUsec_ ;
- /**
- *
- *服务器响应结束时间微妙
- *
- *
- * int64 server_end_tv_usec = 31;
- * @return The serverEndTvUsec.
- */
- @java.lang.Override
- public long getServerEndTvUsec() {
- return serverEndTvUsec_;
- }
- /**
- *
- *服务器响应结束时间微妙
- *
- *
- * int64 server_end_tv_usec = 31;
- * @param value The serverEndTvUsec to set.
- * @return This builder for chaining.
- */
- public Builder setServerEndTvUsec(long value) {
-
- serverEndTvUsec_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *服务器响应结束时间微妙
- *
- *
- * int64 server_end_tv_usec = 31;
- * @return This builder for chaining.
- */
- public Builder clearServerEndTvUsec() {
-
- serverEndTvUsec_ = 0L;
- onChanged();
- return this;
- }
-
- private long serverResponseTime_ ;
- /**
- *
- *Web服务器响应时间
- *
- *
- * int64 server_response_time = 32;
- * @return The serverResponseTime.
- */
- @java.lang.Override
- public long getServerResponseTime() {
- return serverResponseTime_;
- }
- /**
- *
- *Web服务器响应时间
- *
- *
- * int64 server_response_time = 32;
- * @param value The serverResponseTime to set.
- * @return This builder for chaining.
- */
- public Builder setServerResponseTime(long value) {
-
- serverResponseTime_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *Web服务器响应时间
- *
- *
- * int64 server_response_time = 32;
- * @return This builder for chaining.
- */
- public Builder clearServerResponseTime() {
-
- serverResponseTime_ = 0L;
- onChanged();
- return this;
- }
-
- private long clientTranslateTime_ ;
- /**
- *
- *Web客户端传输耗时
- *
- *
- * int64 client_translate_time = 33;
- * @return The clientTranslateTime.
- */
- @java.lang.Override
- public long getClientTranslateTime() {
- return clientTranslateTime_;
- }
- /**
- *
- *Web客户端传输耗时
- *
- *
- * int64 client_translate_time = 33;
- * @param value The clientTranslateTime to set.
- * @return This builder for chaining.
- */
- public Builder setClientTranslateTime(long value) {
-
- clientTranslateTime_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *Web客户端传输耗时
- *
- *
- * int64 client_translate_time = 33;
- * @return This builder for chaining.
- */
- public Builder clearClientTranslateTime() {
-
- clientTranslateTime_ = 0L;
- onChanged();
- return this;
- }
-
- private long serverTranslateTime_ ;
- /**
- *
- *Web服务器传输耗时
- *
- *
- * int64 server_translate_time = 34;
- * @return The serverTranslateTime.
- */
- @java.lang.Override
- public long getServerTranslateTime() {
- return serverTranslateTime_;
- }
- /**
- *
- *Web服务器传输耗时
- *
- *
- * int64 server_translate_time = 34;
- * @param value The serverTranslateTime to set.
- * @return This builder for chaining.
- */
- public Builder setServerTranslateTime(long value) {
-
- serverTranslateTime_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *Web服务器传输耗时
- *
- *
- * int64 server_translate_time = 34;
- * @return This builder for chaining.
- */
- public Builder clearServerTranslateTime() {
-
- serverTranslateTime_ = 0L;
- onChanged();
- return this;
- }
-
- private long bytesIn_ ;
- /**
- * int64 bytes_in = 35;
- * @return The bytesIn.
- */
- @java.lang.Override
- public long getBytesIn() {
- return bytesIn_;
- }
- /**
- * int64 bytes_in = 35;
- * @param value The bytesIn to set.
- * @return This builder for chaining.
- */
- public Builder setBytesIn(long value) {
-
- bytesIn_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 bytes_in = 35;
- * @return This builder for chaining.
- */
- public Builder clearBytesIn() {
-
- bytesIn_ = 0L;
- onChanged();
- return this;
- }
-
- private long bytesOut_ ;
- /**
- * int64 bytes_out = 36;
- * @return The bytesOut.
- */
- @java.lang.Override
- public long getBytesOut() {
- return bytesOut_;
- }
- /**
- * int64 bytes_out = 36;
- * @param value The bytesOut to set.
- * @return This builder for chaining.
- */
- public Builder setBytesOut(long value) {
-
- bytesOut_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 bytes_out = 36;
- * @return This builder for chaining.
- */
- public Builder clearBytesOut() {
-
- bytesOut_ = 0L;
- onChanged();
- return this;
- }
-
- private long packetsIn_ ;
- /**
- * int64 packets_in = 37;
- * @return The packetsIn.
- */
- @java.lang.Override
- public long getPacketsIn() {
- return packetsIn_;
- }
- /**
- * int64 packets_in = 37;
- * @param value The packetsIn to set.
- * @return This builder for chaining.
- */
- public Builder setPacketsIn(long value) {
-
- packetsIn_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 packets_in = 37;
- * @return This builder for chaining.
- */
- public Builder clearPacketsIn() {
-
- packetsIn_ = 0L;
- onChanged();
- return this;
- }
-
- private long packetsOut_ ;
- /**
- * int64 packets_out = 38;
- * @return The packetsOut.
- */
- @java.lang.Override
- public long getPacketsOut() {
- return packetsOut_;
- }
- /**
- * int64 packets_out = 38;
- * @param value The packetsOut to set.
- * @return This builder for chaining.
- */
- public Builder setPacketsOut(long value) {
-
- packetsOut_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 packets_out = 38;
- * @return This builder for chaining.
- */
- public Builder clearPacketsOut() {
-
- packetsOut_ = 0L;
- onChanged();
- return this;
- }
-
- private long ipSrc_ ;
- /**
- *
- *源IP
- *
- *
- * int64 ip_src = 39;
- * @return The ipSrc.
- */
- @java.lang.Override
- public long getIpSrc() {
- return ipSrc_;
- }
- /**
- *
- *源IP
- *
- *
- * int64 ip_src = 39;
- * @param value The ipSrc to set.
- * @return This builder for chaining.
- */
- public Builder setIpSrc(long value) {
-
- ipSrc_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *源IP
- *
- *
- * int64 ip_src = 39;
- * @return This builder for chaining.
- */
- public Builder clearIpSrc() {
-
- ipSrc_ = 0L;
- onChanged();
- return this;
- }
-
- private long ipDst_ ;
- /**
- *
- *目的IP
- *
- *
- * int64 ip_dst = 40;
- * @return The ipDst.
- */
- @java.lang.Override
- public long getIpDst() {
- return ipDst_;
- }
- /**
- *
- *目的IP
- *
- *
- * int64 ip_dst = 40;
- * @param value The ipDst to set.
- * @return This builder for chaining.
- */
- public Builder setIpDst(long value) {
-
- ipDst_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *目的IP
- *
- *
- * int64 ip_dst = 40;
- * @return This builder for chaining.
- */
- public Builder clearIpDst() {
-
- ipDst_ = 0L;
- onChanged();
- return this;
- }
-
- private long portSrc_ ;
- /**
- *
- *源端口
- *
- *
- * int64 port_src = 41;
- * @return The portSrc.
- */
- @java.lang.Override
- public long getPortSrc() {
- return portSrc_;
- }
- /**
- *
- *源端口
- *
- *
- * int64 port_src = 41;
- * @param value The portSrc to set.
- * @return This builder for chaining.
- */
- public Builder setPortSrc(long value) {
-
- portSrc_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *源端口
- *
- *
- * int64 port_src = 41;
- * @return This builder for chaining.
- */
- public Builder clearPortSrc() {
-
- portSrc_ = 0L;
- onChanged();
- return this;
- }
-
- private long portDst_ ;
- /**
- *
- *目的端口
- *
- *
- * int64 port_dst = 42;
- * @return The portDst.
- */
- @java.lang.Override
- public long getPortDst() {
- return portDst_;
- }
- /**
- *
- *目的端口
- *
- *
- * int64 port_dst = 42;
- * @param value The portDst to set.
- * @return This builder for chaining.
- */
- public Builder setPortDst(long value) {
-
- portDst_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *目的端口
- *
- *
- * int64 port_dst = 42;
- * @return This builder for chaining.
- */
- public Builder clearPortDst() {
-
- portDst_ = 0L;
- onChanged();
- return this;
- }
-
- private long probeIP_ ;
- /**
- *
- *探针IP
- *
- *
- * int64 probeIP = 43;
- * @return The probeIP.
- */
- @java.lang.Override
- public long getProbeIP() {
- return probeIP_;
- }
- /**
- *
- *探针IP
- *
- *
- * int64 probeIP = 43;
- * @param value The probeIP to set.
- * @return This builder for chaining.
- */
- public Builder setProbeIP(long value) {
-
- probeIP_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *探针IP
- *
- *
- * int64 probeIP = 43;
- * @return This builder for chaining.
- */
- public Builder clearProbeIP() {
-
- probeIP_ = 0L;
- onChanged();
- return this;
- }
-
- private long intodbTime_ ;
- /**
- * int64 intodb_time = 44;
- * @return The intodbTime.
- */
- @java.lang.Override
- public long getIntodbTime() {
- return intodbTime_;
- }
- /**
- * int64 intodb_time = 44;
- * @param value The intodbTime to set.
- * @return This builder for chaining.
- */
- public Builder setIntodbTime(long value) {
-
- intodbTime_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 intodb_time = 44;
- * @return This builder for chaining.
- */
- public Builder clearIntodbTime() {
-
- intodbTime_ = 0L;
- onChanged();
- return this;
- }
-
- private long count_ ;
- /**
- *
- * 默认为1
- *
- *
- * int64 count = 45;
- * @return The count.
- */
- @java.lang.Override
- public long getCount() {
- return count_;
- }
- /**
- *
- * 默认为1
- *
- *
- * int64 count = 45;
- * @param value The count to set.
- * @return This builder for chaining.
- */
- public Builder setCount(long value) {
-
- count_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * 默认为1
- *
- *
- * int64 count = 45;
- * @return This builder for chaining.
- */
- public Builder clearCount() {
-
- count_ = 0L;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:dataflow.DataFlow)
- }
-
- // @@protoc_insertion_point(class_scope:dataflow.DataFlow)
- private static final com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow();
- }
-
- public static com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public DataFlow parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new DataFlow(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.DataFlowOuterClass.DataFlow getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_dataflow_DataFlow_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_dataflow_DataFlow_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\016DataFlow.proto\022\010dataflow\"\211\007\n\010DataFlow\022" +
- "\020\n\010table_id\030\001 \001(\005\022\n\n\002id\030\002 \001(\t\022\020\n\010msg_typ" +
- "e\030\003 \001(\005\022\023\n\013msg_version\030\004 \001(\005\022\017\n\007msg_seq\030" +
- "\005 \001(\005\022\017\n\007msg_len\030\006 \001(\005\022\020\n\010probe_if\030\007 \001(\005" +
- "\022\021\n\ttimestamp\030\010 \001(\003\022\017\n\007mac_src\030\t \001(\003\022\017\n\007" +
- "mac_dst\030\n \001(\003\022\017\n\007vlan_id\030\013 \001(\005\022\020\n\010l3_pro" +
- "to\030\014 \001(\003\022\020\n\010l4_proto\030\r \001(\003\022\013\n\003tos\030\016 \001(\005\022" +
- "\024\n\014retran_count\030\017 \001(\005\022\023\n\013reset_count\030\020 \001" +
- "(\005\022\025\n\rzerowin_count\030\021 \001(\005\022\020\n\010protocol\030\022 " +
- "\001(\005\022\013\n\003seq\030\023 \001(\003\022\013\n\003ack\030\024 \001(\003\022\024\n\014recog_s" +
- "tatus\030\025 \001(\005\022\r\n\005bytes\030\026 \001(\003\022\017\n\007packets\030\027 " +
- "\001(\003\022\024\n\014start_tv_sec\030\030 \001(\005\022\025\n\rstart_tv_us" +
- "ec\030\031 \001(\003\022\022\n\nend_tv_sec\030\032 \001(\005\022\023\n\013end_tv_u" +
- "sec\030\033 \001(\003\022\033\n\023server_start_tv_sec\030\034 \001(\005\022\034" +
- "\n\024server_start_tv_usec\030\035 \001(\003\022\031\n\021server_e" +
- "nd_tv_sec\030\036 \001(\005\022\032\n\022server_end_tv_usec\030\037 " +
- "\001(\003\022\034\n\024server_response_time\030 \001(\003\022\035\n\025cli" +
- "ent_translate_time\030! \001(\003\022\035\n\025server_trans" +
- "late_time\030\" \001(\003\022\020\n\010bytes_in\030# \001(\003\022\021\n\tbyt" +
- "es_out\030$ \001(\003\022\022\n\npackets_in\030% \001(\003\022\023\n\013pack" +
- "ets_out\030& \001(\003\022\016\n\006ip_src\030\' \001(\003\022\016\n\006ip_dst\030" +
- "( \001(\003\022\020\n\010port_src\030) \001(\003\022\020\n\010port_dst\030* \001(" +
- "\003\022\017\n\007probeIP\030+ \001(\003\022\023\n\013intodb_time\030, \001(\003\022" +
- "\r\n\005count\030- \001(\003B<\n#com.yuandian.dataflow." +
- "proto.msgtypeP\000Z\023../grpc-gen;grpcgenb\006pr" +
- "oto3"
- };
- descriptor = com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- });
- internal_static_dataflow_DataFlow_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_dataflow_DataFlow_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_dataflow_DataFlow_descriptor,
- new java.lang.String[] { "TableId", "Id", "MsgType", "MsgVersion", "MsgSeq", "MsgLen", "ProbeIf", "Timestamp", "MacSrc", "MacDst", "VlanId", "L3Proto", "L4Proto", "Tos", "RetranCount", "ResetCount", "ZerowinCount", "Protocol", "Seq", "Ack", "RecogStatus", "Bytes", "Packets", "StartTvSec", "StartTvUsec", "EndTvSec", "EndTvUsec", "ServerStartTvSec", "ServerStartTvUsec", "ServerEndTvSec", "ServerEndTvUsec", "ServerResponseTime", "ClientTranslateTime", "ServerTranslateTime", "BytesIn", "BytesOut", "PacketsIn", "PacketsOut", "IpSrc", "IpDst", "PortSrc", "PortDst", "ProbeIP", "IntodbTime", "Count", });
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/src/main/java/com/yuandian/dataflow/proto/msgtype/SstFlowOuterClass.java b/src/main/java/com/yuandian/dataflow/proto/msgtype/SstFlowOuterClass.java
deleted file mode 100644
index 5e9c06a..0000000
--- a/src/main/java/com/yuandian/dataflow/proto/msgtype/SstFlowOuterClass.java
+++ /dev/null
@@ -1,3155 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: SstFlow.proto
-
-package com.yuandian.dataflow.proto.msgtype;
-
-public final class SstFlowOuterClass {
- private SstFlowOuterClass() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- public interface SstFlowOrBuilder extends
- // @@protoc_insertion_point(interface_extends:dataflow.SstFlow)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * int32 table_id = 1;
- * @return The tableId.
- */
- int getTableId();
-
- /**
- *
- *源MAC
- *
- *
- * int64 mac_src = 2;
- * @return The macSrc.
- */
- long getMacSrc();
-
- /**
- *
- *目标MAC
- *
- *
- * int64 mac_dst = 3;
- * @return The macDst.
- */
- long getMacDst();
-
- /**
- *
- *源IP
- *
- *
- * int64 ip_src = 4;
- * @return The ipSrc.
- */
- long getIpSrc();
-
- /**
- *
- *目标IP
- *
- *
- * int64 ip_dst = 5;
- * @return The ipDst.
- */
- long getIpDst();
-
- /**
- *
- *源端口,如果没有,为-1
- *
- *
- * int32 port_src = 6;
- * @return The portSrc.
- */
- int getPortSrc();
-
- /**
- *
- *目标端口,如果没有,为-1
- *
- *
- * int32 port_dst = 7;
- * @return The portDst.
- */
- int getPortDst();
-
- /**
- *
- *第三层协议ID,如果没有,为-1
- *
- *
- * int32 l3_proto = 8;
- * @return The l3Proto.
- */
- int getL3Proto();
-
- /**
- *
- *第四层协议ID,如果没有,为-1
- *
- *
- * int32 l4_proto = 9;
- * @return The l4Proto.
- */
- int getL4Proto();
-
- /**
- *
- *Tos,一个字节,如果没有,为-1
- *
- *
- * int32 tos = 10;
- * @return The tos.
- */
- int getTos();
-
- /**
- *
- *vlan ID,如果没有,为-1
- *
- *
- * int32 vlan_id = 11;
- * @return The vlanId.
- */
- int getVlanId();
-
- /**
- *
- *字节总数
- *
- *
- * int64 bytes = 12;
- * @return The bytes.
- */
- long getBytes();
-
- /**
- *
- *数据包总数
- *
- *
- * int64 packets = 13;
- * @return The packets.
- */
- long getPackets();
-
- /**
- *
- *TCP同步包数
- *
- *
- * int64 packets_syn = 14;
- * @return The packetsSyn.
- */
- long getPacketsSyn();
-
- /**
- *
- *TCP同步确认包数
- *
- *
- * int64 packets_syn_ack = 15;
- * @return The packetsSynAck.
- */
- long getPacketsSynAck();
-
- /**
- *
- *TCP同步重置包数
- *
- *
- * int64 packets_syn_rst = 16;
- * @return The packetsSynRst.
- */
- long getPacketsSynRst();
-
- /**
- *
- *时间戳,秒
- *
- *
- * int64 timestamp = 17;
- * @return The timestamp.
- */
- long getTimestamp();
-
- /**
- *
- *应用ID
- *
- *
- * int64 appid = 18;
- * @return The appid.
- */
- long getAppid();
-
- /**
- * int64 app_group_id = 19;
- * @return The appGroupId.
- */
- long getAppGroupId();
-
- /**
- * int32 mpls_label = 20;
- * @return The mplsLabel.
- */
- int getMplsLabel();
-
- /**
- *
- *tcp同步包,接收
- *
- *
- * int64 pkts_syn_rx = 21;
- * @return The pktsSynRx.
- */
- long getPktsSynRx();
-
- /**
- *
- *tcp同步确认包,接收
- *
- *
- * int64 pkts_syn_ack_rx = 22;
- * @return The pktsSynAckRx.
- */
- long getPktsSynAckRx();
-
- /**
- *
- *tcp同步重置包,接收
- *
- *
- * int64 pkts_syn_rst_rx = 23;
- * @return The pktsSynRstRx.
- */
- long getPktsSynRstRx();
-
- /**
- *
- *tcp终止包,接收
- *
- *
- * int64 pkts_fin = 24;
- * @return The pktsFin.
- */
- long getPktsFin();
-
- /**
- *
- *tcp重置包,接收
- *
- *
- * int64 pkts_rst = 25;
- * @return The pktsRst.
- */
- long getPktsRst();
-
- /**
- *
- *字节收
- *
- *
- * int64 bytes_rx = 26;
- * @return The bytesRx.
- */
- long getBytesRx();
-
- /**
- *
- *数据包收
- *
- *
- * int64 packets_rx = 27;
- * @return The packetsRx.
- */
- long getPacketsRx();
-
- /**
- * int64 probe_time_sec = 28;
- * @return The probeTimeSec.
- */
- long getProbeTimeSec();
-
- /**
- * int64 probe_time = 29;
- * @return The probeTime.
- */
- long getProbeTime();
-
- /**
- * int64 create_time = 30;
- * @return The createTime.
- */
- long getCreateTime();
-
- /**
- * int32 probe_if = 31;
- * @return The probeIf.
- */
- int getProbeIf();
- }
- /**
- * Protobuf type {@code dataflow.SstFlow}
- */
- public static final class SstFlow extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:dataflow.SstFlow)
- SstFlowOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use SstFlow.newBuilder() to construct.
- private SstFlow(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private SstFlow() {
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new SstFlow();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private SstFlow(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
-
- tableId_ = input.readInt32();
- break;
- }
- case 16: {
-
- macSrc_ = input.readInt64();
- break;
- }
- case 24: {
-
- macDst_ = input.readInt64();
- break;
- }
- case 32: {
-
- ipSrc_ = input.readInt64();
- break;
- }
- case 40: {
-
- ipDst_ = input.readInt64();
- break;
- }
- case 48: {
-
- portSrc_ = input.readInt32();
- break;
- }
- case 56: {
-
- portDst_ = input.readInt32();
- break;
- }
- case 64: {
-
- l3Proto_ = input.readInt32();
- break;
- }
- case 72: {
-
- l4Proto_ = input.readInt32();
- break;
- }
- case 80: {
-
- tos_ = input.readInt32();
- break;
- }
- case 88: {
-
- vlanId_ = input.readInt32();
- break;
- }
- case 96: {
-
- bytes_ = input.readInt64();
- break;
- }
- case 104: {
-
- packets_ = input.readInt64();
- break;
- }
- case 112: {
-
- packetsSyn_ = input.readInt64();
- break;
- }
- case 120: {
-
- packetsSynAck_ = input.readInt64();
- break;
- }
- case 128: {
-
- packetsSynRst_ = input.readInt64();
- break;
- }
- case 136: {
-
- timestamp_ = input.readInt64();
- break;
- }
- case 144: {
-
- appid_ = input.readInt64();
- break;
- }
- case 152: {
-
- appGroupId_ = input.readInt64();
- break;
- }
- case 160: {
-
- mplsLabel_ = input.readInt32();
- break;
- }
- case 168: {
-
- pktsSynRx_ = input.readInt64();
- break;
- }
- case 176: {
-
- pktsSynAckRx_ = input.readInt64();
- break;
- }
- case 184: {
-
- pktsSynRstRx_ = input.readInt64();
- break;
- }
- case 192: {
-
- pktsFin_ = input.readInt64();
- break;
- }
- case 200: {
-
- pktsRst_ = input.readInt64();
- break;
- }
- case 208: {
-
- bytesRx_ = input.readInt64();
- break;
- }
- case 216: {
-
- packetsRx_ = input.readInt64();
- break;
- }
- case 224: {
-
- probeTimeSec_ = input.readInt64();
- break;
- }
- case 232: {
-
- probeTime_ = input.readInt64();
- break;
- }
- case 240: {
-
- createTime_ = input.readInt64();
- break;
- }
- case 248: {
-
- probeIf_ = input.readInt32();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.internal_static_dataflow_SstFlow_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.internal_static_dataflow_SstFlow_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow.class, com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow.Builder.class);
- }
-
- public static final int TABLE_ID_FIELD_NUMBER = 1;
- private int tableId_;
- /**
- * int32 table_id = 1;
- * @return The tableId.
- */
- @java.lang.Override
- public int getTableId() {
- return tableId_;
- }
-
- public static final int MAC_SRC_FIELD_NUMBER = 2;
- private long macSrc_;
- /**
- *
- *源MAC
- *
- *
- * int64 mac_src = 2;
- * @return The macSrc.
- */
- @java.lang.Override
- public long getMacSrc() {
- return macSrc_;
- }
-
- public static final int MAC_DST_FIELD_NUMBER = 3;
- private long macDst_;
- /**
- *
- *目标MAC
- *
- *
- * int64 mac_dst = 3;
- * @return The macDst.
- */
- @java.lang.Override
- public long getMacDst() {
- return macDst_;
- }
-
- public static final int IP_SRC_FIELD_NUMBER = 4;
- private long ipSrc_;
- /**
- *
- *源IP
- *
- *
- * int64 ip_src = 4;
- * @return The ipSrc.
- */
- @java.lang.Override
- public long getIpSrc() {
- return ipSrc_;
- }
-
- public static final int IP_DST_FIELD_NUMBER = 5;
- private long ipDst_;
- /**
- *
- *目标IP
- *
- *
- * int64 ip_dst = 5;
- * @return The ipDst.
- */
- @java.lang.Override
- public long getIpDst() {
- return ipDst_;
- }
-
- public static final int PORT_SRC_FIELD_NUMBER = 6;
- private int portSrc_;
- /**
- *
- *源端口,如果没有,为-1
- *
- *
- * int32 port_src = 6;
- * @return The portSrc.
- */
- @java.lang.Override
- public int getPortSrc() {
- return portSrc_;
- }
-
- public static final int PORT_DST_FIELD_NUMBER = 7;
- private int portDst_;
- /**
- *
- *目标端口,如果没有,为-1
- *
- *
- * int32 port_dst = 7;
- * @return The portDst.
- */
- @java.lang.Override
- public int getPortDst() {
- return portDst_;
- }
-
- public static final int L3_PROTO_FIELD_NUMBER = 8;
- private int l3Proto_;
- /**
- *
- *第三层协议ID,如果没有,为-1
- *
- *
- * int32 l3_proto = 8;
- * @return The l3Proto.
- */
- @java.lang.Override
- public int getL3Proto() {
- return l3Proto_;
- }
-
- public static final int L4_PROTO_FIELD_NUMBER = 9;
- private int l4Proto_;
- /**
- *
- *第四层协议ID,如果没有,为-1
- *
- *
- * int32 l4_proto = 9;
- * @return The l4Proto.
- */
- @java.lang.Override
- public int getL4Proto() {
- return l4Proto_;
- }
-
- public static final int TOS_FIELD_NUMBER = 10;
- private int tos_;
- /**
- *
- *Tos,一个字节,如果没有,为-1
- *
- *
- * int32 tos = 10;
- * @return The tos.
- */
- @java.lang.Override
- public int getTos() {
- return tos_;
- }
-
- public static final int VLAN_ID_FIELD_NUMBER = 11;
- private int vlanId_;
- /**
- *
- *vlan ID,如果没有,为-1
- *
- *
- * int32 vlan_id = 11;
- * @return The vlanId.
- */
- @java.lang.Override
- public int getVlanId() {
- return vlanId_;
- }
-
- public static final int BYTES_FIELD_NUMBER = 12;
- private long bytes_;
- /**
- *
- *字节总数
- *
- *
- * int64 bytes = 12;
- * @return The bytes.
- */
- @java.lang.Override
- public long getBytes() {
- return bytes_;
- }
-
- public static final int PACKETS_FIELD_NUMBER = 13;
- private long packets_;
- /**
- *
- *数据包总数
- *
- *
- * int64 packets = 13;
- * @return The packets.
- */
- @java.lang.Override
- public long getPackets() {
- return packets_;
- }
-
- public static final int PACKETS_SYN_FIELD_NUMBER = 14;
- private long packetsSyn_;
- /**
- *
- *TCP同步包数
- *
- *
- * int64 packets_syn = 14;
- * @return The packetsSyn.
- */
- @java.lang.Override
- public long getPacketsSyn() {
- return packetsSyn_;
- }
-
- public static final int PACKETS_SYN_ACK_FIELD_NUMBER = 15;
- private long packetsSynAck_;
- /**
- *
- *TCP同步确认包数
- *
- *
- * int64 packets_syn_ack = 15;
- * @return The packetsSynAck.
- */
- @java.lang.Override
- public long getPacketsSynAck() {
- return packetsSynAck_;
- }
-
- public static final int PACKETS_SYN_RST_FIELD_NUMBER = 16;
- private long packetsSynRst_;
- /**
- *
- *TCP同步重置包数
- *
- *
- * int64 packets_syn_rst = 16;
- * @return The packetsSynRst.
- */
- @java.lang.Override
- public long getPacketsSynRst() {
- return packetsSynRst_;
- }
-
- public static final int TIMESTAMP_FIELD_NUMBER = 17;
- private long timestamp_;
- /**
- *
- *时间戳,秒
- *
- *
- * int64 timestamp = 17;
- * @return The timestamp.
- */
- @java.lang.Override
- public long getTimestamp() {
- return timestamp_;
- }
-
- public static final int APPID_FIELD_NUMBER = 18;
- private long appid_;
- /**
- *
- *应用ID
- *
- *
- * int64 appid = 18;
- * @return The appid.
- */
- @java.lang.Override
- public long getAppid() {
- return appid_;
- }
-
- public static final int APP_GROUP_ID_FIELD_NUMBER = 19;
- private long appGroupId_;
- /**
- * int64 app_group_id = 19;
- * @return The appGroupId.
- */
- @java.lang.Override
- public long getAppGroupId() {
- return appGroupId_;
- }
-
- public static final int MPLS_LABEL_FIELD_NUMBER = 20;
- private int mplsLabel_;
- /**
- * int32 mpls_label = 20;
- * @return The mplsLabel.
- */
- @java.lang.Override
- public int getMplsLabel() {
- return mplsLabel_;
- }
-
- public static final int PKTS_SYN_RX_FIELD_NUMBER = 21;
- private long pktsSynRx_;
- /**
- *
- *tcp同步包,接收
- *
- *
- * int64 pkts_syn_rx = 21;
- * @return The pktsSynRx.
- */
- @java.lang.Override
- public long getPktsSynRx() {
- return pktsSynRx_;
- }
-
- public static final int PKTS_SYN_ACK_RX_FIELD_NUMBER = 22;
- private long pktsSynAckRx_;
- /**
- *
- *tcp同步确认包,接收
- *
- *
- * int64 pkts_syn_ack_rx = 22;
- * @return The pktsSynAckRx.
- */
- @java.lang.Override
- public long getPktsSynAckRx() {
- return pktsSynAckRx_;
- }
-
- public static final int PKTS_SYN_RST_RX_FIELD_NUMBER = 23;
- private long pktsSynRstRx_;
- /**
- *
- *tcp同步重置包,接收
- *
- *
- * int64 pkts_syn_rst_rx = 23;
- * @return The pktsSynRstRx.
- */
- @java.lang.Override
- public long getPktsSynRstRx() {
- return pktsSynRstRx_;
- }
-
- public static final int PKTS_FIN_FIELD_NUMBER = 24;
- private long pktsFin_;
- /**
- *
- *tcp终止包,接收
- *
- *
- * int64 pkts_fin = 24;
- * @return The pktsFin.
- */
- @java.lang.Override
- public long getPktsFin() {
- return pktsFin_;
- }
-
- public static final int PKTS_RST_FIELD_NUMBER = 25;
- private long pktsRst_;
- /**
- *
- *tcp重置包,接收
- *
- *
- * int64 pkts_rst = 25;
- * @return The pktsRst.
- */
- @java.lang.Override
- public long getPktsRst() {
- return pktsRst_;
- }
-
- public static final int BYTES_RX_FIELD_NUMBER = 26;
- private long bytesRx_;
- /**
- *
- *字节收
- *
- *
- * int64 bytes_rx = 26;
- * @return The bytesRx.
- */
- @java.lang.Override
- public long getBytesRx() {
- return bytesRx_;
- }
-
- public static final int PACKETS_RX_FIELD_NUMBER = 27;
- private long packetsRx_;
- /**
- *
- *数据包收
- *
- *
- * int64 packets_rx = 27;
- * @return The packetsRx.
- */
- @java.lang.Override
- public long getPacketsRx() {
- return packetsRx_;
- }
-
- public static final int PROBE_TIME_SEC_FIELD_NUMBER = 28;
- private long probeTimeSec_;
- /**
- * int64 probe_time_sec = 28;
- * @return The probeTimeSec.
- */
- @java.lang.Override
- public long getProbeTimeSec() {
- return probeTimeSec_;
- }
-
- public static final int PROBE_TIME_FIELD_NUMBER = 29;
- private long probeTime_;
- /**
- * int64 probe_time = 29;
- * @return The probeTime.
- */
- @java.lang.Override
- public long getProbeTime() {
- return probeTime_;
- }
-
- public static final int CREATE_TIME_FIELD_NUMBER = 30;
- private long createTime_;
- /**
- * int64 create_time = 30;
- * @return The createTime.
- */
- @java.lang.Override
- public long getCreateTime() {
- return createTime_;
- }
-
- public static final int PROBE_IF_FIELD_NUMBER = 31;
- private int probeIf_;
- /**
- * int32 probe_if = 31;
- * @return The probeIf.
- */
- @java.lang.Override
- public int getProbeIf() {
- return probeIf_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (tableId_ != 0) {
- output.writeInt32(1, tableId_);
- }
- if (macSrc_ != 0L) {
- output.writeInt64(2, macSrc_);
- }
- if (macDst_ != 0L) {
- output.writeInt64(3, macDst_);
- }
- if (ipSrc_ != 0L) {
- output.writeInt64(4, ipSrc_);
- }
- if (ipDst_ != 0L) {
- output.writeInt64(5, ipDst_);
- }
- if (portSrc_ != 0) {
- output.writeInt32(6, portSrc_);
- }
- if (portDst_ != 0) {
- output.writeInt32(7, portDst_);
- }
- if (l3Proto_ != 0) {
- output.writeInt32(8, l3Proto_);
- }
- if (l4Proto_ != 0) {
- output.writeInt32(9, l4Proto_);
- }
- if (tos_ != 0) {
- output.writeInt32(10, tos_);
- }
- if (vlanId_ != 0) {
- output.writeInt32(11, vlanId_);
- }
- if (bytes_ != 0L) {
- output.writeInt64(12, bytes_);
- }
- if (packets_ != 0L) {
- output.writeInt64(13, packets_);
- }
- if (packetsSyn_ != 0L) {
- output.writeInt64(14, packetsSyn_);
- }
- if (packetsSynAck_ != 0L) {
- output.writeInt64(15, packetsSynAck_);
- }
- if (packetsSynRst_ != 0L) {
- output.writeInt64(16, packetsSynRst_);
- }
- if (timestamp_ != 0L) {
- output.writeInt64(17, timestamp_);
- }
- if (appid_ != 0L) {
- output.writeInt64(18, appid_);
- }
- if (appGroupId_ != 0L) {
- output.writeInt64(19, appGroupId_);
- }
- if (mplsLabel_ != 0) {
- output.writeInt32(20, mplsLabel_);
- }
- if (pktsSynRx_ != 0L) {
- output.writeInt64(21, pktsSynRx_);
- }
- if (pktsSynAckRx_ != 0L) {
- output.writeInt64(22, pktsSynAckRx_);
- }
- if (pktsSynRstRx_ != 0L) {
- output.writeInt64(23, pktsSynRstRx_);
- }
- if (pktsFin_ != 0L) {
- output.writeInt64(24, pktsFin_);
- }
- if (pktsRst_ != 0L) {
- output.writeInt64(25, pktsRst_);
- }
- if (bytesRx_ != 0L) {
- output.writeInt64(26, bytesRx_);
- }
- if (packetsRx_ != 0L) {
- output.writeInt64(27, packetsRx_);
- }
- if (probeTimeSec_ != 0L) {
- output.writeInt64(28, probeTimeSec_);
- }
- if (probeTime_ != 0L) {
- output.writeInt64(29, probeTime_);
- }
- if (createTime_ != 0L) {
- output.writeInt64(30, createTime_);
- }
- if (probeIf_ != 0) {
- output.writeInt32(31, probeIf_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (tableId_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, tableId_);
- }
- if (macSrc_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(2, macSrc_);
- }
- if (macDst_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(3, macDst_);
- }
- if (ipSrc_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(4, ipSrc_);
- }
- if (ipDst_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(5, ipDst_);
- }
- if (portSrc_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(6, portSrc_);
- }
- if (portDst_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(7, portDst_);
- }
- if (l3Proto_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(8, l3Proto_);
- }
- if (l4Proto_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(9, l4Proto_);
- }
- if (tos_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(10, tos_);
- }
- if (vlanId_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(11, vlanId_);
- }
- if (bytes_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(12, bytes_);
- }
- if (packets_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(13, packets_);
- }
- if (packetsSyn_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(14, packetsSyn_);
- }
- if (packetsSynAck_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(15, packetsSynAck_);
- }
- if (packetsSynRst_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(16, packetsSynRst_);
- }
- if (timestamp_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(17, timestamp_);
- }
- if (appid_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(18, appid_);
- }
- if (appGroupId_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(19, appGroupId_);
- }
- if (mplsLabel_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(20, mplsLabel_);
- }
- if (pktsSynRx_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(21, pktsSynRx_);
- }
- if (pktsSynAckRx_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(22, pktsSynAckRx_);
- }
- if (pktsSynRstRx_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(23, pktsSynRstRx_);
- }
- if (pktsFin_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(24, pktsFin_);
- }
- if (pktsRst_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(25, pktsRst_);
- }
- if (bytesRx_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(26, bytesRx_);
- }
- if (packetsRx_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(27, packetsRx_);
- }
- if (probeTimeSec_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(28, probeTimeSec_);
- }
- if (probeTime_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(29, probeTime_);
- }
- if (createTime_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(30, createTime_);
- }
- if (probeIf_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(31, probeIf_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow)) {
- return super.equals(obj);
- }
- com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow other = (com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow) obj;
-
- if (getTableId()
- != other.getTableId()) return false;
- if (getMacSrc()
- != other.getMacSrc()) return false;
- if (getMacDst()
- != other.getMacDst()) return false;
- if (getIpSrc()
- != other.getIpSrc()) return false;
- if (getIpDst()
- != other.getIpDst()) return false;
- if (getPortSrc()
- != other.getPortSrc()) return false;
- if (getPortDst()
- != other.getPortDst()) return false;
- if (getL3Proto()
- != other.getL3Proto()) return false;
- if (getL4Proto()
- != other.getL4Proto()) return false;
- if (getTos()
- != other.getTos()) return false;
- if (getVlanId()
- != other.getVlanId()) return false;
- if (getBytes()
- != other.getBytes()) return false;
- if (getPackets()
- != other.getPackets()) return false;
- if (getPacketsSyn()
- != other.getPacketsSyn()) return false;
- if (getPacketsSynAck()
- != other.getPacketsSynAck()) return false;
- if (getPacketsSynRst()
- != other.getPacketsSynRst()) return false;
- if (getTimestamp()
- != other.getTimestamp()) return false;
- if (getAppid()
- != other.getAppid()) return false;
- if (getAppGroupId()
- != other.getAppGroupId()) return false;
- if (getMplsLabel()
- != other.getMplsLabel()) return false;
- if (getPktsSynRx()
- != other.getPktsSynRx()) return false;
- if (getPktsSynAckRx()
- != other.getPktsSynAckRx()) return false;
- if (getPktsSynRstRx()
- != other.getPktsSynRstRx()) return false;
- if (getPktsFin()
- != other.getPktsFin()) return false;
- if (getPktsRst()
- != other.getPktsRst()) return false;
- if (getBytesRx()
- != other.getBytesRx()) return false;
- if (getPacketsRx()
- != other.getPacketsRx()) return false;
- if (getProbeTimeSec()
- != other.getProbeTimeSec()) return false;
- if (getProbeTime()
- != other.getProbeTime()) return false;
- if (getCreateTime()
- != other.getCreateTime()) return false;
- if (getProbeIf()
- != other.getProbeIf()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + TABLE_ID_FIELD_NUMBER;
- hash = (53 * hash) + getTableId();
- hash = (37 * hash) + MAC_SRC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getMacSrc());
- hash = (37 * hash) + MAC_DST_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getMacDst());
- hash = (37 * hash) + IP_SRC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getIpSrc());
- hash = (37 * hash) + IP_DST_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getIpDst());
- hash = (37 * hash) + PORT_SRC_FIELD_NUMBER;
- hash = (53 * hash) + getPortSrc();
- hash = (37 * hash) + PORT_DST_FIELD_NUMBER;
- hash = (53 * hash) + getPortDst();
- hash = (37 * hash) + L3_PROTO_FIELD_NUMBER;
- hash = (53 * hash) + getL3Proto();
- hash = (37 * hash) + L4_PROTO_FIELD_NUMBER;
- hash = (53 * hash) + getL4Proto();
- hash = (37 * hash) + TOS_FIELD_NUMBER;
- hash = (53 * hash) + getTos();
- hash = (37 * hash) + VLAN_ID_FIELD_NUMBER;
- hash = (53 * hash) + getVlanId();
- hash = (37 * hash) + BYTES_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getBytes());
- hash = (37 * hash) + PACKETS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPackets());
- hash = (37 * hash) + PACKETS_SYN_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPacketsSyn());
- hash = (37 * hash) + PACKETS_SYN_ACK_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPacketsSynAck());
- hash = (37 * hash) + PACKETS_SYN_RST_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPacketsSynRst());
- hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getTimestamp());
- hash = (37 * hash) + APPID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getAppid());
- hash = (37 * hash) + APP_GROUP_ID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getAppGroupId());
- hash = (37 * hash) + MPLS_LABEL_FIELD_NUMBER;
- hash = (53 * hash) + getMplsLabel();
- hash = (37 * hash) + PKTS_SYN_RX_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPktsSynRx());
- hash = (37 * hash) + PKTS_SYN_ACK_RX_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPktsSynAckRx());
- hash = (37 * hash) + PKTS_SYN_RST_RX_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPktsSynRstRx());
- hash = (37 * hash) + PKTS_FIN_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPktsFin());
- hash = (37 * hash) + PKTS_RST_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPktsRst());
- hash = (37 * hash) + BYTES_RX_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getBytesRx());
- hash = (37 * hash) + PACKETS_RX_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getPacketsRx());
- hash = (37 * hash) + PROBE_TIME_SEC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getProbeTimeSec());
- hash = (37 * hash) + PROBE_TIME_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getProbeTime());
- hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getCreateTime());
- hash = (37 * hash) + PROBE_IF_FIELD_NUMBER;
- hash = (53 * hash) + getProbeIf();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code dataflow.SstFlow}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
- // @@protoc_insertion_point(builder_implements:dataflow.SstFlow)
- com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlowOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.internal_static_dataflow_SstFlow_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.internal_static_dataflow_SstFlow_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow.class, com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow.Builder.class);
- }
-
- // Construct using com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- tableId_ = 0;
-
- macSrc_ = 0L;
-
- macDst_ = 0L;
-
- ipSrc_ = 0L;
-
- ipDst_ = 0L;
-
- portSrc_ = 0;
-
- portDst_ = 0;
-
- l3Proto_ = 0;
-
- l4Proto_ = 0;
-
- tos_ = 0;
-
- vlanId_ = 0;
-
- bytes_ = 0L;
-
- packets_ = 0L;
-
- packetsSyn_ = 0L;
-
- packetsSynAck_ = 0L;
-
- packetsSynRst_ = 0L;
-
- timestamp_ = 0L;
-
- appid_ = 0L;
-
- appGroupId_ = 0L;
-
- mplsLabel_ = 0;
-
- pktsSynRx_ = 0L;
-
- pktsSynAckRx_ = 0L;
-
- pktsSynRstRx_ = 0L;
-
- pktsFin_ = 0L;
-
- pktsRst_ = 0L;
-
- bytesRx_ = 0L;
-
- packetsRx_ = 0L;
-
- probeTimeSec_ = 0L;
-
- probeTime_ = 0L;
-
- createTime_ = 0L;
-
- probeIf_ = 0;
-
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.internal_static_dataflow_SstFlow_descriptor;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow getDefaultInstanceForType() {
- return com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow.getDefaultInstance();
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow build() {
- com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow buildPartial() {
- com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow result = new com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow(this);
- result.tableId_ = tableId_;
- result.macSrc_ = macSrc_;
- result.macDst_ = macDst_;
- result.ipSrc_ = ipSrc_;
- result.ipDst_ = ipDst_;
- result.portSrc_ = portSrc_;
- result.portDst_ = portDst_;
- result.l3Proto_ = l3Proto_;
- result.l4Proto_ = l4Proto_;
- result.tos_ = tos_;
- result.vlanId_ = vlanId_;
- result.bytes_ = bytes_;
- result.packets_ = packets_;
- result.packetsSyn_ = packetsSyn_;
- result.packetsSynAck_ = packetsSynAck_;
- result.packetsSynRst_ = packetsSynRst_;
- result.timestamp_ = timestamp_;
- result.appid_ = appid_;
- result.appGroupId_ = appGroupId_;
- result.mplsLabel_ = mplsLabel_;
- result.pktsSynRx_ = pktsSynRx_;
- result.pktsSynAckRx_ = pktsSynAckRx_;
- result.pktsSynRstRx_ = pktsSynRstRx_;
- result.pktsFin_ = pktsFin_;
- result.pktsRst_ = pktsRst_;
- result.bytesRx_ = bytesRx_;
- result.packetsRx_ = packetsRx_;
- result.probeTimeSec_ = probeTimeSec_;
- result.probeTime_ = probeTime_;
- result.createTime_ = createTime_;
- result.probeIf_ = probeIf_;
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
- }
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.setField(field, value);
- }
- @java.lang.Override
- public Builder clearField(
- com.google.protobuf.Descriptors.FieldDescriptor field) {
- return super.clearField(field);
- }
- @java.lang.Override
- public Builder clearOneof(
- com.google.protobuf.Descriptors.OneofDescriptor oneof) {
- return super.clearOneof(oneof);
- }
- @java.lang.Override
- public Builder setRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- int index, java.lang.Object value) {
- return super.setRepeatedField(field, index, value);
- }
- @java.lang.Override
- public Builder addRepeatedField(
- com.google.protobuf.Descriptors.FieldDescriptor field,
- java.lang.Object value) {
- return super.addRepeatedField(field, value);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow) {
- return mergeFrom((com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow other) {
- if (other == com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow.getDefaultInstance()) return this;
- if (other.getTableId() != 0) {
- setTableId(other.getTableId());
- }
- if (other.getMacSrc() != 0L) {
- setMacSrc(other.getMacSrc());
- }
- if (other.getMacDst() != 0L) {
- setMacDst(other.getMacDst());
- }
- if (other.getIpSrc() != 0L) {
- setIpSrc(other.getIpSrc());
- }
- if (other.getIpDst() != 0L) {
- setIpDst(other.getIpDst());
- }
- if (other.getPortSrc() != 0) {
- setPortSrc(other.getPortSrc());
- }
- if (other.getPortDst() != 0) {
- setPortDst(other.getPortDst());
- }
- if (other.getL3Proto() != 0) {
- setL3Proto(other.getL3Proto());
- }
- if (other.getL4Proto() != 0) {
- setL4Proto(other.getL4Proto());
- }
- if (other.getTos() != 0) {
- setTos(other.getTos());
- }
- if (other.getVlanId() != 0) {
- setVlanId(other.getVlanId());
- }
- if (other.getBytes() != 0L) {
- setBytes(other.getBytes());
- }
- if (other.getPackets() != 0L) {
- setPackets(other.getPackets());
- }
- if (other.getPacketsSyn() != 0L) {
- setPacketsSyn(other.getPacketsSyn());
- }
- if (other.getPacketsSynAck() != 0L) {
- setPacketsSynAck(other.getPacketsSynAck());
- }
- if (other.getPacketsSynRst() != 0L) {
- setPacketsSynRst(other.getPacketsSynRst());
- }
- if (other.getTimestamp() != 0L) {
- setTimestamp(other.getTimestamp());
- }
- if (other.getAppid() != 0L) {
- setAppid(other.getAppid());
- }
- if (other.getAppGroupId() != 0L) {
- setAppGroupId(other.getAppGroupId());
- }
- if (other.getMplsLabel() != 0) {
- setMplsLabel(other.getMplsLabel());
- }
- if (other.getPktsSynRx() != 0L) {
- setPktsSynRx(other.getPktsSynRx());
- }
- if (other.getPktsSynAckRx() != 0L) {
- setPktsSynAckRx(other.getPktsSynAckRx());
- }
- if (other.getPktsSynRstRx() != 0L) {
- setPktsSynRstRx(other.getPktsSynRstRx());
- }
- if (other.getPktsFin() != 0L) {
- setPktsFin(other.getPktsFin());
- }
- if (other.getPktsRst() != 0L) {
- setPktsRst(other.getPktsRst());
- }
- if (other.getBytesRx() != 0L) {
- setBytesRx(other.getBytesRx());
- }
- if (other.getPacketsRx() != 0L) {
- setPacketsRx(other.getPacketsRx());
- }
- if (other.getProbeTimeSec() != 0L) {
- setProbeTimeSec(other.getProbeTimeSec());
- }
- if (other.getProbeTime() != 0L) {
- setProbeTime(other.getProbeTime());
- }
- if (other.getCreateTime() != 0L) {
- setCreateTime(other.getCreateTime());
- }
- if (other.getProbeIf() != 0) {
- setProbeIf(other.getProbeIf());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int tableId_ ;
- /**
- * int32 table_id = 1;
- * @return The tableId.
- */
- @java.lang.Override
- public int getTableId() {
- return tableId_;
- }
- /**
- * int32 table_id = 1;
- * @param value The tableId to set.
- * @return This builder for chaining.
- */
- public Builder setTableId(int value) {
-
- tableId_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 table_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearTableId() {
-
- tableId_ = 0;
- onChanged();
- return this;
- }
-
- private long macSrc_ ;
- /**
- *
- *源MAC
- *
- *
- * int64 mac_src = 2;
- * @return The macSrc.
- */
- @java.lang.Override
- public long getMacSrc() {
- return macSrc_;
- }
- /**
- *
- *源MAC
- *
- *
- * int64 mac_src = 2;
- * @param value The macSrc to set.
- * @return This builder for chaining.
- */
- public Builder setMacSrc(long value) {
-
- macSrc_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *源MAC
- *
- *
- * int64 mac_src = 2;
- * @return This builder for chaining.
- */
- public Builder clearMacSrc() {
-
- macSrc_ = 0L;
- onChanged();
- return this;
- }
-
- private long macDst_ ;
- /**
- *
- *目标MAC
- *
- *
- * int64 mac_dst = 3;
- * @return The macDst.
- */
- @java.lang.Override
- public long getMacDst() {
- return macDst_;
- }
- /**
- *
- *目标MAC
- *
- *
- * int64 mac_dst = 3;
- * @param value The macDst to set.
- * @return This builder for chaining.
- */
- public Builder setMacDst(long value) {
-
- macDst_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *目标MAC
- *
- *
- * int64 mac_dst = 3;
- * @return This builder for chaining.
- */
- public Builder clearMacDst() {
-
- macDst_ = 0L;
- onChanged();
- return this;
- }
-
- private long ipSrc_ ;
- /**
- *
- *源IP
- *
- *
- * int64 ip_src = 4;
- * @return The ipSrc.
- */
- @java.lang.Override
- public long getIpSrc() {
- return ipSrc_;
- }
- /**
- *
- *源IP
- *
- *
- * int64 ip_src = 4;
- * @param value The ipSrc to set.
- * @return This builder for chaining.
- */
- public Builder setIpSrc(long value) {
-
- ipSrc_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *源IP
- *
- *
- * int64 ip_src = 4;
- * @return This builder for chaining.
- */
- public Builder clearIpSrc() {
-
- ipSrc_ = 0L;
- onChanged();
- return this;
- }
-
- private long ipDst_ ;
- /**
- *
- *目标IP
- *
- *
- * int64 ip_dst = 5;
- * @return The ipDst.
- */
- @java.lang.Override
- public long getIpDst() {
- return ipDst_;
- }
- /**
- *
- *目标IP
- *
- *
- * int64 ip_dst = 5;
- * @param value The ipDst to set.
- * @return This builder for chaining.
- */
- public Builder setIpDst(long value) {
-
- ipDst_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *目标IP
- *
- *
- * int64 ip_dst = 5;
- * @return This builder for chaining.
- */
- public Builder clearIpDst() {
-
- ipDst_ = 0L;
- onChanged();
- return this;
- }
-
- private int portSrc_ ;
- /**
- *
- *源端口,如果没有,为-1
- *
- *
- * int32 port_src = 6;
- * @return The portSrc.
- */
- @java.lang.Override
- public int getPortSrc() {
- return portSrc_;
- }
- /**
- *
- *源端口,如果没有,为-1
- *
- *
- * int32 port_src = 6;
- * @param value The portSrc to set.
- * @return This builder for chaining.
- */
- public Builder setPortSrc(int value) {
-
- portSrc_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *源端口,如果没有,为-1
- *
- *
- * int32 port_src = 6;
- * @return This builder for chaining.
- */
- public Builder clearPortSrc() {
-
- portSrc_ = 0;
- onChanged();
- return this;
- }
-
- private int portDst_ ;
- /**
- *
- *目标端口,如果没有,为-1
- *
- *
- * int32 port_dst = 7;
- * @return The portDst.
- */
- @java.lang.Override
- public int getPortDst() {
- return portDst_;
- }
- /**
- *
- *目标端口,如果没有,为-1
- *
- *
- * int32 port_dst = 7;
- * @param value The portDst to set.
- * @return This builder for chaining.
- */
- public Builder setPortDst(int value) {
-
- portDst_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *目标端口,如果没有,为-1
- *
- *
- * int32 port_dst = 7;
- * @return This builder for chaining.
- */
- public Builder clearPortDst() {
-
- portDst_ = 0;
- onChanged();
- return this;
- }
-
- private int l3Proto_ ;
- /**
- *
- *第三层协议ID,如果没有,为-1
- *
- *
- * int32 l3_proto = 8;
- * @return The l3Proto.
- */
- @java.lang.Override
- public int getL3Proto() {
- return l3Proto_;
- }
- /**
- *
- *第三层协议ID,如果没有,为-1
- *
- *
- * int32 l3_proto = 8;
- * @param value The l3Proto to set.
- * @return This builder for chaining.
- */
- public Builder setL3Proto(int value) {
-
- l3Proto_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *第三层协议ID,如果没有,为-1
- *
- *
- * int32 l3_proto = 8;
- * @return This builder for chaining.
- */
- public Builder clearL3Proto() {
-
- l3Proto_ = 0;
- onChanged();
- return this;
- }
-
- private int l4Proto_ ;
- /**
- *
- *第四层协议ID,如果没有,为-1
- *
- *
- * int32 l4_proto = 9;
- * @return The l4Proto.
- */
- @java.lang.Override
- public int getL4Proto() {
- return l4Proto_;
- }
- /**
- *
- *第四层协议ID,如果没有,为-1
- *
- *
- * int32 l4_proto = 9;
- * @param value The l4Proto to set.
- * @return This builder for chaining.
- */
- public Builder setL4Proto(int value) {
-
- l4Proto_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *第四层协议ID,如果没有,为-1
- *
- *
- * int32 l4_proto = 9;
- * @return This builder for chaining.
- */
- public Builder clearL4Proto() {
-
- l4Proto_ = 0;
- onChanged();
- return this;
- }
-
- private int tos_ ;
- /**
- *
- *Tos,一个字节,如果没有,为-1
- *
- *
- * int32 tos = 10;
- * @return The tos.
- */
- @java.lang.Override
- public int getTos() {
- return tos_;
- }
- /**
- *
- *Tos,一个字节,如果没有,为-1
- *
- *
- * int32 tos = 10;
- * @param value The tos to set.
- * @return This builder for chaining.
- */
- public Builder setTos(int value) {
-
- tos_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *Tos,一个字节,如果没有,为-1
- *
- *
- * int32 tos = 10;
- * @return This builder for chaining.
- */
- public Builder clearTos() {
-
- tos_ = 0;
- onChanged();
- return this;
- }
-
- private int vlanId_ ;
- /**
- *
- *vlan ID,如果没有,为-1
- *
- *
- * int32 vlan_id = 11;
- * @return The vlanId.
- */
- @java.lang.Override
- public int getVlanId() {
- return vlanId_;
- }
- /**
- *
- *vlan ID,如果没有,为-1
- *
- *
- * int32 vlan_id = 11;
- * @param value The vlanId to set.
- * @return This builder for chaining.
- */
- public Builder setVlanId(int value) {
-
- vlanId_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *vlan ID,如果没有,为-1
- *
- *
- * int32 vlan_id = 11;
- * @return This builder for chaining.
- */
- public Builder clearVlanId() {
-
- vlanId_ = 0;
- onChanged();
- return this;
- }
-
- private long bytes_ ;
- /**
- *
- *字节总数
- *
- *
- * int64 bytes = 12;
- * @return The bytes.
- */
- @java.lang.Override
- public long getBytes() {
- return bytes_;
- }
- /**
- *
- *字节总数
- *
- *
- * int64 bytes = 12;
- * @param value The bytes to set.
- * @return This builder for chaining.
- */
- public Builder setBytes(long value) {
-
- bytes_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *字节总数
- *
- *
- * int64 bytes = 12;
- * @return This builder for chaining.
- */
- public Builder clearBytes() {
-
- bytes_ = 0L;
- onChanged();
- return this;
- }
-
- private long packets_ ;
- /**
- *
- *数据包总数
- *
- *
- * int64 packets = 13;
- * @return The packets.
- */
- @java.lang.Override
- public long getPackets() {
- return packets_;
- }
- /**
- *
- *数据包总数
- *
- *
- * int64 packets = 13;
- * @param value The packets to set.
- * @return This builder for chaining.
- */
- public Builder setPackets(long value) {
-
- packets_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *数据包总数
- *
- *
- * int64 packets = 13;
- * @return This builder for chaining.
- */
- public Builder clearPackets() {
-
- packets_ = 0L;
- onChanged();
- return this;
- }
-
- private long packetsSyn_ ;
- /**
- *
- *TCP同步包数
- *
- *
- * int64 packets_syn = 14;
- * @return The packetsSyn.
- */
- @java.lang.Override
- public long getPacketsSyn() {
- return packetsSyn_;
- }
- /**
- *
- *TCP同步包数
- *
- *
- * int64 packets_syn = 14;
- * @param value The packetsSyn to set.
- * @return This builder for chaining.
- */
- public Builder setPacketsSyn(long value) {
-
- packetsSyn_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *TCP同步包数
- *
- *
- * int64 packets_syn = 14;
- * @return This builder for chaining.
- */
- public Builder clearPacketsSyn() {
-
- packetsSyn_ = 0L;
- onChanged();
- return this;
- }
-
- private long packetsSynAck_ ;
- /**
- *
- *TCP同步确认包数
- *
- *
- * int64 packets_syn_ack = 15;
- * @return The packetsSynAck.
- */
- @java.lang.Override
- public long getPacketsSynAck() {
- return packetsSynAck_;
- }
- /**
- *
- *TCP同步确认包数
- *
- *
- * int64 packets_syn_ack = 15;
- * @param value The packetsSynAck to set.
- * @return This builder for chaining.
- */
- public Builder setPacketsSynAck(long value) {
-
- packetsSynAck_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *TCP同步确认包数
- *
- *
- * int64 packets_syn_ack = 15;
- * @return This builder for chaining.
- */
- public Builder clearPacketsSynAck() {
-
- packetsSynAck_ = 0L;
- onChanged();
- return this;
- }
-
- private long packetsSynRst_ ;
- /**
- *
- *TCP同步重置包数
- *
- *
- * int64 packets_syn_rst = 16;
- * @return The packetsSynRst.
- */
- @java.lang.Override
- public long getPacketsSynRst() {
- return packetsSynRst_;
- }
- /**
- *
- *TCP同步重置包数
- *
- *
- * int64 packets_syn_rst = 16;
- * @param value The packetsSynRst to set.
- * @return This builder for chaining.
- */
- public Builder setPacketsSynRst(long value) {
-
- packetsSynRst_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *TCP同步重置包数
- *
- *
- * int64 packets_syn_rst = 16;
- * @return This builder for chaining.
- */
- public Builder clearPacketsSynRst() {
-
- packetsSynRst_ = 0L;
- onChanged();
- return this;
- }
-
- private long timestamp_ ;
- /**
- *
- *时间戳,秒
- *
- *
- * int64 timestamp = 17;
- * @return The timestamp.
- */
- @java.lang.Override
- public long getTimestamp() {
- return timestamp_;
- }
- /**
- *
- *时间戳,秒
- *
- *
- * int64 timestamp = 17;
- * @param value The timestamp to set.
- * @return This builder for chaining.
- */
- public Builder setTimestamp(long value) {
-
- timestamp_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *时间戳,秒
- *
- *
- * int64 timestamp = 17;
- * @return This builder for chaining.
- */
- public Builder clearTimestamp() {
-
- timestamp_ = 0L;
- onChanged();
- return this;
- }
-
- private long appid_ ;
- /**
- *
- *应用ID
- *
- *
- * int64 appid = 18;
- * @return The appid.
- */
- @java.lang.Override
- public long getAppid() {
- return appid_;
- }
- /**
- *
- *应用ID
- *
- *
- * int64 appid = 18;
- * @param value The appid to set.
- * @return This builder for chaining.
- */
- public Builder setAppid(long value) {
-
- appid_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *应用ID
- *
- *
- * int64 appid = 18;
- * @return This builder for chaining.
- */
- public Builder clearAppid() {
-
- appid_ = 0L;
- onChanged();
- return this;
- }
-
- private long appGroupId_ ;
- /**
- * int64 app_group_id = 19;
- * @return The appGroupId.
- */
- @java.lang.Override
- public long getAppGroupId() {
- return appGroupId_;
- }
- /**
- * int64 app_group_id = 19;
- * @param value The appGroupId to set.
- * @return This builder for chaining.
- */
- public Builder setAppGroupId(long value) {
-
- appGroupId_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 app_group_id = 19;
- * @return This builder for chaining.
- */
- public Builder clearAppGroupId() {
-
- appGroupId_ = 0L;
- onChanged();
- return this;
- }
-
- private int mplsLabel_ ;
- /**
- * int32 mpls_label = 20;
- * @return The mplsLabel.
- */
- @java.lang.Override
- public int getMplsLabel() {
- return mplsLabel_;
- }
- /**
- * int32 mpls_label = 20;
- * @param value The mplsLabel to set.
- * @return This builder for chaining.
- */
- public Builder setMplsLabel(int value) {
-
- mplsLabel_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 mpls_label = 20;
- * @return This builder for chaining.
- */
- public Builder clearMplsLabel() {
-
- mplsLabel_ = 0;
- onChanged();
- return this;
- }
-
- private long pktsSynRx_ ;
- /**
- *
- *tcp同步包,接收
- *
- *
- * int64 pkts_syn_rx = 21;
- * @return The pktsSynRx.
- */
- @java.lang.Override
- public long getPktsSynRx() {
- return pktsSynRx_;
- }
- /**
- *
- *tcp同步包,接收
- *
- *
- * int64 pkts_syn_rx = 21;
- * @param value The pktsSynRx to set.
- * @return This builder for chaining.
- */
- public Builder setPktsSynRx(long value) {
-
- pktsSynRx_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *tcp同步包,接收
- *
- *
- * int64 pkts_syn_rx = 21;
- * @return This builder for chaining.
- */
- public Builder clearPktsSynRx() {
-
- pktsSynRx_ = 0L;
- onChanged();
- return this;
- }
-
- private long pktsSynAckRx_ ;
- /**
- *
- *tcp同步确认包,接收
- *
- *
- * int64 pkts_syn_ack_rx = 22;
- * @return The pktsSynAckRx.
- */
- @java.lang.Override
- public long getPktsSynAckRx() {
- return pktsSynAckRx_;
- }
- /**
- *
- *tcp同步确认包,接收
- *
- *
- * int64 pkts_syn_ack_rx = 22;
- * @param value The pktsSynAckRx to set.
- * @return This builder for chaining.
- */
- public Builder setPktsSynAckRx(long value) {
-
- pktsSynAckRx_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *tcp同步确认包,接收
- *
- *
- * int64 pkts_syn_ack_rx = 22;
- * @return This builder for chaining.
- */
- public Builder clearPktsSynAckRx() {
-
- pktsSynAckRx_ = 0L;
- onChanged();
- return this;
- }
-
- private long pktsSynRstRx_ ;
- /**
- *
- *tcp同步重置包,接收
- *
- *
- * int64 pkts_syn_rst_rx = 23;
- * @return The pktsSynRstRx.
- */
- @java.lang.Override
- public long getPktsSynRstRx() {
- return pktsSynRstRx_;
- }
- /**
- *
- *tcp同步重置包,接收
- *
- *
- * int64 pkts_syn_rst_rx = 23;
- * @param value The pktsSynRstRx to set.
- * @return This builder for chaining.
- */
- public Builder setPktsSynRstRx(long value) {
-
- pktsSynRstRx_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *tcp同步重置包,接收
- *
- *
- * int64 pkts_syn_rst_rx = 23;
- * @return This builder for chaining.
- */
- public Builder clearPktsSynRstRx() {
-
- pktsSynRstRx_ = 0L;
- onChanged();
- return this;
- }
-
- private long pktsFin_ ;
- /**
- *
- *tcp终止包,接收
- *
- *
- * int64 pkts_fin = 24;
- * @return The pktsFin.
- */
- @java.lang.Override
- public long getPktsFin() {
- return pktsFin_;
- }
- /**
- *
- *tcp终止包,接收
- *
- *
- * int64 pkts_fin = 24;
- * @param value The pktsFin to set.
- * @return This builder for chaining.
- */
- public Builder setPktsFin(long value) {
-
- pktsFin_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *tcp终止包,接收
- *
- *
- * int64 pkts_fin = 24;
- * @return This builder for chaining.
- */
- public Builder clearPktsFin() {
-
- pktsFin_ = 0L;
- onChanged();
- return this;
- }
-
- private long pktsRst_ ;
- /**
- *
- *tcp重置包,接收
- *
- *
- * int64 pkts_rst = 25;
- * @return The pktsRst.
- */
- @java.lang.Override
- public long getPktsRst() {
- return pktsRst_;
- }
- /**
- *
- *tcp重置包,接收
- *
- *
- * int64 pkts_rst = 25;
- * @param value The pktsRst to set.
- * @return This builder for chaining.
- */
- public Builder setPktsRst(long value) {
-
- pktsRst_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *tcp重置包,接收
- *
- *
- * int64 pkts_rst = 25;
- * @return This builder for chaining.
- */
- public Builder clearPktsRst() {
-
- pktsRst_ = 0L;
- onChanged();
- return this;
- }
-
- private long bytesRx_ ;
- /**
- *
- *字节收
- *
- *
- * int64 bytes_rx = 26;
- * @return The bytesRx.
- */
- @java.lang.Override
- public long getBytesRx() {
- return bytesRx_;
- }
- /**
- *
- *字节收
- *
- *
- * int64 bytes_rx = 26;
- * @param value The bytesRx to set.
- * @return This builder for chaining.
- */
- public Builder setBytesRx(long value) {
-
- bytesRx_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *字节收
- *
- *
- * int64 bytes_rx = 26;
- * @return This builder for chaining.
- */
- public Builder clearBytesRx() {
-
- bytesRx_ = 0L;
- onChanged();
- return this;
- }
-
- private long packetsRx_ ;
- /**
- *
- *数据包收
- *
- *
- * int64 packets_rx = 27;
- * @return The packetsRx.
- */
- @java.lang.Override
- public long getPacketsRx() {
- return packetsRx_;
- }
- /**
- *
- *数据包收
- *
- *
- * int64 packets_rx = 27;
- * @param value The packetsRx to set.
- * @return This builder for chaining.
- */
- public Builder setPacketsRx(long value) {
-
- packetsRx_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *数据包收
- *
- *
- * int64 packets_rx = 27;
- * @return This builder for chaining.
- */
- public Builder clearPacketsRx() {
-
- packetsRx_ = 0L;
- onChanged();
- return this;
- }
-
- private long probeTimeSec_ ;
- /**
- * int64 probe_time_sec = 28;
- * @return The probeTimeSec.
- */
- @java.lang.Override
- public long getProbeTimeSec() {
- return probeTimeSec_;
- }
- /**
- * int64 probe_time_sec = 28;
- * @param value The probeTimeSec to set.
- * @return This builder for chaining.
- */
- public Builder setProbeTimeSec(long value) {
-
- probeTimeSec_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 probe_time_sec = 28;
- * @return This builder for chaining.
- */
- public Builder clearProbeTimeSec() {
-
- probeTimeSec_ = 0L;
- onChanged();
- return this;
- }
-
- private long probeTime_ ;
- /**
- * int64 probe_time = 29;
- * @return The probeTime.
- */
- @java.lang.Override
- public long getProbeTime() {
- return probeTime_;
- }
- /**
- * int64 probe_time = 29;
- * @param value The probeTime to set.
- * @return This builder for chaining.
- */
- public Builder setProbeTime(long value) {
-
- probeTime_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 probe_time = 29;
- * @return This builder for chaining.
- */
- public Builder clearProbeTime() {
-
- probeTime_ = 0L;
- onChanged();
- return this;
- }
-
- private long createTime_ ;
- /**
- * int64 create_time = 30;
- * @return The createTime.
- */
- @java.lang.Override
- public long getCreateTime() {
- return createTime_;
- }
- /**
- * int64 create_time = 30;
- * @param value The createTime to set.
- * @return This builder for chaining.
- */
- public Builder setCreateTime(long value) {
-
- createTime_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 create_time = 30;
- * @return This builder for chaining.
- */
- public Builder clearCreateTime() {
-
- createTime_ = 0L;
- onChanged();
- return this;
- }
-
- private int probeIf_ ;
- /**
- * int32 probe_if = 31;
- * @return The probeIf.
- */
- @java.lang.Override
- public int getProbeIf() {
- return probeIf_;
- }
- /**
- * int32 probe_if = 31;
- * @param value The probeIf to set.
- * @return This builder for chaining.
- */
- public Builder setProbeIf(int value) {
-
- probeIf_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 probe_if = 31;
- * @return This builder for chaining.
- */
- public Builder clearProbeIf() {
-
- probeIf_ = 0;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:dataflow.SstFlow)
- }
-
- // @@protoc_insertion_point(class_scope:dataflow.SstFlow)
- private static final com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow();
- }
-
- public static com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public SstFlow parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new SstFlow(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.yuandian.dataflow.proto.msgtype.SstFlowOuterClass.SstFlow getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_dataflow_SstFlow_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_dataflow_SstFlow_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\rSstFlow.proto\022\010dataflow\"\332\004\n\007SstFlow\022\020\n" +
- "\010table_id\030\001 \001(\005\022\017\n\007mac_src\030\002 \001(\003\022\017\n\007mac_" +
- "dst\030\003 \001(\003\022\016\n\006ip_src\030\004 \001(\003\022\016\n\006ip_dst\030\005 \001(" +
- "\003\022\020\n\010port_src\030\006 \001(\005\022\020\n\010port_dst\030\007 \001(\005\022\020\n" +
- "\010l3_proto\030\010 \001(\005\022\020\n\010l4_proto\030\t \001(\005\022\013\n\003tos" +
- "\030\n \001(\005\022\017\n\007vlan_id\030\013 \001(\005\022\r\n\005bytes\030\014 \001(\003\022\017" +
- "\n\007packets\030\r \001(\003\022\023\n\013packets_syn\030\016 \001(\003\022\027\n\017" +
- "packets_syn_ack\030\017 \001(\003\022\027\n\017packets_syn_rst" +
- "\030\020 \001(\003\022\021\n\ttimestamp\030\021 \001(\003\022\r\n\005appid\030\022 \001(\003" +
- "\022\024\n\014app_group_id\030\023 \001(\003\022\022\n\nmpls_label\030\024 \001" +
- "(\005\022\023\n\013pkts_syn_rx\030\025 \001(\003\022\027\n\017pkts_syn_ack_" +
- "rx\030\026 \001(\003\022\027\n\017pkts_syn_rst_rx\030\027 \001(\003\022\020\n\010pkt" +
- "s_fin\030\030 \001(\003\022\020\n\010pkts_rst\030\031 \001(\003\022\020\n\010bytes_r" +
- "x\030\032 \001(\003\022\022\n\npackets_rx\030\033 \001(\003\022\026\n\016probe_tim" +
- "e_sec\030\034 \001(\003\022\022\n\nprobe_time\030\035 \001(\003\022\023\n\013creat" +
- "e_time\030\036 \001(\003\022\020\n\010probe_if\030\037 \001(\005B<\n#com.yu" +
- "andian.dataflow.proto.msgtypeP\000Z\023../grpc" +
- "-gen;grpcgenb\006proto3"
- };
- descriptor = com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- });
- internal_static_dataflow_SstFlow_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_dataflow_SstFlow_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_dataflow_SstFlow_descriptor,
- new java.lang.String[] { "TableId", "MacSrc", "MacDst", "IpSrc", "IpDst", "PortSrc", "PortDst", "L3Proto", "L4Proto", "Tos", "VlanId", "Bytes", "Packets", "PacketsSyn", "PacketsSynAck", "PacketsSynRst", "Timestamp", "Appid", "AppGroupId", "MplsLabel", "PktsSynRx", "PktsSynAckRx", "PktsSynRstRx", "PktsFin", "PktsRst", "BytesRx", "PacketsRx", "ProbeTimeSec", "ProbeTime", "CreateTime", "ProbeIf", });
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/src/main/java/com/yuandian/dataflow/statemachine/StateFactory.java b/src/main/java/com/yuandian/dataflow/statemachine/StateFactory.java
index 9399243..dfbc799 100644
--- a/src/main/java/com/yuandian/dataflow/statemachine/StateFactory.java
+++ b/src/main/java/com/yuandian/dataflow/statemachine/StateFactory.java
@@ -13,8 +13,6 @@ import java.util.Set;
import java.util.concurrent.Executor;
import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.ThreadPoolExecutor;
-import java.util.function.Consumer;
-import java.util.function.Function;
import org.reflections.Reflections;
@@ -43,16 +41,13 @@ import com.alipay.sofa.jraft.util.Endpoint;
import com.alipay.sofa.jraft.util.ThreadPoolUtil;
import com.yuandian.dataflow.statemachine.closure.GenericClosure;
import com.yuandian.dataflow.statemachine.operate.Operate;
-import com.yuandian.dataflow.statemachine.rpc.RaftResponse;
-
import com.yuandian.dataflow.statemachine.rpc.OperateProcessor.OperateRequest;
+import com.yuandian.dataflow.statemachine.rpc.RaftResponse;
import com.yuandian.dataflow.statemachine.rpc.annotations.ProcessorRaft;
import com.yuandian.dataflow.statemachine.state.State;
-import com.yuandian.dataflow.statemachine.state.WorkerState;
import lombok.Getter;
import lombok.Setter;
-
import lombok.extern.slf4j.Slf4j;
/**
diff --git a/src/main/java/com/yuandian/dataflow/statemachine/StateMachine.java b/src/main/java/com/yuandian/dataflow/statemachine/StateMachine.java
index 2409578..2499b34 100644
--- a/src/main/java/com/yuandian/dataflow/statemachine/StateMachine.java
+++ b/src/main/java/com/yuandian/dataflow/statemachine/StateMachine.java
@@ -2,7 +2,6 @@ package com.yuandian.dataflow.statemachine;
import java.nio.ByteBuffer;
import java.util.concurrent.atomic.AtomicLong;
-import java.util.function.Function;
import com.alipay.remoting.exception.CodecException;
import com.alipay.remoting.serialization.SerializerManager;
@@ -13,22 +12,14 @@ import com.alipay.sofa.jraft.conf.Configuration;
import com.alipay.sofa.jraft.core.StateMachineAdapter;
import com.alipay.sofa.jraft.entity.LeaderChangeContext;
import com.alipay.sofa.jraft.error.RaftException;
-import com.alipay.sofa.jraft.error.RemotingException;
-import com.alipay.sofa.jraft.rpc.InvokeCallback;
import com.alipay.sofa.jraft.storage.snapshot.SnapshotReader;
import com.alipay.sofa.jraft.storage.snapshot.SnapshotWriter;
-import com.yuandian.dataflow.Server;
-import com.yuandian.dataflow.controller.TransferLeaderProcessor;
import com.yuandian.dataflow.statemachine.closure.GenericClosure;
import com.yuandian.dataflow.statemachine.operate.Operate;
import com.yuandian.dataflow.statemachine.operate.Operate.OperateType;
-import com.yuandian.dataflow.statemachine.rpc.RaftResponse;
-
-import com.yuandian.dataflow.statemachine.rpc.OperateProcessor.OperateRequest;
import com.yuandian.dataflow.statemachine.state.State;
import com.yuandian.dataflow.statemachine.state.WorkerState;
-
import lombok.extern.slf4j.Slf4j;
/**
@@ -227,16 +218,16 @@ public class StateMachine extends StateMachineAdapter {
}
@Override
+
public void onStopFollowing(LeaderChangeContext ctx) {
log.debug("{} {}", ctx, StateFactory.getCluster().getServerId());
- var ss = StateFactory.getStateServer();
var ws = new WorkerState(StateFactory.getServerId());
log.debug("my: {} leader id {}", StateFactory.getServerId(), StateFactory.getLeaderId());
var op = new Operate(OperateType.PUT_WORKERSTATE, ws);
- Operate.CallOperate(op, new GenericClosure() {
+ Operate.CallOperate(op, new GenericClosure() {
@Override
public void run(Status status) {
log.info("{} {}", status, this.getResponse());
diff --git a/src/main/java/com/yuandian/dataflow/statemachine/closure/GenericClosure.java b/src/main/java/com/yuandian/dataflow/statemachine/closure/GenericClosure.java
index db6787a..0f8a775 100644
--- a/src/main/java/com/yuandian/dataflow/statemachine/closure/GenericClosure.java
+++ b/src/main/java/com/yuandian/dataflow/statemachine/closure/GenericClosure.java
@@ -1,21 +1,14 @@
package com.yuandian.dataflow.statemachine.closure;
import com.alipay.sofa.jraft.Closure;
-import com.alipay.sofa.jraft.Status;
import com.alipay.sofa.jraft.entity.PeerId;
-import com.yuandian.dataflow.statemachine.StateFactory;
-import com.yuandian.dataflow.statemachine.operate.Operate;
import com.yuandian.dataflow.statemachine.rpc.RaftResponse;
-import com.yuandian.dataflow.statemachine.state.State;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
@Slf4j
@Getter
@Setter
diff --git a/src/main/java/com/yuandian/dataflow/statemachine/operate/Operate.java b/src/main/java/com/yuandian/dataflow/statemachine/operate/Operate.java
index 976af37..705be3b 100644
--- a/src/main/java/com/yuandian/dataflow/statemachine/operate/Operate.java
+++ b/src/main/java/com/yuandian/dataflow/statemachine/operate/Operate.java
@@ -3,8 +3,6 @@ package com.yuandian.dataflow.statemachine.operate;
import java.io.Serializable;
import com.alipay.sofa.jraft.Status;
-import com.alipay.sofa.jraft.error.RaftError;
-import com.alipay.sofa.jraft.error.RaftException;
import com.alipay.sofa.jraft.error.RemotingException;
import com.alipay.sofa.jraft.rpc.InvokeCallback;
import com.yuandian.dataflow.statemachine.StateFactory;
@@ -14,7 +12,6 @@ import com.yuandian.dataflow.statemachine.rpc.RaftResponse;
import com.yuandian.dataflow.statemachine.state.WorkerState;
import lombok.Data;
-
import lombok.extern.slf4j.Slf4j;
/**
@@ -45,6 +42,7 @@ public class Operate implements Serializable {
this.value = ws;
}
+ @java.lang.SuppressWarnings("unchecked")
public T getValue() {
return (T) this.value;
};
@@ -59,6 +57,7 @@ public class Operate implements Serializable {
* @param op 传入的操作类
* @param closure 回调函数. Operate为返回值
*/
+ @java.lang.SuppressWarnings("unchecked")
public static void CallOperate(Operate op, GenericClosure closure) {
log.debug("CallOperate Value {}", op.getValue());
var ss = StateFactory.getStateServer();
@@ -80,7 +79,7 @@ public class Operate implements Serializable {
@Override
public void complete(Object result, Throwable err) {
log.debug("Object result {}", result);
-
+
var resp = (RaftResponse) result;
closure.setResponse(resp);
closure.success(resp.getValue());
diff --git a/src/main/java/com/yuandian/dataflow/statemachine/rpc/OperateProcessor.java b/src/main/java/com/yuandian/dataflow/statemachine/rpc/OperateProcessor.java
index 642a111..e76e2d2 100644
--- a/src/main/java/com/yuandian/dataflow/statemachine/rpc/OperateProcessor.java
+++ b/src/main/java/com/yuandian/dataflow/statemachine/rpc/OperateProcessor.java
@@ -7,29 +7,19 @@
package com.yuandian.dataflow.statemachine.rpc;
import java.io.Serializable;
-import java.nio.ByteBuffer;
-import com.alipay.remoting.exception.CodecException;
-import com.alipay.remoting.serialization.SerializerManager;
import com.alipay.sofa.jraft.Status;
-import com.alipay.sofa.jraft.entity.Task;
import com.alipay.sofa.jraft.error.RaftError;
import com.alipay.sofa.jraft.rpc.RpcContext;
import com.alipay.sofa.jraft.rpc.RpcProcessor;
import com.yuandian.dataflow.statemachine.StateFactory;
-import com.yuandian.dataflow.statemachine.StateFactory.StateServer;
import com.yuandian.dataflow.statemachine.closure.GenericClosure;
import com.yuandian.dataflow.statemachine.operate.Operate;
import com.yuandian.dataflow.statemachine.rpc.annotations.ProcessorRaft;
-import com.yuandian.dataflow.statemachine.state.State;
-import com.alipay.sofa.jraft.entity.PeerId;
-
-import org.apache.commons.lang.StringUtils;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
-
import lombok.extern.slf4j.Slf4j;
/**
diff --git a/src/main/java/com/yuandian/dataflow/statemachine/rpc/RaftResponse.java b/src/main/java/com/yuandian/dataflow/statemachine/rpc/RaftResponse.java
index 0b9fa77..65cba32 100644
--- a/src/main/java/com/yuandian/dataflow/statemachine/rpc/RaftResponse.java
+++ b/src/main/java/com/yuandian/dataflow/statemachine/rpc/RaftResponse.java
@@ -9,8 +9,6 @@ package com.yuandian.dataflow.statemachine.rpc;
import java.io.Serializable;
import com.alipay.sofa.jraft.entity.PeerId;
-import com.yuandian.dataflow.statemachine.operate.Operate;
-import com.yuandian.dataflow.statemachine.state.State;
import lombok.Getter;
import lombok.Setter;
diff --git a/src/test/java/com/yuandian/dataflow/AppTest.java b/src/test/java/com/yuandian/dataflow/AppTest.java
index 51676a1..c540410 100644
--- a/src/test/java/com/yuandian/dataflow/AppTest.java
+++ b/src/test/java/com/yuandian/dataflow/AppTest.java
@@ -2,36 +2,12 @@ package com.yuandian.dataflow;
import java.time.Duration;
import java.time.Instant;
-import java.util.ArrayList;
import java.util.LinkedList;
-import java.util.List;
import java.util.Queue;
-import java.util.Random;
-import java.util.UUID;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.atomic.AtomicBoolean;
-import java.util.concurrent.atomic.AtomicInteger;
-import java.util.function.Consumer;
-import java.util.function.Function;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.swing.text.AbstractDocument.BranchElement;
-
-import org.bson.Document;
import org.junit.jupiter.api.DisplayName;
-import org.junit.jupiter.api.Test;
-// import org.springframework.expression.spel.ast.FunctionReference;
-
-import com.mongodb.client.MongoClient;
-import com.mongodb.client.MongoClients;
-import com.mongodb.client.model.InsertManyOptions;
-import com.yuandian.dataflow.projo.Doc;
-
-import io.netty.handler.codec.dns.DatagramDnsQuery;
-import lombok.Cleanup;
-import lombok.Getter;
-import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
diff --git a/src/test/java/com/yuandian/dataflow/MongodbTest.java b/src/test/java/com/yuandian/dataflow/MongodbTest.java
index 424ed9e..20d944e 100644
--- a/src/test/java/com/yuandian/dataflow/MongodbTest.java
+++ b/src/test/java/com/yuandian/dataflow/MongodbTest.java
@@ -1,19 +1,8 @@
package com.yuandian.dataflow;
-import com.mongodb.MongoCredential;
-import com.mongodb.ServerAddress;
-import com.mongodb.client.MongoCollection;
-import com.mongodb.client.MongoDatabase;
-
import lombok.extern.slf4j.Slf4j;
-import org.bson.Document;
-
-import java.lang.reflect.Field;
-import java.util.ArrayList;
-import java.util.List;
-
@Slf4j
public class MongodbTest {
diff --git a/src/test/java/com/yuandian/dataflow/statemachine/StateMachineTest.java b/src/test/java/com/yuandian/dataflow/statemachine/StateMachineTest.java
index 4bb07f5..5e64dce 100644
--- a/src/test/java/com/yuandian/dataflow/statemachine/StateMachineTest.java
+++ b/src/test/java/com/yuandian/dataflow/statemachine/StateMachineTest.java
@@ -1,19 +1,9 @@
package com.yuandian.dataflow.statemachine;
-import java.util.concurrent.Executor;
-
import org.junit.jupiter.api.Test;
import com.alipay.sofa.jraft.error.RemotingException;
-import com.alipay.sofa.jraft.option.CliOptions;
-import com.alipay.sofa.jraft.rpc.InvokeCallback;
-import com.alipay.sofa.jraft.rpc.impl.BoltRaftRpcFactory;
-import com.alipay.sofa.jraft.util.Endpoint;
-import com.yuandian.dataflow.statemachine.rpc.RaftResponse;
-import com.yuandian.dataflow.statemachine.rpc.OperateProcessor.OperateRequest;
-import com.yuandian.dataflow.statemachine.state.State;
-
import lombok.extern.slf4j.Slf4j;
@Slf4j