From efce5bcff4a9edfece38805114ee213b3c64b754 Mon Sep 17 00:00:00 2001 From: Vit Kabele Date: Fri, 8 Mar 2019 16:18:44 +0100 Subject: [PATCH 01/30] shvm extracted from shvm-server --- .classpath | 3 +- build.xml | 10 +- common.properties | 5 +- shvm-server/.gitignore | 1 + shvm-server/README.md | 0 shvm-server/build.properties | 0 shvm-server/build.xml | 94 +++++++++++++++++++ .../ch/usi/dag/dislreserver/DiSLREServer.java | 0 .../src}/ch/usi/dag/dislreserver/Log.java | 0 .../ch/usi/dag/dislreserver/Protocol.java | 0 .../dag/dislreserver/RequestDispatcher.java | 0 shvm/build.xml | 57 ++--------- .../usi/dag/dislreserver/AnalysisHandler.java | 2 - .../dag/dislreserver/AnalysisResolver.java | 6 +- .../usi/dag/dislreserver/RequestHandler.java | 1 - .../dislreserver/DiSLREServerException.java | 0 .../DiSLREServerFatalException.java | 0 .../ch/usi/dag/dislreserver/SHVMContext.java | 0 .../ch/usi/dag/dislreserver/SHVMImpl.java | 0 .../ch/usi/dag/dislreserver/Logging.java | 2 +- 20 files changed, 122 insertions(+), 59 deletions(-) create mode 100644 shvm-server/.gitignore create mode 100644 shvm-server/README.md create mode 100644 shvm-server/build.properties create mode 100644 shvm-server/build.xml rename {shvm/src/src-dislreserver => shvm-server/src}/ch/usi/dag/dislreserver/DiSLREServer.java (100%) rename {shvm/src/src-dislreserver => shvm-server/src}/ch/usi/dag/dislreserver/Log.java (100%) rename {shvm/src/src-proto => shvm-server/src}/ch/usi/dag/dislreserver/Protocol.java (100%) rename {shvm/src/src-dislreserver => shvm-server/src}/ch/usi/dag/dislreserver/RequestDispatcher.java (100%) rename shvm/src/{src-dislreserver => src-server-api}/ch/usi/dag/dislreserver/DiSLREServerException.java (100%) rename shvm/src/{src-dislreserver => src-server-api}/ch/usi/dag/dislreserver/DiSLREServerFatalException.java (100%) rename shvm/src/{src-dislreserver => src-server-api}/ch/usi/dag/dislreserver/SHVMContext.java (100%) rename shvm/src/{src-dislreserver => src-server-api}/ch/usi/dag/dislreserver/SHVMImpl.java (100%) diff --git a/.classpath b/.classpath index ccfa5e4f..f0bf61c1 100644 --- a/.classpath +++ b/.classpath @@ -24,7 +24,6 @@ - @@ -34,7 +33,7 @@ - + diff --git a/build.xml b/build.xml index fc52f0b8..d1872a15 100644 --- a/build.xml +++ b/build.xml @@ -273,6 +273,10 @@ + + + + @@ -638,8 +642,8 @@ - - + + @@ -663,6 +667,7 @@ + @@ -824,6 +829,7 @@ + diff --git a/common.properties b/common.properties index d80909d9..570b8963 100644 --- a/common.properties +++ b/common.properties @@ -19,9 +19,10 @@ src.bin=bin src.disl.prefix=disl src.disl-server.prefix=disl-server src.shvm.prefix=shvm +src.shvm-server.prefix=shvm-server disl.lib=disl-server.jar -shvm.lib=dislre-server.jar +shvm-server.lib=dislre-server.jar # Base output directory out.dir=output @@ -42,7 +43,9 @@ build.disl=${build.dir}/disl build.disl-server=${build.dir}/disl-server build.disl.thread=${build.disl}-thread build.disl.bypass=${build.disl}-bypass + build.shvm=${build.dir}/shvm +build.shvm-server=${build.dir}/shvm-server build.shvm.dispatch=${build.shvm}-dispatch build.test=${build.dir}/test build.doc.intro=${build.dir}/intro diff --git a/shvm-server/.gitignore b/shvm-server/.gitignore new file mode 100644 index 00000000..53752db2 --- /dev/null +++ b/shvm-server/.gitignore @@ -0,0 +1 @@ +output diff --git a/shvm-server/README.md b/shvm-server/README.md new file mode 100644 index 00000000..e69de29b diff --git a/shvm-server/build.properties b/shvm-server/build.properties new file mode 100644 index 00000000..e69de29b diff --git a/shvm-server/build.xml b/shvm-server/build.xml new file mode 100644 index 00000000..29afa030 --- /dev/null +++ b/shvm-server/build.xml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shvm/src/src-dislreserver/ch/usi/dag/dislreserver/DiSLREServer.java b/shvm-server/src/ch/usi/dag/dislreserver/DiSLREServer.java similarity index 100% rename from shvm/src/src-dislreserver/ch/usi/dag/dislreserver/DiSLREServer.java rename to shvm-server/src/ch/usi/dag/dislreserver/DiSLREServer.java diff --git a/shvm/src/src-dislreserver/ch/usi/dag/dislreserver/Log.java b/shvm-server/src/ch/usi/dag/dislreserver/Log.java similarity index 100% rename from shvm/src/src-dislreserver/ch/usi/dag/dislreserver/Log.java rename to shvm-server/src/ch/usi/dag/dislreserver/Log.java diff --git a/shvm/src/src-proto/ch/usi/dag/dislreserver/Protocol.java b/shvm-server/src/ch/usi/dag/dislreserver/Protocol.java similarity index 100% rename from shvm/src/src-proto/ch/usi/dag/dislreserver/Protocol.java rename to shvm-server/src/ch/usi/dag/dislreserver/Protocol.java diff --git a/shvm/src/src-dislreserver/ch/usi/dag/dislreserver/RequestDispatcher.java b/shvm-server/src/ch/usi/dag/dislreserver/RequestDispatcher.java similarity index 100% rename from shvm/src/src-dislreserver/ch/usi/dag/dislreserver/RequestDispatcher.java rename to shvm-server/src/ch/usi/dag/dislreserver/RequestDispatcher.java diff --git a/shvm/build.xml b/shvm/build.xml index 9baa6ae8..d729257e 100644 --- a/shvm/build.xml +++ b/shvm/build.xml @@ -1,4 +1,4 @@ - + - - - - - @@ -29,9 +21,13 @@ - - - + + + + + + - - @@ -66,37 +56,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -134,7 +97,7 @@ Clean the build directory --> - + diff --git a/shvm/src/src-msg-analyze/ch/usi/dag/dislreserver/AnalysisHandler.java b/shvm/src/src-msg-analyze/ch/usi/dag/dislreserver/AnalysisHandler.java index e3d4b845..9de6af26 100644 --- a/shvm/src/src-msg-analyze/ch/usi/dag/dislreserver/AnalysisHandler.java +++ b/shvm/src/src-msg-analyze/ch/usi/dag/dislreserver/AnalysisHandler.java @@ -1,7 +1,6 @@ package ch.usi.dag.dislreserver; import java.io.DataInputStream; -import java.io.DataOutputStream; import java.io.IOException; import java.lang.reflect.Method; import java.util.LinkedList; @@ -9,7 +8,6 @@ import java.util.List; import ch.usi.dag.dislreserver.AnalysisResolver.AnalysisMethodHolder; import ch.usi.dag.dislreserver.shadow.ShadowObject; -import ch.usi.dag.dislreserver.shadow.ShadowObjectTable; import ch.usi.dag.util.logging.Logger; diff --git a/shvm/src/src-msg-analyze/ch/usi/dag/dislreserver/AnalysisResolver.java b/shvm/src/src-msg-analyze/ch/usi/dag/dislreserver/AnalysisResolver.java index 110df12a..da2a5cb8 100644 --- a/shvm/src/src-msg-analyze/ch/usi/dag/dislreserver/AnalysisResolver.java +++ b/shvm/src/src-msg-analyze/ch/usi/dag/dislreserver/AnalysisResolver.java @@ -116,11 +116,11 @@ final class AnalysisResolver { } catch (ClassNotFoundException e) { - throw new DiSLREServerException(e); + throw new DiSLREServerException (e); } catch (InstantiationException e) { - throw new DiSLREServerException(e); + throw new DiSLREServerException (e); } catch (IllegalAccessException e) { - throw new DiSLREServerException(e); + throw new DiSLREServerException (e); } } diff --git a/shvm/src/src-reqdispatch/ch/usi/dag/dislreserver/RequestHandler.java b/shvm/src/src-reqdispatch/ch/usi/dag/dislreserver/RequestHandler.java index 47c6ffff..b021285a 100644 --- a/shvm/src/src-reqdispatch/ch/usi/dag/dislreserver/RequestHandler.java +++ b/shvm/src/src-reqdispatch/ch/usi/dag/dislreserver/RequestHandler.java @@ -3,7 +3,6 @@ package ch.usi.dag.dislreserver; import java.io.DataInputStream; import java.io.DataOutputStream; -import ch.usi.dag.dislreserver.DiSLREServerException; public interface RequestHandler { diff --git a/shvm/src/src-dislreserver/ch/usi/dag/dislreserver/DiSLREServerException.java b/shvm/src/src-server-api/ch/usi/dag/dislreserver/DiSLREServerException.java similarity index 100% rename from shvm/src/src-dislreserver/ch/usi/dag/dislreserver/DiSLREServerException.java rename to shvm/src/src-server-api/ch/usi/dag/dislreserver/DiSLREServerException.java diff --git a/shvm/src/src-dislreserver/ch/usi/dag/dislreserver/DiSLREServerFatalException.java b/shvm/src/src-server-api/ch/usi/dag/dislreserver/DiSLREServerFatalException.java similarity index 100% rename from shvm/src/src-dislreserver/ch/usi/dag/dislreserver/DiSLREServerFatalException.java rename to shvm/src/src-server-api/ch/usi/dag/dislreserver/DiSLREServerFatalException.java diff --git a/shvm/src/src-dislreserver/ch/usi/dag/dislreserver/SHVMContext.java b/shvm/src/src-server-api/ch/usi/dag/dislreserver/SHVMContext.java similarity index 100% rename from shvm/src/src-dislreserver/ch/usi/dag/dislreserver/SHVMContext.java rename to shvm/src/src-server-api/ch/usi/dag/dislreserver/SHVMContext.java diff --git a/shvm/src/src-dislreserver/ch/usi/dag/dislreserver/SHVMImpl.java b/shvm/src/src-server-api/ch/usi/dag/dislreserver/SHVMImpl.java similarity index 100% rename from shvm/src/src-dislreserver/ch/usi/dag/dislreserver/SHVMImpl.java rename to shvm/src/src-server-api/ch/usi/dag/dislreserver/SHVMImpl.java diff --git a/shvm/src/src-util/ch/usi/dag/dislreserver/Logging.java b/shvm/src/src-util/ch/usi/dag/dislreserver/Logging.java index 94e78032..71ba7022 100644 --- a/shvm/src/src-util/ch/usi/dag/dislreserver/Logging.java +++ b/shvm/src/src-util/ch/usi/dag/dislreserver/Logging.java @@ -15,7 +15,7 @@ public final class Logging { * Package name of the framework entry class. */ private static final String - __OLD_PREFIX__ = DiSLREServer.class.getPackage ().getName (); + __OLD_PREFIX__ = SHVM.class.getPackage ().getName (); /** * Default prefix for top-level logs. -- GitLab From 9dec26df79f2987aca67b4cfb65b7aea2f03ce10 Mon Sep 17 00:00:00 2001 From: Vit Kabele Date: Fri, 8 Mar 2019 18:10:08 +0100 Subject: [PATCH 02/30] Unified protocol --- .classpath | 49 - .project | 17 - disl-server/.gitignore | 2 + .../ch/usi/dag/dislre/protocol/Analysis.java | 3275 ++++++++++ .../src/ch/usi/dag/dislre/protocol/DiSL.java | 3032 +++++++++ .../src/ch/usi/dag/dislre/protocol/Main.java | 3896 +++++++++++ .../usi/dag/dislserver/ConnectionHandler.java | 5 +- .../src/ch/usi/dag/dislserver/Protocol.java | 5688 ----------------- .../usi/dag/dislserver/RequestProcessor.java | 14 +- disl/.gitignore | 2 + shvm-server/.gitignore | 2 + .../ch/usi/dag/dislre/protocol/Analysis.java | 3275 ++++++++++ .../src/ch/usi/dag/dislre/protocol/DiSL.java | 3032 +++++++++ .../src/ch/usi/dag/dislre/protocol/Main.java | 3896 +++++++++++ .../ch/usi/dag/dislreserver/DiSLREServer.java | 8 +- .../dag/dislreserver/RequestDispatcher.java | 33 +- shvm/.gitignore | 2 + src-disl-agent/CMakeLists.txt | 42 + src-disl-agent/Makefile | 10 +- src-disl-agent/dislagent.c | 4 +- src-disl-agent/dislserver.pb-c.h | 501 -- .../disl.pb-c.c} | 599 +- src-disl-agent/protocol/disl.pb-c.h | 276 + src-disl-agent/protocol/main.pb-c.c | 652 ++ src-disl-agent/protocol/main.pb-c.h | 289 + src-disl-agent/{ => protocol}/protobuf-c.c | 0 src-disl-agent/{ => protocol}/protobuf-c.h | 0 .../protocol}/shvm.pb-c.c | 263 - .../protocol}/shvm.pb-c.h | 96 - src-disl-agent/sessions.c | 2 +- src-disl-agent/sessions.h | 2 +- src-disl-proto/dislserver.proto | 95 - {src-shvm-proto => src-proto}/README.md | 0 src-proto/disl.proto | 51 + src-proto/main.proto | 84 + {src-shvm-proto => src-proto}/shvm.proto | 22 +- src-shvm-agent/Makefile | 3 +- src-shvm-agent/protocol/disl.pb-c.c | 655 ++ src-shvm-agent/protocol/disl.pb-c.h | 276 + src-shvm-agent/protocol/main.pb-c.c | 652 ++ src-shvm-agent/protocol/main.pb-c.h | 289 + src-shvm-agent/{ => protocol}/protobuf-c.c | 0 src-shvm-agent/{ => protocol}/protobuf-c.h | 0 src-shvm-agent/protocol/shvm.pb-c.c | 843 +++ src-shvm-agent/protocol/shvm.pb-c.h | 322 + src-shvm-agent/shared/bufferpack.c | 16 +- src-shvm-agent/shared/bufferpack.h | 4 +- src-shvm-agent/shared/messagetype.c | 61 +- 48 files changed, 24968 insertions(+), 7369 deletions(-) delete mode 100644 .classpath delete mode 100644 .project create mode 100644 disl-server/src/ch/usi/dag/dislre/protocol/Analysis.java create mode 100644 disl-server/src/ch/usi/dag/dislre/protocol/DiSL.java create mode 100644 disl-server/src/ch/usi/dag/dislre/protocol/Main.java delete mode 100644 disl-server/src/ch/usi/dag/dislserver/Protocol.java create mode 100644 shvm-server/src/ch/usi/dag/dislre/protocol/Analysis.java create mode 100644 shvm-server/src/ch/usi/dag/dislre/protocol/DiSL.java create mode 100644 shvm-server/src/ch/usi/dag/dislre/protocol/Main.java create mode 100644 src-disl-agent/CMakeLists.txt delete mode 100644 src-disl-agent/dislserver.pb-c.h rename src-disl-agent/{dislserver.pb-c.c => protocol/disl.pb-c.c} (51%) create mode 100644 src-disl-agent/protocol/disl.pb-c.h create mode 100644 src-disl-agent/protocol/main.pb-c.c create mode 100644 src-disl-agent/protocol/main.pb-c.h rename src-disl-agent/{ => protocol}/protobuf-c.c (100%) rename src-disl-agent/{ => protocol}/protobuf-c.h (100%) rename {src-shvm-agent => src-disl-agent/protocol}/shvm.pb-c.c (75%) rename {src-shvm-agent => src-disl-agent/protocol}/shvm.pb-c.h (77%) delete mode 100644 src-disl-proto/dislserver.proto rename {src-shvm-proto => src-proto}/README.md (100%) create mode 100644 src-proto/disl.proto create mode 100644 src-proto/main.proto rename {src-shvm-proto => src-proto}/shvm.proto (57%) create mode 100644 src-shvm-agent/protocol/disl.pb-c.c create mode 100644 src-shvm-agent/protocol/disl.pb-c.h create mode 100644 src-shvm-agent/protocol/main.pb-c.c create mode 100644 src-shvm-agent/protocol/main.pb-c.h rename src-shvm-agent/{ => protocol}/protobuf-c.c (100%) rename src-shvm-agent/{ => protocol}/protobuf-c.h (100%) create mode 100644 src-shvm-agent/protocol/shvm.pb-c.c create mode 100644 src-shvm-agent/protocol/shvm.pb-c.h diff --git a/.classpath b/.classpath deleted file mode 100644 index f0bf61c1..00000000 --- a/.classpath +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.project b/.project deleted file mode 100644 index 587ce7f0..00000000 --- a/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - DiSL - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - diff --git a/disl-server/.gitignore b/disl-server/.gitignore index 53752db2..e7ce4b94 100644 --- a/disl-server/.gitignore +++ b/disl-server/.gitignore @@ -1 +1,3 @@ output + +*.iml diff --git a/disl-server/src/ch/usi/dag/dislre/protocol/Analysis.java b/disl-server/src/ch/usi/dag/dislre/protocol/Analysis.java new file mode 100644 index 00000000..e6a6f140 --- /dev/null +++ b/disl-server/src/ch/usi/dag/dislre/protocol/Analysis.java @@ -0,0 +1,3275 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: shvm.proto + +package ch.usi.dag.dislre.protocol; + +public final class Analysis { + private Analysis() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public interface AnalyzeOrBuilder extends + // @@protoc_insertion_point(interface_extends:Analyze) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int64 OrderingID = 1; + */ + long getOrderingID(); + + /** + * optional int32 InvocationCount = 2; + */ + int getInvocationCount(); + + /** + * optional bytes RawData = 3; + */ + com.google.protobuf.ByteString getRawData(); + } + /** + * Protobuf type {@code Analyze} + */ + public static final class Analyze extends + com.google.protobuf.GeneratedMessageLite< + Analyze, Analyze.Builder> implements + // @@protoc_insertion_point(message_implements:Analyze) + AnalyzeOrBuilder { + private Analyze() { + rawData_ = com.google.protobuf.ByteString.EMPTY; + } + public static final int ORDERINGID_FIELD_NUMBER = 1; + private long orderingID_; + /** + * optional int64 OrderingID = 1; + */ + public long getOrderingID() { + return orderingID_; + } + /** + * optional int64 OrderingID = 1; + */ + private void setOrderingID(long value) { + + orderingID_ = value; + } + /** + * optional int64 OrderingID = 1; + */ + private void clearOrderingID() { + + orderingID_ = 0L; + } + + public static final int INVOCATIONCOUNT_FIELD_NUMBER = 2; + private int invocationCount_; + /** + * optional int32 InvocationCount = 2; + */ + public int getInvocationCount() { + return invocationCount_; + } + /** + * optional int32 InvocationCount = 2; + */ + private void setInvocationCount(int value) { + + invocationCount_ = value; + } + /** + * optional int32 InvocationCount = 2; + */ + private void clearInvocationCount() { + + invocationCount_ = 0; + } + + public static final int RAWDATA_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString rawData_; + /** + * optional bytes RawData = 3; + */ + public com.google.protobuf.ByteString getRawData() { + return rawData_; + } + /** + * optional bytes RawData = 3; + */ + private void setRawData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + rawData_ = value; + } + /** + * optional bytes RawData = 3; + */ + private void clearRawData() { + + rawData_ = getDefaultInstance().getRawData(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (orderingID_ != 0L) { + output.writeInt64(1, orderingID_); + } + if (invocationCount_ != 0) { + output.writeInt32(2, invocationCount_); + } + if (!rawData_.isEmpty()) { + output.writeBytes(3, rawData_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (orderingID_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, orderingID_); + } + if (invocationCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, invocationCount_); + } + if (!rawData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, rawData_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.Analyze prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code Analyze} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.Analyze, Builder> implements + // @@protoc_insertion_point(builder_implements:Analyze) + ch.usi.dag.dislre.protocol.Analysis.AnalyzeOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.Analyze.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int64 OrderingID = 1; + */ + public long getOrderingID() { + return instance.getOrderingID(); + } + /** + * optional int64 OrderingID = 1; + */ + public Builder setOrderingID(long value) { + copyOnWrite(); + instance.setOrderingID(value); + return this; + } + /** + * optional int64 OrderingID = 1; + */ + public Builder clearOrderingID() { + copyOnWrite(); + instance.clearOrderingID(); + return this; + } + + /** + * optional int32 InvocationCount = 2; + */ + public int getInvocationCount() { + return instance.getInvocationCount(); + } + /** + * optional int32 InvocationCount = 2; + */ + public Builder setInvocationCount(int value) { + copyOnWrite(); + instance.setInvocationCount(value); + return this; + } + /** + * optional int32 InvocationCount = 2; + */ + public Builder clearInvocationCount() { + copyOnWrite(); + instance.clearInvocationCount(); + return this; + } + + /** + * optional bytes RawData = 3; + */ + public com.google.protobuf.ByteString getRawData() { + return instance.getRawData(); + } + /** + * optional bytes RawData = 3; + */ + public Builder setRawData(com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setRawData(value); + return this; + } + /** + * optional bytes RawData = 3; + */ + public Builder clearRawData() { + copyOnWrite(); + instance.clearRawData(); + return this; + } + + // @@protoc_insertion_point(builder_scope:Analyze) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.Analyze(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.Analyze other = (ch.usi.dag.dislre.protocol.Analysis.Analyze) arg1; + orderingID_ = visitor.visitLong(orderingID_ != 0L, orderingID_, + other.orderingID_ != 0L, other.orderingID_); + invocationCount_ = visitor.visitInt(invocationCount_ != 0, invocationCount_, + other.invocationCount_ != 0, other.invocationCount_); + rawData_ = visitor.visitByteString(rawData_ != com.google.protobuf.ByteString.EMPTY, rawData_, + other.rawData_ != com.google.protobuf.ByteString.EMPTY, other.rawData_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + orderingID_ = input.readInt64(); + break; + } + case 16: { + + invocationCount_ = input.readInt32(); + break; + } + case 26: { + + rawData_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.Analyze.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:Analyze) + private static final ch.usi.dag.dislre.protocol.Analysis.Analyze DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Analyze(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.Analyze getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ClassInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:ClassInfo) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int64 classTag = 1; + */ + long getClassTag(); + + /** + * optional string ClassSignature = 2; + */ + java.lang.String getClassSignature(); + /** + * optional string ClassSignature = 2; + */ + com.google.protobuf.ByteString + getClassSignatureBytes(); + + /** + * optional string ClassGeneric = 3; + */ + java.lang.String getClassGeneric(); + /** + * optional string ClassGeneric = 3; + */ + com.google.protobuf.ByteString + getClassGenericBytes(); + + /** + * optional int64 LoaderTag = 4; + */ + long getLoaderTag(); + + /** + * optional int64 SuperClassTag = 5; + */ + long getSuperClassTag(); + } + /** + * Protobuf type {@code ClassInfo} + */ + public static final class ClassInfo extends + com.google.protobuf.GeneratedMessageLite< + ClassInfo, ClassInfo.Builder> implements + // @@protoc_insertion_point(message_implements:ClassInfo) + ClassInfoOrBuilder { + private ClassInfo() { + classSignature_ = ""; + classGeneric_ = ""; + } + public static final int CLASSTAG_FIELD_NUMBER = 1; + private long classTag_; + /** + * optional int64 classTag = 1; + */ + public long getClassTag() { + return classTag_; + } + /** + * optional int64 classTag = 1; + */ + private void setClassTag(long value) { + + classTag_ = value; + } + /** + * optional int64 classTag = 1; + */ + private void clearClassTag() { + + classTag_ = 0L; + } + + public static final int CLASSSIGNATURE_FIELD_NUMBER = 2; + private java.lang.String classSignature_; + /** + * optional string ClassSignature = 2; + */ + public java.lang.String getClassSignature() { + return classSignature_; + } + /** + * optional string ClassSignature = 2; + */ + public com.google.protobuf.ByteString + getClassSignatureBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(classSignature_); + } + /** + * optional string ClassSignature = 2; + */ + private void setClassSignature( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + classSignature_ = value; + } + /** + * optional string ClassSignature = 2; + */ + private void clearClassSignature() { + + classSignature_ = getDefaultInstance().getClassSignature(); + } + /** + * optional string ClassSignature = 2; + */ + private void setClassSignatureBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + classSignature_ = value.toStringUtf8(); + } + + public static final int CLASSGENERIC_FIELD_NUMBER = 3; + private java.lang.String classGeneric_; + /** + * optional string ClassGeneric = 3; + */ + public java.lang.String getClassGeneric() { + return classGeneric_; + } + /** + * optional string ClassGeneric = 3; + */ + public com.google.protobuf.ByteString + getClassGenericBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(classGeneric_); + } + /** + * optional string ClassGeneric = 3; + */ + private void setClassGeneric( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + classGeneric_ = value; + } + /** + * optional string ClassGeneric = 3; + */ + private void clearClassGeneric() { + + classGeneric_ = getDefaultInstance().getClassGeneric(); + } + /** + * optional string ClassGeneric = 3; + */ + private void setClassGenericBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + classGeneric_ = value.toStringUtf8(); + } + + public static final int LOADERTAG_FIELD_NUMBER = 4; + private long loaderTag_; + /** + * optional int64 LoaderTag = 4; + */ + public long getLoaderTag() { + return loaderTag_; + } + /** + * optional int64 LoaderTag = 4; + */ + private void setLoaderTag(long value) { + + loaderTag_ = value; + } + /** + * optional int64 LoaderTag = 4; + */ + private void clearLoaderTag() { + + loaderTag_ = 0L; + } + + public static final int SUPERCLASSTAG_FIELD_NUMBER = 5; + private long superClassTag_; + /** + * optional int64 SuperClassTag = 5; + */ + public long getSuperClassTag() { + return superClassTag_; + } + /** + * optional int64 SuperClassTag = 5; + */ + private void setSuperClassTag(long value) { + + superClassTag_ = value; + } + /** + * optional int64 SuperClassTag = 5; + */ + private void clearSuperClassTag() { + + superClassTag_ = 0L; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (classTag_ != 0L) { + output.writeInt64(1, classTag_); + } + if (!classSignature_.isEmpty()) { + output.writeString(2, getClassSignature()); + } + if (!classGeneric_.isEmpty()) { + output.writeString(3, getClassGeneric()); + } + if (loaderTag_ != 0L) { + output.writeInt64(4, loaderTag_); + } + if (superClassTag_ != 0L) { + output.writeInt64(5, superClassTag_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (classTag_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, classTag_); + } + if (!classSignature_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getClassSignature()); + } + if (!classGeneric_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(3, getClassGeneric()); + } + if (loaderTag_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, loaderTag_); + } + if (superClassTag_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, superClassTag_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.ClassInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code ClassInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.ClassInfo, Builder> implements + // @@protoc_insertion_point(builder_implements:ClassInfo) + ch.usi.dag.dislre.protocol.Analysis.ClassInfoOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.ClassInfo.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int64 classTag = 1; + */ + public long getClassTag() { + return instance.getClassTag(); + } + /** + * optional int64 classTag = 1; + */ + public Builder setClassTag(long value) { + copyOnWrite(); + instance.setClassTag(value); + return this; + } + /** + * optional int64 classTag = 1; + */ + public Builder clearClassTag() { + copyOnWrite(); + instance.clearClassTag(); + return this; + } + + /** + * optional string ClassSignature = 2; + */ + public java.lang.String getClassSignature() { + return instance.getClassSignature(); + } + /** + * optional string ClassSignature = 2; + */ + public com.google.protobuf.ByteString + getClassSignatureBytes() { + return instance.getClassSignatureBytes(); + } + /** + * optional string ClassSignature = 2; + */ + public Builder setClassSignature( + java.lang.String value) { + copyOnWrite(); + instance.setClassSignature(value); + return this; + } + /** + * optional string ClassSignature = 2; + */ + public Builder clearClassSignature() { + copyOnWrite(); + instance.clearClassSignature(); + return this; + } + /** + * optional string ClassSignature = 2; + */ + public Builder setClassSignatureBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setClassSignatureBytes(value); + return this; + } + + /** + * optional string ClassGeneric = 3; + */ + public java.lang.String getClassGeneric() { + return instance.getClassGeneric(); + } + /** + * optional string ClassGeneric = 3; + */ + public com.google.protobuf.ByteString + getClassGenericBytes() { + return instance.getClassGenericBytes(); + } + /** + * optional string ClassGeneric = 3; + */ + public Builder setClassGeneric( + java.lang.String value) { + copyOnWrite(); + instance.setClassGeneric(value); + return this; + } + /** + * optional string ClassGeneric = 3; + */ + public Builder clearClassGeneric() { + copyOnWrite(); + instance.clearClassGeneric(); + return this; + } + /** + * optional string ClassGeneric = 3; + */ + public Builder setClassGenericBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setClassGenericBytes(value); + return this; + } + + /** + * optional int64 LoaderTag = 4; + */ + public long getLoaderTag() { + return instance.getLoaderTag(); + } + /** + * optional int64 LoaderTag = 4; + */ + public Builder setLoaderTag(long value) { + copyOnWrite(); + instance.setLoaderTag(value); + return this; + } + /** + * optional int64 LoaderTag = 4; + */ + public Builder clearLoaderTag() { + copyOnWrite(); + instance.clearLoaderTag(); + return this; + } + + /** + * optional int64 SuperClassTag = 5; + */ + public long getSuperClassTag() { + return instance.getSuperClassTag(); + } + /** + * optional int64 SuperClassTag = 5; + */ + public Builder setSuperClassTag(long value) { + copyOnWrite(); + instance.setSuperClassTag(value); + return this; + } + /** + * optional int64 SuperClassTag = 5; + */ + public Builder clearSuperClassTag() { + copyOnWrite(); + instance.clearSuperClassTag(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ClassInfo) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.ClassInfo(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.ClassInfo other = (ch.usi.dag.dislre.protocol.Analysis.ClassInfo) arg1; + classTag_ = visitor.visitLong(classTag_ != 0L, classTag_, + other.classTag_ != 0L, other.classTag_); + classSignature_ = visitor.visitString(!classSignature_.isEmpty(), classSignature_, + !other.classSignature_.isEmpty(), other.classSignature_); + classGeneric_ = visitor.visitString(!classGeneric_.isEmpty(), classGeneric_, + !other.classGeneric_.isEmpty(), other.classGeneric_); + loaderTag_ = visitor.visitLong(loaderTag_ != 0L, loaderTag_, + other.loaderTag_ != 0L, other.loaderTag_); + superClassTag_ = visitor.visitLong(superClassTag_ != 0L, superClassTag_, + other.superClassTag_ != 0L, other.superClassTag_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + classTag_ = input.readInt64(); + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + classSignature_ = s; + break; + } + case 26: { + String s = input.readStringRequireUtf8(); + + classGeneric_ = s; + break; + } + case 32: { + + loaderTag_ = input.readInt64(); + break; + } + case 40: { + + superClassTag_ = input.readInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.ClassInfo.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:ClassInfo) + private static final ch.usi.dag.dislre.protocol.Analysis.ClassInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ClassInfo(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface NewClassOrBuilder extends + // @@protoc_insertion_point(interface_extends:NewClass) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional string ClassName = 1; + */ + java.lang.String getClassName(); + /** + * optional string ClassName = 1; + */ + com.google.protobuf.ByteString + getClassNameBytes(); + + /** + * optional int64 ClassLoaderTag = 2; + */ + long getClassLoaderTag(); + + /** + * optional bytes ClassData = 4; + */ + com.google.protobuf.ByteString getClassData(); + } + /** + * Protobuf type {@code NewClass} + */ + public static final class NewClass extends + com.google.protobuf.GeneratedMessageLite< + NewClass, NewClass.Builder> implements + // @@protoc_insertion_point(message_implements:NewClass) + NewClassOrBuilder { + private NewClass() { + className_ = ""; + classData_ = com.google.protobuf.ByteString.EMPTY; + } + public static final int CLASSNAME_FIELD_NUMBER = 1; + private java.lang.String className_; + /** + * optional string ClassName = 1; + */ + public java.lang.String getClassName() { + return className_; + } + /** + * optional string ClassName = 1; + */ + public com.google.protobuf.ByteString + getClassNameBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(className_); + } + /** + * optional string ClassName = 1; + */ + private void setClassName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + className_ = value; + } + /** + * optional string ClassName = 1; + */ + private void clearClassName() { + + className_ = getDefaultInstance().getClassName(); + } + /** + * optional string ClassName = 1; + */ + private void setClassNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + className_ = value.toStringUtf8(); + } + + public static final int CLASSLOADERTAG_FIELD_NUMBER = 2; + private long classLoaderTag_; + /** + * optional int64 ClassLoaderTag = 2; + */ + public long getClassLoaderTag() { + return classLoaderTag_; + } + /** + * optional int64 ClassLoaderTag = 2; + */ + private void setClassLoaderTag(long value) { + + classLoaderTag_ = value; + } + /** + * optional int64 ClassLoaderTag = 2; + */ + private void clearClassLoaderTag() { + + classLoaderTag_ = 0L; + } + + public static final int CLASSDATA_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString classData_; + /** + * optional bytes ClassData = 4; + */ + public com.google.protobuf.ByteString getClassData() { + return classData_; + } + /** + * optional bytes ClassData = 4; + */ + private void setClassData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + classData_ = value; + } + /** + * optional bytes ClassData = 4; + */ + private void clearClassData() { + + classData_ = getDefaultInstance().getClassData(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!className_.isEmpty()) { + output.writeString(1, getClassName()); + } + if (classLoaderTag_ != 0L) { + output.writeInt64(2, classLoaderTag_); + } + if (!classData_.isEmpty()) { + output.writeBytes(4, classData_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!className_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(1, getClassName()); + } + if (classLoaderTag_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, classLoaderTag_); + } + if (!classData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, classData_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.NewClass prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code NewClass} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.NewClass, Builder> implements + // @@protoc_insertion_point(builder_implements:NewClass) + ch.usi.dag.dislre.protocol.Analysis.NewClassOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.NewClass.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional string ClassName = 1; + */ + public java.lang.String getClassName() { + return instance.getClassName(); + } + /** + * optional string ClassName = 1; + */ + public com.google.protobuf.ByteString + getClassNameBytes() { + return instance.getClassNameBytes(); + } + /** + * optional string ClassName = 1; + */ + public Builder setClassName( + java.lang.String value) { + copyOnWrite(); + instance.setClassName(value); + return this; + } + /** + * optional string ClassName = 1; + */ + public Builder clearClassName() { + copyOnWrite(); + instance.clearClassName(); + return this; + } + /** + * optional string ClassName = 1; + */ + public Builder setClassNameBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setClassNameBytes(value); + return this; + } + + /** + * optional int64 ClassLoaderTag = 2; + */ + public long getClassLoaderTag() { + return instance.getClassLoaderTag(); + } + /** + * optional int64 ClassLoaderTag = 2; + */ + public Builder setClassLoaderTag(long value) { + copyOnWrite(); + instance.setClassLoaderTag(value); + return this; + } + /** + * optional int64 ClassLoaderTag = 2; + */ + public Builder clearClassLoaderTag() { + copyOnWrite(); + instance.clearClassLoaderTag(); + return this; + } + + /** + * optional bytes ClassData = 4; + */ + public com.google.protobuf.ByteString getClassData() { + return instance.getClassData(); + } + /** + * optional bytes ClassData = 4; + */ + public Builder setClassData(com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setClassData(value); + return this; + } + /** + * optional bytes ClassData = 4; + */ + public Builder clearClassData() { + copyOnWrite(); + instance.clearClassData(); + return this; + } + + // @@protoc_insertion_point(builder_scope:NewClass) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.NewClass(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.NewClass other = (ch.usi.dag.dislre.protocol.Analysis.NewClass) arg1; + className_ = visitor.visitString(!className_.isEmpty(), className_, + !other.className_.isEmpty(), other.className_); + classLoaderTag_ = visitor.visitLong(classLoaderTag_ != 0L, classLoaderTag_, + other.classLoaderTag_ != 0L, other.classLoaderTag_); + classData_ = visitor.visitByteString(classData_ != com.google.protobuf.ByteString.EMPTY, classData_, + other.classData_ != com.google.protobuf.ByteString.EMPTY, other.classData_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + String s = input.readStringRequireUtf8(); + + className_ = s; + break; + } + case 16: { + + classLoaderTag_ = input.readInt64(); + break; + } + case 34: { + + classData_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.NewClass.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:NewClass) + private static final ch.usi.dag.dislre.protocol.Analysis.NewClass DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new NewClass(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.NewClass getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ObjectFreeOrBuilder extends + // @@protoc_insertion_point(interface_extends:ObjectFree) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int32 Count = 1; + */ + int getCount(); + + /** + * optional bytes RawData = 2; + */ + com.google.protobuf.ByteString getRawData(); + } + /** + * Protobuf type {@code ObjectFree} + */ + public static final class ObjectFree extends + com.google.protobuf.GeneratedMessageLite< + ObjectFree, ObjectFree.Builder> implements + // @@protoc_insertion_point(message_implements:ObjectFree) + ObjectFreeOrBuilder { + private ObjectFree() { + rawData_ = com.google.protobuf.ByteString.EMPTY; + } + public static final int COUNT_FIELD_NUMBER = 1; + private int count_; + /** + * optional int32 Count = 1; + */ + public int getCount() { + return count_; + } + /** + * optional int32 Count = 1; + */ + private void setCount(int value) { + + count_ = value; + } + /** + * optional int32 Count = 1; + */ + private void clearCount() { + + count_ = 0; + } + + public static final int RAWDATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString rawData_; + /** + * optional bytes RawData = 2; + */ + public com.google.protobuf.ByteString getRawData() { + return rawData_; + } + /** + * optional bytes RawData = 2; + */ + private void setRawData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + rawData_ = value; + } + /** + * optional bytes RawData = 2; + */ + private void clearRawData() { + + rawData_ = getDefaultInstance().getRawData(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (count_ != 0) { + output.writeInt32(1, count_); + } + if (!rawData_.isEmpty()) { + output.writeBytes(2, rawData_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (count_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, count_); + } + if (!rawData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, rawData_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.ObjectFree prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code ObjectFree} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.ObjectFree, Builder> implements + // @@protoc_insertion_point(builder_implements:ObjectFree) + ch.usi.dag.dislre.protocol.Analysis.ObjectFreeOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.ObjectFree.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int32 Count = 1; + */ + public int getCount() { + return instance.getCount(); + } + /** + * optional int32 Count = 1; + */ + public Builder setCount(int value) { + copyOnWrite(); + instance.setCount(value); + return this; + } + /** + * optional int32 Count = 1; + */ + public Builder clearCount() { + copyOnWrite(); + instance.clearCount(); + return this; + } + + /** + * optional bytes RawData = 2; + */ + public com.google.protobuf.ByteString getRawData() { + return instance.getRawData(); + } + /** + * optional bytes RawData = 2; + */ + public Builder setRawData(com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setRawData(value); + return this; + } + /** + * optional bytes RawData = 2; + */ + public Builder clearRawData() { + copyOnWrite(); + instance.clearRawData(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ObjectFree) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.ObjectFree(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.ObjectFree other = (ch.usi.dag.dislre.protocol.Analysis.ObjectFree) arg1; + count_ = visitor.visitInt(count_ != 0, count_, + other.count_ != 0, other.count_); + rawData_ = visitor.visitByteString(rawData_ != com.google.protobuf.ByteString.EMPTY, rawData_, + other.rawData_ != com.google.protobuf.ByteString.EMPTY, other.rawData_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + count_ = input.readInt32(); + break; + } + case 18: { + + rawData_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.ObjectFree.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:ObjectFree) + private static final ch.usi.dag.dislre.protocol.Analysis.ObjectFree DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ObjectFree(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface RegisterAnalysisOrBuilder extends + // @@protoc_insertion_point(interface_extends:RegisterAnalysis) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int32 AnalysisId = 1; + */ + int getAnalysisId(); + + /** + * optional string Descriptor = 2; + */ + java.lang.String getDescriptor(); + /** + * optional string Descriptor = 2; + */ + com.google.protobuf.ByteString + getDescriptorBytes(); + } + /** + * Protobuf type {@code RegisterAnalysis} + */ + public static final class RegisterAnalysis extends + com.google.protobuf.GeneratedMessageLite< + RegisterAnalysis, RegisterAnalysis.Builder> implements + // @@protoc_insertion_point(message_implements:RegisterAnalysis) + RegisterAnalysisOrBuilder { + private RegisterAnalysis() { + descriptor_ = ""; + } + public static final int ANALYSISID_FIELD_NUMBER = 1; + private int analysisId_; + /** + * optional int32 AnalysisId = 1; + */ + public int getAnalysisId() { + return analysisId_; + } + /** + * optional int32 AnalysisId = 1; + */ + private void setAnalysisId(int value) { + + analysisId_ = value; + } + /** + * optional int32 AnalysisId = 1; + */ + private void clearAnalysisId() { + + analysisId_ = 0; + } + + public static final int DESCRIPTOR_FIELD_NUMBER = 2; + private java.lang.String descriptor_; + /** + * optional string Descriptor = 2; + */ + public java.lang.String getDescriptor() { + return descriptor_; + } + /** + * optional string Descriptor = 2; + */ + public com.google.protobuf.ByteString + getDescriptorBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(descriptor_); + } + /** + * optional string Descriptor = 2; + */ + private void setDescriptor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + descriptor_ = value; + } + /** + * optional string Descriptor = 2; + */ + private void clearDescriptor() { + + descriptor_ = getDefaultInstance().getDescriptor(); + } + /** + * optional string Descriptor = 2; + */ + private void setDescriptorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + descriptor_ = value.toStringUtf8(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (analysisId_ != 0) { + output.writeInt32(1, analysisId_); + } + if (!descriptor_.isEmpty()) { + output.writeString(2, getDescriptor()); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (analysisId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, analysisId_); + } + if (!descriptor_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getDescriptor()); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code RegisterAnalysis} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis, Builder> implements + // @@protoc_insertion_point(builder_implements:RegisterAnalysis) + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysisOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int32 AnalysisId = 1; + */ + public int getAnalysisId() { + return instance.getAnalysisId(); + } + /** + * optional int32 AnalysisId = 1; + */ + public Builder setAnalysisId(int value) { + copyOnWrite(); + instance.setAnalysisId(value); + return this; + } + /** + * optional int32 AnalysisId = 1; + */ + public Builder clearAnalysisId() { + copyOnWrite(); + instance.clearAnalysisId(); + return this; + } + + /** + * optional string Descriptor = 2; + */ + public java.lang.String getDescriptor() { + return instance.getDescriptor(); + } + /** + * optional string Descriptor = 2; + */ + public com.google.protobuf.ByteString + getDescriptorBytes() { + return instance.getDescriptorBytes(); + } + /** + * optional string Descriptor = 2; + */ + public Builder setDescriptor( + java.lang.String value) { + copyOnWrite(); + instance.setDescriptor(value); + return this; + } + /** + * optional string Descriptor = 2; + */ + public Builder clearDescriptor() { + copyOnWrite(); + instance.clearDescriptor(); + return this; + } + /** + * optional string Descriptor = 2; + */ + public Builder setDescriptorBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setDescriptorBytes(value); + return this; + } + + // @@protoc_insertion_point(builder_scope:RegisterAnalysis) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis other = (ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis) arg1; + analysisId_ = visitor.visitInt(analysisId_ != 0, analysisId_, + other.analysisId_ != 0, other.analysisId_); + descriptor_ = visitor.visitString(!descriptor_.isEmpty(), descriptor_, + !other.descriptor_.isEmpty(), other.descriptor_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + analysisId_ = input.readInt32(); + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + descriptor_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:RegisterAnalysis) + private static final ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new RegisterAnalysis(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface StringInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:StringInfo) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int64 StringTag = 1; + */ + long getStringTag(); + + /** + * optional string StringData = 2; + */ + java.lang.String getStringData(); + /** + * optional string StringData = 2; + */ + com.google.protobuf.ByteString + getStringDataBytes(); + } + /** + * Protobuf type {@code StringInfo} + */ + public static final class StringInfo extends + com.google.protobuf.GeneratedMessageLite< + StringInfo, StringInfo.Builder> implements + // @@protoc_insertion_point(message_implements:StringInfo) + StringInfoOrBuilder { + private StringInfo() { + stringData_ = ""; + } + public static final int STRINGTAG_FIELD_NUMBER = 1; + private long stringTag_; + /** + * optional int64 StringTag = 1; + */ + public long getStringTag() { + return stringTag_; + } + /** + * optional int64 StringTag = 1; + */ + private void setStringTag(long value) { + + stringTag_ = value; + } + /** + * optional int64 StringTag = 1; + */ + private void clearStringTag() { + + stringTag_ = 0L; + } + + public static final int STRINGDATA_FIELD_NUMBER = 2; + private java.lang.String stringData_; + /** + * optional string StringData = 2; + */ + public java.lang.String getStringData() { + return stringData_; + } + /** + * optional string StringData = 2; + */ + public com.google.protobuf.ByteString + getStringDataBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(stringData_); + } + /** + * optional string StringData = 2; + */ + private void setStringData( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + stringData_ = value; + } + /** + * optional string StringData = 2; + */ + private void clearStringData() { + + stringData_ = getDefaultInstance().getStringData(); + } + /** + * optional string StringData = 2; + */ + private void setStringDataBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + stringData_ = value.toStringUtf8(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (stringTag_ != 0L) { + output.writeInt64(1, stringTag_); + } + if (!stringData_.isEmpty()) { + output.writeString(2, getStringData()); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (stringTag_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, stringTag_); + } + if (!stringData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getStringData()); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.StringInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code StringInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.StringInfo, Builder> implements + // @@protoc_insertion_point(builder_implements:StringInfo) + ch.usi.dag.dislre.protocol.Analysis.StringInfoOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.StringInfo.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int64 StringTag = 1; + */ + public long getStringTag() { + return instance.getStringTag(); + } + /** + * optional int64 StringTag = 1; + */ + public Builder setStringTag(long value) { + copyOnWrite(); + instance.setStringTag(value); + return this; + } + /** + * optional int64 StringTag = 1; + */ + public Builder clearStringTag() { + copyOnWrite(); + instance.clearStringTag(); + return this; + } + + /** + * optional string StringData = 2; + */ + public java.lang.String getStringData() { + return instance.getStringData(); + } + /** + * optional string StringData = 2; + */ + public com.google.protobuf.ByteString + getStringDataBytes() { + return instance.getStringDataBytes(); + } + /** + * optional string StringData = 2; + */ + public Builder setStringData( + java.lang.String value) { + copyOnWrite(); + instance.setStringData(value); + return this; + } + /** + * optional string StringData = 2; + */ + public Builder clearStringData() { + copyOnWrite(); + instance.clearStringData(); + return this; + } + /** + * optional string StringData = 2; + */ + public Builder setStringDataBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setStringDataBytes(value); + return this; + } + + // @@protoc_insertion_point(builder_scope:StringInfo) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.StringInfo(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.StringInfo other = (ch.usi.dag.dislre.protocol.Analysis.StringInfo) arg1; + stringTag_ = visitor.visitLong(stringTag_ != 0L, stringTag_, + other.stringTag_ != 0L, other.stringTag_); + stringData_ = visitor.visitString(!stringData_.isEmpty(), stringData_, + !other.stringData_.isEmpty(), other.stringData_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + stringTag_ = input.readInt64(); + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + stringData_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.StringInfo.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:StringInfo) + private static final ch.usi.dag.dislre.protocol.Analysis.StringInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new StringInfo(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ThreadEndOrBuilder extends + // @@protoc_insertion_point(interface_extends:ThreadEnd) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int64 ThreadId = 1; + */ + long getThreadId(); + } + /** + * Protobuf type {@code ThreadEnd} + */ + public static final class ThreadEnd extends + com.google.protobuf.GeneratedMessageLite< + ThreadEnd, ThreadEnd.Builder> implements + // @@protoc_insertion_point(message_implements:ThreadEnd) + ThreadEndOrBuilder { + private ThreadEnd() { + } + public static final int THREADID_FIELD_NUMBER = 1; + private long threadId_; + /** + * optional int64 ThreadId = 1; + */ + public long getThreadId() { + return threadId_; + } + /** + * optional int64 ThreadId = 1; + */ + private void setThreadId(long value) { + + threadId_ = value; + } + /** + * optional int64 ThreadId = 1; + */ + private void clearThreadId() { + + threadId_ = 0L; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (threadId_ != 0L) { + output.writeInt64(1, threadId_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (threadId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, threadId_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.ThreadEnd prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code ThreadEnd} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.ThreadEnd, Builder> implements + // @@protoc_insertion_point(builder_implements:ThreadEnd) + ch.usi.dag.dislre.protocol.Analysis.ThreadEndOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int64 ThreadId = 1; + */ + public long getThreadId() { + return instance.getThreadId(); + } + /** + * optional int64 ThreadId = 1; + */ + public Builder setThreadId(long value) { + copyOnWrite(); + instance.setThreadId(value); + return this; + } + /** + * optional int64 ThreadId = 1; + */ + public Builder clearThreadId() { + copyOnWrite(); + instance.clearThreadId(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ThreadEnd) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.ThreadEnd(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.ThreadEnd other = (ch.usi.dag.dislre.protocol.Analysis.ThreadEnd) arg1; + threadId_ = visitor.visitLong(threadId_ != 0L, threadId_, + other.threadId_ != 0L, other.threadId_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + threadId_ = input.readInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:ThreadEnd) + private static final ch.usi.dag.dislre.protocol.Analysis.ThreadEnd DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ThreadEnd(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ThreadInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:ThreadInfo) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int64 ThreadTag = 1; + */ + long getThreadTag(); + + /** + * optional string Name = 2; + */ + java.lang.String getName(); + /** + * optional string Name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional bool IsDaemon = 3; + */ + boolean getIsDaemon(); + } + /** + * Protobuf type {@code ThreadInfo} + */ + public static final class ThreadInfo extends + com.google.protobuf.GeneratedMessageLite< + ThreadInfo, ThreadInfo.Builder> implements + // @@protoc_insertion_point(message_implements:ThreadInfo) + ThreadInfoOrBuilder { + private ThreadInfo() { + name_ = ""; + } + public static final int THREADTAG_FIELD_NUMBER = 1; + private long threadTag_; + /** + * optional int64 ThreadTag = 1; + */ + public long getThreadTag() { + return threadTag_; + } + /** + * optional int64 ThreadTag = 1; + */ + private void setThreadTag(long value) { + + threadTag_ = value; + } + /** + * optional int64 ThreadTag = 1; + */ + private void clearThreadTag() { + + threadTag_ = 0L; + } + + public static final int NAME_FIELD_NUMBER = 2; + private java.lang.String name_; + /** + * optional string Name = 2; + */ + public java.lang.String getName() { + return name_; + } + /** + * optional string Name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(name_); + } + /** + * optional string Name = 2; + */ + private void setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + } + /** + * optional string Name = 2; + */ + private void clearName() { + + name_ = getDefaultInstance().getName(); + } + /** + * optional string Name = 2; + */ + private void setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value.toStringUtf8(); + } + + public static final int ISDAEMON_FIELD_NUMBER = 3; + private boolean isDaemon_; + /** + * optional bool IsDaemon = 3; + */ + public boolean getIsDaemon() { + return isDaemon_; + } + /** + * optional bool IsDaemon = 3; + */ + private void setIsDaemon(boolean value) { + + isDaemon_ = value; + } + /** + * optional bool IsDaemon = 3; + */ + private void clearIsDaemon() { + + isDaemon_ = false; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (threadTag_ != 0L) { + output.writeInt64(1, threadTag_); + } + if (!name_.isEmpty()) { + output.writeString(2, getName()); + } + if (isDaemon_ != false) { + output.writeBool(3, isDaemon_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (threadTag_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, threadTag_); + } + if (!name_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getName()); + } + if (isDaemon_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isDaemon_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.ThreadInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code ThreadInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.ThreadInfo, Builder> implements + // @@protoc_insertion_point(builder_implements:ThreadInfo) + ch.usi.dag.dislre.protocol.Analysis.ThreadInfoOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int64 ThreadTag = 1; + */ + public long getThreadTag() { + return instance.getThreadTag(); + } + /** + * optional int64 ThreadTag = 1; + */ + public Builder setThreadTag(long value) { + copyOnWrite(); + instance.setThreadTag(value); + return this; + } + /** + * optional int64 ThreadTag = 1; + */ + public Builder clearThreadTag() { + copyOnWrite(); + instance.clearThreadTag(); + return this; + } + + /** + * optional string Name = 2; + */ + public java.lang.String getName() { + return instance.getName(); + } + /** + * optional string Name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + return instance.getNameBytes(); + } + /** + * optional string Name = 2; + */ + public Builder setName( + java.lang.String value) { + copyOnWrite(); + instance.setName(value); + return this; + } + /** + * optional string Name = 2; + */ + public Builder clearName() { + copyOnWrite(); + instance.clearName(); + return this; + } + /** + * optional string Name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setNameBytes(value); + return this; + } + + /** + * optional bool IsDaemon = 3; + */ + public boolean getIsDaemon() { + return instance.getIsDaemon(); + } + /** + * optional bool IsDaemon = 3; + */ + public Builder setIsDaemon(boolean value) { + copyOnWrite(); + instance.setIsDaemon(value); + return this; + } + /** + * optional bool IsDaemon = 3; + */ + public Builder clearIsDaemon() { + copyOnWrite(); + instance.clearIsDaemon(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ThreadInfo) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.ThreadInfo(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.ThreadInfo other = (ch.usi.dag.dislre.protocol.Analysis.ThreadInfo) arg1; + threadTag_ = visitor.visitLong(threadTag_ != 0L, threadTag_, + other.threadTag_ != 0L, other.threadTag_); + name_ = visitor.visitString(!name_.isEmpty(), name_, + !other.name_.isEmpty(), other.name_); + isDaemon_ = visitor.visitBoolean(isDaemon_ != false, isDaemon_, + other.isDaemon_ != false, other.isDaemon_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + threadTag_ = input.readInt64(); + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: { + + isDaemon_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:ThreadInfo) + private static final ch.usi.dag.dislre.protocol.Analysis.ThreadInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ThreadInfo(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + + static { + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/disl-server/src/ch/usi/dag/dislre/protocol/DiSL.java b/disl-server/src/ch/usi/dag/dislre/protocol/DiSL.java new file mode 100644 index 00000000..b12a60ea --- /dev/null +++ b/disl-server/src/ch/usi/dag/dislre/protocol/DiSL.java @@ -0,0 +1,3032 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: disl.proto + +package ch.usi.dag.dislre.protocol; + +public final class DiSL { + private DiSL() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public interface ErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:Error) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int32 code = 1; + */ + int getCode(); + + /** + * optional string message = 2; + */ + java.lang.String getMessage(); + /** + * optional string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + *
+   * Common type to send errors
+   * 
+ * + * Protobuf type {@code Error} + */ + public static final class Error extends + com.google.protobuf.GeneratedMessageLite< + Error, Error.Builder> implements + // @@protoc_insertion_point(message_implements:Error) + ErrorOrBuilder { + private Error() { + message_ = ""; + } + public static final int CODE_FIELD_NUMBER = 1; + private int code_; + /** + * optional int32 code = 1; + */ + public int getCode() { + return code_; + } + /** + * optional int32 code = 1; + */ + private void setCode(int value) { + + code_ = value; + } + /** + * optional int32 code = 1; + */ + private void clearCode() { + + code_ = 0; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private java.lang.String message_; + /** + * optional string message = 2; + */ + public java.lang.String getMessage() { + return message_; + } + /** + * optional string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(message_); + } + /** + * optional string message = 2; + */ + private void setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + } + /** + * optional string message = 2; + */ + private void clearMessage() { + + message_ = getDefaultInstance().getMessage(); + } + /** + * optional string message = 2; + */ + private void setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value.toStringUtf8(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != 0) { + output.writeInt32(1, code_); + } + if (!message_.isEmpty()) { + output.writeString(2, getMessage()); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (code_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, code_); + } + if (!message_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getMessage()); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.DiSL.Error prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * Common type to send errors
+     * 
+ * + * Protobuf type {@code Error} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.DiSL.Error, Builder> implements + // @@protoc_insertion_point(builder_implements:Error) + ch.usi.dag.dislre.protocol.DiSL.ErrorOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.DiSL.Error.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int32 code = 1; + */ + public int getCode() { + return instance.getCode(); + } + /** + * optional int32 code = 1; + */ + public Builder setCode(int value) { + copyOnWrite(); + instance.setCode(value); + return this; + } + /** + * optional int32 code = 1; + */ + public Builder clearCode() { + copyOnWrite(); + instance.clearCode(); + return this; + } + + /** + * optional string message = 2; + */ + public java.lang.String getMessage() { + return instance.getMessage(); + } + /** + * optional string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + return instance.getMessageBytes(); + } + /** + * optional string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + copyOnWrite(); + instance.setMessage(value); + return this; + } + /** + * optional string message = 2; + */ + public Builder clearMessage() { + copyOnWrite(); + instance.clearMessage(); + return this; + } + /** + * optional string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setMessageBytes(value); + return this; + } + + // @@protoc_insertion_point(builder_scope:Error) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.DiSL.Error(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.DiSL.Error other = (ch.usi.dag.dislre.protocol.DiSL.Error) arg1; + code_ = visitor.visitInt(code_ != 0, code_, + other.code_ != 0, other.code_); + message_ = visitor.visitString(!message_.isEmpty(), message_, + !other.message_.isEmpty(), other.message_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + code_ = input.readInt32(); + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.DiSL.Error.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:Error) + private static final ch.usi.dag.dislre.protocol.DiSL.Error DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Error(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.DiSL.Error getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface InstrumentationDeliveryOrBuilder extends + // @@protoc_insertion_point(interface_extends:InstrumentationDelivery) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * repeated int32 sizes = 1; + */ + java.util.List getSizesList(); + /** + * repeated int32 sizes = 1; + */ + int getSizesCount(); + /** + * repeated int32 sizes = 1; + */ + int getSizes(int index); + + /** + * optional bytes instrumentation = 2; + */ + com.google.protobuf.ByteString getInstrumentation(); + } + /** + *
+   * When the client obtains the session_id, next step should be sending
+   * the instrumentation jar (or more of them) to the instrumentation server.
+   * 
+ * + * Protobuf type {@code InstrumentationDelivery} + */ + public static final class InstrumentationDelivery extends + com.google.protobuf.GeneratedMessageLite< + InstrumentationDelivery, InstrumentationDelivery.Builder> implements + // @@protoc_insertion_point(message_implements:InstrumentationDelivery) + InstrumentationDeliveryOrBuilder { + private InstrumentationDelivery() { + sizes_ = emptyIntList(); + instrumentation_ = com.google.protobuf.ByteString.EMPTY; + } + private int bitField0_; + public static final int SIZES_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.IntList sizes_; + /** + * repeated int32 sizes = 1; + */ + public java.util.List + getSizesList() { + return sizes_; + } + /** + * repeated int32 sizes = 1; + */ + public int getSizesCount() { + return sizes_.size(); + } + /** + * repeated int32 sizes = 1; + */ + public int getSizes(int index) { + return sizes_.getInt(index); + } + private void ensureSizesIsMutable() { + if (!sizes_.isModifiable()) { + sizes_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(sizes_); + } + } + /** + * repeated int32 sizes = 1; + */ + private void setSizes( + int index, int value) { + ensureSizesIsMutable(); + sizes_.setInt(index, value); + } + /** + * repeated int32 sizes = 1; + */ + private void addSizes(int value) { + ensureSizesIsMutable(); + sizes_.addInt(value); + } + /** + * repeated int32 sizes = 1; + */ + private void addAllSizes( + java.lang.Iterable values) { + ensureSizesIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, sizes_); + } + /** + * repeated int32 sizes = 1; + */ + private void clearSizes() { + sizes_ = emptyIntList(); + } + + public static final int INSTRUMENTATION_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString instrumentation_; + /** + * optional bytes instrumentation = 2; + */ + public com.google.protobuf.ByteString getInstrumentation() { + return instrumentation_; + } + /** + * optional bytes instrumentation = 2; + */ + private void setInstrumentation(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + instrumentation_ = value; + } + /** + * optional bytes instrumentation = 2; + */ + private void clearInstrumentation() { + + instrumentation_ = getDefaultInstance().getInstrumentation(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < sizes_.size(); i++) { + output.writeInt32(1, sizes_.getInt(i)); + } + if (!instrumentation_.isEmpty()) { + output.writeBytes(2, instrumentation_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < sizes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(sizes_.getInt(i)); + } + size += dataSize; + size += 1 * getSizesList().size(); + } + if (!instrumentation_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, instrumentation_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * When the client obtains the session_id, next step should be sending
+     * the instrumentation jar (or more of them) to the instrumentation server.
+     * 
+ * + * Protobuf type {@code InstrumentationDelivery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery, Builder> implements + // @@protoc_insertion_point(builder_implements:InstrumentationDelivery) + ch.usi.dag.dislre.protocol.DiSL.InstrumentationDeliveryOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * repeated int32 sizes = 1; + */ + public java.util.List + getSizesList() { + return java.util.Collections.unmodifiableList( + instance.getSizesList()); + } + /** + * repeated int32 sizes = 1; + */ + public int getSizesCount() { + return instance.getSizesCount(); + } + /** + * repeated int32 sizes = 1; + */ + public int getSizes(int index) { + return instance.getSizes(index); + } + /** + * repeated int32 sizes = 1; + */ + public Builder setSizes( + int index, int value) { + copyOnWrite(); + instance.setSizes(index, value); + return this; + } + /** + * repeated int32 sizes = 1; + */ + public Builder addSizes(int value) { + copyOnWrite(); + instance.addSizes(value); + return this; + } + /** + * repeated int32 sizes = 1; + */ + public Builder addAllSizes( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllSizes(values); + return this; + } + /** + * repeated int32 sizes = 1; + */ + public Builder clearSizes() { + copyOnWrite(); + instance.clearSizes(); + return this; + } + + /** + * optional bytes instrumentation = 2; + */ + public com.google.protobuf.ByteString getInstrumentation() { + return instance.getInstrumentation(); + } + /** + * optional bytes instrumentation = 2; + */ + public Builder setInstrumentation(com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setInstrumentation(value); + return this; + } + /** + * optional bytes instrumentation = 2; + */ + public Builder clearInstrumentation() { + copyOnWrite(); + instance.clearInstrumentation(); + return this; + } + + // @@protoc_insertion_point(builder_scope:InstrumentationDelivery) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + sizes_.makeImmutable(); + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery other = (ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery) arg1; + sizes_= visitor.visitIntList(sizes_, other.sizes_); + instrumentation_ = visitor.visitByteString(instrumentation_ != com.google.protobuf.ByteString.EMPTY, instrumentation_, + other.instrumentation_ != com.google.protobuf.ByteString.EMPTY, other.instrumentation_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + if (!sizes_.isModifiable()) { + sizes_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(sizes_); + } + sizes_.addInt(input.readInt32()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!sizes_.isModifiable() && input.getBytesUntilLimit() > 0) { + sizes_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(sizes_); + } + while (input.getBytesUntilLimit() > 0) { + sizes_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } + case 18: { + + instrumentation_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:InstrumentationDelivery) + private static final ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new InstrumentationDelivery(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface InstrumentationAcceptConfirmationOrBuilder extends + // @@protoc_insertion_point(interface_extends:InstrumentationAcceptConfirmation) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional bool instrumentation_accepted = 1; + */ + boolean getInstrumentationAccepted(); + + /** + * repeated .Error errors = 2; + */ + java.util.List + getErrorsList(); + /** + * repeated .Error errors = 2; + */ + ch.usi.dag.dislre.protocol.DiSL.Error getErrors(int index); + /** + * repeated .Error errors = 2; + */ + int getErrorsCount(); + } + /** + *
+   * This is server response to InstrumentationDelivery message
+   * 
+ * + * Protobuf type {@code InstrumentationAcceptConfirmation} + */ + public static final class InstrumentationAcceptConfirmation extends + com.google.protobuf.GeneratedMessageLite< + InstrumentationAcceptConfirmation, InstrumentationAcceptConfirmation.Builder> implements + // @@protoc_insertion_point(message_implements:InstrumentationAcceptConfirmation) + InstrumentationAcceptConfirmationOrBuilder { + private InstrumentationAcceptConfirmation() { + errors_ = emptyProtobufList(); + } + private int bitField0_; + public static final int INSTRUMENTATION_ACCEPTED_FIELD_NUMBER = 1; + private boolean instrumentationAccepted_; + /** + * optional bool instrumentation_accepted = 1; + */ + public boolean getInstrumentationAccepted() { + return instrumentationAccepted_; + } + /** + * optional bool instrumentation_accepted = 1; + */ + private void setInstrumentationAccepted(boolean value) { + + instrumentationAccepted_ = value; + } + /** + * optional bool instrumentation_accepted = 1; + */ + private void clearInstrumentationAccepted() { + + instrumentationAccepted_ = false; + } + + public static final int ERRORS_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.ProtobufList errors_; + /** + * repeated .Error errors = 2; + */ + public java.util.List getErrorsList() { + return errors_; + } + /** + * repeated .Error errors = 2; + */ + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + /** + * repeated .Error errors = 2; + */ + public int getErrorsCount() { + return errors_.size(); + } + /** + * repeated .Error errors = 2; + */ + public ch.usi.dag.dislre.protocol.DiSL.Error getErrors(int index) { + return errors_.get(index); + } + /** + * repeated .Error errors = 2; + */ + public ch.usi.dag.dislre.protocol.DiSL.ErrorOrBuilder getErrorsOrBuilder( + int index) { + return errors_.get(index); + } + private void ensureErrorsIsMutable() { + if (!errors_.isModifiable()) { + errors_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(errors_); + } + } + + /** + * repeated .Error errors = 2; + */ + private void setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + } + /** + * repeated .Error errors = 2; + */ + private void setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + } + /** + * repeated .Error errors = 2; + */ + private void addErrors(ch.usi.dag.dislre.protocol.DiSL.Error value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + } + /** + * repeated .Error errors = 2; + */ + private void addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + } + /** + * repeated .Error errors = 2; + */ + private void addErrors( + ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + } + /** + * repeated .Error errors = 2; + */ + private void addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + } + /** + * repeated .Error errors = 2; + */ + private void addAllErrors( + java.lang.Iterable values) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, errors_); + } + /** + * repeated .Error errors = 2; + */ + private void clearErrors() { + errors_ = emptyProtobufList(); + } + /** + * repeated .Error errors = 2; + */ + private void removeErrors(int index) { + ensureErrorsIsMutable(); + errors_.remove(index); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (instrumentationAccepted_ != false) { + output.writeBool(1, instrumentationAccepted_); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(2, errors_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (instrumentationAccepted_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, instrumentationAccepted_); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, errors_.get(i)); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * This is server response to InstrumentationDelivery message
+     * 
+ * + * Protobuf type {@code InstrumentationAcceptConfirmation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation, Builder> implements + // @@protoc_insertion_point(builder_implements:InstrumentationAcceptConfirmation) + ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmationOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional bool instrumentation_accepted = 1; + */ + public boolean getInstrumentationAccepted() { + return instance.getInstrumentationAccepted(); + } + /** + * optional bool instrumentation_accepted = 1; + */ + public Builder setInstrumentationAccepted(boolean value) { + copyOnWrite(); + instance.setInstrumentationAccepted(value); + return this; + } + /** + * optional bool instrumentation_accepted = 1; + */ + public Builder clearInstrumentationAccepted() { + copyOnWrite(); + instance.clearInstrumentationAccepted(); + return this; + } + + /** + * repeated .Error errors = 2; + */ + public java.util.List getErrorsList() { + return java.util.Collections.unmodifiableList( + instance.getErrorsList()); + } + /** + * repeated .Error errors = 2; + */ + public int getErrorsCount() { + return instance.getErrorsCount(); + }/** + * repeated .Error errors = 2; + */ + public ch.usi.dag.dislre.protocol.DiSL.Error getErrors(int index) { + return instance.getErrors(index); + } + /** + * repeated .Error errors = 2; + */ + public Builder setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + copyOnWrite(); + instance.setErrors(index, value); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + copyOnWrite(); + instance.setErrors(index, builderForValue); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder addErrors(ch.usi.dag.dislre.protocol.DiSL.Error value) { + copyOnWrite(); + instance.addErrors(value); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + copyOnWrite(); + instance.addErrors(index, value); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder addErrors( + ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + copyOnWrite(); + instance.addErrors(builderForValue); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + copyOnWrite(); + instance.addErrors(index, builderForValue); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder addAllErrors( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllErrors(values); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder clearErrors() { + copyOnWrite(); + instance.clearErrors(); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder removeErrors(int index) { + copyOnWrite(); + instance.removeErrors(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:InstrumentationAcceptConfirmation) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + errors_.makeImmutable(); + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation other = (ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation) arg1; + instrumentationAccepted_ = visitor.visitBoolean(instrumentationAccepted_ != false, instrumentationAccepted_, + other.instrumentationAccepted_ != false, other.instrumentationAccepted_); + errors_= visitor.visitList(errors_, other.errors_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + instrumentationAccepted_ = input.readBool(); + break; + } + case 18: { + if (!errors_.isModifiable()) { + errors_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(errors_); + } + errors_.add( + input.readMessage(ch.usi.dag.dislre.protocol.DiSL.Error.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:InstrumentationAcceptConfirmation) + private static final ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new InstrumentationAcceptConfirmation(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface InstrClassInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:InstrClassInfo) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional string className = 1; + */ + java.lang.String getClassName(); + /** + * optional string className = 1; + */ + com.google.protobuf.ByteString + getClassNameBytes(); + + /** + * optional int64 classLoaderTag = 2; + */ + long getClassLoaderTag(); + } + /** + * Protobuf type {@code InstrClassInfo} + */ + public static final class InstrClassInfo extends + com.google.protobuf.GeneratedMessageLite< + InstrClassInfo, InstrClassInfo.Builder> implements + // @@protoc_insertion_point(message_implements:InstrClassInfo) + InstrClassInfoOrBuilder { + private InstrClassInfo() { + className_ = ""; + } + public static final int CLASSNAME_FIELD_NUMBER = 1; + private java.lang.String className_; + /** + * optional string className = 1; + */ + public java.lang.String getClassName() { + return className_; + } + /** + * optional string className = 1; + */ + public com.google.protobuf.ByteString + getClassNameBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(className_); + } + /** + * optional string className = 1; + */ + private void setClassName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + className_ = value; + } + /** + * optional string className = 1; + */ + private void clearClassName() { + + className_ = getDefaultInstance().getClassName(); + } + /** + * optional string className = 1; + */ + private void setClassNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + className_ = value.toStringUtf8(); + } + + public static final int CLASSLOADERTAG_FIELD_NUMBER = 2; + private long classLoaderTag_; + /** + * optional int64 classLoaderTag = 2; + */ + public long getClassLoaderTag() { + return classLoaderTag_; + } + /** + * optional int64 classLoaderTag = 2; + */ + private void setClassLoaderTag(long value) { + + classLoaderTag_ = value; + } + /** + * optional int64 classLoaderTag = 2; + */ + private void clearClassLoaderTag() { + + classLoaderTag_ = 0L; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!className_.isEmpty()) { + output.writeString(1, getClassName()); + } + if (classLoaderTag_ != 0L) { + output.writeInt64(2, classLoaderTag_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!className_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(1, getClassName()); + } + if (classLoaderTag_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, classLoaderTag_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code InstrClassInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo, Builder> implements + // @@protoc_insertion_point(builder_implements:InstrClassInfo) + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfoOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional string className = 1; + */ + public java.lang.String getClassName() { + return instance.getClassName(); + } + /** + * optional string className = 1; + */ + public com.google.protobuf.ByteString + getClassNameBytes() { + return instance.getClassNameBytes(); + } + /** + * optional string className = 1; + */ + public Builder setClassName( + java.lang.String value) { + copyOnWrite(); + instance.setClassName(value); + return this; + } + /** + * optional string className = 1; + */ + public Builder clearClassName() { + copyOnWrite(); + instance.clearClassName(); + return this; + } + /** + * optional string className = 1; + */ + public Builder setClassNameBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setClassNameBytes(value); + return this; + } + + /** + * optional int64 classLoaderTag = 2; + */ + public long getClassLoaderTag() { + return instance.getClassLoaderTag(); + } + /** + * optional int64 classLoaderTag = 2; + */ + public Builder setClassLoaderTag(long value) { + copyOnWrite(); + instance.setClassLoaderTag(value); + return this; + } + /** + * optional int64 classLoaderTag = 2; + */ + public Builder clearClassLoaderTag() { + copyOnWrite(); + instance.clearClassLoaderTag(); + return this; + } + + // @@protoc_insertion_point(builder_scope:InstrClassInfo) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo other = (ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo) arg1; + className_ = visitor.visitString(!className_.isEmpty(), className_, + !other.className_.isEmpty(), other.className_); + classLoaderTag_ = visitor.visitLong(classLoaderTag_ != 0L, classLoaderTag_, + other.classLoaderTag_ != 0L, other.classLoaderTag_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + String s = input.readStringRequireUtf8(); + + className_ = s; + break; + } + case 16: { + + classLoaderTag_ = input.readInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:InstrClassInfo) + private static final ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new InstrClassInfo(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface InstrumentClassRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:InstrumentClassRequest) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int32 flags = 2; + */ + int getFlags(); + + /** + * optional .InstrClassInfo classInfo = 5; + */ + boolean hasClassInfo(); + /** + * optional .InstrClassInfo classInfo = 5; + */ + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo getClassInfo(); + + /** + * optional bytes classBytes = 4; + */ + com.google.protobuf.ByteString getClassBytes(); + + /** + * repeated .InstrClassInfo superTypes = 6; + */ + java.util.List + getSuperTypesList(); + /** + * repeated .InstrClassInfo superTypes = 6; + */ + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo getSuperTypes(int index); + /** + * repeated .InstrClassInfo superTypes = 6; + */ + int getSuperTypesCount(); + } + /** + *
+   * This is the request to the instrumentaion server to instrument attached class.
+   * 
+ * + * Protobuf type {@code InstrumentClassRequest} + */ + public static final class InstrumentClassRequest extends + com.google.protobuf.GeneratedMessageLite< + InstrumentClassRequest, InstrumentClassRequest.Builder> implements + // @@protoc_insertion_point(message_implements:InstrumentClassRequest) + InstrumentClassRequestOrBuilder { + private InstrumentClassRequest() { + classBytes_ = com.google.protobuf.ByteString.EMPTY; + superTypes_ = emptyProtobufList(); + } + private int bitField0_; + public static final int FLAGS_FIELD_NUMBER = 2; + private int flags_; + /** + * optional int32 flags = 2; + */ + public int getFlags() { + return flags_; + } + /** + * optional int32 flags = 2; + */ + private void setFlags(int value) { + + flags_ = value; + } + /** + * optional int32 flags = 2; + */ + private void clearFlags() { + + flags_ = 0; + } + + public static final int CLASSINFO_FIELD_NUMBER = 5; + private ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo classInfo_; + /** + * optional .InstrClassInfo classInfo = 5; + */ + public boolean hasClassInfo() { + return classInfo_ != null; + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo getClassInfo() { + return classInfo_ == null ? ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.getDefaultInstance() : classInfo_; + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + private void setClassInfo(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + if (value == null) { + throw new NullPointerException(); + } + classInfo_ = value; + + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + private void setClassInfo( + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + classInfo_ = builderForValue.build(); + + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + private void mergeClassInfo(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + if (classInfo_ != null && + classInfo_ != ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.getDefaultInstance()) { + classInfo_ = + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.newBuilder(classInfo_).mergeFrom(value).buildPartial(); + } else { + classInfo_ = value; + } + + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + private void clearClassInfo() { classInfo_ = null; + + } + + public static final int CLASSBYTES_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString classBytes_; + /** + * optional bytes classBytes = 4; + */ + public com.google.protobuf.ByteString getClassBytes() { + return classBytes_; + } + /** + * optional bytes classBytes = 4; + */ + private void setClassBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + classBytes_ = value; + } + /** + * optional bytes classBytes = 4; + */ + private void clearClassBytes() { + + classBytes_ = getDefaultInstance().getClassBytes(); + } + + public static final int SUPERTYPES_FIELD_NUMBER = 6; + private com.google.protobuf.Internal.ProtobufList superTypes_; + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public java.util.List getSuperTypesList() { + return superTypes_; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public java.util.List + getSuperTypesOrBuilderList() { + return superTypes_; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public int getSuperTypesCount() { + return superTypes_.size(); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo getSuperTypes(int index) { + return superTypes_.get(index); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrClassInfoOrBuilder getSuperTypesOrBuilder( + int index) { + return superTypes_.get(index); + } + private void ensureSuperTypesIsMutable() { + if (!superTypes_.isModifiable()) { + superTypes_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(superTypes_); + } + } + + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void setSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuperTypesIsMutable(); + superTypes_.set(index, value); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void setSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + ensureSuperTypesIsMutable(); + superTypes_.set(index, builderForValue.build()); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void addSuperTypes(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuperTypesIsMutable(); + superTypes_.add(value); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void addSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuperTypesIsMutable(); + superTypes_.add(index, value); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void addSuperTypes( + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + ensureSuperTypesIsMutable(); + superTypes_.add(builderForValue.build()); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void addSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + ensureSuperTypesIsMutable(); + superTypes_.add(index, builderForValue.build()); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void addAllSuperTypes( + java.lang.Iterable values) { + ensureSuperTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, superTypes_); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void clearSuperTypes() { + superTypes_ = emptyProtobufList(); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void removeSuperTypes(int index) { + ensureSuperTypesIsMutable(); + superTypes_.remove(index); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (flags_ != 0) { + output.writeInt32(2, flags_); + } + if (!classBytes_.isEmpty()) { + output.writeBytes(4, classBytes_); + } + if (classInfo_ != null) { + output.writeMessage(5, getClassInfo()); + } + for (int i = 0; i < superTypes_.size(); i++) { + output.writeMessage(6, superTypes_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (flags_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, flags_); + } + if (!classBytes_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, classBytes_); + } + if (classInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getClassInfo()); + } + for (int i = 0; i < superTypes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, superTypes_.get(i)); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * This is the request to the instrumentaion server to instrument attached class.
+     * 
+ * + * Protobuf type {@code InstrumentClassRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest, Builder> implements + // @@protoc_insertion_point(builder_implements:InstrumentClassRequest) + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequestOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int32 flags = 2; + */ + public int getFlags() { + return instance.getFlags(); + } + /** + * optional int32 flags = 2; + */ + public Builder setFlags(int value) { + copyOnWrite(); + instance.setFlags(value); + return this; + } + /** + * optional int32 flags = 2; + */ + public Builder clearFlags() { + copyOnWrite(); + instance.clearFlags(); + return this; + } + + /** + * optional .InstrClassInfo classInfo = 5; + */ + public boolean hasClassInfo() { + return instance.hasClassInfo(); + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo getClassInfo() { + return instance.getClassInfo(); + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + public Builder setClassInfo(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + copyOnWrite(); + instance.setClassInfo(value); + return this; + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + public Builder setClassInfo( + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + copyOnWrite(); + instance.setClassInfo(builderForValue); + return this; + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + public Builder mergeClassInfo(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + copyOnWrite(); + instance.mergeClassInfo(value); + return this; + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + public Builder clearClassInfo() { copyOnWrite(); + instance.clearClassInfo(); + return this; + } + + /** + * optional bytes classBytes = 4; + */ + public com.google.protobuf.ByteString getClassBytes() { + return instance.getClassBytes(); + } + /** + * optional bytes classBytes = 4; + */ + public Builder setClassBytes(com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setClassBytes(value); + return this; + } + /** + * optional bytes classBytes = 4; + */ + public Builder clearClassBytes() { + copyOnWrite(); + instance.clearClassBytes(); + return this; + } + + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public java.util.List getSuperTypesList() { + return java.util.Collections.unmodifiableList( + instance.getSuperTypesList()); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public int getSuperTypesCount() { + return instance.getSuperTypesCount(); + }/** + * repeated .InstrClassInfo superTypes = 6; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo getSuperTypes(int index) { + return instance.getSuperTypes(index); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder setSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + copyOnWrite(); + instance.setSuperTypes(index, value); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder setSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + copyOnWrite(); + instance.setSuperTypes(index, builderForValue); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder addSuperTypes(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + copyOnWrite(); + instance.addSuperTypes(value); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder addSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + copyOnWrite(); + instance.addSuperTypes(index, value); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder addSuperTypes( + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + copyOnWrite(); + instance.addSuperTypes(builderForValue); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder addSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + copyOnWrite(); + instance.addSuperTypes(index, builderForValue); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder addAllSuperTypes( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllSuperTypes(values); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder clearSuperTypes() { + copyOnWrite(); + instance.clearSuperTypes(); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder removeSuperTypes(int index) { + copyOnWrite(); + instance.removeSuperTypes(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:InstrumentClassRequest) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + superTypes_.makeImmutable(); + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest other = (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest) arg1; + flags_ = visitor.visitInt(flags_ != 0, flags_, + other.flags_ != 0, other.flags_); + classInfo_ = visitor.visitMessage(classInfo_, other.classInfo_); + classBytes_ = visitor.visitByteString(classBytes_ != com.google.protobuf.ByteString.EMPTY, classBytes_, + other.classBytes_ != com.google.protobuf.ByteString.EMPTY, other.classBytes_); + superTypes_= visitor.visitList(superTypes_, other.superTypes_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 16: { + + flags_ = input.readInt32(); + break; + } + case 34: { + + classBytes_ = input.readBytes(); + break; + } + case 42: { + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder subBuilder = null; + if (classInfo_ != null) { + subBuilder = classInfo_.toBuilder(); + } + classInfo_ = input.readMessage(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(classInfo_); + classInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + if (!superTypes_.isModifiable()) { + superTypes_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(superTypes_); + } + superTypes_.add( + input.readMessage(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:InstrumentClassRequest) + private static final ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new InstrumentClassRequest(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface InstrumentClassResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:InstrumentClassResponse) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + int getResultValue(); + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult getResult(); + + /** + * optional string errorMessage = 2; + */ + java.lang.String getErrorMessage(); + /** + * optional string errorMessage = 2; + */ + com.google.protobuf.ByteString + getErrorMessageBytes(); + + /** + * optional bytes classBytes = 3; + */ + com.google.protobuf.ByteString getClassBytes(); + } + /** + *
+   * Server response containing either the instrumented classbytes or error message
+   * 
+ * + * Protobuf type {@code InstrumentClassResponse} + */ + public static final class InstrumentClassResponse extends + com.google.protobuf.GeneratedMessageLite< + InstrumentClassResponse, InstrumentClassResponse.Builder> implements + // @@protoc_insertion_point(message_implements:InstrumentClassResponse) + InstrumentClassResponseOrBuilder { + private InstrumentClassResponse() { + errorMessage_ = ""; + classBytes_ = com.google.protobuf.ByteString.EMPTY; + } + /** + * Protobuf enum {@code InstrumentClassResponse.InstrumentClassResult} + */ + public enum InstrumentClassResult + implements com.google.protobuf.Internal.EnumLite { + /** + * CLASS_UNMODIFIED = 0; + */ + CLASS_UNMODIFIED(0), + /** + * CLASS_MODIFIED = 1; + */ + CLASS_MODIFIED(1), + /** + * ERROR = 3; + */ + ERROR(3), + UNRECOGNIZED(-1), + ; + + /** + * CLASS_UNMODIFIED = 0; + */ + public static final int CLASS_UNMODIFIED_VALUE = 0; + /** + * CLASS_MODIFIED = 1; + */ + public static final int CLASS_MODIFIED_VALUE = 1; + /** + * ERROR = 3; + */ + public static final int ERROR_VALUE = 3; + + + public final int getNumber() { + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InstrumentClassResult valueOf(int value) { + return forNumber(value); + } + + public static InstrumentClassResult forNumber(int value) { + switch (value) { + case 0: return CLASS_UNMODIFIED; + case 1: return CLASS_MODIFIED; + case 3: return ERROR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + InstrumentClassResult> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InstrumentClassResult findValueByNumber(int number) { + return InstrumentClassResult.forNumber(number); + } + }; + + private final int value; + + private InstrumentClassResult(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:InstrumentClassResponse.InstrumentClassResult) + } + + public static final int RESULT_FIELD_NUMBER = 1; + private int result_; + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + public int getResultValue() { + return result_; + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult getResult() { + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult result = ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult.forNumber(result_); + return result == null ? ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult.UNRECOGNIZED : result; + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + private void setResultValue(int value) { + result_ = value; + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + private void setResult(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult value) { + if (value == null) { + throw new NullPointerException(); + } + + result_ = value.getNumber(); + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + private void clearResult() { + + result_ = 0; + } + + public static final int ERRORMESSAGE_FIELD_NUMBER = 2; + private java.lang.String errorMessage_; + /** + * optional string errorMessage = 2; + */ + public java.lang.String getErrorMessage() { + return errorMessage_; + } + /** + * optional string errorMessage = 2; + */ + public com.google.protobuf.ByteString + getErrorMessageBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(errorMessage_); + } + /** + * optional string errorMessage = 2; + */ + private void setErrorMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + errorMessage_ = value; + } + /** + * optional string errorMessage = 2; + */ + private void clearErrorMessage() { + + errorMessage_ = getDefaultInstance().getErrorMessage(); + } + /** + * optional string errorMessage = 2; + */ + private void setErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + errorMessage_ = value.toStringUtf8(); + } + + public static final int CLASSBYTES_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString classBytes_; + /** + * optional bytes classBytes = 3; + */ + public com.google.protobuf.ByteString getClassBytes() { + return classBytes_; + } + /** + * optional bytes classBytes = 3; + */ + private void setClassBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + classBytes_ = value; + } + /** + * optional bytes classBytes = 3; + */ + private void clearClassBytes() { + + classBytes_ = getDefaultInstance().getClassBytes(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (result_ != ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult.CLASS_UNMODIFIED.getNumber()) { + output.writeEnum(1, result_); + } + if (!errorMessage_.isEmpty()) { + output.writeString(2, getErrorMessage()); + } + if (!classBytes_.isEmpty()) { + output.writeBytes(3, classBytes_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (result_ != ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult.CLASS_UNMODIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, result_); + } + if (!errorMessage_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getErrorMessage()); + } + if (!classBytes_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, classBytes_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * Server response containing either the instrumented classbytes or error message
+     * 
+ * + * Protobuf type {@code InstrumentClassResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse, Builder> implements + // @@protoc_insertion_point(builder_implements:InstrumentClassResponse) + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponseOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + public int getResultValue() { + return instance.getResultValue(); + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + public Builder setResultValue(int value) { + copyOnWrite(); + instance.setResultValue(value); + return this; + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult getResult() { + return instance.getResult(); + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + public Builder setResult(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult value) { + copyOnWrite(); + instance.setResult(value); + return this; + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + public Builder clearResult() { + copyOnWrite(); + instance.clearResult(); + return this; + } + + /** + * optional string errorMessage = 2; + */ + public java.lang.String getErrorMessage() { + return instance.getErrorMessage(); + } + /** + * optional string errorMessage = 2; + */ + public com.google.protobuf.ByteString + getErrorMessageBytes() { + return instance.getErrorMessageBytes(); + } + /** + * optional string errorMessage = 2; + */ + public Builder setErrorMessage( + java.lang.String value) { + copyOnWrite(); + instance.setErrorMessage(value); + return this; + } + /** + * optional string errorMessage = 2; + */ + public Builder clearErrorMessage() { + copyOnWrite(); + instance.clearErrorMessage(); + return this; + } + /** + * optional string errorMessage = 2; + */ + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setErrorMessageBytes(value); + return this; + } + + /** + * optional bytes classBytes = 3; + */ + public com.google.protobuf.ByteString getClassBytes() { + return instance.getClassBytes(); + } + /** + * optional bytes classBytes = 3; + */ + public Builder setClassBytes(com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setClassBytes(value); + return this; + } + /** + * optional bytes classBytes = 3; + */ + public Builder clearClassBytes() { + copyOnWrite(); + instance.clearClassBytes(); + return this; + } + + // @@protoc_insertion_point(builder_scope:InstrumentClassResponse) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse other = (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse) arg1; + result_ = visitor.visitInt(result_ != 0, result_, other.result_ != 0, other.result_); + errorMessage_ = visitor.visitString(!errorMessage_.isEmpty(), errorMessage_, + !other.errorMessage_.isEmpty(), other.errorMessage_); + classBytes_ = visitor.visitByteString(classBytes_ != com.google.protobuf.ByteString.EMPTY, classBytes_, + other.classBytes_ != com.google.protobuf.ByteString.EMPTY, other.classBytes_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + result_ = rawValue; + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + errorMessage_ = s; + break; + } + case 26: { + + classBytes_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:InstrumentClassResponse) + private static final ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new InstrumentClassResponse(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + + static { + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/disl-server/src/ch/usi/dag/dislre/protocol/Main.java b/disl-server/src/ch/usi/dag/dislre/protocol/Main.java new file mode 100644 index 00000000..c3273e0e --- /dev/null +++ b/disl-server/src/ch/usi/dag/dislre/protocol/Main.java @@ -0,0 +1,3896 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: main.proto + +package ch.usi.dag.dislre.protocol; + +public final class Main { + private Main() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public interface SessionInitRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:SessionInitRequest) + com.google.protobuf.MessageLiteOrBuilder { + } + /** + *
+   * Request server to initialize session
+   * This is sent as the clients first message
+   * May contain some additional data to describe the client (JVM version etc.)
+   * 
+ * + * Protobuf type {@code SessionInitRequest} + */ + public static final class SessionInitRequest extends + com.google.protobuf.GeneratedMessageLite< + SessionInitRequest, SessionInitRequest.Builder> implements + // @@protoc_insertion_point(message_implements:SessionInitRequest) + SessionInitRequestOrBuilder { + private SessionInitRequest() { + } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Main.SessionInitRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * Request server to initialize session
+     * This is sent as the clients first message
+     * May contain some additional data to describe the client (JVM version etc.)
+     * 
+ * + * Protobuf type {@code SessionInitRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Main.SessionInitRequest, Builder> implements + // @@protoc_insertion_point(builder_implements:SessionInitRequest) + ch.usi.dag.dislre.protocol.Main.SessionInitRequestOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Main.SessionInitRequest.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + // @@protoc_insertion_point(builder_scope:SessionInitRequest) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Main.SessionInitRequest(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Main.SessionInitRequest other = (ch.usi.dag.dislre.protocol.Main.SessionInitRequest) arg1; + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Main.SessionInitRequest.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:SessionInitRequest) + private static final ch.usi.dag.dislre.protocol.Main.SessionInitRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new SessionInitRequest(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface SessionInitResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:SessionInitResponse) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional bool accepted = 1; + */ + boolean getAccepted(); + + /** + * optional int32 session_id = 2; + */ + int getSessionId(); + + /** + * repeated .Error errors = 3; + */ + java.util.List + getErrorsList(); + /** + * repeated .Error errors = 3; + */ + ch.usi.dag.dislre.protocol.DiSL.Error getErrors(int index); + /** + * repeated .Error errors = 3; + */ + int getErrorsCount(); + } + /** + *
+   * This is the response to SessionInitRequest message
+   * The request could either be ACCEPTed or DENYed
+   * In the case of positive answer, there is also a session_id present
+   * 
+ * + * Protobuf type {@code SessionInitResponse} + */ + public static final class SessionInitResponse extends + com.google.protobuf.GeneratedMessageLite< + SessionInitResponse, SessionInitResponse.Builder> implements + // @@protoc_insertion_point(message_implements:SessionInitResponse) + SessionInitResponseOrBuilder { + private SessionInitResponse() { + errors_ = emptyProtobufList(); + } + private int bitField0_; + public static final int ACCEPTED_FIELD_NUMBER = 1; + private boolean accepted_; + /** + * optional bool accepted = 1; + */ + public boolean getAccepted() { + return accepted_; + } + /** + * optional bool accepted = 1; + */ + private void setAccepted(boolean value) { + + accepted_ = value; + } + /** + * optional bool accepted = 1; + */ + private void clearAccepted() { + + accepted_ = false; + } + + public static final int SESSION_ID_FIELD_NUMBER = 2; + private int sessionId_; + /** + * optional int32 session_id = 2; + */ + public int getSessionId() { + return sessionId_; + } + /** + * optional int32 session_id = 2; + */ + private void setSessionId(int value) { + + sessionId_ = value; + } + /** + * optional int32 session_id = 2; + */ + private void clearSessionId() { + + sessionId_ = 0; + } + + public static final int ERRORS_FIELD_NUMBER = 3; + private com.google.protobuf.Internal.ProtobufList errors_; + /** + * repeated .Error errors = 3; + */ + public java.util.List getErrorsList() { + return errors_; + } + /** + * repeated .Error errors = 3; + */ + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + /** + * repeated .Error errors = 3; + */ + public int getErrorsCount() { + return errors_.size(); + } + /** + * repeated .Error errors = 3; + */ + public ch.usi.dag.dislre.protocol.DiSL.Error getErrors(int index) { + return errors_.get(index); + } + /** + * repeated .Error errors = 3; + */ + public ch.usi.dag.dislre.protocol.DiSL.ErrorOrBuilder getErrorsOrBuilder( + int index) { + return errors_.get(index); + } + private void ensureErrorsIsMutable() { + if (!errors_.isModifiable()) { + errors_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(errors_); + } + } + + /** + * repeated .Error errors = 3; + */ + private void setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + } + /** + * repeated .Error errors = 3; + */ + private void setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + } + /** + * repeated .Error errors = 3; + */ + private void addErrors(ch.usi.dag.dislre.protocol.DiSL.Error value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + } + /** + * repeated .Error errors = 3; + */ + private void addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + } + /** + * repeated .Error errors = 3; + */ + private void addErrors( + ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + } + /** + * repeated .Error errors = 3; + */ + private void addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + } + /** + * repeated .Error errors = 3; + */ + private void addAllErrors( + java.lang.Iterable values) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, errors_); + } + /** + * repeated .Error errors = 3; + */ + private void clearErrors() { + errors_ = emptyProtobufList(); + } + /** + * repeated .Error errors = 3; + */ + private void removeErrors(int index) { + ensureErrorsIsMutable(); + errors_.remove(index); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (accepted_ != false) { + output.writeBool(1, accepted_); + } + if (sessionId_ != 0) { + output.writeInt32(2, sessionId_); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(3, errors_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (accepted_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, accepted_); + } + if (sessionId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, sessionId_); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, errors_.get(i)); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Main.SessionInitResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * This is the response to SessionInitRequest message
+     * The request could either be ACCEPTed or DENYed
+     * In the case of positive answer, there is also a session_id present
+     * 
+ * + * Protobuf type {@code SessionInitResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Main.SessionInitResponse, Builder> implements + // @@protoc_insertion_point(builder_implements:SessionInitResponse) + ch.usi.dag.dislre.protocol.Main.SessionInitResponseOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Main.SessionInitResponse.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional bool accepted = 1; + */ + public boolean getAccepted() { + return instance.getAccepted(); + } + /** + * optional bool accepted = 1; + */ + public Builder setAccepted(boolean value) { + copyOnWrite(); + instance.setAccepted(value); + return this; + } + /** + * optional bool accepted = 1; + */ + public Builder clearAccepted() { + copyOnWrite(); + instance.clearAccepted(); + return this; + } + + /** + * optional int32 session_id = 2; + */ + public int getSessionId() { + return instance.getSessionId(); + } + /** + * optional int32 session_id = 2; + */ + public Builder setSessionId(int value) { + copyOnWrite(); + instance.setSessionId(value); + return this; + } + /** + * optional int32 session_id = 2; + */ + public Builder clearSessionId() { + copyOnWrite(); + instance.clearSessionId(); + return this; + } + + /** + * repeated .Error errors = 3; + */ + public java.util.List getErrorsList() { + return java.util.Collections.unmodifiableList( + instance.getErrorsList()); + } + /** + * repeated .Error errors = 3; + */ + public int getErrorsCount() { + return instance.getErrorsCount(); + }/** + * repeated .Error errors = 3; + */ + public ch.usi.dag.dislre.protocol.DiSL.Error getErrors(int index) { + return instance.getErrors(index); + } + /** + * repeated .Error errors = 3; + */ + public Builder setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + copyOnWrite(); + instance.setErrors(index, value); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + copyOnWrite(); + instance.setErrors(index, builderForValue); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors(ch.usi.dag.dislre.protocol.DiSL.Error value) { + copyOnWrite(); + instance.addErrors(value); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + copyOnWrite(); + instance.addErrors(index, value); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors( + ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + copyOnWrite(); + instance.addErrors(builderForValue); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + copyOnWrite(); + instance.addErrors(index, builderForValue); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addAllErrors( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllErrors(values); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder clearErrors() { + copyOnWrite(); + instance.clearErrors(); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder removeErrors(int index) { + copyOnWrite(); + instance.removeErrors(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:SessionInitResponse) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Main.SessionInitResponse(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + errors_.makeImmutable(); + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Main.SessionInitResponse other = (ch.usi.dag.dislre.protocol.Main.SessionInitResponse) arg1; + accepted_ = visitor.visitBoolean(accepted_ != false, accepted_, + other.accepted_ != false, other.accepted_); + sessionId_ = visitor.visitInt(sessionId_ != 0, sessionId_, + other.sessionId_ != 0, other.sessionId_); + errors_= visitor.visitList(errors_, other.errors_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + accepted_ = input.readBool(); + break; + } + case 16: { + + sessionId_ = input.readInt32(); + break; + } + case 26: { + if (!errors_.isModifiable()) { + errors_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(errors_); + } + errors_.add( + input.readMessage(ch.usi.dag.dislre.protocol.DiSL.Error.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Main.SessionInitResponse.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:SessionInitResponse) + private static final ch.usi.dag.dislre.protocol.Main.SessionInitResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new SessionInitResponse(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface CloseConnectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:CloseConnection) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + int getReasonValue(); + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason getReason(); + } + /** + *
+   **
+   * Notify server about closing connection
+   * 
+ * + * Protobuf type {@code CloseConnection} + */ + public static final class CloseConnection extends + com.google.protobuf.GeneratedMessageLite< + CloseConnection, CloseConnection.Builder> implements + // @@protoc_insertion_point(message_implements:CloseConnection) + CloseConnectionOrBuilder { + private CloseConnection() { + } + /** + * Protobuf enum {@code CloseConnection.CloseReason} + */ + public enum CloseReason + implements com.google.protobuf.Internal.EnumLite { + /** + * FINISHED = 0; + */ + FINISHED(0), + UNRECOGNIZED(-1), + ; + + /** + * FINISHED = 0; + */ + public static final int FINISHED_VALUE = 0; + + + public final int getNumber() { + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CloseReason valueOf(int value) { + return forNumber(value); + } + + public static CloseReason forNumber(int value) { + switch (value) { + case 0: return FINISHED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CloseReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CloseReason findValueByNumber(int number) { + return CloseReason.forNumber(number); + } + }; + + private final int value; + + private CloseReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:CloseConnection.CloseReason) + } + + public static final int REASON_FIELD_NUMBER = 2; + private int reason_; + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + public int getReasonValue() { + return reason_; + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + public ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason getReason() { + ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason result = ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason.forNumber(reason_); + return result == null ? ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason.UNRECOGNIZED : result; + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + private void setReasonValue(int value) { + reason_ = value; + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + private void setReason(ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason value) { + if (value == null) { + throw new NullPointerException(); + } + + reason_ = value.getNumber(); + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + private void clearReason() { + + reason_ = 0; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reason_ != ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason.FINISHED.getNumber()) { + output.writeEnum(2, reason_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (reason_ != ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason.FINISHED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, reason_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Main.CloseConnection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     **
+     * Notify server about closing connection
+     * 
+ * + * Protobuf type {@code CloseConnection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Main.CloseConnection, Builder> implements + // @@protoc_insertion_point(builder_implements:CloseConnection) + ch.usi.dag.dislre.protocol.Main.CloseConnectionOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Main.CloseConnection.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + public int getReasonValue() { + return instance.getReasonValue(); + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + public Builder setReasonValue(int value) { + copyOnWrite(); + instance.setReasonValue(value); + return this; + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + public ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason getReason() { + return instance.getReason(); + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + public Builder setReason(ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason value) { + copyOnWrite(); + instance.setReason(value); + return this; + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + public Builder clearReason() { + copyOnWrite(); + instance.clearReason(); + return this; + } + + // @@protoc_insertion_point(builder_scope:CloseConnection) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Main.CloseConnection(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Main.CloseConnection other = (ch.usi.dag.dislre.protocol.Main.CloseConnection) arg1; + reason_ = visitor.visitInt(reason_ != 0, reason_, other.reason_ != 0, other.reason_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 16: { + int rawValue = input.readEnum(); + + reason_ = rawValue; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Main.CloseConnection.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:CloseConnection) + private static final ch.usi.dag.dislre.protocol.Main.CloseConnection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new CloseConnection(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Main.CloseConnection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ClientMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:ClientMessage) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int32 session_id = 1; + */ + int getSessionId(); + + /** + *
+     */ Instrumentation messages
+     * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + ch.usi.dag.dislre.protocol.Main.SessionInitRequest getSessionInitRequest(); + + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery getInstrumentationDelivery(); + + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest getInstrumentClassRequest(); + + /** + * optional .CloseConnection close_connection = 5; + */ + ch.usi.dag.dislre.protocol.Main.CloseConnection getCloseConnection(); + + /** + *
+     */ Analysis messages
+     * 
+ * + * optional .Analyze analyze = 10; + */ + ch.usi.dag.dislre.protocol.Analysis.Analyze getAnalyze(); + + /** + * optional .CloseConnection close = 11; + */ + ch.usi.dag.dislre.protocol.Main.CloseConnection getClose(); + + /** + * optional .ClassInfo class_info = 12; + */ + ch.usi.dag.dislre.protocol.Analysis.ClassInfo getClassInfo(); + + /** + * optional .NewClass new_class = 13; + */ + ch.usi.dag.dislre.protocol.Analysis.NewClass getNewClass(); + + /** + * optional .ObjectFree object_free = 14; + */ + ch.usi.dag.dislre.protocol.Analysis.ObjectFree getObjectFree(); + + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis getRegisterAnalysis(); + + /** + * optional .StringInfo string_info = 16; + */ + ch.usi.dag.dislre.protocol.Analysis.StringInfo getStringInfo(); + + /** + * optional .ThreadEnd thread_end = 17; + */ + ch.usi.dag.dislre.protocol.Analysis.ThreadEnd getThreadEnd(); + + /** + * optional .ThreadInfo thread_info = 18; + */ + ch.usi.dag.dislre.protocol.Analysis.ThreadInfo getThreadInfo(); + + public ch.usi.dag.dislre.protocol.Main.ClientMessage.RequestCase getRequestCase(); + } + /** + *
+   * Pack together messages from client to simply distinguish them at the server side.
+   * 
+ * + * Protobuf type {@code ClientMessage} + */ + public static final class ClientMessage extends + com.google.protobuf.GeneratedMessageLite< + ClientMessage, ClientMessage.Builder> implements + // @@protoc_insertion_point(message_implements:ClientMessage) + ClientMessageOrBuilder { + private ClientMessage() { + } + private int requestCase_ = 0; + private java.lang.Object request_; + public enum RequestCase + implements com.google.protobuf.Internal.EnumLite { + SESSION_INIT_REQUEST(2), + INSTRUMENTATION_DELIVERY(3), + INSTRUMENT_CLASS_REQUEST(4), + CLOSE_CONNECTION(5), + ANALYZE(10), + CLOSE(11), + CLASS_INFO(12), + NEW_CLASS(13), + OBJECT_FREE(14), + REGISTER_ANALYSIS(15), + STRING_INFO(16), + THREAD_END(17), + THREAD_INFO(18), + REQUEST_NOT_SET(0); + private final int value; + private RequestCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RequestCase valueOf(int value) { + return forNumber(value); + } + + public static RequestCase forNumber(int value) { + switch (value) { + case 2: return SESSION_INIT_REQUEST; + case 3: return INSTRUMENTATION_DELIVERY; + case 4: return INSTRUMENT_CLASS_REQUEST; + case 5: return CLOSE_CONNECTION; + case 10: return ANALYZE; + case 11: return CLOSE; + case 12: return CLASS_INFO; + case 13: return NEW_CLASS; + case 14: return OBJECT_FREE; + case 15: return REGISTER_ANALYSIS; + case 16: return STRING_INFO; + case 17: return THREAD_END; + case 18: return THREAD_INFO; + case 0: return REQUEST_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); + } + + private void clearRequest() { + requestCase_ = 0; + request_ = null; + } + + public static final int SESSION_ID_FIELD_NUMBER = 1; + private int sessionId_; + /** + * optional int32 session_id = 1; + */ + public int getSessionId() { + return sessionId_; + } + /** + * optional int32 session_id = 1; + */ + private void setSessionId(int value) { + + sessionId_ = value; + } + /** + * optional int32 session_id = 1; + */ + private void clearSessionId() { + + sessionId_ = 0; + } + + public static final int SESSION_INIT_REQUEST_FIELD_NUMBER = 2; + /** + *
+     */ Instrumentation messages
+     * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + public ch.usi.dag.dislre.protocol.Main.SessionInitRequest getSessionInitRequest() { + if (requestCase_ == 2) { + return (ch.usi.dag.dislre.protocol.Main.SessionInitRequest) request_; + } + return ch.usi.dag.dislre.protocol.Main.SessionInitRequest.getDefaultInstance(); + } + /** + *
+     */ Instrumentation messages
+     * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + private void setSessionInitRequest(ch.usi.dag.dislre.protocol.Main.SessionInitRequest value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 2; + } + /** + *
+     */ Instrumentation messages
+     * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + private void setSessionInitRequest( + ch.usi.dag.dislre.protocol.Main.SessionInitRequest.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 2; + } + /** + *
+     */ Instrumentation messages
+     * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + private void mergeSessionInitRequest(ch.usi.dag.dislre.protocol.Main.SessionInitRequest value) { + if (requestCase_ == 2 && + request_ != ch.usi.dag.dislre.protocol.Main.SessionInitRequest.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Main.SessionInitRequest.newBuilder((ch.usi.dag.dislre.protocol.Main.SessionInitRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 2; + } + /** + *
+     */ Instrumentation messages
+     * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + private void clearSessionInitRequest() { + if (requestCase_ == 2) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int INSTRUMENTATION_DELIVERY_FIELD_NUMBER = 3; + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery getInstrumentationDelivery() { + if (requestCase_ == 3) { + return (ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery) request_; + } + return ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.getDefaultInstance(); + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + private void setInstrumentationDelivery(ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 3; + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + private void setInstrumentationDelivery( + ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 3; + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + private void mergeInstrumentationDelivery(ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery value) { + if (requestCase_ == 3 && + request_ != ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.newBuilder((ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 3; + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + private void clearInstrumentationDelivery() { + if (requestCase_ == 3) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int INSTRUMENT_CLASS_REQUEST_FIELD_NUMBER = 4; + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest getInstrumentClassRequest() { + if (requestCase_ == 4) { + return (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest) request_; + } + return ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.getDefaultInstance(); + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + private void setInstrumentClassRequest(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 4; + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + private void setInstrumentClassRequest( + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 4; + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + private void mergeInstrumentClassRequest(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest value) { + if (requestCase_ == 4 && + request_ != ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.newBuilder((ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 4; + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + private void clearInstrumentClassRequest() { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int CLOSE_CONNECTION_FIELD_NUMBER = 5; + /** + * optional .CloseConnection close_connection = 5; + */ + public ch.usi.dag.dislre.protocol.Main.CloseConnection getCloseConnection() { + if (requestCase_ == 5) { + return (ch.usi.dag.dislre.protocol.Main.CloseConnection) request_; + } + return ch.usi.dag.dislre.protocol.Main.CloseConnection.getDefaultInstance(); + } + /** + * optional .CloseConnection close_connection = 5; + */ + private void setCloseConnection(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 5; + } + /** + * optional .CloseConnection close_connection = 5; + */ + private void setCloseConnection( + ch.usi.dag.dislre.protocol.Main.CloseConnection.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 5; + } + /** + * optional .CloseConnection close_connection = 5; + */ + private void mergeCloseConnection(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + if (requestCase_ == 5 && + request_ != ch.usi.dag.dislre.protocol.Main.CloseConnection.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Main.CloseConnection.newBuilder((ch.usi.dag.dislre.protocol.Main.CloseConnection) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 5; + } + /** + * optional .CloseConnection close_connection = 5; + */ + private void clearCloseConnection() { + if (requestCase_ == 5) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int ANALYZE_FIELD_NUMBER = 10; + /** + *
+     */ Analysis messages
+     * 
+ * + * optional .Analyze analyze = 10; + */ + public ch.usi.dag.dislre.protocol.Analysis.Analyze getAnalyze() { + if (requestCase_ == 10) { + return (ch.usi.dag.dislre.protocol.Analysis.Analyze) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.Analyze.getDefaultInstance(); + } + /** + *
+     */ Analysis messages
+     * 
+ * + * optional .Analyze analyze = 10; + */ + private void setAnalyze(ch.usi.dag.dislre.protocol.Analysis.Analyze value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 10; + } + /** + *
+     */ Analysis messages
+     * 
+ * + * optional .Analyze analyze = 10; + */ + private void setAnalyze( + ch.usi.dag.dislre.protocol.Analysis.Analyze.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 10; + } + /** + *
+     */ Analysis messages
+     * 
+ * + * optional .Analyze analyze = 10; + */ + private void mergeAnalyze(ch.usi.dag.dislre.protocol.Analysis.Analyze value) { + if (requestCase_ == 10 && + request_ != ch.usi.dag.dislre.protocol.Analysis.Analyze.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.Analyze.newBuilder((ch.usi.dag.dislre.protocol.Analysis.Analyze) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 10; + } + /** + *
+     */ Analysis messages
+     * 
+ * + * optional .Analyze analyze = 10; + */ + private void clearAnalyze() { + if (requestCase_ == 10) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int CLOSE_FIELD_NUMBER = 11; + /** + * optional .CloseConnection close = 11; + */ + public ch.usi.dag.dislre.protocol.Main.CloseConnection getClose() { + if (requestCase_ == 11) { + return (ch.usi.dag.dislre.protocol.Main.CloseConnection) request_; + } + return ch.usi.dag.dislre.protocol.Main.CloseConnection.getDefaultInstance(); + } + /** + * optional .CloseConnection close = 11; + */ + private void setClose(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 11; + } + /** + * optional .CloseConnection close = 11; + */ + private void setClose( + ch.usi.dag.dislre.protocol.Main.CloseConnection.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 11; + } + /** + * optional .CloseConnection close = 11; + */ + private void mergeClose(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + if (requestCase_ == 11 && + request_ != ch.usi.dag.dislre.protocol.Main.CloseConnection.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Main.CloseConnection.newBuilder((ch.usi.dag.dislre.protocol.Main.CloseConnection) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 11; + } + /** + * optional .CloseConnection close = 11; + */ + private void clearClose() { + if (requestCase_ == 11) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int CLASS_INFO_FIELD_NUMBER = 12; + /** + * optional .ClassInfo class_info = 12; + */ + public ch.usi.dag.dislre.protocol.Analysis.ClassInfo getClassInfo() { + if (requestCase_ == 12) { + return (ch.usi.dag.dislre.protocol.Analysis.ClassInfo) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.ClassInfo.getDefaultInstance(); + } + /** + * optional .ClassInfo class_info = 12; + */ + private void setClassInfo(ch.usi.dag.dislre.protocol.Analysis.ClassInfo value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 12; + } + /** + * optional .ClassInfo class_info = 12; + */ + private void setClassInfo( + ch.usi.dag.dislre.protocol.Analysis.ClassInfo.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 12; + } + /** + * optional .ClassInfo class_info = 12; + */ + private void mergeClassInfo(ch.usi.dag.dislre.protocol.Analysis.ClassInfo value) { + if (requestCase_ == 12 && + request_ != ch.usi.dag.dislre.protocol.Analysis.ClassInfo.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.ClassInfo.newBuilder((ch.usi.dag.dislre.protocol.Analysis.ClassInfo) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 12; + } + /** + * optional .ClassInfo class_info = 12; + */ + private void clearClassInfo() { + if (requestCase_ == 12) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int NEW_CLASS_FIELD_NUMBER = 13; + /** + * optional .NewClass new_class = 13; + */ + public ch.usi.dag.dislre.protocol.Analysis.NewClass getNewClass() { + if (requestCase_ == 13) { + return (ch.usi.dag.dislre.protocol.Analysis.NewClass) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.NewClass.getDefaultInstance(); + } + /** + * optional .NewClass new_class = 13; + */ + private void setNewClass(ch.usi.dag.dislre.protocol.Analysis.NewClass value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 13; + } + /** + * optional .NewClass new_class = 13; + */ + private void setNewClass( + ch.usi.dag.dislre.protocol.Analysis.NewClass.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 13; + } + /** + * optional .NewClass new_class = 13; + */ + private void mergeNewClass(ch.usi.dag.dislre.protocol.Analysis.NewClass value) { + if (requestCase_ == 13 && + request_ != ch.usi.dag.dislre.protocol.Analysis.NewClass.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.NewClass.newBuilder((ch.usi.dag.dislre.protocol.Analysis.NewClass) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 13; + } + /** + * optional .NewClass new_class = 13; + */ + private void clearNewClass() { + if (requestCase_ == 13) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int OBJECT_FREE_FIELD_NUMBER = 14; + /** + * optional .ObjectFree object_free = 14; + */ + public ch.usi.dag.dislre.protocol.Analysis.ObjectFree getObjectFree() { + if (requestCase_ == 14) { + return (ch.usi.dag.dislre.protocol.Analysis.ObjectFree) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.ObjectFree.getDefaultInstance(); + } + /** + * optional .ObjectFree object_free = 14; + */ + private void setObjectFree(ch.usi.dag.dislre.protocol.Analysis.ObjectFree value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 14; + } + /** + * optional .ObjectFree object_free = 14; + */ + private void setObjectFree( + ch.usi.dag.dislre.protocol.Analysis.ObjectFree.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 14; + } + /** + * optional .ObjectFree object_free = 14; + */ + private void mergeObjectFree(ch.usi.dag.dislre.protocol.Analysis.ObjectFree value) { + if (requestCase_ == 14 && + request_ != ch.usi.dag.dislre.protocol.Analysis.ObjectFree.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.ObjectFree.newBuilder((ch.usi.dag.dislre.protocol.Analysis.ObjectFree) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 14; + } + /** + * optional .ObjectFree object_free = 14; + */ + private void clearObjectFree() { + if (requestCase_ == 14) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int REGISTER_ANALYSIS_FIELD_NUMBER = 15; + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + public ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis getRegisterAnalysis() { + if (requestCase_ == 15) { + return (ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.getDefaultInstance(); + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + private void setRegisterAnalysis(ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 15; + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + private void setRegisterAnalysis( + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 15; + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + private void mergeRegisterAnalysis(ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis value) { + if (requestCase_ == 15 && + request_ != ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.newBuilder((ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 15; + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + private void clearRegisterAnalysis() { + if (requestCase_ == 15) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int STRING_INFO_FIELD_NUMBER = 16; + /** + * optional .StringInfo string_info = 16; + */ + public ch.usi.dag.dislre.protocol.Analysis.StringInfo getStringInfo() { + if (requestCase_ == 16) { + return (ch.usi.dag.dislre.protocol.Analysis.StringInfo) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.StringInfo.getDefaultInstance(); + } + /** + * optional .StringInfo string_info = 16; + */ + private void setStringInfo(ch.usi.dag.dislre.protocol.Analysis.StringInfo value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 16; + } + /** + * optional .StringInfo string_info = 16; + */ + private void setStringInfo( + ch.usi.dag.dislre.protocol.Analysis.StringInfo.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 16; + } + /** + * optional .StringInfo string_info = 16; + */ + private void mergeStringInfo(ch.usi.dag.dislre.protocol.Analysis.StringInfo value) { + if (requestCase_ == 16 && + request_ != ch.usi.dag.dislre.protocol.Analysis.StringInfo.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.StringInfo.newBuilder((ch.usi.dag.dislre.protocol.Analysis.StringInfo) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 16; + } + /** + * optional .StringInfo string_info = 16; + */ + private void clearStringInfo() { + if (requestCase_ == 16) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int THREAD_END_FIELD_NUMBER = 17; + /** + * optional .ThreadEnd thread_end = 17; + */ + public ch.usi.dag.dislre.protocol.Analysis.ThreadEnd getThreadEnd() { + if (requestCase_ == 17) { + return (ch.usi.dag.dislre.protocol.Analysis.ThreadEnd) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.getDefaultInstance(); + } + /** + * optional .ThreadEnd thread_end = 17; + */ + private void setThreadEnd(ch.usi.dag.dislre.protocol.Analysis.ThreadEnd value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 17; + } + /** + * optional .ThreadEnd thread_end = 17; + */ + private void setThreadEnd( + ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 17; + } + /** + * optional .ThreadEnd thread_end = 17; + */ + private void mergeThreadEnd(ch.usi.dag.dislre.protocol.Analysis.ThreadEnd value) { + if (requestCase_ == 17 && + request_ != ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.newBuilder((ch.usi.dag.dislre.protocol.Analysis.ThreadEnd) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 17; + } + /** + * optional .ThreadEnd thread_end = 17; + */ + private void clearThreadEnd() { + if (requestCase_ == 17) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int THREAD_INFO_FIELD_NUMBER = 18; + /** + * optional .ThreadInfo thread_info = 18; + */ + public ch.usi.dag.dislre.protocol.Analysis.ThreadInfo getThreadInfo() { + if (requestCase_ == 18) { + return (ch.usi.dag.dislre.protocol.Analysis.ThreadInfo) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.getDefaultInstance(); + } + /** + * optional .ThreadInfo thread_info = 18; + */ + private void setThreadInfo(ch.usi.dag.dislre.protocol.Analysis.ThreadInfo value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 18; + } + /** + * optional .ThreadInfo thread_info = 18; + */ + private void setThreadInfo( + ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 18; + } + /** + * optional .ThreadInfo thread_info = 18; + */ + private void mergeThreadInfo(ch.usi.dag.dislre.protocol.Analysis.ThreadInfo value) { + if (requestCase_ == 18 && + request_ != ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.newBuilder((ch.usi.dag.dislre.protocol.Analysis.ThreadInfo) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 18; + } + /** + * optional .ThreadInfo thread_info = 18; + */ + private void clearThreadInfo() { + if (requestCase_ == 18) { + requestCase_ = 0; + request_ = null; + } + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (sessionId_ != 0) { + output.writeInt32(1, sessionId_); + } + if (requestCase_ == 2) { + output.writeMessage(2, (ch.usi.dag.dislre.protocol.Main.SessionInitRequest) request_); + } + if (requestCase_ == 3) { + output.writeMessage(3, (ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery) request_); + } + if (requestCase_ == 4) { + output.writeMessage(4, (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest) request_); + } + if (requestCase_ == 5) { + output.writeMessage(5, (ch.usi.dag.dislre.protocol.Main.CloseConnection) request_); + } + if (requestCase_ == 10) { + output.writeMessage(10, (ch.usi.dag.dislre.protocol.Analysis.Analyze) request_); + } + if (requestCase_ == 11) { + output.writeMessage(11, (ch.usi.dag.dislre.protocol.Main.CloseConnection) request_); + } + if (requestCase_ == 12) { + output.writeMessage(12, (ch.usi.dag.dislre.protocol.Analysis.ClassInfo) request_); + } + if (requestCase_ == 13) { + output.writeMessage(13, (ch.usi.dag.dislre.protocol.Analysis.NewClass) request_); + } + if (requestCase_ == 14) { + output.writeMessage(14, (ch.usi.dag.dislre.protocol.Analysis.ObjectFree) request_); + } + if (requestCase_ == 15) { + output.writeMessage(15, (ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis) request_); + } + if (requestCase_ == 16) { + output.writeMessage(16, (ch.usi.dag.dislre.protocol.Analysis.StringInfo) request_); + } + if (requestCase_ == 17) { + output.writeMessage(17, (ch.usi.dag.dislre.protocol.Analysis.ThreadEnd) request_); + } + if (requestCase_ == 18) { + output.writeMessage(18, (ch.usi.dag.dislre.protocol.Analysis.ThreadInfo) request_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (sessionId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, sessionId_); + } + if (requestCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (ch.usi.dag.dislre.protocol.Main.SessionInitRequest) request_); + } + if (requestCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery) request_); + } + if (requestCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest) request_); + } + if (requestCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (ch.usi.dag.dislre.protocol.Main.CloseConnection) request_); + } + if (requestCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (ch.usi.dag.dislre.protocol.Analysis.Analyze) request_); + } + if (requestCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (ch.usi.dag.dislre.protocol.Main.CloseConnection) request_); + } + if (requestCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (ch.usi.dag.dislre.protocol.Analysis.ClassInfo) request_); + } + if (requestCase_ == 13) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, (ch.usi.dag.dislre.protocol.Analysis.NewClass) request_); + } + if (requestCase_ == 14) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, (ch.usi.dag.dislre.protocol.Analysis.ObjectFree) request_); + } + if (requestCase_ == 15) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, (ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis) request_); + } + if (requestCase_ == 16) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, (ch.usi.dag.dislre.protocol.Analysis.StringInfo) request_); + } + if (requestCase_ == 17) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, (ch.usi.dag.dislre.protocol.Analysis.ThreadEnd) request_); + } + if (requestCase_ == 18) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, (ch.usi.dag.dislre.protocol.Analysis.ThreadInfo) request_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Main.ClientMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * Pack together messages from client to simply distinguish them at the server side.
+     * 
+ * + * Protobuf type {@code ClientMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Main.ClientMessage, Builder> implements + // @@protoc_insertion_point(builder_implements:ClientMessage) + ch.usi.dag.dislre.protocol.Main.ClientMessageOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Main.ClientMessage.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + public RequestCase + getRequestCase() { + return instance.getRequestCase(); + } + + public Builder clearRequest() { + copyOnWrite(); + instance.clearRequest(); + return this; + } + + + /** + * optional int32 session_id = 1; + */ + public int getSessionId() { + return instance.getSessionId(); + } + /** + * optional int32 session_id = 1; + */ + public Builder setSessionId(int value) { + copyOnWrite(); + instance.setSessionId(value); + return this; + } + /** + * optional int32 session_id = 1; + */ + public Builder clearSessionId() { + copyOnWrite(); + instance.clearSessionId(); + return this; + } + + /** + *
+       */ Instrumentation messages
+       * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + public ch.usi.dag.dislre.protocol.Main.SessionInitRequest getSessionInitRequest() { + return instance.getSessionInitRequest(); + } + /** + *
+       */ Instrumentation messages
+       * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + public Builder setSessionInitRequest(ch.usi.dag.dislre.protocol.Main.SessionInitRequest value) { + copyOnWrite(); + instance.setSessionInitRequest(value); + return this; + } + /** + *
+       */ Instrumentation messages
+       * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + public Builder setSessionInitRequest( + ch.usi.dag.dislre.protocol.Main.SessionInitRequest.Builder builderForValue) { + copyOnWrite(); + instance.setSessionInitRequest(builderForValue); + return this; + } + /** + *
+       */ Instrumentation messages
+       * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + public Builder mergeSessionInitRequest(ch.usi.dag.dislre.protocol.Main.SessionInitRequest value) { + copyOnWrite(); + instance.mergeSessionInitRequest(value); + return this; + } + /** + *
+       */ Instrumentation messages
+       * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + public Builder clearSessionInitRequest() { + copyOnWrite(); + instance.clearSessionInitRequest(); + return this; + } + + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery getInstrumentationDelivery() { + return instance.getInstrumentationDelivery(); + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + public Builder setInstrumentationDelivery(ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery value) { + copyOnWrite(); + instance.setInstrumentationDelivery(value); + return this; + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + public Builder setInstrumentationDelivery( + ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.Builder builderForValue) { + copyOnWrite(); + instance.setInstrumentationDelivery(builderForValue); + return this; + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + public Builder mergeInstrumentationDelivery(ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery value) { + copyOnWrite(); + instance.mergeInstrumentationDelivery(value); + return this; + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + public Builder clearInstrumentationDelivery() { + copyOnWrite(); + instance.clearInstrumentationDelivery(); + return this; + } + + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest getInstrumentClassRequest() { + return instance.getInstrumentClassRequest(); + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + public Builder setInstrumentClassRequest(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest value) { + copyOnWrite(); + instance.setInstrumentClassRequest(value); + return this; + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + public Builder setInstrumentClassRequest( + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.Builder builderForValue) { + copyOnWrite(); + instance.setInstrumentClassRequest(builderForValue); + return this; + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + public Builder mergeInstrumentClassRequest(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest value) { + copyOnWrite(); + instance.mergeInstrumentClassRequest(value); + return this; + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + public Builder clearInstrumentClassRequest() { + copyOnWrite(); + instance.clearInstrumentClassRequest(); + return this; + } + + /** + * optional .CloseConnection close_connection = 5; + */ + public ch.usi.dag.dislre.protocol.Main.CloseConnection getCloseConnection() { + return instance.getCloseConnection(); + } + /** + * optional .CloseConnection close_connection = 5; + */ + public Builder setCloseConnection(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + copyOnWrite(); + instance.setCloseConnection(value); + return this; + } + /** + * optional .CloseConnection close_connection = 5; + */ + public Builder setCloseConnection( + ch.usi.dag.dislre.protocol.Main.CloseConnection.Builder builderForValue) { + copyOnWrite(); + instance.setCloseConnection(builderForValue); + return this; + } + /** + * optional .CloseConnection close_connection = 5; + */ + public Builder mergeCloseConnection(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + copyOnWrite(); + instance.mergeCloseConnection(value); + return this; + } + /** + * optional .CloseConnection close_connection = 5; + */ + public Builder clearCloseConnection() { + copyOnWrite(); + instance.clearCloseConnection(); + return this; + } + + /** + *
+       */ Analysis messages
+       * 
+ * + * optional .Analyze analyze = 10; + */ + public ch.usi.dag.dislre.protocol.Analysis.Analyze getAnalyze() { + return instance.getAnalyze(); + } + /** + *
+       */ Analysis messages
+       * 
+ * + * optional .Analyze analyze = 10; + */ + public Builder setAnalyze(ch.usi.dag.dislre.protocol.Analysis.Analyze value) { + copyOnWrite(); + instance.setAnalyze(value); + return this; + } + /** + *
+       */ Analysis messages
+       * 
+ * + * optional .Analyze analyze = 10; + */ + public Builder setAnalyze( + ch.usi.dag.dislre.protocol.Analysis.Analyze.Builder builderForValue) { + copyOnWrite(); + instance.setAnalyze(builderForValue); + return this; + } + /** + *
+       */ Analysis messages
+       * 
+ * + * optional .Analyze analyze = 10; + */ + public Builder mergeAnalyze(ch.usi.dag.dislre.protocol.Analysis.Analyze value) { + copyOnWrite(); + instance.mergeAnalyze(value); + return this; + } + /** + *
+       */ Analysis messages
+       * 
+ * + * optional .Analyze analyze = 10; + */ + public Builder clearAnalyze() { + copyOnWrite(); + instance.clearAnalyze(); + return this; + } + + /** + * optional .CloseConnection close = 11; + */ + public ch.usi.dag.dislre.protocol.Main.CloseConnection getClose() { + return instance.getClose(); + } + /** + * optional .CloseConnection close = 11; + */ + public Builder setClose(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + copyOnWrite(); + instance.setClose(value); + return this; + } + /** + * optional .CloseConnection close = 11; + */ + public Builder setClose( + ch.usi.dag.dislre.protocol.Main.CloseConnection.Builder builderForValue) { + copyOnWrite(); + instance.setClose(builderForValue); + return this; + } + /** + * optional .CloseConnection close = 11; + */ + public Builder mergeClose(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + copyOnWrite(); + instance.mergeClose(value); + return this; + } + /** + * optional .CloseConnection close = 11; + */ + public Builder clearClose() { + copyOnWrite(); + instance.clearClose(); + return this; + } + + /** + * optional .ClassInfo class_info = 12; + */ + public ch.usi.dag.dislre.protocol.Analysis.ClassInfo getClassInfo() { + return instance.getClassInfo(); + } + /** + * optional .ClassInfo class_info = 12; + */ + public Builder setClassInfo(ch.usi.dag.dislre.protocol.Analysis.ClassInfo value) { + copyOnWrite(); + instance.setClassInfo(value); + return this; + } + /** + * optional .ClassInfo class_info = 12; + */ + public Builder setClassInfo( + ch.usi.dag.dislre.protocol.Analysis.ClassInfo.Builder builderForValue) { + copyOnWrite(); + instance.setClassInfo(builderForValue); + return this; + } + /** + * optional .ClassInfo class_info = 12; + */ + public Builder mergeClassInfo(ch.usi.dag.dislre.protocol.Analysis.ClassInfo value) { + copyOnWrite(); + instance.mergeClassInfo(value); + return this; + } + /** + * optional .ClassInfo class_info = 12; + */ + public Builder clearClassInfo() { + copyOnWrite(); + instance.clearClassInfo(); + return this; + } + + /** + * optional .NewClass new_class = 13; + */ + public ch.usi.dag.dislre.protocol.Analysis.NewClass getNewClass() { + return instance.getNewClass(); + } + /** + * optional .NewClass new_class = 13; + */ + public Builder setNewClass(ch.usi.dag.dislre.protocol.Analysis.NewClass value) { + copyOnWrite(); + instance.setNewClass(value); + return this; + } + /** + * optional .NewClass new_class = 13; + */ + public Builder setNewClass( + ch.usi.dag.dislre.protocol.Analysis.NewClass.Builder builderForValue) { + copyOnWrite(); + instance.setNewClass(builderForValue); + return this; + } + /** + * optional .NewClass new_class = 13; + */ + public Builder mergeNewClass(ch.usi.dag.dislre.protocol.Analysis.NewClass value) { + copyOnWrite(); + instance.mergeNewClass(value); + return this; + } + /** + * optional .NewClass new_class = 13; + */ + public Builder clearNewClass() { + copyOnWrite(); + instance.clearNewClass(); + return this; + } + + /** + * optional .ObjectFree object_free = 14; + */ + public ch.usi.dag.dislre.protocol.Analysis.ObjectFree getObjectFree() { + return instance.getObjectFree(); + } + /** + * optional .ObjectFree object_free = 14; + */ + public Builder setObjectFree(ch.usi.dag.dislre.protocol.Analysis.ObjectFree value) { + copyOnWrite(); + instance.setObjectFree(value); + return this; + } + /** + * optional .ObjectFree object_free = 14; + */ + public Builder setObjectFree( + ch.usi.dag.dislre.protocol.Analysis.ObjectFree.Builder builderForValue) { + copyOnWrite(); + instance.setObjectFree(builderForValue); + return this; + } + /** + * optional .ObjectFree object_free = 14; + */ + public Builder mergeObjectFree(ch.usi.dag.dislre.protocol.Analysis.ObjectFree value) { + copyOnWrite(); + instance.mergeObjectFree(value); + return this; + } + /** + * optional .ObjectFree object_free = 14; + */ + public Builder clearObjectFree() { + copyOnWrite(); + instance.clearObjectFree(); + return this; + } + + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + public ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis getRegisterAnalysis() { + return instance.getRegisterAnalysis(); + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + public Builder setRegisterAnalysis(ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis value) { + copyOnWrite(); + instance.setRegisterAnalysis(value); + return this; + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + public Builder setRegisterAnalysis( + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.Builder builderForValue) { + copyOnWrite(); + instance.setRegisterAnalysis(builderForValue); + return this; + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + public Builder mergeRegisterAnalysis(ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis value) { + copyOnWrite(); + instance.mergeRegisterAnalysis(value); + return this; + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + public Builder clearRegisterAnalysis() { + copyOnWrite(); + instance.clearRegisterAnalysis(); + return this; + } + + /** + * optional .StringInfo string_info = 16; + */ + public ch.usi.dag.dislre.protocol.Analysis.StringInfo getStringInfo() { + return instance.getStringInfo(); + } + /** + * optional .StringInfo string_info = 16; + */ + public Builder setStringInfo(ch.usi.dag.dislre.protocol.Analysis.StringInfo value) { + copyOnWrite(); + instance.setStringInfo(value); + return this; + } + /** + * optional .StringInfo string_info = 16; + */ + public Builder setStringInfo( + ch.usi.dag.dislre.protocol.Analysis.StringInfo.Builder builderForValue) { + copyOnWrite(); + instance.setStringInfo(builderForValue); + return this; + } + /** + * optional .StringInfo string_info = 16; + */ + public Builder mergeStringInfo(ch.usi.dag.dislre.protocol.Analysis.StringInfo value) { + copyOnWrite(); + instance.mergeStringInfo(value); + return this; + } + /** + * optional .StringInfo string_info = 16; + */ + public Builder clearStringInfo() { + copyOnWrite(); + instance.clearStringInfo(); + return this; + } + + /** + * optional .ThreadEnd thread_end = 17; + */ + public ch.usi.dag.dislre.protocol.Analysis.ThreadEnd getThreadEnd() { + return instance.getThreadEnd(); + } + /** + * optional .ThreadEnd thread_end = 17; + */ + public Builder setThreadEnd(ch.usi.dag.dislre.protocol.Analysis.ThreadEnd value) { + copyOnWrite(); + instance.setThreadEnd(value); + return this; + } + /** + * optional .ThreadEnd thread_end = 17; + */ + public Builder setThreadEnd( + ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.Builder builderForValue) { + copyOnWrite(); + instance.setThreadEnd(builderForValue); + return this; + } + /** + * optional .ThreadEnd thread_end = 17; + */ + public Builder mergeThreadEnd(ch.usi.dag.dislre.protocol.Analysis.ThreadEnd value) { + copyOnWrite(); + instance.mergeThreadEnd(value); + return this; + } + /** + * optional .ThreadEnd thread_end = 17; + */ + public Builder clearThreadEnd() { + copyOnWrite(); + instance.clearThreadEnd(); + return this; + } + + /** + * optional .ThreadInfo thread_info = 18; + */ + public ch.usi.dag.dislre.protocol.Analysis.ThreadInfo getThreadInfo() { + return instance.getThreadInfo(); + } + /** + * optional .ThreadInfo thread_info = 18; + */ + public Builder setThreadInfo(ch.usi.dag.dislre.protocol.Analysis.ThreadInfo value) { + copyOnWrite(); + instance.setThreadInfo(value); + return this; + } + /** + * optional .ThreadInfo thread_info = 18; + */ + public Builder setThreadInfo( + ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.Builder builderForValue) { + copyOnWrite(); + instance.setThreadInfo(builderForValue); + return this; + } + /** + * optional .ThreadInfo thread_info = 18; + */ + public Builder mergeThreadInfo(ch.usi.dag.dislre.protocol.Analysis.ThreadInfo value) { + copyOnWrite(); + instance.mergeThreadInfo(value); + return this; + } + /** + * optional .ThreadInfo thread_info = 18; + */ + public Builder clearThreadInfo() { + copyOnWrite(); + instance.clearThreadInfo(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ClientMessage) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Main.ClientMessage(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Main.ClientMessage other = (ch.usi.dag.dislre.protocol.Main.ClientMessage) arg1; + sessionId_ = visitor.visitInt(sessionId_ != 0, sessionId_, + other.sessionId_ != 0, other.sessionId_); + switch (other.getRequestCase()) { + case SESSION_INIT_REQUEST: { + request_ = visitor.visitOneofMessage( + requestCase_ == 2, + request_, + other.request_); + break; + } + case INSTRUMENTATION_DELIVERY: { + request_ = visitor.visitOneofMessage( + requestCase_ == 3, + request_, + other.request_); + break; + } + case INSTRUMENT_CLASS_REQUEST: { + request_ = visitor.visitOneofMessage( + requestCase_ == 4, + request_, + other.request_); + break; + } + case CLOSE_CONNECTION: { + request_ = visitor.visitOneofMessage( + requestCase_ == 5, + request_, + other.request_); + break; + } + case ANALYZE: { + request_ = visitor.visitOneofMessage( + requestCase_ == 10, + request_, + other.request_); + break; + } + case CLOSE: { + request_ = visitor.visitOneofMessage( + requestCase_ == 11, + request_, + other.request_); + break; + } + case CLASS_INFO: { + request_ = visitor.visitOneofMessage( + requestCase_ == 12, + request_, + other.request_); + break; + } + case NEW_CLASS: { + request_ = visitor.visitOneofMessage( + requestCase_ == 13, + request_, + other.request_); + break; + } + case OBJECT_FREE: { + request_ = visitor.visitOneofMessage( + requestCase_ == 14, + request_, + other.request_); + break; + } + case REGISTER_ANALYSIS: { + request_ = visitor.visitOneofMessage( + requestCase_ == 15, + request_, + other.request_); + break; + } + case STRING_INFO: { + request_ = visitor.visitOneofMessage( + requestCase_ == 16, + request_, + other.request_); + break; + } + case THREAD_END: { + request_ = visitor.visitOneofMessage( + requestCase_ == 17, + request_, + other.request_); + break; + } + case THREAD_INFO: { + request_ = visitor.visitOneofMessage( + requestCase_ == 18, + request_, + other.request_); + break; + } + case REQUEST_NOT_SET: { + visitor.visitOneofNotSet(requestCase_ != 0); + break; + } + } + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + if (other.requestCase_ != 0) { + requestCase_ = other.requestCase_; + } + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + sessionId_ = input.readInt32(); + break; + } + case 18: { + ch.usi.dag.dislre.protocol.Main.SessionInitRequest.Builder subBuilder = null; + if (requestCase_ == 2) { + subBuilder = ((ch.usi.dag.dislre.protocol.Main.SessionInitRequest) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Main.SessionInitRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Main.SessionInitRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 2; + break; + } + case 26: { + ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.Builder subBuilder = null; + if (requestCase_ == 3) { + subBuilder = ((ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 3; + break; + } + case 34: { + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.Builder subBuilder = null; + if (requestCase_ == 4) { + subBuilder = ((ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 4; + break; + } + case 42: { + ch.usi.dag.dislre.protocol.Main.CloseConnection.Builder subBuilder = null; + if (requestCase_ == 5) { + subBuilder = ((ch.usi.dag.dislre.protocol.Main.CloseConnection) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Main.CloseConnection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Main.CloseConnection) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 5; + break; + } + case 82: { + ch.usi.dag.dislre.protocol.Analysis.Analyze.Builder subBuilder = null; + if (requestCase_ == 10) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.Analyze) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.Analyze.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.Analyze) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 10; + break; + } + case 90: { + ch.usi.dag.dislre.protocol.Main.CloseConnection.Builder subBuilder = null; + if (requestCase_ == 11) { + subBuilder = ((ch.usi.dag.dislre.protocol.Main.CloseConnection) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Main.CloseConnection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Main.CloseConnection) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 11; + break; + } + case 98: { + ch.usi.dag.dislre.protocol.Analysis.ClassInfo.Builder subBuilder = null; + if (requestCase_ == 12) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.ClassInfo) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.ClassInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.ClassInfo) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 12; + break; + } + case 106: { + ch.usi.dag.dislre.protocol.Analysis.NewClass.Builder subBuilder = null; + if (requestCase_ == 13) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.NewClass) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.NewClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.NewClass) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 13; + break; + } + case 114: { + ch.usi.dag.dislre.protocol.Analysis.ObjectFree.Builder subBuilder = null; + if (requestCase_ == 14) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.ObjectFree) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.ObjectFree.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.ObjectFree) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 14; + break; + } + case 122: { + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.Builder subBuilder = null; + if (requestCase_ == 15) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 15; + break; + } + case 130: { + ch.usi.dag.dislre.protocol.Analysis.StringInfo.Builder subBuilder = null; + if (requestCase_ == 16) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.StringInfo) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.StringInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.StringInfo) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 16; + break; + } + case 138: { + ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.Builder subBuilder = null; + if (requestCase_ == 17) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.ThreadEnd) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.ThreadEnd) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 17; + break; + } + case 146: { + ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.Builder subBuilder = null; + if (requestCase_ == 18) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.ThreadInfo) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.ThreadInfo) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 18; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Main.ClientMessage.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:ClientMessage) + private static final ch.usi.dag.dislre.protocol.Main.ClientMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ClientMessage(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Main.ClientMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ServerMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:ServerMessage) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional .SessionInitResponse session_init_response = 1; + */ + ch.usi.dag.dislre.protocol.Main.SessionInitResponse getSessionInitResponse(); + + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation getInstrumentationAcceptConfirmation(); + + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse getInstrumentClassResponse(); + + public ch.usi.dag.dislre.protocol.Main.ServerMessage.ResponseCase getResponseCase(); + } + /** + *
+   * Pack together messages from server to simply distinguish them at the client side.
+   * 
+ * + * Protobuf type {@code ServerMessage} + */ + public static final class ServerMessage extends + com.google.protobuf.GeneratedMessageLite< + ServerMessage, ServerMessage.Builder> implements + // @@protoc_insertion_point(message_implements:ServerMessage) + ServerMessageOrBuilder { + private ServerMessage() { + } + private int responseCase_ = 0; + private java.lang.Object response_; + public enum ResponseCase + implements com.google.protobuf.Internal.EnumLite { + SESSION_INIT_RESPONSE(1), + INSTRUMENTATION_ACCEPT_CONFIRMATION(2), + INSTRUMENT_CLASS_RESPONSE(3), + RESPONSE_NOT_SET(0); + private final int value; + private ResponseCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResponseCase valueOf(int value) { + return forNumber(value); + } + + public static ResponseCase forNumber(int value) { + switch (value) { + case 1: return SESSION_INIT_RESPONSE; + case 2: return INSTRUMENTATION_ACCEPT_CONFIRMATION; + case 3: return INSTRUMENT_CLASS_RESPONSE; + case 0: return RESPONSE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); + } + + private void clearResponse() { + responseCase_ = 0; + response_ = null; + } + + public static final int SESSION_INIT_RESPONSE_FIELD_NUMBER = 1; + /** + * optional .SessionInitResponse session_init_response = 1; + */ + public ch.usi.dag.dislre.protocol.Main.SessionInitResponse getSessionInitResponse() { + if (responseCase_ == 1) { + return (ch.usi.dag.dislre.protocol.Main.SessionInitResponse) response_; + } + return ch.usi.dag.dislre.protocol.Main.SessionInitResponse.getDefaultInstance(); + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + private void setSessionInitResponse(ch.usi.dag.dislre.protocol.Main.SessionInitResponse value) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + responseCase_ = 1; + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + private void setSessionInitResponse( + ch.usi.dag.dislre.protocol.Main.SessionInitResponse.Builder builderForValue) { + response_ = builderForValue.build(); + responseCase_ = 1; + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + private void mergeSessionInitResponse(ch.usi.dag.dislre.protocol.Main.SessionInitResponse value) { + if (responseCase_ == 1 && + response_ != ch.usi.dag.dislre.protocol.Main.SessionInitResponse.getDefaultInstance()) { + response_ = ch.usi.dag.dislre.protocol.Main.SessionInitResponse.newBuilder((ch.usi.dag.dislre.protocol.Main.SessionInitResponse) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + responseCase_ = 1; + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + private void clearSessionInitResponse() { + if (responseCase_ == 1) { + responseCase_ = 0; + response_ = null; + } + } + + public static final int INSTRUMENTATION_ACCEPT_CONFIRMATION_FIELD_NUMBER = 2; + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation getInstrumentationAcceptConfirmation() { + if (responseCase_ == 2) { + return (ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation) response_; + } + return ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.getDefaultInstance(); + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + private void setInstrumentationAcceptConfirmation(ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation value) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + responseCase_ = 2; + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + private void setInstrumentationAcceptConfirmation( + ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.Builder builderForValue) { + response_ = builderForValue.build(); + responseCase_ = 2; + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + private void mergeInstrumentationAcceptConfirmation(ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation value) { + if (responseCase_ == 2 && + response_ != ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.getDefaultInstance()) { + response_ = ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.newBuilder((ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + responseCase_ = 2; + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + private void clearInstrumentationAcceptConfirmation() { + if (responseCase_ == 2) { + responseCase_ = 0; + response_ = null; + } + } + + public static final int INSTRUMENT_CLASS_RESPONSE_FIELD_NUMBER = 3; + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse getInstrumentClassResponse() { + if (responseCase_ == 3) { + return (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse) response_; + } + return ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.getDefaultInstance(); + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + private void setInstrumentClassResponse(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse value) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + responseCase_ = 3; + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + private void setInstrumentClassResponse( + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.Builder builderForValue) { + response_ = builderForValue.build(); + responseCase_ = 3; + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + private void mergeInstrumentClassResponse(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse value) { + if (responseCase_ == 3 && + response_ != ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.getDefaultInstance()) { + response_ = ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.newBuilder((ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + responseCase_ = 3; + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + private void clearInstrumentClassResponse() { + if (responseCase_ == 3) { + responseCase_ = 0; + response_ = null; + } + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (responseCase_ == 1) { + output.writeMessage(1, (ch.usi.dag.dislre.protocol.Main.SessionInitResponse) response_); + } + if (responseCase_ == 2) { + output.writeMessage(2, (ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation) response_); + } + if (responseCase_ == 3) { + output.writeMessage(3, (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse) response_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (responseCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (ch.usi.dag.dislre.protocol.Main.SessionInitResponse) response_); + } + if (responseCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation) response_); + } + if (responseCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse) response_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Main.ServerMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * Pack together messages from server to simply distinguish them at the client side.
+     * 
+ * + * Protobuf type {@code ServerMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Main.ServerMessage, Builder> implements + // @@protoc_insertion_point(builder_implements:ServerMessage) + ch.usi.dag.dislre.protocol.Main.ServerMessageOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Main.ServerMessage.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + public ResponseCase + getResponseCase() { + return instance.getResponseCase(); + } + + public Builder clearResponse() { + copyOnWrite(); + instance.clearResponse(); + return this; + } + + + /** + * optional .SessionInitResponse session_init_response = 1; + */ + public ch.usi.dag.dislre.protocol.Main.SessionInitResponse getSessionInitResponse() { + return instance.getSessionInitResponse(); + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + public Builder setSessionInitResponse(ch.usi.dag.dislre.protocol.Main.SessionInitResponse value) { + copyOnWrite(); + instance.setSessionInitResponse(value); + return this; + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + public Builder setSessionInitResponse( + ch.usi.dag.dislre.protocol.Main.SessionInitResponse.Builder builderForValue) { + copyOnWrite(); + instance.setSessionInitResponse(builderForValue); + return this; + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + public Builder mergeSessionInitResponse(ch.usi.dag.dislre.protocol.Main.SessionInitResponse value) { + copyOnWrite(); + instance.mergeSessionInitResponse(value); + return this; + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + public Builder clearSessionInitResponse() { + copyOnWrite(); + instance.clearSessionInitResponse(); + return this; + } + + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation getInstrumentationAcceptConfirmation() { + return instance.getInstrumentationAcceptConfirmation(); + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + public Builder setInstrumentationAcceptConfirmation(ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation value) { + copyOnWrite(); + instance.setInstrumentationAcceptConfirmation(value); + return this; + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + public Builder setInstrumentationAcceptConfirmation( + ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.Builder builderForValue) { + copyOnWrite(); + instance.setInstrumentationAcceptConfirmation(builderForValue); + return this; + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + public Builder mergeInstrumentationAcceptConfirmation(ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation value) { + copyOnWrite(); + instance.mergeInstrumentationAcceptConfirmation(value); + return this; + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + public Builder clearInstrumentationAcceptConfirmation() { + copyOnWrite(); + instance.clearInstrumentationAcceptConfirmation(); + return this; + } + + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse getInstrumentClassResponse() { + return instance.getInstrumentClassResponse(); + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + public Builder setInstrumentClassResponse(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse value) { + copyOnWrite(); + instance.setInstrumentClassResponse(value); + return this; + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + public Builder setInstrumentClassResponse( + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.Builder builderForValue) { + copyOnWrite(); + instance.setInstrumentClassResponse(builderForValue); + return this; + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + public Builder mergeInstrumentClassResponse(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse value) { + copyOnWrite(); + instance.mergeInstrumentClassResponse(value); + return this; + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + public Builder clearInstrumentClassResponse() { + copyOnWrite(); + instance.clearInstrumentClassResponse(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ServerMessage) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Main.ServerMessage(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Main.ServerMessage other = (ch.usi.dag.dislre.protocol.Main.ServerMessage) arg1; + switch (other.getResponseCase()) { + case SESSION_INIT_RESPONSE: { + response_ = visitor.visitOneofMessage( + responseCase_ == 1, + response_, + other.response_); + break; + } + case INSTRUMENTATION_ACCEPT_CONFIRMATION: { + response_ = visitor.visitOneofMessage( + responseCase_ == 2, + response_, + other.response_); + break; + } + case INSTRUMENT_CLASS_RESPONSE: { + response_ = visitor.visitOneofMessage( + responseCase_ == 3, + response_, + other.response_); + break; + } + case RESPONSE_NOT_SET: { + visitor.visitOneofNotSet(responseCase_ != 0); + break; + } + } + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + if (other.responseCase_ != 0) { + responseCase_ = other.responseCase_; + } + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + ch.usi.dag.dislre.protocol.Main.SessionInitResponse.Builder subBuilder = null; + if (responseCase_ == 1) { + subBuilder = ((ch.usi.dag.dislre.protocol.Main.SessionInitResponse) response_).toBuilder(); + } + response_ = + input.readMessage(ch.usi.dag.dislre.protocol.Main.SessionInitResponse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Main.SessionInitResponse) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 1; + break; + } + case 18: { + ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.Builder subBuilder = null; + if (responseCase_ == 2) { + subBuilder = ((ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation) response_).toBuilder(); + } + response_ = + input.readMessage(ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 2; + break; + } + case 26: { + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.Builder subBuilder = null; + if (responseCase_ == 3) { + subBuilder = ((ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse) response_).toBuilder(); + } + response_ = + input.readMessage(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 3; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Main.ServerMessage.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:ServerMessage) + private static final ch.usi.dag.dislre.protocol.Main.ServerMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ServerMessage(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Main.ServerMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + + static { + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/disl-server/src/ch/usi/dag/dislserver/ConnectionHandler.java b/disl-server/src/ch/usi/dag/dislserver/ConnectionHandler.java index 0edb11b7..e5eb1dc4 100644 --- a/disl-server/src/ch/usi/dag/dislserver/ConnectionHandler.java +++ b/disl-server/src/ch/usi/dag/dislserver/ConnectionHandler.java @@ -7,7 +7,8 @@ package ch.usi.dag.dislserver; -import ch.usi.dag.dislserver.Protocol.*; +import ch.usi.dag.dislre.protocol.Main.*; +import ch.usi.dag.dislre.protocol.DiSL.*; import ch.usi.dag.util.logging.Logger; import com.google.protobuf.CodedInputStream; import com.google.protobuf.CodedOutputStream; @@ -141,7 +142,7 @@ final class ConnectionHandler implements Runnable { timer.mark (DiSLServer.ElapsedTime.PROCESS); sendMessage (response, timer); - if (response.getInstrumentClassResponse ().getResult () == Protocol.InstrumentClassResponse.InstrumentClassResult.ERROR) { + if (response.getInstrumentClassResponse ().getResult () == InstrumentClassResponse.InstrumentClassResult.ERROR) { // // Error during instrumentation. Report it to the client // and stop receiving requests from this connection. diff --git a/disl-server/src/ch/usi/dag/dislserver/Protocol.java b/disl-server/src/ch/usi/dag/dislserver/Protocol.java deleted file mode 100644 index 634428b5..00000000 --- a/disl-server/src/ch/usi/dag/dislserver/Protocol.java +++ /dev/null @@ -1,5688 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: dislserver.proto - -package ch.usi.dag.dislserver; - -public final class Protocol { - private Protocol() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public interface ErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:Error) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional int32 code = 1; - */ - int getCode(); - - /** - * optional string message = 2; - */ - java.lang.String getMessage(); - /** - * optional string message = 2; - */ - com.google.protobuf.ByteString - getMessageBytes(); - } - /** - *
-   * Common type to send errors
-   * 
- * - * Protobuf type {@code Error} - */ - public static final class Error extends - com.google.protobuf.GeneratedMessageLite< - Error, Error.Builder> implements - // @@protoc_insertion_point(message_implements:Error) - ErrorOrBuilder { - private Error() { - message_ = ""; - } - public static final int CODE_FIELD_NUMBER = 1; - private int code_; - /** - * optional int32 code = 1; - */ - public int getCode() { - return code_; - } - /** - * optional int32 code = 1; - */ - private void setCode(int value) { - - code_ = value; - } - /** - * optional int32 code = 1; - */ - private void clearCode() { - - code_ = 0; - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private java.lang.String message_; - /** - * optional string message = 2; - */ - public java.lang.String getMessage() { - return message_; - } - /** - * optional string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(message_); - } - /** - * optional string message = 2; - */ - private void setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - } - /** - * optional string message = 2; - */ - private void clearMessage() { - - message_ = getDefaultInstance().getMessage(); - } - /** - * optional string message = 2; - */ - private void setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value.toStringUtf8(); - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != 0) { - output.writeInt32(1, code_); - } - if (!message_.isEmpty()) { - output.writeString(2, getMessage()); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, code_); - } - if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getMessage()); - } - memoizedSerializedSize = size; - return size; - } - - public static ch.usi.dag.dislserver.Protocol.Error parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.Error parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.Error parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.Error parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.Error parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.Error parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.Error parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.Error parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.Error parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.Error parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ch.usi.dag.dislserver.Protocol.Error prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - *
-     * Common type to send errors
-     * 
- * - * Protobuf type {@code Error} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislserver.Protocol.Error, Builder> implements - // @@protoc_insertion_point(builder_implements:Error) - ch.usi.dag.dislserver.Protocol.ErrorOrBuilder { - // Construct using ch.usi.dag.dislserver.Protocol.Error.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * optional int32 code = 1; - */ - public int getCode() { - return instance.getCode(); - } - /** - * optional int32 code = 1; - */ - public Builder setCode(int value) { - copyOnWrite(); - instance.setCode(value); - return this; - } - /** - * optional int32 code = 1; - */ - public Builder clearCode() { - copyOnWrite(); - instance.clearCode(); - return this; - } - - /** - * optional string message = 2; - */ - public java.lang.String getMessage() { - return instance.getMessage(); - } - /** - * optional string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - return instance.getMessageBytes(); - } - /** - * optional string message = 2; - */ - public Builder setMessage( - java.lang.String value) { - copyOnWrite(); - instance.setMessage(value); - return this; - } - /** - * optional string message = 2; - */ - public Builder clearMessage() { - copyOnWrite(); - instance.clearMessage(); - return this; - } - /** - * optional string message = 2; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setMessageBytes(value); - return this; - } - - // @@protoc_insertion_point(builder_scope:Error) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislserver.Protocol.Error(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislserver.Protocol.Error other = (ch.usi.dag.dislserver.Protocol.Error) arg1; - code_ = visitor.visitInt(code_ != 0, code_, - other.code_ != 0, other.code_); - message_ = visitor.visitString(!message_.isEmpty(), message_, - !other.message_.isEmpty(), other.message_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - code_ = input.readInt32(); - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislserver.Protocol.Error.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:Error) - private static final ch.usi.dag.dislserver.Protocol.Error DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new Error(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static ch.usi.dag.dislserver.Protocol.Error getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface SessionInitRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:SessionInitRequest) - com.google.protobuf.MessageLiteOrBuilder { - } - /** - *
-   * Request server to initialize session
-   * This is sent as the clients first message
-   * May contain some additional data to describe the client (JVM version etc.)
-   * 
- * - * Protobuf type {@code SessionInitRequest} - */ - public static final class SessionInitRequest extends - com.google.protobuf.GeneratedMessageLite< - SessionInitRequest, SessionInitRequest.Builder> implements - // @@protoc_insertion_point(message_implements:SessionInitRequest) - SessionInitRequestOrBuilder { - private SessionInitRequest() { - } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - memoizedSerializedSize = size; - return size; - } - - public static ch.usi.dag.dislserver.Protocol.SessionInitRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ch.usi.dag.dislserver.Protocol.SessionInitRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - *
-     * Request server to initialize session
-     * This is sent as the clients first message
-     * May contain some additional data to describe the client (JVM version etc.)
-     * 
- * - * Protobuf type {@code SessionInitRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislserver.Protocol.SessionInitRequest, Builder> implements - // @@protoc_insertion_point(builder_implements:SessionInitRequest) - ch.usi.dag.dislserver.Protocol.SessionInitRequestOrBuilder { - // Construct using ch.usi.dag.dislserver.Protocol.SessionInitRequest.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - // @@protoc_insertion_point(builder_scope:SessionInitRequest) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislserver.Protocol.SessionInitRequest(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislserver.Protocol.SessionInitRequest other = (ch.usi.dag.dislserver.Protocol.SessionInitRequest) arg1; - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislserver.Protocol.SessionInitRequest.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:SessionInitRequest) - private static final ch.usi.dag.dislserver.Protocol.SessionInitRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new SessionInitRequest(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static ch.usi.dag.dislserver.Protocol.SessionInitRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface SessionInitResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:SessionInitResponse) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional bool accepted = 1; - */ - boolean getAccepted(); - - /** - * optional int32 session_id = 2; - */ - int getSessionId(); - - /** - * repeated .Error errors = 3; - */ - java.util.List - getErrorsList(); - /** - * repeated .Error errors = 3; - */ - ch.usi.dag.dislserver.Protocol.Error getErrors(int index); - /** - * repeated .Error errors = 3; - */ - int getErrorsCount(); - } - /** - *
-   * This is the response to SessionInitRequest message
-   * The request could either be ACCEPTed or DENYed
-   * In the case of positive answer, there is also a session_id present
-   * 
- * - * Protobuf type {@code SessionInitResponse} - */ - public static final class SessionInitResponse extends - com.google.protobuf.GeneratedMessageLite< - SessionInitResponse, SessionInitResponse.Builder> implements - // @@protoc_insertion_point(message_implements:SessionInitResponse) - SessionInitResponseOrBuilder { - private SessionInitResponse() { - errors_ = emptyProtobufList(); - } - private int bitField0_; - public static final int ACCEPTED_FIELD_NUMBER = 1; - private boolean accepted_; - /** - * optional bool accepted = 1; - */ - public boolean getAccepted() { - return accepted_; - } - /** - * optional bool accepted = 1; - */ - private void setAccepted(boolean value) { - - accepted_ = value; - } - /** - * optional bool accepted = 1; - */ - private void clearAccepted() { - - accepted_ = false; - } - - public static final int SESSION_ID_FIELD_NUMBER = 2; - private int sessionId_; - /** - * optional int32 session_id = 2; - */ - public int getSessionId() { - return sessionId_; - } - /** - * optional int32 session_id = 2; - */ - private void setSessionId(int value) { - - sessionId_ = value; - } - /** - * optional int32 session_id = 2; - */ - private void clearSessionId() { - - sessionId_ = 0; - } - - public static final int ERRORS_FIELD_NUMBER = 3; - private com.google.protobuf.Internal.ProtobufList errors_; - /** - * repeated .Error errors = 3; - */ - public java.util.List getErrorsList() { - return errors_; - } - /** - * repeated .Error errors = 3; - */ - public java.util.List - getErrorsOrBuilderList() { - return errors_; - } - /** - * repeated .Error errors = 3; - */ - public int getErrorsCount() { - return errors_.size(); - } - /** - * repeated .Error errors = 3; - */ - public ch.usi.dag.dislserver.Protocol.Error getErrors(int index) { - return errors_.get(index); - } - /** - * repeated .Error errors = 3; - */ - public ch.usi.dag.dislserver.Protocol.ErrorOrBuilder getErrorsOrBuilder( - int index) { - return errors_.get(index); - } - private void ensureErrorsIsMutable() { - if (!errors_.isModifiable()) { - errors_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(errors_); - } - } - - /** - * repeated .Error errors = 3; - */ - private void setErrors( - int index, ch.usi.dag.dislserver.Protocol.Error value) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.set(index, value); - } - /** - * repeated .Error errors = 3; - */ - private void setErrors( - int index, ch.usi.dag.dislserver.Protocol.Error.Builder builderForValue) { - ensureErrorsIsMutable(); - errors_.set(index, builderForValue.build()); - } - /** - * repeated .Error errors = 3; - */ - private void addErrors(ch.usi.dag.dislserver.Protocol.Error value) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.add(value); - } - /** - * repeated .Error errors = 3; - */ - private void addErrors( - int index, ch.usi.dag.dislserver.Protocol.Error value) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.add(index, value); - } - /** - * repeated .Error errors = 3; - */ - private void addErrors( - ch.usi.dag.dislserver.Protocol.Error.Builder builderForValue) { - ensureErrorsIsMutable(); - errors_.add(builderForValue.build()); - } - /** - * repeated .Error errors = 3; - */ - private void addErrors( - int index, ch.usi.dag.dislserver.Protocol.Error.Builder builderForValue) { - ensureErrorsIsMutable(); - errors_.add(index, builderForValue.build()); - } - /** - * repeated .Error errors = 3; - */ - private void addAllErrors( - java.lang.Iterable values) { - ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, errors_); - } - /** - * repeated .Error errors = 3; - */ - private void clearErrors() { - errors_ = emptyProtobufList(); - } - /** - * repeated .Error errors = 3; - */ - private void removeErrors(int index) { - ensureErrorsIsMutable(); - errors_.remove(index); - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (accepted_ != false) { - output.writeBool(1, accepted_); - } - if (sessionId_ != 0) { - output.writeInt32(2, sessionId_); - } - for (int i = 0; i < errors_.size(); i++) { - output.writeMessage(3, errors_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (accepted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, accepted_); - } - if (sessionId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, sessionId_); - } - for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, errors_.get(i)); - } - memoizedSerializedSize = size; - return size; - } - - public static ch.usi.dag.dislserver.Protocol.SessionInitResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.SessionInitResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ch.usi.dag.dislserver.Protocol.SessionInitResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - *
-     * This is the response to SessionInitRequest message
-     * The request could either be ACCEPTed or DENYed
-     * In the case of positive answer, there is also a session_id present
-     * 
- * - * Protobuf type {@code SessionInitResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislserver.Protocol.SessionInitResponse, Builder> implements - // @@protoc_insertion_point(builder_implements:SessionInitResponse) - ch.usi.dag.dislserver.Protocol.SessionInitResponseOrBuilder { - // Construct using ch.usi.dag.dislserver.Protocol.SessionInitResponse.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * optional bool accepted = 1; - */ - public boolean getAccepted() { - return instance.getAccepted(); - } - /** - * optional bool accepted = 1; - */ - public Builder setAccepted(boolean value) { - copyOnWrite(); - instance.setAccepted(value); - return this; - } - /** - * optional bool accepted = 1; - */ - public Builder clearAccepted() { - copyOnWrite(); - instance.clearAccepted(); - return this; - } - - /** - * optional int32 session_id = 2; - */ - public int getSessionId() { - return instance.getSessionId(); - } - /** - * optional int32 session_id = 2; - */ - public Builder setSessionId(int value) { - copyOnWrite(); - instance.setSessionId(value); - return this; - } - /** - * optional int32 session_id = 2; - */ - public Builder clearSessionId() { - copyOnWrite(); - instance.clearSessionId(); - return this; - } - - /** - * repeated .Error errors = 3; - */ - public java.util.List getErrorsList() { - return java.util.Collections.unmodifiableList( - instance.getErrorsList()); - } - /** - * repeated .Error errors = 3; - */ - public int getErrorsCount() { - return instance.getErrorsCount(); - }/** - * repeated .Error errors = 3; - */ - public ch.usi.dag.dislserver.Protocol.Error getErrors(int index) { - return instance.getErrors(index); - } - /** - * repeated .Error errors = 3; - */ - public Builder setErrors( - int index, ch.usi.dag.dislserver.Protocol.Error value) { - copyOnWrite(); - instance.setErrors(index, value); - return this; - } - /** - * repeated .Error errors = 3; - */ - public Builder setErrors( - int index, ch.usi.dag.dislserver.Protocol.Error.Builder builderForValue) { - copyOnWrite(); - instance.setErrors(index, builderForValue); - return this; - } - /** - * repeated .Error errors = 3; - */ - public Builder addErrors(ch.usi.dag.dislserver.Protocol.Error value) { - copyOnWrite(); - instance.addErrors(value); - return this; - } - /** - * repeated .Error errors = 3; - */ - public Builder addErrors( - int index, ch.usi.dag.dislserver.Protocol.Error value) { - copyOnWrite(); - instance.addErrors(index, value); - return this; - } - /** - * repeated .Error errors = 3; - */ - public Builder addErrors( - ch.usi.dag.dislserver.Protocol.Error.Builder builderForValue) { - copyOnWrite(); - instance.addErrors(builderForValue); - return this; - } - /** - * repeated .Error errors = 3; - */ - public Builder addErrors( - int index, ch.usi.dag.dislserver.Protocol.Error.Builder builderForValue) { - copyOnWrite(); - instance.addErrors(index, builderForValue); - return this; - } - /** - * repeated .Error errors = 3; - */ - public Builder addAllErrors( - java.lang.Iterable values) { - copyOnWrite(); - instance.addAllErrors(values); - return this; - } - /** - * repeated .Error errors = 3; - */ - public Builder clearErrors() { - copyOnWrite(); - instance.clearErrors(); - return this; - } - /** - * repeated .Error errors = 3; - */ - public Builder removeErrors(int index) { - copyOnWrite(); - instance.removeErrors(index); - return this; - } - - // @@protoc_insertion_point(builder_scope:SessionInitResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislserver.Protocol.SessionInitResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - errors_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislserver.Protocol.SessionInitResponse other = (ch.usi.dag.dislserver.Protocol.SessionInitResponse) arg1; - accepted_ = visitor.visitBoolean(accepted_ != false, accepted_, - other.accepted_ != false, other.accepted_); - sessionId_ = visitor.visitInt(sessionId_ != 0, sessionId_, - other.sessionId_ != 0, other.sessionId_); - errors_= visitor.visitList(errors_, other.errors_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - accepted_ = input.readBool(); - break; - } - case 16: { - - sessionId_ = input.readInt32(); - break; - } - case 26: { - if (!errors_.isModifiable()) { - errors_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(errors_); - } - errors_.add( - input.readMessage(ch.usi.dag.dislserver.Protocol.Error.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislserver.Protocol.SessionInitResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:SessionInitResponse) - private static final ch.usi.dag.dislserver.Protocol.SessionInitResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new SessionInitResponse(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static ch.usi.dag.dislserver.Protocol.SessionInitResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface InstrumentationDeliveryOrBuilder extends - // @@protoc_insertion_point(interface_extends:InstrumentationDelivery) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * repeated int32 sizes = 1; - */ - java.util.List getSizesList(); - /** - * repeated int32 sizes = 1; - */ - int getSizesCount(); - /** - * repeated int32 sizes = 1; - */ - int getSizes(int index); - - /** - * optional bytes instrumentation = 2; - */ - com.google.protobuf.ByteString getInstrumentation(); - } - /** - *
-   * When the client obtains the session_id, next step should be sending
-   * the instrumentation jar (or more of them) to the instrumentation server.
-   * 
- * - * Protobuf type {@code InstrumentationDelivery} - */ - public static final class InstrumentationDelivery extends - com.google.protobuf.GeneratedMessageLite< - InstrumentationDelivery, InstrumentationDelivery.Builder> implements - // @@protoc_insertion_point(message_implements:InstrumentationDelivery) - InstrumentationDeliveryOrBuilder { - private InstrumentationDelivery() { - sizes_ = emptyIntList(); - instrumentation_ = com.google.protobuf.ByteString.EMPTY; - } - private int bitField0_; - public static final int SIZES_FIELD_NUMBER = 1; - private com.google.protobuf.Internal.IntList sizes_; - /** - * repeated int32 sizes = 1; - */ - public java.util.List - getSizesList() { - return sizes_; - } - /** - * repeated int32 sizes = 1; - */ - public int getSizesCount() { - return sizes_.size(); - } - /** - * repeated int32 sizes = 1; - */ - public int getSizes(int index) { - return sizes_.getInt(index); - } - private void ensureSizesIsMutable() { - if (!sizes_.isModifiable()) { - sizes_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(sizes_); - } - } - /** - * repeated int32 sizes = 1; - */ - private void setSizes( - int index, int value) { - ensureSizesIsMutable(); - sizes_.setInt(index, value); - } - /** - * repeated int32 sizes = 1; - */ - private void addSizes(int value) { - ensureSizesIsMutable(); - sizes_.addInt(value); - } - /** - * repeated int32 sizes = 1; - */ - private void addAllSizes( - java.lang.Iterable values) { - ensureSizesIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, sizes_); - } - /** - * repeated int32 sizes = 1; - */ - private void clearSizes() { - sizes_ = emptyIntList(); - } - - public static final int INSTRUMENTATION_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString instrumentation_; - /** - * optional bytes instrumentation = 2; - */ - public com.google.protobuf.ByteString getInstrumentation() { - return instrumentation_; - } - /** - * optional bytes instrumentation = 2; - */ - private void setInstrumentation(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - instrumentation_ = value; - } - /** - * optional bytes instrumentation = 2; - */ - private void clearInstrumentation() { - - instrumentation_ = getDefaultInstance().getInstrumentation(); - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < sizes_.size(); i++) { - output.writeInt32(1, sizes_.getInt(i)); - } - if (!instrumentation_.isEmpty()) { - output.writeBytes(2, instrumentation_); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < sizes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(sizes_.getInt(i)); - } - size += dataSize; - size += 1 * getSizesList().size(); - } - if (!instrumentation_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, instrumentation_); - } - memoizedSerializedSize = size; - return size; - } - - public static ch.usi.dag.dislserver.Protocol.InstrumentationDelivery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationDelivery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationDelivery parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationDelivery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationDelivery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationDelivery parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationDelivery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationDelivery parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationDelivery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationDelivery parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ch.usi.dag.dislserver.Protocol.InstrumentationDelivery prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - *
-     * When the client obtains the session_id, next step should be sending
-     * the instrumentation jar (or more of them) to the instrumentation server.
-     * 
- * - * Protobuf type {@code InstrumentationDelivery} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislserver.Protocol.InstrumentationDelivery, Builder> implements - // @@protoc_insertion_point(builder_implements:InstrumentationDelivery) - ch.usi.dag.dislserver.Protocol.InstrumentationDeliveryOrBuilder { - // Construct using ch.usi.dag.dislserver.Protocol.InstrumentationDelivery.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * repeated int32 sizes = 1; - */ - public java.util.List - getSizesList() { - return java.util.Collections.unmodifiableList( - instance.getSizesList()); - } - /** - * repeated int32 sizes = 1; - */ - public int getSizesCount() { - return instance.getSizesCount(); - } - /** - * repeated int32 sizes = 1; - */ - public int getSizes(int index) { - return instance.getSizes(index); - } - /** - * repeated int32 sizes = 1; - */ - public Builder setSizes( - int index, int value) { - copyOnWrite(); - instance.setSizes(index, value); - return this; - } - /** - * repeated int32 sizes = 1; - */ - public Builder addSizes(int value) { - copyOnWrite(); - instance.addSizes(value); - return this; - } - /** - * repeated int32 sizes = 1; - */ - public Builder addAllSizes( - java.lang.Iterable values) { - copyOnWrite(); - instance.addAllSizes(values); - return this; - } - /** - * repeated int32 sizes = 1; - */ - public Builder clearSizes() { - copyOnWrite(); - instance.clearSizes(); - return this; - } - - /** - * optional bytes instrumentation = 2; - */ - public com.google.protobuf.ByteString getInstrumentation() { - return instance.getInstrumentation(); - } - /** - * optional bytes instrumentation = 2; - */ - public Builder setInstrumentation(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setInstrumentation(value); - return this; - } - /** - * optional bytes instrumentation = 2; - */ - public Builder clearInstrumentation() { - copyOnWrite(); - instance.clearInstrumentation(); - return this; - } - - // @@protoc_insertion_point(builder_scope:InstrumentationDelivery) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislserver.Protocol.InstrumentationDelivery(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - sizes_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislserver.Protocol.InstrumentationDelivery other = (ch.usi.dag.dislserver.Protocol.InstrumentationDelivery) arg1; - sizes_= visitor.visitIntList(sizes_, other.sizes_); - instrumentation_ = visitor.visitByteString(instrumentation_ != com.google.protobuf.ByteString.EMPTY, instrumentation_, - other.instrumentation_ != com.google.protobuf.ByteString.EMPTY, other.instrumentation_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - if (!sizes_.isModifiable()) { - sizes_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(sizes_); - } - sizes_.addInt(input.readInt32()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!sizes_.isModifiable() && input.getBytesUntilLimit() > 0) { - sizes_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(sizes_); - } - while (input.getBytesUntilLimit() > 0) { - sizes_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } - case 18: { - - instrumentation_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislserver.Protocol.InstrumentationDelivery.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:InstrumentationDelivery) - private static final ch.usi.dag.dislserver.Protocol.InstrumentationDelivery DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new InstrumentationDelivery(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static ch.usi.dag.dislserver.Protocol.InstrumentationDelivery getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface InstrumentationAcceptConfirmationOrBuilder extends - // @@protoc_insertion_point(interface_extends:InstrumentationAcceptConfirmation) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional bool instrumentation_accepted = 1; - */ - boolean getInstrumentationAccepted(); - - /** - * repeated .Error errors = 2; - */ - java.util.List - getErrorsList(); - /** - * repeated .Error errors = 2; - */ - ch.usi.dag.dislserver.Protocol.Error getErrors(int index); - /** - * repeated .Error errors = 2; - */ - int getErrorsCount(); - } - /** - *
-   * This is server response to InstrumentationDelivery message
-   * 
- * - * Protobuf type {@code InstrumentationAcceptConfirmation} - */ - public static final class InstrumentationAcceptConfirmation extends - com.google.protobuf.GeneratedMessageLite< - InstrumentationAcceptConfirmation, InstrumentationAcceptConfirmation.Builder> implements - // @@protoc_insertion_point(message_implements:InstrumentationAcceptConfirmation) - InstrumentationAcceptConfirmationOrBuilder { - private InstrumentationAcceptConfirmation() { - errors_ = emptyProtobufList(); - } - private int bitField0_; - public static final int INSTRUMENTATION_ACCEPTED_FIELD_NUMBER = 1; - private boolean instrumentationAccepted_; - /** - * optional bool instrumentation_accepted = 1; - */ - public boolean getInstrumentationAccepted() { - return instrumentationAccepted_; - } - /** - * optional bool instrumentation_accepted = 1; - */ - private void setInstrumentationAccepted(boolean value) { - - instrumentationAccepted_ = value; - } - /** - * optional bool instrumentation_accepted = 1; - */ - private void clearInstrumentationAccepted() { - - instrumentationAccepted_ = false; - } - - public static final int ERRORS_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.ProtobufList errors_; - /** - * repeated .Error errors = 2; - */ - public java.util.List getErrorsList() { - return errors_; - } - /** - * repeated .Error errors = 2; - */ - public java.util.List - getErrorsOrBuilderList() { - return errors_; - } - /** - * repeated .Error errors = 2; - */ - public int getErrorsCount() { - return errors_.size(); - } - /** - * repeated .Error errors = 2; - */ - public ch.usi.dag.dislserver.Protocol.Error getErrors(int index) { - return errors_.get(index); - } - /** - * repeated .Error errors = 2; - */ - public ch.usi.dag.dislserver.Protocol.ErrorOrBuilder getErrorsOrBuilder( - int index) { - return errors_.get(index); - } - private void ensureErrorsIsMutable() { - if (!errors_.isModifiable()) { - errors_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(errors_); - } - } - - /** - * repeated .Error errors = 2; - */ - private void setErrors( - int index, ch.usi.dag.dislserver.Protocol.Error value) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.set(index, value); - } - /** - * repeated .Error errors = 2; - */ - private void setErrors( - int index, ch.usi.dag.dislserver.Protocol.Error.Builder builderForValue) { - ensureErrorsIsMutable(); - errors_.set(index, builderForValue.build()); - } - /** - * repeated .Error errors = 2; - */ - private void addErrors(ch.usi.dag.dislserver.Protocol.Error value) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.add(value); - } - /** - * repeated .Error errors = 2; - */ - private void addErrors( - int index, ch.usi.dag.dislserver.Protocol.Error value) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.add(index, value); - } - /** - * repeated .Error errors = 2; - */ - private void addErrors( - ch.usi.dag.dislserver.Protocol.Error.Builder builderForValue) { - ensureErrorsIsMutable(); - errors_.add(builderForValue.build()); - } - /** - * repeated .Error errors = 2; - */ - private void addErrors( - int index, ch.usi.dag.dislserver.Protocol.Error.Builder builderForValue) { - ensureErrorsIsMutable(); - errors_.add(index, builderForValue.build()); - } - /** - * repeated .Error errors = 2; - */ - private void addAllErrors( - java.lang.Iterable values) { - ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, errors_); - } - /** - * repeated .Error errors = 2; - */ - private void clearErrors() { - errors_ = emptyProtobufList(); - } - /** - * repeated .Error errors = 2; - */ - private void removeErrors(int index) { - ensureErrorsIsMutable(); - errors_.remove(index); - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (instrumentationAccepted_ != false) { - output.writeBool(1, instrumentationAccepted_); - } - for (int i = 0; i < errors_.size(); i++) { - output.writeMessage(2, errors_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (instrumentationAccepted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, instrumentationAccepted_); - } - for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, errors_.get(i)); - } - memoizedSerializedSize = size; - return size; - } - - public static ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - *
-     * This is server response to InstrumentationDelivery message
-     * 
- * - * Protobuf type {@code InstrumentationAcceptConfirmation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation, Builder> implements - // @@protoc_insertion_point(builder_implements:InstrumentationAcceptConfirmation) - ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmationOrBuilder { - // Construct using ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * optional bool instrumentation_accepted = 1; - */ - public boolean getInstrumentationAccepted() { - return instance.getInstrumentationAccepted(); - } - /** - * optional bool instrumentation_accepted = 1; - */ - public Builder setInstrumentationAccepted(boolean value) { - copyOnWrite(); - instance.setInstrumentationAccepted(value); - return this; - } - /** - * optional bool instrumentation_accepted = 1; - */ - public Builder clearInstrumentationAccepted() { - copyOnWrite(); - instance.clearInstrumentationAccepted(); - return this; - } - - /** - * repeated .Error errors = 2; - */ - public java.util.List getErrorsList() { - return java.util.Collections.unmodifiableList( - instance.getErrorsList()); - } - /** - * repeated .Error errors = 2; - */ - public int getErrorsCount() { - return instance.getErrorsCount(); - }/** - * repeated .Error errors = 2; - */ - public ch.usi.dag.dislserver.Protocol.Error getErrors(int index) { - return instance.getErrors(index); - } - /** - * repeated .Error errors = 2; - */ - public Builder setErrors( - int index, ch.usi.dag.dislserver.Protocol.Error value) { - copyOnWrite(); - instance.setErrors(index, value); - return this; - } - /** - * repeated .Error errors = 2; - */ - public Builder setErrors( - int index, ch.usi.dag.dislserver.Protocol.Error.Builder builderForValue) { - copyOnWrite(); - instance.setErrors(index, builderForValue); - return this; - } - /** - * repeated .Error errors = 2; - */ - public Builder addErrors(ch.usi.dag.dislserver.Protocol.Error value) { - copyOnWrite(); - instance.addErrors(value); - return this; - } - /** - * repeated .Error errors = 2; - */ - public Builder addErrors( - int index, ch.usi.dag.dislserver.Protocol.Error value) { - copyOnWrite(); - instance.addErrors(index, value); - return this; - } - /** - * repeated .Error errors = 2; - */ - public Builder addErrors( - ch.usi.dag.dislserver.Protocol.Error.Builder builderForValue) { - copyOnWrite(); - instance.addErrors(builderForValue); - return this; - } - /** - * repeated .Error errors = 2; - */ - public Builder addErrors( - int index, ch.usi.dag.dislserver.Protocol.Error.Builder builderForValue) { - copyOnWrite(); - instance.addErrors(index, builderForValue); - return this; - } - /** - * repeated .Error errors = 2; - */ - public Builder addAllErrors( - java.lang.Iterable values) { - copyOnWrite(); - instance.addAllErrors(values); - return this; - } - /** - * repeated .Error errors = 2; - */ - public Builder clearErrors() { - copyOnWrite(); - instance.clearErrors(); - return this; - } - /** - * repeated .Error errors = 2; - */ - public Builder removeErrors(int index) { - copyOnWrite(); - instance.removeErrors(index); - return this; - } - - // @@protoc_insertion_point(builder_scope:InstrumentationAcceptConfirmation) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - errors_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation other = (ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation) arg1; - instrumentationAccepted_ = visitor.visitBoolean(instrumentationAccepted_ != false, instrumentationAccepted_, - other.instrumentationAccepted_ != false, other.instrumentationAccepted_); - errors_= visitor.visitList(errors_, other.errors_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - instrumentationAccepted_ = input.readBool(); - break; - } - case 18: { - if (!errors_.isModifiable()) { - errors_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(errors_); - } - errors_.add( - input.readMessage(ch.usi.dag.dislserver.Protocol.Error.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:InstrumentationAcceptConfirmation) - private static final ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new InstrumentationAcceptConfirmation(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface ClassInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:ClassInfo) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional string className = 1; - */ - java.lang.String getClassName(); - /** - * optional string className = 1; - */ - com.google.protobuf.ByteString - getClassNameBytes(); - - /** - * optional int64 classLoaderTag = 2; - */ - long getClassLoaderTag(); - } - /** - * Protobuf type {@code ClassInfo} - */ - public static final class ClassInfo extends - com.google.protobuf.GeneratedMessageLite< - ClassInfo, ClassInfo.Builder> implements - // @@protoc_insertion_point(message_implements:ClassInfo) - ClassInfoOrBuilder { - private ClassInfo() { - className_ = ""; - } - public static final int CLASSNAME_FIELD_NUMBER = 1; - private java.lang.String className_; - /** - * optional string className = 1; - */ - public java.lang.String getClassName() { - return className_; - } - /** - * optional string className = 1; - */ - public com.google.protobuf.ByteString - getClassNameBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(className_); - } - /** - * optional string className = 1; - */ - private void setClassName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - className_ = value; - } - /** - * optional string className = 1; - */ - private void clearClassName() { - - className_ = getDefaultInstance().getClassName(); - } - /** - * optional string className = 1; - */ - private void setClassNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - className_ = value.toStringUtf8(); - } - - public static final int CLASSLOADERTAG_FIELD_NUMBER = 2; - private long classLoaderTag_; - /** - * optional int64 classLoaderTag = 2; - */ - public long getClassLoaderTag() { - return classLoaderTag_; - } - /** - * optional int64 classLoaderTag = 2; - */ - private void setClassLoaderTag(long value) { - - classLoaderTag_ = value; - } - /** - * optional int64 classLoaderTag = 2; - */ - private void clearClassLoaderTag() { - - classLoaderTag_ = 0L; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!className_.isEmpty()) { - output.writeString(1, getClassName()); - } - if (classLoaderTag_ != 0L) { - output.writeInt64(2, classLoaderTag_); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (!className_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(1, getClassName()); - } - if (classLoaderTag_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, classLoaderTag_); - } - memoizedSerializedSize = size; - return size; - } - - public static ch.usi.dag.dislserver.Protocol.ClassInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.ClassInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.ClassInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.ClassInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.ClassInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.ClassInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.ClassInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.ClassInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.ClassInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.ClassInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ch.usi.dag.dislserver.Protocol.ClassInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - * Protobuf type {@code ClassInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislserver.Protocol.ClassInfo, Builder> implements - // @@protoc_insertion_point(builder_implements:ClassInfo) - ch.usi.dag.dislserver.Protocol.ClassInfoOrBuilder { - // Construct using ch.usi.dag.dislserver.Protocol.ClassInfo.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * optional string className = 1; - */ - public java.lang.String getClassName() { - return instance.getClassName(); - } - /** - * optional string className = 1; - */ - public com.google.protobuf.ByteString - getClassNameBytes() { - return instance.getClassNameBytes(); - } - /** - * optional string className = 1; - */ - public Builder setClassName( - java.lang.String value) { - copyOnWrite(); - instance.setClassName(value); - return this; - } - /** - * optional string className = 1; - */ - public Builder clearClassName() { - copyOnWrite(); - instance.clearClassName(); - return this; - } - /** - * optional string className = 1; - */ - public Builder setClassNameBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setClassNameBytes(value); - return this; - } - - /** - * optional int64 classLoaderTag = 2; - */ - public long getClassLoaderTag() { - return instance.getClassLoaderTag(); - } - /** - * optional int64 classLoaderTag = 2; - */ - public Builder setClassLoaderTag(long value) { - copyOnWrite(); - instance.setClassLoaderTag(value); - return this; - } - /** - * optional int64 classLoaderTag = 2; - */ - public Builder clearClassLoaderTag() { - copyOnWrite(); - instance.clearClassLoaderTag(); - return this; - } - - // @@protoc_insertion_point(builder_scope:ClassInfo) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislserver.Protocol.ClassInfo(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislserver.Protocol.ClassInfo other = (ch.usi.dag.dislserver.Protocol.ClassInfo) arg1; - className_ = visitor.visitString(!className_.isEmpty(), className_, - !other.className_.isEmpty(), other.className_); - classLoaderTag_ = visitor.visitLong(classLoaderTag_ != 0L, classLoaderTag_, - other.classLoaderTag_ != 0L, other.classLoaderTag_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - String s = input.readStringRequireUtf8(); - - className_ = s; - break; - } - case 16: { - - classLoaderTag_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislserver.Protocol.ClassInfo.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:ClassInfo) - private static final ch.usi.dag.dislserver.Protocol.ClassInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ClassInfo(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static ch.usi.dag.dislserver.Protocol.ClassInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface InstrumentClassRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:InstrumentClassRequest) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional int32 flags = 2; - */ - int getFlags(); - - /** - * optional .ClassInfo classInfo = 5; - */ - boolean hasClassInfo(); - /** - * optional .ClassInfo classInfo = 5; - */ - ch.usi.dag.dislserver.Protocol.ClassInfo getClassInfo(); - - /** - * optional bytes classBytes = 4; - */ - com.google.protobuf.ByteString getClassBytes(); - - /** - * repeated .ClassInfo superTypes = 6; - */ - java.util.List - getSuperTypesList(); - /** - * repeated .ClassInfo superTypes = 6; - */ - ch.usi.dag.dislserver.Protocol.ClassInfo getSuperTypes(int index); - /** - * repeated .ClassInfo superTypes = 6; - */ - int getSuperTypesCount(); - } - /** - *
-   * This is the request to the instrumentaion server to instrument attached class.
-   * 
- * - * Protobuf type {@code InstrumentClassRequest} - */ - public static final class InstrumentClassRequest extends - com.google.protobuf.GeneratedMessageLite< - InstrumentClassRequest, InstrumentClassRequest.Builder> implements - // @@protoc_insertion_point(message_implements:InstrumentClassRequest) - InstrumentClassRequestOrBuilder { - private InstrumentClassRequest() { - classBytes_ = com.google.protobuf.ByteString.EMPTY; - superTypes_ = emptyProtobufList(); - } - private int bitField0_; - public static final int FLAGS_FIELD_NUMBER = 2; - private int flags_; - /** - * optional int32 flags = 2; - */ - public int getFlags() { - return flags_; - } - /** - * optional int32 flags = 2; - */ - private void setFlags(int value) { - - flags_ = value; - } - /** - * optional int32 flags = 2; - */ - private void clearFlags() { - - flags_ = 0; - } - - public static final int CLASSINFO_FIELD_NUMBER = 5; - private ch.usi.dag.dislserver.Protocol.ClassInfo classInfo_; - /** - * optional .ClassInfo classInfo = 5; - */ - public boolean hasClassInfo() { - return classInfo_ != null; - } - /** - * optional .ClassInfo classInfo = 5; - */ - public ch.usi.dag.dislserver.Protocol.ClassInfo getClassInfo() { - return classInfo_ == null ? ch.usi.dag.dislserver.Protocol.ClassInfo.getDefaultInstance() : classInfo_; - } - /** - * optional .ClassInfo classInfo = 5; - */ - private void setClassInfo(ch.usi.dag.dislserver.Protocol.ClassInfo value) { - if (value == null) { - throw new NullPointerException(); - } - classInfo_ = value; - - } - /** - * optional .ClassInfo classInfo = 5; - */ - private void setClassInfo( - ch.usi.dag.dislserver.Protocol.ClassInfo.Builder builderForValue) { - classInfo_ = builderForValue.build(); - - } - /** - * optional .ClassInfo classInfo = 5; - */ - private void mergeClassInfo(ch.usi.dag.dislserver.Protocol.ClassInfo value) { - if (classInfo_ != null && - classInfo_ != ch.usi.dag.dislserver.Protocol.ClassInfo.getDefaultInstance()) { - classInfo_ = - ch.usi.dag.dislserver.Protocol.ClassInfo.newBuilder(classInfo_).mergeFrom(value).buildPartial(); - } else { - classInfo_ = value; - } - - } - /** - * optional .ClassInfo classInfo = 5; - */ - private void clearClassInfo() { classInfo_ = null; - - } - - public static final int CLASSBYTES_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString classBytes_; - /** - * optional bytes classBytes = 4; - */ - public com.google.protobuf.ByteString getClassBytes() { - return classBytes_; - } - /** - * optional bytes classBytes = 4; - */ - private void setClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - classBytes_ = value; - } - /** - * optional bytes classBytes = 4; - */ - private void clearClassBytes() { - - classBytes_ = getDefaultInstance().getClassBytes(); - } - - public static final int SUPERTYPES_FIELD_NUMBER = 6; - private com.google.protobuf.Internal.ProtobufList superTypes_; - /** - * repeated .ClassInfo superTypes = 6; - */ - public java.util.List getSuperTypesList() { - return superTypes_; - } - /** - * repeated .ClassInfo superTypes = 6; - */ - public java.util.List - getSuperTypesOrBuilderList() { - return superTypes_; - } - /** - * repeated .ClassInfo superTypes = 6; - */ - public int getSuperTypesCount() { - return superTypes_.size(); - } - /** - * repeated .ClassInfo superTypes = 6; - */ - public ch.usi.dag.dislserver.Protocol.ClassInfo getSuperTypes(int index) { - return superTypes_.get(index); - } - /** - * repeated .ClassInfo superTypes = 6; - */ - public ch.usi.dag.dislserver.Protocol.ClassInfoOrBuilder getSuperTypesOrBuilder( - int index) { - return superTypes_.get(index); - } - private void ensureSuperTypesIsMutable() { - if (!superTypes_.isModifiable()) { - superTypes_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(superTypes_); - } - } - - /** - * repeated .ClassInfo superTypes = 6; - */ - private void setSuperTypes( - int index, ch.usi.dag.dislserver.Protocol.ClassInfo value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSuperTypesIsMutable(); - superTypes_.set(index, value); - } - /** - * repeated .ClassInfo superTypes = 6; - */ - private void setSuperTypes( - int index, ch.usi.dag.dislserver.Protocol.ClassInfo.Builder builderForValue) { - ensureSuperTypesIsMutable(); - superTypes_.set(index, builderForValue.build()); - } - /** - * repeated .ClassInfo superTypes = 6; - */ - private void addSuperTypes(ch.usi.dag.dislserver.Protocol.ClassInfo value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSuperTypesIsMutable(); - superTypes_.add(value); - } - /** - * repeated .ClassInfo superTypes = 6; - */ - private void addSuperTypes( - int index, ch.usi.dag.dislserver.Protocol.ClassInfo value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSuperTypesIsMutable(); - superTypes_.add(index, value); - } - /** - * repeated .ClassInfo superTypes = 6; - */ - private void addSuperTypes( - ch.usi.dag.dislserver.Protocol.ClassInfo.Builder builderForValue) { - ensureSuperTypesIsMutable(); - superTypes_.add(builderForValue.build()); - } - /** - * repeated .ClassInfo superTypes = 6; - */ - private void addSuperTypes( - int index, ch.usi.dag.dislserver.Protocol.ClassInfo.Builder builderForValue) { - ensureSuperTypesIsMutable(); - superTypes_.add(index, builderForValue.build()); - } - /** - * repeated .ClassInfo superTypes = 6; - */ - private void addAllSuperTypes( - java.lang.Iterable values) { - ensureSuperTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.addAll( - values, superTypes_); - } - /** - * repeated .ClassInfo superTypes = 6; - */ - private void clearSuperTypes() { - superTypes_ = emptyProtobufList(); - } - /** - * repeated .ClassInfo superTypes = 6; - */ - private void removeSuperTypes(int index) { - ensureSuperTypesIsMutable(); - superTypes_.remove(index); - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (flags_ != 0) { - output.writeInt32(2, flags_); - } - if (!classBytes_.isEmpty()) { - output.writeBytes(4, classBytes_); - } - if (classInfo_ != null) { - output.writeMessage(5, getClassInfo()); - } - for (int i = 0; i < superTypes_.size(); i++) { - output.writeMessage(6, superTypes_.get(i)); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (flags_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, flags_); - } - if (!classBytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, classBytes_); - } - if (classInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getClassInfo()); - } - for (int i = 0; i < superTypes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, superTypes_.get(i)); - } - memoizedSerializedSize = size; - return size; - } - - public static ch.usi.dag.dislserver.Protocol.InstrumentClassRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ch.usi.dag.dislserver.Protocol.InstrumentClassRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - *
-     * This is the request to the instrumentaion server to instrument attached class.
-     * 
- * - * Protobuf type {@code InstrumentClassRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislserver.Protocol.InstrumentClassRequest, Builder> implements - // @@protoc_insertion_point(builder_implements:InstrumentClassRequest) - ch.usi.dag.dislserver.Protocol.InstrumentClassRequestOrBuilder { - // Construct using ch.usi.dag.dislserver.Protocol.InstrumentClassRequest.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * optional int32 flags = 2; - */ - public int getFlags() { - return instance.getFlags(); - } - /** - * optional int32 flags = 2; - */ - public Builder setFlags(int value) { - copyOnWrite(); - instance.setFlags(value); - return this; - } - /** - * optional int32 flags = 2; - */ - public Builder clearFlags() { - copyOnWrite(); - instance.clearFlags(); - return this; - } - - /** - * optional .ClassInfo classInfo = 5; - */ - public boolean hasClassInfo() { - return instance.hasClassInfo(); - } - /** - * optional .ClassInfo classInfo = 5; - */ - public ch.usi.dag.dislserver.Protocol.ClassInfo getClassInfo() { - return instance.getClassInfo(); - } - /** - * optional .ClassInfo classInfo = 5; - */ - public Builder setClassInfo(ch.usi.dag.dislserver.Protocol.ClassInfo value) { - copyOnWrite(); - instance.setClassInfo(value); - return this; - } - /** - * optional .ClassInfo classInfo = 5; - */ - public Builder setClassInfo( - ch.usi.dag.dislserver.Protocol.ClassInfo.Builder builderForValue) { - copyOnWrite(); - instance.setClassInfo(builderForValue); - return this; - } - /** - * optional .ClassInfo classInfo = 5; - */ - public Builder mergeClassInfo(ch.usi.dag.dislserver.Protocol.ClassInfo value) { - copyOnWrite(); - instance.mergeClassInfo(value); - return this; - } - /** - * optional .ClassInfo classInfo = 5; - */ - public Builder clearClassInfo() { copyOnWrite(); - instance.clearClassInfo(); - return this; - } - - /** - * optional bytes classBytes = 4; - */ - public com.google.protobuf.ByteString getClassBytes() { - return instance.getClassBytes(); - } - /** - * optional bytes classBytes = 4; - */ - public Builder setClassBytes(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setClassBytes(value); - return this; - } - /** - * optional bytes classBytes = 4; - */ - public Builder clearClassBytes() { - copyOnWrite(); - instance.clearClassBytes(); - return this; - } - - /** - * repeated .ClassInfo superTypes = 6; - */ - public java.util.List getSuperTypesList() { - return java.util.Collections.unmodifiableList( - instance.getSuperTypesList()); - } - /** - * repeated .ClassInfo superTypes = 6; - */ - public int getSuperTypesCount() { - return instance.getSuperTypesCount(); - }/** - * repeated .ClassInfo superTypes = 6; - */ - public ch.usi.dag.dislserver.Protocol.ClassInfo getSuperTypes(int index) { - return instance.getSuperTypes(index); - } - /** - * repeated .ClassInfo superTypes = 6; - */ - public Builder setSuperTypes( - int index, ch.usi.dag.dislserver.Protocol.ClassInfo value) { - copyOnWrite(); - instance.setSuperTypes(index, value); - return this; - } - /** - * repeated .ClassInfo superTypes = 6; - */ - public Builder setSuperTypes( - int index, ch.usi.dag.dislserver.Protocol.ClassInfo.Builder builderForValue) { - copyOnWrite(); - instance.setSuperTypes(index, builderForValue); - return this; - } - /** - * repeated .ClassInfo superTypes = 6; - */ - public Builder addSuperTypes(ch.usi.dag.dislserver.Protocol.ClassInfo value) { - copyOnWrite(); - instance.addSuperTypes(value); - return this; - } - /** - * repeated .ClassInfo superTypes = 6; - */ - public Builder addSuperTypes( - int index, ch.usi.dag.dislserver.Protocol.ClassInfo value) { - copyOnWrite(); - instance.addSuperTypes(index, value); - return this; - } - /** - * repeated .ClassInfo superTypes = 6; - */ - public Builder addSuperTypes( - ch.usi.dag.dislserver.Protocol.ClassInfo.Builder builderForValue) { - copyOnWrite(); - instance.addSuperTypes(builderForValue); - return this; - } - /** - * repeated .ClassInfo superTypes = 6; - */ - public Builder addSuperTypes( - int index, ch.usi.dag.dislserver.Protocol.ClassInfo.Builder builderForValue) { - copyOnWrite(); - instance.addSuperTypes(index, builderForValue); - return this; - } - /** - * repeated .ClassInfo superTypes = 6; - */ - public Builder addAllSuperTypes( - java.lang.Iterable values) { - copyOnWrite(); - instance.addAllSuperTypes(values); - return this; - } - /** - * repeated .ClassInfo superTypes = 6; - */ - public Builder clearSuperTypes() { - copyOnWrite(); - instance.clearSuperTypes(); - return this; - } - /** - * repeated .ClassInfo superTypes = 6; - */ - public Builder removeSuperTypes(int index) { - copyOnWrite(); - instance.removeSuperTypes(index); - return this; - } - - // @@protoc_insertion_point(builder_scope:InstrumentClassRequest) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislserver.Protocol.InstrumentClassRequest(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - superTypes_.makeImmutable(); - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislserver.Protocol.InstrumentClassRequest other = (ch.usi.dag.dislserver.Protocol.InstrumentClassRequest) arg1; - flags_ = visitor.visitInt(flags_ != 0, flags_, - other.flags_ != 0, other.flags_); - classInfo_ = visitor.visitMessage(classInfo_, other.classInfo_); - classBytes_ = visitor.visitByteString(classBytes_ != com.google.protobuf.ByteString.EMPTY, classBytes_, - other.classBytes_ != com.google.protobuf.ByteString.EMPTY, other.classBytes_); - superTypes_= visitor.visitList(superTypes_, other.superTypes_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - bitField0_ |= other.bitField0_; - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 16: { - - flags_ = input.readInt32(); - break; - } - case 34: { - - classBytes_ = input.readBytes(); - break; - } - case 42: { - ch.usi.dag.dislserver.Protocol.ClassInfo.Builder subBuilder = null; - if (classInfo_ != null) { - subBuilder = classInfo_.toBuilder(); - } - classInfo_ = input.readMessage(ch.usi.dag.dislserver.Protocol.ClassInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(classInfo_); - classInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - if (!superTypes_.isModifiable()) { - superTypes_ = - com.google.protobuf.GeneratedMessageLite.mutableCopy(superTypes_); - } - superTypes_.add( - input.readMessage(ch.usi.dag.dislserver.Protocol.ClassInfo.parser(), extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislserver.Protocol.InstrumentClassRequest.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:InstrumentClassRequest) - private static final ch.usi.dag.dislserver.Protocol.InstrumentClassRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new InstrumentClassRequest(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static ch.usi.dag.dislserver.Protocol.InstrumentClassRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface InstrumentClassResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:InstrumentClassResponse) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional .InstrumentClassResponse.InstrumentClassResult result = 1; - */ - int getResultValue(); - /** - * optional .InstrumentClassResponse.InstrumentClassResult result = 1; - */ - ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.InstrumentClassResult getResult(); - - /** - * optional string errorMessage = 2; - */ - java.lang.String getErrorMessage(); - /** - * optional string errorMessage = 2; - */ - com.google.protobuf.ByteString - getErrorMessageBytes(); - - /** - * optional bytes classBytes = 3; - */ - com.google.protobuf.ByteString getClassBytes(); - } - /** - *
-   * Server response containing either the instrumented classbytes or error message
-   * 
- * - * Protobuf type {@code InstrumentClassResponse} - */ - public static final class InstrumentClassResponse extends - com.google.protobuf.GeneratedMessageLite< - InstrumentClassResponse, InstrumentClassResponse.Builder> implements - // @@protoc_insertion_point(message_implements:InstrumentClassResponse) - InstrumentClassResponseOrBuilder { - private InstrumentClassResponse() { - errorMessage_ = ""; - classBytes_ = com.google.protobuf.ByteString.EMPTY; - } - /** - * Protobuf enum {@code InstrumentClassResponse.InstrumentClassResult} - */ - public enum InstrumentClassResult - implements com.google.protobuf.Internal.EnumLite { - /** - * CLASS_UNMODIFIED = 0; - */ - CLASS_UNMODIFIED(0), - /** - * CLASS_MODIFIED = 1; - */ - CLASS_MODIFIED(1), - /** - * ERROR = 3; - */ - ERROR(3), - UNRECOGNIZED(-1), - ; - - /** - * CLASS_UNMODIFIED = 0; - */ - public static final int CLASS_UNMODIFIED_VALUE = 0; - /** - * CLASS_MODIFIED = 1; - */ - public static final int CLASS_MODIFIED_VALUE = 1; - /** - * ERROR = 3; - */ - public static final int ERROR_VALUE = 3; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InstrumentClassResult valueOf(int value) { - return forNumber(value); - } - - public static InstrumentClassResult forNumber(int value) { - switch (value) { - case 0: return CLASS_UNMODIFIED; - case 1: return CLASS_MODIFIED; - case 3: return ERROR; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - InstrumentClassResult> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InstrumentClassResult findValueByNumber(int number) { - return InstrumentClassResult.forNumber(number); - } - }; - - private final int value; - - private InstrumentClassResult(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:InstrumentClassResponse.InstrumentClassResult) - } - - public static final int RESULT_FIELD_NUMBER = 1; - private int result_; - /** - * optional .InstrumentClassResponse.InstrumentClassResult result = 1; - */ - public int getResultValue() { - return result_; - } - /** - * optional .InstrumentClassResponse.InstrumentClassResult result = 1; - */ - public ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.InstrumentClassResult getResult() { - ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.InstrumentClassResult result = ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.InstrumentClassResult.forNumber(result_); - return result == null ? ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.InstrumentClassResult.UNRECOGNIZED : result; - } - /** - * optional .InstrumentClassResponse.InstrumentClassResult result = 1; - */ - private void setResultValue(int value) { - result_ = value; - } - /** - * optional .InstrumentClassResponse.InstrumentClassResult result = 1; - */ - private void setResult(ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.InstrumentClassResult value) { - if (value == null) { - throw new NullPointerException(); - } - - result_ = value.getNumber(); - } - /** - * optional .InstrumentClassResponse.InstrumentClassResult result = 1; - */ - private void clearResult() { - - result_ = 0; - } - - public static final int ERRORMESSAGE_FIELD_NUMBER = 2; - private java.lang.String errorMessage_; - /** - * optional string errorMessage = 2; - */ - public java.lang.String getErrorMessage() { - return errorMessage_; - } - /** - * optional string errorMessage = 2; - */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { - return com.google.protobuf.ByteString.copyFromUtf8(errorMessage_); - } - /** - * optional string errorMessage = 2; - */ - private void setErrorMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - errorMessage_ = value; - } - /** - * optional string errorMessage = 2; - */ - private void clearErrorMessage() { - - errorMessage_ = getDefaultInstance().getErrorMessage(); - } - /** - * optional string errorMessage = 2; - */ - private void setErrorMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - errorMessage_ = value.toStringUtf8(); - } - - public static final int CLASSBYTES_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString classBytes_; - /** - * optional bytes classBytes = 3; - */ - public com.google.protobuf.ByteString getClassBytes() { - return classBytes_; - } - /** - * optional bytes classBytes = 3; - */ - private void setClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - classBytes_ = value; - } - /** - * optional bytes classBytes = 3; - */ - private void clearClassBytes() { - - classBytes_ = getDefaultInstance().getClassBytes(); - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (result_ != ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.InstrumentClassResult.CLASS_UNMODIFIED.getNumber()) { - output.writeEnum(1, result_); - } - if (!errorMessage_.isEmpty()) { - output.writeString(2, getErrorMessage()); - } - if (!classBytes_.isEmpty()) { - output.writeBytes(3, classBytes_); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (result_ != ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.InstrumentClassResult.CLASS_UNMODIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, result_); - } - if (!errorMessage_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeStringSize(2, getErrorMessage()); - } - if (!classBytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, classBytes_); - } - memoizedSerializedSize = size; - return size; - } - - public static ch.usi.dag.dislserver.Protocol.InstrumentClassResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.InstrumentClassResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ch.usi.dag.dislserver.Protocol.InstrumentClassResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - *
-     * Server response containing either the instrumented classbytes or error message
-     * 
- * - * Protobuf type {@code InstrumentClassResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislserver.Protocol.InstrumentClassResponse, Builder> implements - // @@protoc_insertion_point(builder_implements:InstrumentClassResponse) - ch.usi.dag.dislserver.Protocol.InstrumentClassResponseOrBuilder { - // Construct using ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * optional .InstrumentClassResponse.InstrumentClassResult result = 1; - */ - public int getResultValue() { - return instance.getResultValue(); - } - /** - * optional .InstrumentClassResponse.InstrumentClassResult result = 1; - */ - public Builder setResultValue(int value) { - copyOnWrite(); - instance.setResultValue(value); - return this; - } - /** - * optional .InstrumentClassResponse.InstrumentClassResult result = 1; - */ - public ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.InstrumentClassResult getResult() { - return instance.getResult(); - } - /** - * optional .InstrumentClassResponse.InstrumentClassResult result = 1; - */ - public Builder setResult(ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.InstrumentClassResult value) { - copyOnWrite(); - instance.setResult(value); - return this; - } - /** - * optional .InstrumentClassResponse.InstrumentClassResult result = 1; - */ - public Builder clearResult() { - copyOnWrite(); - instance.clearResult(); - return this; - } - - /** - * optional string errorMessage = 2; - */ - public java.lang.String getErrorMessage() { - return instance.getErrorMessage(); - } - /** - * optional string errorMessage = 2; - */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { - return instance.getErrorMessageBytes(); - } - /** - * optional string errorMessage = 2; - */ - public Builder setErrorMessage( - java.lang.String value) { - copyOnWrite(); - instance.setErrorMessage(value); - return this; - } - /** - * optional string errorMessage = 2; - */ - public Builder clearErrorMessage() { - copyOnWrite(); - instance.clearErrorMessage(); - return this; - } - /** - * optional string errorMessage = 2; - */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setErrorMessageBytes(value); - return this; - } - - /** - * optional bytes classBytes = 3; - */ - public com.google.protobuf.ByteString getClassBytes() { - return instance.getClassBytes(); - } - /** - * optional bytes classBytes = 3; - */ - public Builder setClassBytes(com.google.protobuf.ByteString value) { - copyOnWrite(); - instance.setClassBytes(value); - return this; - } - /** - * optional bytes classBytes = 3; - */ - public Builder clearClassBytes() { - copyOnWrite(); - instance.clearClassBytes(); - return this; - } - - // @@protoc_insertion_point(builder_scope:InstrumentClassResponse) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislserver.Protocol.InstrumentClassResponse(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislserver.Protocol.InstrumentClassResponse other = (ch.usi.dag.dislserver.Protocol.InstrumentClassResponse) arg1; - result_ = visitor.visitInt(result_ != 0, result_, other.result_ != 0, other.result_); - errorMessage_ = visitor.visitString(!errorMessage_.isEmpty(), errorMessage_, - !other.errorMessage_.isEmpty(), other.errorMessage_); - classBytes_ = visitor.visitByteString(classBytes_ != com.google.protobuf.ByteString.EMPTY, classBytes_, - other.classBytes_ != com.google.protobuf.ByteString.EMPTY, other.classBytes_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - - result_ = rawValue; - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - errorMessage_ = s; - break; - } - case 26: { - - classBytes_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:InstrumentClassResponse) - private static final ch.usi.dag.dislserver.Protocol.InstrumentClassResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new InstrumentClassResponse(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static ch.usi.dag.dislserver.Protocol.InstrumentClassResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface CloseConnectionOrBuilder extends - // @@protoc_insertion_point(interface_extends:CloseConnection) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional .CloseConnection.CloseReason reason = 2; - */ - int getReasonValue(); - /** - * optional .CloseConnection.CloseReason reason = 2; - */ - ch.usi.dag.dislserver.Protocol.CloseConnection.CloseReason getReason(); - } - /** - *
-   * Notify server about closing connection
-   * 
- * - * Protobuf type {@code CloseConnection} - */ - public static final class CloseConnection extends - com.google.protobuf.GeneratedMessageLite< - CloseConnection, CloseConnection.Builder> implements - // @@protoc_insertion_point(message_implements:CloseConnection) - CloseConnectionOrBuilder { - private CloseConnection() { - } - /** - * Protobuf enum {@code CloseConnection.CloseReason} - */ - public enum CloseReason - implements com.google.protobuf.Internal.EnumLite { - /** - * FINISHED = 0; - */ - FINISHED(0), - UNRECOGNIZED(-1), - ; - - /** - * FINISHED = 0; - */ - public static final int FINISHED_VALUE = 0; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CloseReason valueOf(int value) { - return forNumber(value); - } - - public static CloseReason forNumber(int value) { - switch (value) { - case 0: return FINISHED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CloseReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CloseReason findValueByNumber(int number) { - return CloseReason.forNumber(number); - } - }; - - private final int value; - - private CloseReason(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:CloseConnection.CloseReason) - } - - public static final int REASON_FIELD_NUMBER = 2; - private int reason_; - /** - * optional .CloseConnection.CloseReason reason = 2; - */ - public int getReasonValue() { - return reason_; - } - /** - * optional .CloseConnection.CloseReason reason = 2; - */ - public ch.usi.dag.dislserver.Protocol.CloseConnection.CloseReason getReason() { - ch.usi.dag.dislserver.Protocol.CloseConnection.CloseReason result = ch.usi.dag.dislserver.Protocol.CloseConnection.CloseReason.forNumber(reason_); - return result == null ? ch.usi.dag.dislserver.Protocol.CloseConnection.CloseReason.UNRECOGNIZED : result; - } - /** - * optional .CloseConnection.CloseReason reason = 2; - */ - private void setReasonValue(int value) { - reason_ = value; - } - /** - * optional .CloseConnection.CloseReason reason = 2; - */ - private void setReason(ch.usi.dag.dislserver.Protocol.CloseConnection.CloseReason value) { - if (value == null) { - throw new NullPointerException(); - } - - reason_ = value.getNumber(); - } - /** - * optional .CloseConnection.CloseReason reason = 2; - */ - private void clearReason() { - - reason_ = 0; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (reason_ != ch.usi.dag.dislserver.Protocol.CloseConnection.CloseReason.FINISHED.getNumber()) { - output.writeEnum(2, reason_); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (reason_ != ch.usi.dag.dislserver.Protocol.CloseConnection.CloseReason.FINISHED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, reason_); - } - memoizedSerializedSize = size; - return size; - } - - public static ch.usi.dag.dislserver.Protocol.CloseConnection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.CloseConnection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.CloseConnection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.CloseConnection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.CloseConnection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.CloseConnection parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.CloseConnection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.CloseConnection parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.CloseConnection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.CloseConnection parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ch.usi.dag.dislserver.Protocol.CloseConnection prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - *
-     * Notify server about closing connection
-     * 
- * - * Protobuf type {@code CloseConnection} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislserver.Protocol.CloseConnection, Builder> implements - // @@protoc_insertion_point(builder_implements:CloseConnection) - ch.usi.dag.dislserver.Protocol.CloseConnectionOrBuilder { - // Construct using ch.usi.dag.dislserver.Protocol.CloseConnection.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - * optional .CloseConnection.CloseReason reason = 2; - */ - public int getReasonValue() { - return instance.getReasonValue(); - } - /** - * optional .CloseConnection.CloseReason reason = 2; - */ - public Builder setReasonValue(int value) { - copyOnWrite(); - instance.setReasonValue(value); - return this; - } - /** - * optional .CloseConnection.CloseReason reason = 2; - */ - public ch.usi.dag.dislserver.Protocol.CloseConnection.CloseReason getReason() { - return instance.getReason(); - } - /** - * optional .CloseConnection.CloseReason reason = 2; - */ - public Builder setReason(ch.usi.dag.dislserver.Protocol.CloseConnection.CloseReason value) { - copyOnWrite(); - instance.setReason(value); - return this; - } - /** - * optional .CloseConnection.CloseReason reason = 2; - */ - public Builder clearReason() { - copyOnWrite(); - instance.clearReason(); - return this; - } - - // @@protoc_insertion_point(builder_scope:CloseConnection) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislserver.Protocol.CloseConnection(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislserver.Protocol.CloseConnection other = (ch.usi.dag.dislserver.Protocol.CloseConnection) arg1; - reason_ = visitor.visitInt(reason_ != 0, reason_, other.reason_ != 0, other.reason_); - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 16: { - int rawValue = input.readEnum(); - - reason_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislserver.Protocol.CloseConnection.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:CloseConnection) - private static final ch.usi.dag.dislserver.Protocol.CloseConnection DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new CloseConnection(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static ch.usi.dag.dislserver.Protocol.CloseConnection getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface ClientMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:ClientMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional int32 session_id = 1; - */ - int getSessionId(); - - /** - * optional .SessionInitRequest session_init_request = 2; - */ - ch.usi.dag.dislserver.Protocol.SessionInitRequest getSessionInitRequest(); - - /** - * optional .InstrumentationDelivery instrumentation_delivery = 3; - */ - ch.usi.dag.dislserver.Protocol.InstrumentationDelivery getInstrumentationDelivery(); - - /** - * optional .InstrumentClassRequest instrument_class_request = 4; - */ - ch.usi.dag.dislserver.Protocol.InstrumentClassRequest getInstrumentClassRequest(); - - /** - * optional .CloseConnection close_connection = 5; - */ - ch.usi.dag.dislserver.Protocol.CloseConnection getCloseConnection(); - - public ch.usi.dag.dislserver.Protocol.ClientMessage.RequestCase getRequestCase(); - } - /** - *
-   * Pack together messages from client to simply distinguish them at the server side.
-   * 
- * - * Protobuf type {@code ClientMessage} - */ - public static final class ClientMessage extends - com.google.protobuf.GeneratedMessageLite< - ClientMessage, ClientMessage.Builder> implements - // @@protoc_insertion_point(message_implements:ClientMessage) - ClientMessageOrBuilder { - private ClientMessage() { - } - private int requestCase_ = 0; - private java.lang.Object request_; - public enum RequestCase - implements com.google.protobuf.Internal.EnumLite { - SESSION_INIT_REQUEST(2), - INSTRUMENTATION_DELIVERY(3), - INSTRUMENT_CLASS_REQUEST(4), - CLOSE_CONNECTION(5), - REQUEST_NOT_SET(0); - private final int value; - private RequestCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RequestCase valueOf(int value) { - return forNumber(value); - } - - public static RequestCase forNumber(int value) { - switch (value) { - case 2: return SESSION_INIT_REQUEST; - case 3: return INSTRUMENTATION_DELIVERY; - case 4: return INSTRUMENT_CLASS_REQUEST; - case 5: return CLOSE_CONNECTION; - case 0: return REQUEST_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); - } - - private void clearRequest() { - requestCase_ = 0; - request_ = null; - } - - public static final int SESSION_ID_FIELD_NUMBER = 1; - private int sessionId_; - /** - * optional int32 session_id = 1; - */ - public int getSessionId() { - return sessionId_; - } - /** - * optional int32 session_id = 1; - */ - private void setSessionId(int value) { - - sessionId_ = value; - } - /** - * optional int32 session_id = 1; - */ - private void clearSessionId() { - - sessionId_ = 0; - } - - public static final int SESSION_INIT_REQUEST_FIELD_NUMBER = 2; - /** - * optional .SessionInitRequest session_init_request = 2; - */ - public ch.usi.dag.dislserver.Protocol.SessionInitRequest getSessionInitRequest() { - if (requestCase_ == 2) { - return (ch.usi.dag.dislserver.Protocol.SessionInitRequest) request_; - } - return ch.usi.dag.dislserver.Protocol.SessionInitRequest.getDefaultInstance(); - } - /** - * optional .SessionInitRequest session_init_request = 2; - */ - private void setSessionInitRequest(ch.usi.dag.dislserver.Protocol.SessionInitRequest value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - requestCase_ = 2; - } - /** - * optional .SessionInitRequest session_init_request = 2; - */ - private void setSessionInitRequest( - ch.usi.dag.dislserver.Protocol.SessionInitRequest.Builder builderForValue) { - request_ = builderForValue.build(); - requestCase_ = 2; - } - /** - * optional .SessionInitRequest session_init_request = 2; - */ - private void mergeSessionInitRequest(ch.usi.dag.dislserver.Protocol.SessionInitRequest value) { - if (requestCase_ == 2 && - request_ != ch.usi.dag.dislserver.Protocol.SessionInitRequest.getDefaultInstance()) { - request_ = ch.usi.dag.dislserver.Protocol.SessionInitRequest.newBuilder((ch.usi.dag.dislserver.Protocol.SessionInitRequest) request_) - .mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - requestCase_ = 2; - } - /** - * optional .SessionInitRequest session_init_request = 2; - */ - private void clearSessionInitRequest() { - if (requestCase_ == 2) { - requestCase_ = 0; - request_ = null; - } - } - - public static final int INSTRUMENTATION_DELIVERY_FIELD_NUMBER = 3; - /** - * optional .InstrumentationDelivery instrumentation_delivery = 3; - */ - public ch.usi.dag.dislserver.Protocol.InstrumentationDelivery getInstrumentationDelivery() { - if (requestCase_ == 3) { - return (ch.usi.dag.dislserver.Protocol.InstrumentationDelivery) request_; - } - return ch.usi.dag.dislserver.Protocol.InstrumentationDelivery.getDefaultInstance(); - } - /** - * optional .InstrumentationDelivery instrumentation_delivery = 3; - */ - private void setInstrumentationDelivery(ch.usi.dag.dislserver.Protocol.InstrumentationDelivery value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - requestCase_ = 3; - } - /** - * optional .InstrumentationDelivery instrumentation_delivery = 3; - */ - private void setInstrumentationDelivery( - ch.usi.dag.dislserver.Protocol.InstrumentationDelivery.Builder builderForValue) { - request_ = builderForValue.build(); - requestCase_ = 3; - } - /** - * optional .InstrumentationDelivery instrumentation_delivery = 3; - */ - private void mergeInstrumentationDelivery(ch.usi.dag.dislserver.Protocol.InstrumentationDelivery value) { - if (requestCase_ == 3 && - request_ != ch.usi.dag.dislserver.Protocol.InstrumentationDelivery.getDefaultInstance()) { - request_ = ch.usi.dag.dislserver.Protocol.InstrumentationDelivery.newBuilder((ch.usi.dag.dislserver.Protocol.InstrumentationDelivery) request_) - .mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - requestCase_ = 3; - } - /** - * optional .InstrumentationDelivery instrumentation_delivery = 3; - */ - private void clearInstrumentationDelivery() { - if (requestCase_ == 3) { - requestCase_ = 0; - request_ = null; - } - } - - public static final int INSTRUMENT_CLASS_REQUEST_FIELD_NUMBER = 4; - /** - * optional .InstrumentClassRequest instrument_class_request = 4; - */ - public ch.usi.dag.dislserver.Protocol.InstrumentClassRequest getInstrumentClassRequest() { - if (requestCase_ == 4) { - return (ch.usi.dag.dislserver.Protocol.InstrumentClassRequest) request_; - } - return ch.usi.dag.dislserver.Protocol.InstrumentClassRequest.getDefaultInstance(); - } - /** - * optional .InstrumentClassRequest instrument_class_request = 4; - */ - private void setInstrumentClassRequest(ch.usi.dag.dislserver.Protocol.InstrumentClassRequest value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - requestCase_ = 4; - } - /** - * optional .InstrumentClassRequest instrument_class_request = 4; - */ - private void setInstrumentClassRequest( - ch.usi.dag.dislserver.Protocol.InstrumentClassRequest.Builder builderForValue) { - request_ = builderForValue.build(); - requestCase_ = 4; - } - /** - * optional .InstrumentClassRequest instrument_class_request = 4; - */ - private void mergeInstrumentClassRequest(ch.usi.dag.dislserver.Protocol.InstrumentClassRequest value) { - if (requestCase_ == 4 && - request_ != ch.usi.dag.dislserver.Protocol.InstrumentClassRequest.getDefaultInstance()) { - request_ = ch.usi.dag.dislserver.Protocol.InstrumentClassRequest.newBuilder((ch.usi.dag.dislserver.Protocol.InstrumentClassRequest) request_) - .mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - requestCase_ = 4; - } - /** - * optional .InstrumentClassRequest instrument_class_request = 4; - */ - private void clearInstrumentClassRequest() { - if (requestCase_ == 4) { - requestCase_ = 0; - request_ = null; - } - } - - public static final int CLOSE_CONNECTION_FIELD_NUMBER = 5; - /** - * optional .CloseConnection close_connection = 5; - */ - public ch.usi.dag.dislserver.Protocol.CloseConnection getCloseConnection() { - if (requestCase_ == 5) { - return (ch.usi.dag.dislserver.Protocol.CloseConnection) request_; - } - return ch.usi.dag.dislserver.Protocol.CloseConnection.getDefaultInstance(); - } - /** - * optional .CloseConnection close_connection = 5; - */ - private void setCloseConnection(ch.usi.dag.dislserver.Protocol.CloseConnection value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - requestCase_ = 5; - } - /** - * optional .CloseConnection close_connection = 5; - */ - private void setCloseConnection( - ch.usi.dag.dislserver.Protocol.CloseConnection.Builder builderForValue) { - request_ = builderForValue.build(); - requestCase_ = 5; - } - /** - * optional .CloseConnection close_connection = 5; - */ - private void mergeCloseConnection(ch.usi.dag.dislserver.Protocol.CloseConnection value) { - if (requestCase_ == 5 && - request_ != ch.usi.dag.dislserver.Protocol.CloseConnection.getDefaultInstance()) { - request_ = ch.usi.dag.dislserver.Protocol.CloseConnection.newBuilder((ch.usi.dag.dislserver.Protocol.CloseConnection) request_) - .mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - requestCase_ = 5; - } - /** - * optional .CloseConnection close_connection = 5; - */ - private void clearCloseConnection() { - if (requestCase_ == 5) { - requestCase_ = 0; - request_ = null; - } - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (sessionId_ != 0) { - output.writeInt32(1, sessionId_); - } - if (requestCase_ == 2) { - output.writeMessage(2, (ch.usi.dag.dislserver.Protocol.SessionInitRequest) request_); - } - if (requestCase_ == 3) { - output.writeMessage(3, (ch.usi.dag.dislserver.Protocol.InstrumentationDelivery) request_); - } - if (requestCase_ == 4) { - output.writeMessage(4, (ch.usi.dag.dislserver.Protocol.InstrumentClassRequest) request_); - } - if (requestCase_ == 5) { - output.writeMessage(5, (ch.usi.dag.dislserver.Protocol.CloseConnection) request_); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (sessionId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, sessionId_); - } - if (requestCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (ch.usi.dag.dislserver.Protocol.SessionInitRequest) request_); - } - if (requestCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (ch.usi.dag.dislserver.Protocol.InstrumentationDelivery) request_); - } - if (requestCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (ch.usi.dag.dislserver.Protocol.InstrumentClassRequest) request_); - } - if (requestCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (ch.usi.dag.dislserver.Protocol.CloseConnection) request_); - } - memoizedSerializedSize = size; - return size; - } - - public static ch.usi.dag.dislserver.Protocol.ClientMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.ClientMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.ClientMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.ClientMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.ClientMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.ClientMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.ClientMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.ClientMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.ClientMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.ClientMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ch.usi.dag.dislserver.Protocol.ClientMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - *
-     * Pack together messages from client to simply distinguish them at the server side.
-     * 
- * - * Protobuf type {@code ClientMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislserver.Protocol.ClientMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:ClientMessage) - ch.usi.dag.dislserver.Protocol.ClientMessageOrBuilder { - // Construct using ch.usi.dag.dislserver.Protocol.ClientMessage.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - public RequestCase - getRequestCase() { - return instance.getRequestCase(); - } - - public Builder clearRequest() { - copyOnWrite(); - instance.clearRequest(); - return this; - } - - - /** - * optional int32 session_id = 1; - */ - public int getSessionId() { - return instance.getSessionId(); - } - /** - * optional int32 session_id = 1; - */ - public Builder setSessionId(int value) { - copyOnWrite(); - instance.setSessionId(value); - return this; - } - /** - * optional int32 session_id = 1; - */ - public Builder clearSessionId() { - copyOnWrite(); - instance.clearSessionId(); - return this; - } - - /** - * optional .SessionInitRequest session_init_request = 2; - */ - public ch.usi.dag.dislserver.Protocol.SessionInitRequest getSessionInitRequest() { - return instance.getSessionInitRequest(); - } - /** - * optional .SessionInitRequest session_init_request = 2; - */ - public Builder setSessionInitRequest(ch.usi.dag.dislserver.Protocol.SessionInitRequest value) { - copyOnWrite(); - instance.setSessionInitRequest(value); - return this; - } - /** - * optional .SessionInitRequest session_init_request = 2; - */ - public Builder setSessionInitRequest( - ch.usi.dag.dislserver.Protocol.SessionInitRequest.Builder builderForValue) { - copyOnWrite(); - instance.setSessionInitRequest(builderForValue); - return this; - } - /** - * optional .SessionInitRequest session_init_request = 2; - */ - public Builder mergeSessionInitRequest(ch.usi.dag.dislserver.Protocol.SessionInitRequest value) { - copyOnWrite(); - instance.mergeSessionInitRequest(value); - return this; - } - /** - * optional .SessionInitRequest session_init_request = 2; - */ - public Builder clearSessionInitRequest() { - copyOnWrite(); - instance.clearSessionInitRequest(); - return this; - } - - /** - * optional .InstrumentationDelivery instrumentation_delivery = 3; - */ - public ch.usi.dag.dislserver.Protocol.InstrumentationDelivery getInstrumentationDelivery() { - return instance.getInstrumentationDelivery(); - } - /** - * optional .InstrumentationDelivery instrumentation_delivery = 3; - */ - public Builder setInstrumentationDelivery(ch.usi.dag.dislserver.Protocol.InstrumentationDelivery value) { - copyOnWrite(); - instance.setInstrumentationDelivery(value); - return this; - } - /** - * optional .InstrumentationDelivery instrumentation_delivery = 3; - */ - public Builder setInstrumentationDelivery( - ch.usi.dag.dislserver.Protocol.InstrumentationDelivery.Builder builderForValue) { - copyOnWrite(); - instance.setInstrumentationDelivery(builderForValue); - return this; - } - /** - * optional .InstrumentationDelivery instrumentation_delivery = 3; - */ - public Builder mergeInstrumentationDelivery(ch.usi.dag.dislserver.Protocol.InstrumentationDelivery value) { - copyOnWrite(); - instance.mergeInstrumentationDelivery(value); - return this; - } - /** - * optional .InstrumentationDelivery instrumentation_delivery = 3; - */ - public Builder clearInstrumentationDelivery() { - copyOnWrite(); - instance.clearInstrumentationDelivery(); - return this; - } - - /** - * optional .InstrumentClassRequest instrument_class_request = 4; - */ - public ch.usi.dag.dislserver.Protocol.InstrumentClassRequest getInstrumentClassRequest() { - return instance.getInstrumentClassRequest(); - } - /** - * optional .InstrumentClassRequest instrument_class_request = 4; - */ - public Builder setInstrumentClassRequest(ch.usi.dag.dislserver.Protocol.InstrumentClassRequest value) { - copyOnWrite(); - instance.setInstrumentClassRequest(value); - return this; - } - /** - * optional .InstrumentClassRequest instrument_class_request = 4; - */ - public Builder setInstrumentClassRequest( - ch.usi.dag.dislserver.Protocol.InstrumentClassRequest.Builder builderForValue) { - copyOnWrite(); - instance.setInstrumentClassRequest(builderForValue); - return this; - } - /** - * optional .InstrumentClassRequest instrument_class_request = 4; - */ - public Builder mergeInstrumentClassRequest(ch.usi.dag.dislserver.Protocol.InstrumentClassRequest value) { - copyOnWrite(); - instance.mergeInstrumentClassRequest(value); - return this; - } - /** - * optional .InstrumentClassRequest instrument_class_request = 4; - */ - public Builder clearInstrumentClassRequest() { - copyOnWrite(); - instance.clearInstrumentClassRequest(); - return this; - } - - /** - * optional .CloseConnection close_connection = 5; - */ - public ch.usi.dag.dislserver.Protocol.CloseConnection getCloseConnection() { - return instance.getCloseConnection(); - } - /** - * optional .CloseConnection close_connection = 5; - */ - public Builder setCloseConnection(ch.usi.dag.dislserver.Protocol.CloseConnection value) { - copyOnWrite(); - instance.setCloseConnection(value); - return this; - } - /** - * optional .CloseConnection close_connection = 5; - */ - public Builder setCloseConnection( - ch.usi.dag.dislserver.Protocol.CloseConnection.Builder builderForValue) { - copyOnWrite(); - instance.setCloseConnection(builderForValue); - return this; - } - /** - * optional .CloseConnection close_connection = 5; - */ - public Builder mergeCloseConnection(ch.usi.dag.dislserver.Protocol.CloseConnection value) { - copyOnWrite(); - instance.mergeCloseConnection(value); - return this; - } - /** - * optional .CloseConnection close_connection = 5; - */ - public Builder clearCloseConnection() { - copyOnWrite(); - instance.clearCloseConnection(); - return this; - } - - // @@protoc_insertion_point(builder_scope:ClientMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislserver.Protocol.ClientMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislserver.Protocol.ClientMessage other = (ch.usi.dag.dislserver.Protocol.ClientMessage) arg1; - sessionId_ = visitor.visitInt(sessionId_ != 0, sessionId_, - other.sessionId_ != 0, other.sessionId_); - switch (other.getRequestCase()) { - case SESSION_INIT_REQUEST: { - request_ = visitor.visitOneofMessage( - requestCase_ == 2, - request_, - other.request_); - break; - } - case INSTRUMENTATION_DELIVERY: { - request_ = visitor.visitOneofMessage( - requestCase_ == 3, - request_, - other.request_); - break; - } - case INSTRUMENT_CLASS_REQUEST: { - request_ = visitor.visitOneofMessage( - requestCase_ == 4, - request_, - other.request_); - break; - } - case CLOSE_CONNECTION: { - request_ = visitor.visitOneofMessage( - requestCase_ == 5, - request_, - other.request_); - break; - } - case REQUEST_NOT_SET: { - visitor.visitOneofNotSet(requestCase_ != 0); - break; - } - } - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - if (other.requestCase_ != 0) { - requestCase_ = other.requestCase_; - } - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 8: { - - sessionId_ = input.readInt32(); - break; - } - case 18: { - ch.usi.dag.dislserver.Protocol.SessionInitRequest.Builder subBuilder = null; - if (requestCase_ == 2) { - subBuilder = ((ch.usi.dag.dislserver.Protocol.SessionInitRequest) request_).toBuilder(); - } - request_ = - input.readMessage(ch.usi.dag.dislserver.Protocol.SessionInitRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislserver.Protocol.SessionInitRequest) request_); - request_ = subBuilder.buildPartial(); - } - requestCase_ = 2; - break; - } - case 26: { - ch.usi.dag.dislserver.Protocol.InstrumentationDelivery.Builder subBuilder = null; - if (requestCase_ == 3) { - subBuilder = ((ch.usi.dag.dislserver.Protocol.InstrumentationDelivery) request_).toBuilder(); - } - request_ = - input.readMessage(ch.usi.dag.dislserver.Protocol.InstrumentationDelivery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislserver.Protocol.InstrumentationDelivery) request_); - request_ = subBuilder.buildPartial(); - } - requestCase_ = 3; - break; - } - case 34: { - ch.usi.dag.dislserver.Protocol.InstrumentClassRequest.Builder subBuilder = null; - if (requestCase_ == 4) { - subBuilder = ((ch.usi.dag.dislserver.Protocol.InstrumentClassRequest) request_).toBuilder(); - } - request_ = - input.readMessage(ch.usi.dag.dislserver.Protocol.InstrumentClassRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislserver.Protocol.InstrumentClassRequest) request_); - request_ = subBuilder.buildPartial(); - } - requestCase_ = 4; - break; - } - case 42: { - ch.usi.dag.dislserver.Protocol.CloseConnection.Builder subBuilder = null; - if (requestCase_ == 5) { - subBuilder = ((ch.usi.dag.dislserver.Protocol.CloseConnection) request_).toBuilder(); - } - request_ = - input.readMessage(ch.usi.dag.dislserver.Protocol.CloseConnection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislserver.Protocol.CloseConnection) request_); - request_ = subBuilder.buildPartial(); - } - requestCase_ = 5; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislserver.Protocol.ClientMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:ClientMessage) - private static final ch.usi.dag.dislserver.Protocol.ClientMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ClientMessage(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static ch.usi.dag.dislserver.Protocol.ClientMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - public interface ServerMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:ServerMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional .SessionInitResponse session_init_response = 1; - */ - ch.usi.dag.dislserver.Protocol.SessionInitResponse getSessionInitResponse(); - - /** - * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; - */ - ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation getInstrumentationAcceptConfirmation(); - - /** - * optional .InstrumentClassResponse instrument_class_response = 3; - */ - ch.usi.dag.dislserver.Protocol.InstrumentClassResponse getInstrumentClassResponse(); - - public ch.usi.dag.dislserver.Protocol.ServerMessage.ResponseCase getResponseCase(); - } - /** - *
-   * Pack together messages from server to simply distinguish them at the client side.
-   * 
- * - * Protobuf type {@code ServerMessage} - */ - public static final class ServerMessage extends - com.google.protobuf.GeneratedMessageLite< - ServerMessage, ServerMessage.Builder> implements - // @@protoc_insertion_point(message_implements:ServerMessage) - ServerMessageOrBuilder { - private ServerMessage() { - } - private int responseCase_ = 0; - private java.lang.Object response_; - public enum ResponseCase - implements com.google.protobuf.Internal.EnumLite { - SESSION_INIT_RESPONSE(1), - INSTRUMENTATION_ACCEPT_CONFIRMATION(2), - INSTRUMENT_CLASS_RESPONSE(3), - RESPONSE_NOT_SET(0); - private final int value; - private ResponseCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ResponseCase valueOf(int value) { - return forNumber(value); - } - - public static ResponseCase forNumber(int value) { - switch (value) { - case 1: return SESSION_INIT_RESPONSE; - case 2: return INSTRUMENTATION_ACCEPT_CONFIRMATION; - case 3: return INSTRUMENT_CLASS_RESPONSE; - case 0: return RESPONSE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ResponseCase - getResponseCase() { - return ResponseCase.forNumber( - responseCase_); - } - - private void clearResponse() { - responseCase_ = 0; - response_ = null; - } - - public static final int SESSION_INIT_RESPONSE_FIELD_NUMBER = 1; - /** - * optional .SessionInitResponse session_init_response = 1; - */ - public ch.usi.dag.dislserver.Protocol.SessionInitResponse getSessionInitResponse() { - if (responseCase_ == 1) { - return (ch.usi.dag.dislserver.Protocol.SessionInitResponse) response_; - } - return ch.usi.dag.dislserver.Protocol.SessionInitResponse.getDefaultInstance(); - } - /** - * optional .SessionInitResponse session_init_response = 1; - */ - private void setSessionInitResponse(ch.usi.dag.dislserver.Protocol.SessionInitResponse value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - responseCase_ = 1; - } - /** - * optional .SessionInitResponse session_init_response = 1; - */ - private void setSessionInitResponse( - ch.usi.dag.dislserver.Protocol.SessionInitResponse.Builder builderForValue) { - response_ = builderForValue.build(); - responseCase_ = 1; - } - /** - * optional .SessionInitResponse session_init_response = 1; - */ - private void mergeSessionInitResponse(ch.usi.dag.dislserver.Protocol.SessionInitResponse value) { - if (responseCase_ == 1 && - response_ != ch.usi.dag.dislserver.Protocol.SessionInitResponse.getDefaultInstance()) { - response_ = ch.usi.dag.dislserver.Protocol.SessionInitResponse.newBuilder((ch.usi.dag.dislserver.Protocol.SessionInitResponse) response_) - .mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - responseCase_ = 1; - } - /** - * optional .SessionInitResponse session_init_response = 1; - */ - private void clearSessionInitResponse() { - if (responseCase_ == 1) { - responseCase_ = 0; - response_ = null; - } - } - - public static final int INSTRUMENTATION_ACCEPT_CONFIRMATION_FIELD_NUMBER = 2; - /** - * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; - */ - public ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation getInstrumentationAcceptConfirmation() { - if (responseCase_ == 2) { - return (ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation) response_; - } - return ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation.getDefaultInstance(); - } - /** - * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; - */ - private void setInstrumentationAcceptConfirmation(ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - responseCase_ = 2; - } - /** - * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; - */ - private void setInstrumentationAcceptConfirmation( - ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation.Builder builderForValue) { - response_ = builderForValue.build(); - responseCase_ = 2; - } - /** - * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; - */ - private void mergeInstrumentationAcceptConfirmation(ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation value) { - if (responseCase_ == 2 && - response_ != ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation.getDefaultInstance()) { - response_ = ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation.newBuilder((ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation) response_) - .mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - responseCase_ = 2; - } - /** - * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; - */ - private void clearInstrumentationAcceptConfirmation() { - if (responseCase_ == 2) { - responseCase_ = 0; - response_ = null; - } - } - - public static final int INSTRUMENT_CLASS_RESPONSE_FIELD_NUMBER = 3; - /** - * optional .InstrumentClassResponse instrument_class_response = 3; - */ - public ch.usi.dag.dislserver.Protocol.InstrumentClassResponse getInstrumentClassResponse() { - if (responseCase_ == 3) { - return (ch.usi.dag.dislserver.Protocol.InstrumentClassResponse) response_; - } - return ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.getDefaultInstance(); - } - /** - * optional .InstrumentClassResponse instrument_class_response = 3; - */ - private void setInstrumentClassResponse(ch.usi.dag.dislserver.Protocol.InstrumentClassResponse value) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - responseCase_ = 3; - } - /** - * optional .InstrumentClassResponse instrument_class_response = 3; - */ - private void setInstrumentClassResponse( - ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.Builder builderForValue) { - response_ = builderForValue.build(); - responseCase_ = 3; - } - /** - * optional .InstrumentClassResponse instrument_class_response = 3; - */ - private void mergeInstrumentClassResponse(ch.usi.dag.dislserver.Protocol.InstrumentClassResponse value) { - if (responseCase_ == 3 && - response_ != ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.getDefaultInstance()) { - response_ = ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.newBuilder((ch.usi.dag.dislserver.Protocol.InstrumentClassResponse) response_) - .mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - responseCase_ = 3; - } - /** - * optional .InstrumentClassResponse instrument_class_response = 3; - */ - private void clearInstrumentClassResponse() { - if (responseCase_ == 3) { - responseCase_ = 0; - response_ = null; - } - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (responseCase_ == 1) { - output.writeMessage(1, (ch.usi.dag.dislserver.Protocol.SessionInitResponse) response_); - } - if (responseCase_ == 2) { - output.writeMessage(2, (ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation) response_); - } - if (responseCase_ == 3) { - output.writeMessage(3, (ch.usi.dag.dislserver.Protocol.InstrumentClassResponse) response_); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (responseCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (ch.usi.dag.dislserver.Protocol.SessionInitResponse) response_); - } - if (responseCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation) response_); - } - if (responseCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (ch.usi.dag.dislserver.Protocol.InstrumentClassResponse) response_); - } - memoizedSerializedSize = size; - return size; - } - - public static ch.usi.dag.dislserver.Protocol.ServerMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.ServerMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.ServerMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislserver.Protocol.ServerMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.ServerMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.ServerMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.ServerMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.ServerMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); - } - public static ch.usi.dag.dislserver.Protocol.ServerMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislserver.Protocol.ServerMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input, extensionRegistry); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(ch.usi.dag.dislserver.Protocol.ServerMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - *
-     * Pack together messages from server to simply distinguish them at the client side.
-     * 
- * - * Protobuf type {@code ServerMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislserver.Protocol.ServerMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:ServerMessage) - ch.usi.dag.dislserver.Protocol.ServerMessageOrBuilder { - // Construct using ch.usi.dag.dislserver.Protocol.ServerMessage.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - public ResponseCase - getResponseCase() { - return instance.getResponseCase(); - } - - public Builder clearResponse() { - copyOnWrite(); - instance.clearResponse(); - return this; - } - - - /** - * optional .SessionInitResponse session_init_response = 1; - */ - public ch.usi.dag.dislserver.Protocol.SessionInitResponse getSessionInitResponse() { - return instance.getSessionInitResponse(); - } - /** - * optional .SessionInitResponse session_init_response = 1; - */ - public Builder setSessionInitResponse(ch.usi.dag.dislserver.Protocol.SessionInitResponse value) { - copyOnWrite(); - instance.setSessionInitResponse(value); - return this; - } - /** - * optional .SessionInitResponse session_init_response = 1; - */ - public Builder setSessionInitResponse( - ch.usi.dag.dislserver.Protocol.SessionInitResponse.Builder builderForValue) { - copyOnWrite(); - instance.setSessionInitResponse(builderForValue); - return this; - } - /** - * optional .SessionInitResponse session_init_response = 1; - */ - public Builder mergeSessionInitResponse(ch.usi.dag.dislserver.Protocol.SessionInitResponse value) { - copyOnWrite(); - instance.mergeSessionInitResponse(value); - return this; - } - /** - * optional .SessionInitResponse session_init_response = 1; - */ - public Builder clearSessionInitResponse() { - copyOnWrite(); - instance.clearSessionInitResponse(); - return this; - } - - /** - * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; - */ - public ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation getInstrumentationAcceptConfirmation() { - return instance.getInstrumentationAcceptConfirmation(); - } - /** - * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; - */ - public Builder setInstrumentationAcceptConfirmation(ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation value) { - copyOnWrite(); - instance.setInstrumentationAcceptConfirmation(value); - return this; - } - /** - * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; - */ - public Builder setInstrumentationAcceptConfirmation( - ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation.Builder builderForValue) { - copyOnWrite(); - instance.setInstrumentationAcceptConfirmation(builderForValue); - return this; - } - /** - * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; - */ - public Builder mergeInstrumentationAcceptConfirmation(ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation value) { - copyOnWrite(); - instance.mergeInstrumentationAcceptConfirmation(value); - return this; - } - /** - * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; - */ - public Builder clearInstrumentationAcceptConfirmation() { - copyOnWrite(); - instance.clearInstrumentationAcceptConfirmation(); - return this; - } - - /** - * optional .InstrumentClassResponse instrument_class_response = 3; - */ - public ch.usi.dag.dislserver.Protocol.InstrumentClassResponse getInstrumentClassResponse() { - return instance.getInstrumentClassResponse(); - } - /** - * optional .InstrumentClassResponse instrument_class_response = 3; - */ - public Builder setInstrumentClassResponse(ch.usi.dag.dislserver.Protocol.InstrumentClassResponse value) { - copyOnWrite(); - instance.setInstrumentClassResponse(value); - return this; - } - /** - * optional .InstrumentClassResponse instrument_class_response = 3; - */ - public Builder setInstrumentClassResponse( - ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.Builder builderForValue) { - copyOnWrite(); - instance.setInstrumentClassResponse(builderForValue); - return this; - } - /** - * optional .InstrumentClassResponse instrument_class_response = 3; - */ - public Builder mergeInstrumentClassResponse(ch.usi.dag.dislserver.Protocol.InstrumentClassResponse value) { - copyOnWrite(); - instance.mergeInstrumentClassResponse(value); - return this; - } - /** - * optional .InstrumentClassResponse instrument_class_response = 3; - */ - public Builder clearInstrumentClassResponse() { - copyOnWrite(); - instance.clearInstrumentClassResponse(); - return this; - } - - // @@protoc_insertion_point(builder_scope:ServerMessage) - } - protected final Object dynamicMethod( - com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, - Object arg0, Object arg1) { - switch (method) { - case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislserver.Protocol.ServerMessage(); - } - case IS_INITIALIZED: { - return DEFAULT_INSTANCE; - } - case MAKE_IMMUTABLE: { - return null; - } - case NEW_BUILDER: { - return new Builder(); - } - case VISIT: { - Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislserver.Protocol.ServerMessage other = (ch.usi.dag.dislserver.Protocol.ServerMessage) arg1; - switch (other.getResponseCase()) { - case SESSION_INIT_RESPONSE: { - response_ = visitor.visitOneofMessage( - responseCase_ == 1, - response_, - other.response_); - break; - } - case INSTRUMENTATION_ACCEPT_CONFIRMATION: { - response_ = visitor.visitOneofMessage( - responseCase_ == 2, - response_, - other.response_); - break; - } - case INSTRUMENT_CLASS_RESPONSE: { - response_ = visitor.visitOneofMessage( - responseCase_ == 3, - response_, - other.response_); - break; - } - case RESPONSE_NOT_SET: { - visitor.visitOneofNotSet(responseCase_ != 0); - break; - } - } - if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor - .INSTANCE) { - if (other.responseCase_ != 0) { - responseCase_ = other.responseCase_; - } - } - return this; - } - case MERGE_FROM_STREAM: { - com.google.protobuf.CodedInputStream input = - (com.google.protobuf.CodedInputStream) arg0; - com.google.protobuf.ExtensionRegistryLite extensionRegistry = - (com.google.protobuf.ExtensionRegistryLite) arg1; - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } - case 10: { - ch.usi.dag.dislserver.Protocol.SessionInitResponse.Builder subBuilder = null; - if (responseCase_ == 1) { - subBuilder = ((ch.usi.dag.dislserver.Protocol.SessionInitResponse) response_).toBuilder(); - } - response_ = - input.readMessage(ch.usi.dag.dislserver.Protocol.SessionInitResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislserver.Protocol.SessionInitResponse) response_); - response_ = subBuilder.buildPartial(); - } - responseCase_ = 1; - break; - } - case 18: { - ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation.Builder subBuilder = null; - if (responseCase_ == 2) { - subBuilder = ((ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation) response_).toBuilder(); - } - response_ = - input.readMessage(ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislserver.Protocol.InstrumentationAcceptConfirmation) response_); - response_ = subBuilder.buildPartial(); - } - responseCase_ = 2; - break; - } - case 26: { - ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.Builder subBuilder = null; - if (responseCase_ == 3) { - subBuilder = ((ch.usi.dag.dislserver.Protocol.InstrumentClassResponse) response_).toBuilder(); - } - response_ = - input.readMessage(ch.usi.dag.dislserver.Protocol.InstrumentClassResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislserver.Protocol.InstrumentClassResponse) response_); - response_ = subBuilder.buildPartial(); - } - responseCase_ = 3; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - } - } - case GET_DEFAULT_INSTANCE: { - return DEFAULT_INSTANCE; - } - case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislserver.Protocol.ServerMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:ServerMessage) - private static final ch.usi.dag.dislserver.Protocol.ServerMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new ServerMessage(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static ch.usi.dag.dislserver.Protocol.ServerMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - - - static { - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/disl-server/src/ch/usi/dag/dislserver/RequestProcessor.java b/disl-server/src/ch/usi/dag/dislserver/RequestProcessor.java index 81f7e473..fd0508ac 100644 --- a/disl-server/src/ch/usi/dag/dislserver/RequestProcessor.java +++ b/disl-server/src/ch/usi/dag/dislserver/RequestProcessor.java @@ -4,9 +4,9 @@ import ch.usi.dag.disl.DiSL; import ch.usi.dag.disl.DiSL.CodeOption; import ch.usi.dag.disl.DiSLException; import ch.usi.dag.disl.JavaNames; -import ch.usi.dag.dislserver.Protocol.ClassInfo; -import ch.usi.dag.dislserver.Protocol.InstrumentClassRequest; -import ch.usi.dag.dislserver.Protocol.InstrumentClassResponse; +import ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo; +import ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest; +import ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse; import ch.usi.dag.util.Strings; import ch.usi.dag.util.logging.Logger; import com.google.protobuf.ByteString; @@ -47,7 +47,7 @@ final class RequestProcessor { public InstrumentClassResponse process (final InstrumentClassRequest request) { final byte [] classBytes = request.getClassBytes ().toByteArray (); - final ClassInfo classInfo = request.getClassInfo (); + final InstrClassInfo classInfo = request.getClassInfo (); final String className = __getClassName (classInfo.getClassName (), classBytes); final Set options = CodeOption.setOf (request.getFlags ()); @@ -82,13 +82,13 @@ final class RequestProcessor { } return InstrumentClassResponse.newBuilder () - .setResult (Protocol.InstrumentClassResponse.InstrumentClassResult.CLASS_MODIFIED) + .setResult (InstrumentClassResponse.InstrumentClassResult.CLASS_MODIFIED) .setClassBytes (ByteString.copyFrom (newClassBytes)) .build (); } else { return InstrumentClassResponse.newBuilder () - .setResult (Protocol.InstrumentClassResponse.InstrumentClassResult.CLASS_UNMODIFIED) + .setResult (InstrumentClassResponse.InstrumentClassResult.CLASS_UNMODIFIED) .build (); } @@ -100,7 +100,7 @@ final class RequestProcessor { __log.error (message); return InstrumentClassResponse.newBuilder () - .setResult (Protocol.InstrumentClassResponse.InstrumentClassResult.ERROR) + .setResult (InstrumentClassResponse.InstrumentClassResult.ERROR) .setErrorMessage (message) .build (); } diff --git a/disl/.gitignore b/disl/.gitignore index 53752db2..e7ce4b94 100644 --- a/disl/.gitignore +++ b/disl/.gitignore @@ -1 +1,3 @@ output + +*.iml diff --git a/shvm-server/.gitignore b/shvm-server/.gitignore index 53752db2..e7ce4b94 100644 --- a/shvm-server/.gitignore +++ b/shvm-server/.gitignore @@ -1 +1,3 @@ output + +*.iml diff --git a/shvm-server/src/ch/usi/dag/dislre/protocol/Analysis.java b/shvm-server/src/ch/usi/dag/dislre/protocol/Analysis.java new file mode 100644 index 00000000..e6a6f140 --- /dev/null +++ b/shvm-server/src/ch/usi/dag/dislre/protocol/Analysis.java @@ -0,0 +1,3275 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: shvm.proto + +package ch.usi.dag.dislre.protocol; + +public final class Analysis { + private Analysis() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public interface AnalyzeOrBuilder extends + // @@protoc_insertion_point(interface_extends:Analyze) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int64 OrderingID = 1; + */ + long getOrderingID(); + + /** + * optional int32 InvocationCount = 2; + */ + int getInvocationCount(); + + /** + * optional bytes RawData = 3; + */ + com.google.protobuf.ByteString getRawData(); + } + /** + * Protobuf type {@code Analyze} + */ + public static final class Analyze extends + com.google.protobuf.GeneratedMessageLite< + Analyze, Analyze.Builder> implements + // @@protoc_insertion_point(message_implements:Analyze) + AnalyzeOrBuilder { + private Analyze() { + rawData_ = com.google.protobuf.ByteString.EMPTY; + } + public static final int ORDERINGID_FIELD_NUMBER = 1; + private long orderingID_; + /** + * optional int64 OrderingID = 1; + */ + public long getOrderingID() { + return orderingID_; + } + /** + * optional int64 OrderingID = 1; + */ + private void setOrderingID(long value) { + + orderingID_ = value; + } + /** + * optional int64 OrderingID = 1; + */ + private void clearOrderingID() { + + orderingID_ = 0L; + } + + public static final int INVOCATIONCOUNT_FIELD_NUMBER = 2; + private int invocationCount_; + /** + * optional int32 InvocationCount = 2; + */ + public int getInvocationCount() { + return invocationCount_; + } + /** + * optional int32 InvocationCount = 2; + */ + private void setInvocationCount(int value) { + + invocationCount_ = value; + } + /** + * optional int32 InvocationCount = 2; + */ + private void clearInvocationCount() { + + invocationCount_ = 0; + } + + public static final int RAWDATA_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString rawData_; + /** + * optional bytes RawData = 3; + */ + public com.google.protobuf.ByteString getRawData() { + return rawData_; + } + /** + * optional bytes RawData = 3; + */ + private void setRawData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + rawData_ = value; + } + /** + * optional bytes RawData = 3; + */ + private void clearRawData() { + + rawData_ = getDefaultInstance().getRawData(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (orderingID_ != 0L) { + output.writeInt64(1, orderingID_); + } + if (invocationCount_ != 0) { + output.writeInt32(2, invocationCount_); + } + if (!rawData_.isEmpty()) { + output.writeBytes(3, rawData_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (orderingID_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, orderingID_); + } + if (invocationCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, invocationCount_); + } + if (!rawData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, rawData_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.Analyze prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code Analyze} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.Analyze, Builder> implements + // @@protoc_insertion_point(builder_implements:Analyze) + ch.usi.dag.dislre.protocol.Analysis.AnalyzeOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.Analyze.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int64 OrderingID = 1; + */ + public long getOrderingID() { + return instance.getOrderingID(); + } + /** + * optional int64 OrderingID = 1; + */ + public Builder setOrderingID(long value) { + copyOnWrite(); + instance.setOrderingID(value); + return this; + } + /** + * optional int64 OrderingID = 1; + */ + public Builder clearOrderingID() { + copyOnWrite(); + instance.clearOrderingID(); + return this; + } + + /** + * optional int32 InvocationCount = 2; + */ + public int getInvocationCount() { + return instance.getInvocationCount(); + } + /** + * optional int32 InvocationCount = 2; + */ + public Builder setInvocationCount(int value) { + copyOnWrite(); + instance.setInvocationCount(value); + return this; + } + /** + * optional int32 InvocationCount = 2; + */ + public Builder clearInvocationCount() { + copyOnWrite(); + instance.clearInvocationCount(); + return this; + } + + /** + * optional bytes RawData = 3; + */ + public com.google.protobuf.ByteString getRawData() { + return instance.getRawData(); + } + /** + * optional bytes RawData = 3; + */ + public Builder setRawData(com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setRawData(value); + return this; + } + /** + * optional bytes RawData = 3; + */ + public Builder clearRawData() { + copyOnWrite(); + instance.clearRawData(); + return this; + } + + // @@protoc_insertion_point(builder_scope:Analyze) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.Analyze(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.Analyze other = (ch.usi.dag.dislre.protocol.Analysis.Analyze) arg1; + orderingID_ = visitor.visitLong(orderingID_ != 0L, orderingID_, + other.orderingID_ != 0L, other.orderingID_); + invocationCount_ = visitor.visitInt(invocationCount_ != 0, invocationCount_, + other.invocationCount_ != 0, other.invocationCount_); + rawData_ = visitor.visitByteString(rawData_ != com.google.protobuf.ByteString.EMPTY, rawData_, + other.rawData_ != com.google.protobuf.ByteString.EMPTY, other.rawData_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + orderingID_ = input.readInt64(); + break; + } + case 16: { + + invocationCount_ = input.readInt32(); + break; + } + case 26: { + + rawData_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.Analyze.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:Analyze) + private static final ch.usi.dag.dislre.protocol.Analysis.Analyze DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Analyze(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.Analyze getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ClassInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:ClassInfo) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int64 classTag = 1; + */ + long getClassTag(); + + /** + * optional string ClassSignature = 2; + */ + java.lang.String getClassSignature(); + /** + * optional string ClassSignature = 2; + */ + com.google.protobuf.ByteString + getClassSignatureBytes(); + + /** + * optional string ClassGeneric = 3; + */ + java.lang.String getClassGeneric(); + /** + * optional string ClassGeneric = 3; + */ + com.google.protobuf.ByteString + getClassGenericBytes(); + + /** + * optional int64 LoaderTag = 4; + */ + long getLoaderTag(); + + /** + * optional int64 SuperClassTag = 5; + */ + long getSuperClassTag(); + } + /** + * Protobuf type {@code ClassInfo} + */ + public static final class ClassInfo extends + com.google.protobuf.GeneratedMessageLite< + ClassInfo, ClassInfo.Builder> implements + // @@protoc_insertion_point(message_implements:ClassInfo) + ClassInfoOrBuilder { + private ClassInfo() { + classSignature_ = ""; + classGeneric_ = ""; + } + public static final int CLASSTAG_FIELD_NUMBER = 1; + private long classTag_; + /** + * optional int64 classTag = 1; + */ + public long getClassTag() { + return classTag_; + } + /** + * optional int64 classTag = 1; + */ + private void setClassTag(long value) { + + classTag_ = value; + } + /** + * optional int64 classTag = 1; + */ + private void clearClassTag() { + + classTag_ = 0L; + } + + public static final int CLASSSIGNATURE_FIELD_NUMBER = 2; + private java.lang.String classSignature_; + /** + * optional string ClassSignature = 2; + */ + public java.lang.String getClassSignature() { + return classSignature_; + } + /** + * optional string ClassSignature = 2; + */ + public com.google.protobuf.ByteString + getClassSignatureBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(classSignature_); + } + /** + * optional string ClassSignature = 2; + */ + private void setClassSignature( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + classSignature_ = value; + } + /** + * optional string ClassSignature = 2; + */ + private void clearClassSignature() { + + classSignature_ = getDefaultInstance().getClassSignature(); + } + /** + * optional string ClassSignature = 2; + */ + private void setClassSignatureBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + classSignature_ = value.toStringUtf8(); + } + + public static final int CLASSGENERIC_FIELD_NUMBER = 3; + private java.lang.String classGeneric_; + /** + * optional string ClassGeneric = 3; + */ + public java.lang.String getClassGeneric() { + return classGeneric_; + } + /** + * optional string ClassGeneric = 3; + */ + public com.google.protobuf.ByteString + getClassGenericBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(classGeneric_); + } + /** + * optional string ClassGeneric = 3; + */ + private void setClassGeneric( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + classGeneric_ = value; + } + /** + * optional string ClassGeneric = 3; + */ + private void clearClassGeneric() { + + classGeneric_ = getDefaultInstance().getClassGeneric(); + } + /** + * optional string ClassGeneric = 3; + */ + private void setClassGenericBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + classGeneric_ = value.toStringUtf8(); + } + + public static final int LOADERTAG_FIELD_NUMBER = 4; + private long loaderTag_; + /** + * optional int64 LoaderTag = 4; + */ + public long getLoaderTag() { + return loaderTag_; + } + /** + * optional int64 LoaderTag = 4; + */ + private void setLoaderTag(long value) { + + loaderTag_ = value; + } + /** + * optional int64 LoaderTag = 4; + */ + private void clearLoaderTag() { + + loaderTag_ = 0L; + } + + public static final int SUPERCLASSTAG_FIELD_NUMBER = 5; + private long superClassTag_; + /** + * optional int64 SuperClassTag = 5; + */ + public long getSuperClassTag() { + return superClassTag_; + } + /** + * optional int64 SuperClassTag = 5; + */ + private void setSuperClassTag(long value) { + + superClassTag_ = value; + } + /** + * optional int64 SuperClassTag = 5; + */ + private void clearSuperClassTag() { + + superClassTag_ = 0L; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (classTag_ != 0L) { + output.writeInt64(1, classTag_); + } + if (!classSignature_.isEmpty()) { + output.writeString(2, getClassSignature()); + } + if (!classGeneric_.isEmpty()) { + output.writeString(3, getClassGeneric()); + } + if (loaderTag_ != 0L) { + output.writeInt64(4, loaderTag_); + } + if (superClassTag_ != 0L) { + output.writeInt64(5, superClassTag_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (classTag_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, classTag_); + } + if (!classSignature_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getClassSignature()); + } + if (!classGeneric_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(3, getClassGeneric()); + } + if (loaderTag_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, loaderTag_); + } + if (superClassTag_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, superClassTag_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.ClassInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code ClassInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.ClassInfo, Builder> implements + // @@protoc_insertion_point(builder_implements:ClassInfo) + ch.usi.dag.dislre.protocol.Analysis.ClassInfoOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.ClassInfo.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int64 classTag = 1; + */ + public long getClassTag() { + return instance.getClassTag(); + } + /** + * optional int64 classTag = 1; + */ + public Builder setClassTag(long value) { + copyOnWrite(); + instance.setClassTag(value); + return this; + } + /** + * optional int64 classTag = 1; + */ + public Builder clearClassTag() { + copyOnWrite(); + instance.clearClassTag(); + return this; + } + + /** + * optional string ClassSignature = 2; + */ + public java.lang.String getClassSignature() { + return instance.getClassSignature(); + } + /** + * optional string ClassSignature = 2; + */ + public com.google.protobuf.ByteString + getClassSignatureBytes() { + return instance.getClassSignatureBytes(); + } + /** + * optional string ClassSignature = 2; + */ + public Builder setClassSignature( + java.lang.String value) { + copyOnWrite(); + instance.setClassSignature(value); + return this; + } + /** + * optional string ClassSignature = 2; + */ + public Builder clearClassSignature() { + copyOnWrite(); + instance.clearClassSignature(); + return this; + } + /** + * optional string ClassSignature = 2; + */ + public Builder setClassSignatureBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setClassSignatureBytes(value); + return this; + } + + /** + * optional string ClassGeneric = 3; + */ + public java.lang.String getClassGeneric() { + return instance.getClassGeneric(); + } + /** + * optional string ClassGeneric = 3; + */ + public com.google.protobuf.ByteString + getClassGenericBytes() { + return instance.getClassGenericBytes(); + } + /** + * optional string ClassGeneric = 3; + */ + public Builder setClassGeneric( + java.lang.String value) { + copyOnWrite(); + instance.setClassGeneric(value); + return this; + } + /** + * optional string ClassGeneric = 3; + */ + public Builder clearClassGeneric() { + copyOnWrite(); + instance.clearClassGeneric(); + return this; + } + /** + * optional string ClassGeneric = 3; + */ + public Builder setClassGenericBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setClassGenericBytes(value); + return this; + } + + /** + * optional int64 LoaderTag = 4; + */ + public long getLoaderTag() { + return instance.getLoaderTag(); + } + /** + * optional int64 LoaderTag = 4; + */ + public Builder setLoaderTag(long value) { + copyOnWrite(); + instance.setLoaderTag(value); + return this; + } + /** + * optional int64 LoaderTag = 4; + */ + public Builder clearLoaderTag() { + copyOnWrite(); + instance.clearLoaderTag(); + return this; + } + + /** + * optional int64 SuperClassTag = 5; + */ + public long getSuperClassTag() { + return instance.getSuperClassTag(); + } + /** + * optional int64 SuperClassTag = 5; + */ + public Builder setSuperClassTag(long value) { + copyOnWrite(); + instance.setSuperClassTag(value); + return this; + } + /** + * optional int64 SuperClassTag = 5; + */ + public Builder clearSuperClassTag() { + copyOnWrite(); + instance.clearSuperClassTag(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ClassInfo) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.ClassInfo(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.ClassInfo other = (ch.usi.dag.dislre.protocol.Analysis.ClassInfo) arg1; + classTag_ = visitor.visitLong(classTag_ != 0L, classTag_, + other.classTag_ != 0L, other.classTag_); + classSignature_ = visitor.visitString(!classSignature_.isEmpty(), classSignature_, + !other.classSignature_.isEmpty(), other.classSignature_); + classGeneric_ = visitor.visitString(!classGeneric_.isEmpty(), classGeneric_, + !other.classGeneric_.isEmpty(), other.classGeneric_); + loaderTag_ = visitor.visitLong(loaderTag_ != 0L, loaderTag_, + other.loaderTag_ != 0L, other.loaderTag_); + superClassTag_ = visitor.visitLong(superClassTag_ != 0L, superClassTag_, + other.superClassTag_ != 0L, other.superClassTag_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + classTag_ = input.readInt64(); + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + classSignature_ = s; + break; + } + case 26: { + String s = input.readStringRequireUtf8(); + + classGeneric_ = s; + break; + } + case 32: { + + loaderTag_ = input.readInt64(); + break; + } + case 40: { + + superClassTag_ = input.readInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.ClassInfo.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:ClassInfo) + private static final ch.usi.dag.dislre.protocol.Analysis.ClassInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ClassInfo(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface NewClassOrBuilder extends + // @@protoc_insertion_point(interface_extends:NewClass) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional string ClassName = 1; + */ + java.lang.String getClassName(); + /** + * optional string ClassName = 1; + */ + com.google.protobuf.ByteString + getClassNameBytes(); + + /** + * optional int64 ClassLoaderTag = 2; + */ + long getClassLoaderTag(); + + /** + * optional bytes ClassData = 4; + */ + com.google.protobuf.ByteString getClassData(); + } + /** + * Protobuf type {@code NewClass} + */ + public static final class NewClass extends + com.google.protobuf.GeneratedMessageLite< + NewClass, NewClass.Builder> implements + // @@protoc_insertion_point(message_implements:NewClass) + NewClassOrBuilder { + private NewClass() { + className_ = ""; + classData_ = com.google.protobuf.ByteString.EMPTY; + } + public static final int CLASSNAME_FIELD_NUMBER = 1; + private java.lang.String className_; + /** + * optional string ClassName = 1; + */ + public java.lang.String getClassName() { + return className_; + } + /** + * optional string ClassName = 1; + */ + public com.google.protobuf.ByteString + getClassNameBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(className_); + } + /** + * optional string ClassName = 1; + */ + private void setClassName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + className_ = value; + } + /** + * optional string ClassName = 1; + */ + private void clearClassName() { + + className_ = getDefaultInstance().getClassName(); + } + /** + * optional string ClassName = 1; + */ + private void setClassNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + className_ = value.toStringUtf8(); + } + + public static final int CLASSLOADERTAG_FIELD_NUMBER = 2; + private long classLoaderTag_; + /** + * optional int64 ClassLoaderTag = 2; + */ + public long getClassLoaderTag() { + return classLoaderTag_; + } + /** + * optional int64 ClassLoaderTag = 2; + */ + private void setClassLoaderTag(long value) { + + classLoaderTag_ = value; + } + /** + * optional int64 ClassLoaderTag = 2; + */ + private void clearClassLoaderTag() { + + classLoaderTag_ = 0L; + } + + public static final int CLASSDATA_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString classData_; + /** + * optional bytes ClassData = 4; + */ + public com.google.protobuf.ByteString getClassData() { + return classData_; + } + /** + * optional bytes ClassData = 4; + */ + private void setClassData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + classData_ = value; + } + /** + * optional bytes ClassData = 4; + */ + private void clearClassData() { + + classData_ = getDefaultInstance().getClassData(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!className_.isEmpty()) { + output.writeString(1, getClassName()); + } + if (classLoaderTag_ != 0L) { + output.writeInt64(2, classLoaderTag_); + } + if (!classData_.isEmpty()) { + output.writeBytes(4, classData_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!className_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(1, getClassName()); + } + if (classLoaderTag_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, classLoaderTag_); + } + if (!classData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, classData_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.NewClass prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code NewClass} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.NewClass, Builder> implements + // @@protoc_insertion_point(builder_implements:NewClass) + ch.usi.dag.dislre.protocol.Analysis.NewClassOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.NewClass.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional string ClassName = 1; + */ + public java.lang.String getClassName() { + return instance.getClassName(); + } + /** + * optional string ClassName = 1; + */ + public com.google.protobuf.ByteString + getClassNameBytes() { + return instance.getClassNameBytes(); + } + /** + * optional string ClassName = 1; + */ + public Builder setClassName( + java.lang.String value) { + copyOnWrite(); + instance.setClassName(value); + return this; + } + /** + * optional string ClassName = 1; + */ + public Builder clearClassName() { + copyOnWrite(); + instance.clearClassName(); + return this; + } + /** + * optional string ClassName = 1; + */ + public Builder setClassNameBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setClassNameBytes(value); + return this; + } + + /** + * optional int64 ClassLoaderTag = 2; + */ + public long getClassLoaderTag() { + return instance.getClassLoaderTag(); + } + /** + * optional int64 ClassLoaderTag = 2; + */ + public Builder setClassLoaderTag(long value) { + copyOnWrite(); + instance.setClassLoaderTag(value); + return this; + } + /** + * optional int64 ClassLoaderTag = 2; + */ + public Builder clearClassLoaderTag() { + copyOnWrite(); + instance.clearClassLoaderTag(); + return this; + } + + /** + * optional bytes ClassData = 4; + */ + public com.google.protobuf.ByteString getClassData() { + return instance.getClassData(); + } + /** + * optional bytes ClassData = 4; + */ + public Builder setClassData(com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setClassData(value); + return this; + } + /** + * optional bytes ClassData = 4; + */ + public Builder clearClassData() { + copyOnWrite(); + instance.clearClassData(); + return this; + } + + // @@protoc_insertion_point(builder_scope:NewClass) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.NewClass(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.NewClass other = (ch.usi.dag.dislre.protocol.Analysis.NewClass) arg1; + className_ = visitor.visitString(!className_.isEmpty(), className_, + !other.className_.isEmpty(), other.className_); + classLoaderTag_ = visitor.visitLong(classLoaderTag_ != 0L, classLoaderTag_, + other.classLoaderTag_ != 0L, other.classLoaderTag_); + classData_ = visitor.visitByteString(classData_ != com.google.protobuf.ByteString.EMPTY, classData_, + other.classData_ != com.google.protobuf.ByteString.EMPTY, other.classData_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + String s = input.readStringRequireUtf8(); + + className_ = s; + break; + } + case 16: { + + classLoaderTag_ = input.readInt64(); + break; + } + case 34: { + + classData_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.NewClass.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:NewClass) + private static final ch.usi.dag.dislre.protocol.Analysis.NewClass DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new NewClass(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.NewClass getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ObjectFreeOrBuilder extends + // @@protoc_insertion_point(interface_extends:ObjectFree) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int32 Count = 1; + */ + int getCount(); + + /** + * optional bytes RawData = 2; + */ + com.google.protobuf.ByteString getRawData(); + } + /** + * Protobuf type {@code ObjectFree} + */ + public static final class ObjectFree extends + com.google.protobuf.GeneratedMessageLite< + ObjectFree, ObjectFree.Builder> implements + // @@protoc_insertion_point(message_implements:ObjectFree) + ObjectFreeOrBuilder { + private ObjectFree() { + rawData_ = com.google.protobuf.ByteString.EMPTY; + } + public static final int COUNT_FIELD_NUMBER = 1; + private int count_; + /** + * optional int32 Count = 1; + */ + public int getCount() { + return count_; + } + /** + * optional int32 Count = 1; + */ + private void setCount(int value) { + + count_ = value; + } + /** + * optional int32 Count = 1; + */ + private void clearCount() { + + count_ = 0; + } + + public static final int RAWDATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString rawData_; + /** + * optional bytes RawData = 2; + */ + public com.google.protobuf.ByteString getRawData() { + return rawData_; + } + /** + * optional bytes RawData = 2; + */ + private void setRawData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + rawData_ = value; + } + /** + * optional bytes RawData = 2; + */ + private void clearRawData() { + + rawData_ = getDefaultInstance().getRawData(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (count_ != 0) { + output.writeInt32(1, count_); + } + if (!rawData_.isEmpty()) { + output.writeBytes(2, rawData_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (count_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, count_); + } + if (!rawData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, rawData_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.ObjectFree prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code ObjectFree} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.ObjectFree, Builder> implements + // @@protoc_insertion_point(builder_implements:ObjectFree) + ch.usi.dag.dislre.protocol.Analysis.ObjectFreeOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.ObjectFree.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int32 Count = 1; + */ + public int getCount() { + return instance.getCount(); + } + /** + * optional int32 Count = 1; + */ + public Builder setCount(int value) { + copyOnWrite(); + instance.setCount(value); + return this; + } + /** + * optional int32 Count = 1; + */ + public Builder clearCount() { + copyOnWrite(); + instance.clearCount(); + return this; + } + + /** + * optional bytes RawData = 2; + */ + public com.google.protobuf.ByteString getRawData() { + return instance.getRawData(); + } + /** + * optional bytes RawData = 2; + */ + public Builder setRawData(com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setRawData(value); + return this; + } + /** + * optional bytes RawData = 2; + */ + public Builder clearRawData() { + copyOnWrite(); + instance.clearRawData(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ObjectFree) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.ObjectFree(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.ObjectFree other = (ch.usi.dag.dislre.protocol.Analysis.ObjectFree) arg1; + count_ = visitor.visitInt(count_ != 0, count_, + other.count_ != 0, other.count_); + rawData_ = visitor.visitByteString(rawData_ != com.google.protobuf.ByteString.EMPTY, rawData_, + other.rawData_ != com.google.protobuf.ByteString.EMPTY, other.rawData_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + count_ = input.readInt32(); + break; + } + case 18: { + + rawData_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.ObjectFree.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:ObjectFree) + private static final ch.usi.dag.dislre.protocol.Analysis.ObjectFree DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ObjectFree(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface RegisterAnalysisOrBuilder extends + // @@protoc_insertion_point(interface_extends:RegisterAnalysis) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int32 AnalysisId = 1; + */ + int getAnalysisId(); + + /** + * optional string Descriptor = 2; + */ + java.lang.String getDescriptor(); + /** + * optional string Descriptor = 2; + */ + com.google.protobuf.ByteString + getDescriptorBytes(); + } + /** + * Protobuf type {@code RegisterAnalysis} + */ + public static final class RegisterAnalysis extends + com.google.protobuf.GeneratedMessageLite< + RegisterAnalysis, RegisterAnalysis.Builder> implements + // @@protoc_insertion_point(message_implements:RegisterAnalysis) + RegisterAnalysisOrBuilder { + private RegisterAnalysis() { + descriptor_ = ""; + } + public static final int ANALYSISID_FIELD_NUMBER = 1; + private int analysisId_; + /** + * optional int32 AnalysisId = 1; + */ + public int getAnalysisId() { + return analysisId_; + } + /** + * optional int32 AnalysisId = 1; + */ + private void setAnalysisId(int value) { + + analysisId_ = value; + } + /** + * optional int32 AnalysisId = 1; + */ + private void clearAnalysisId() { + + analysisId_ = 0; + } + + public static final int DESCRIPTOR_FIELD_NUMBER = 2; + private java.lang.String descriptor_; + /** + * optional string Descriptor = 2; + */ + public java.lang.String getDescriptor() { + return descriptor_; + } + /** + * optional string Descriptor = 2; + */ + public com.google.protobuf.ByteString + getDescriptorBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(descriptor_); + } + /** + * optional string Descriptor = 2; + */ + private void setDescriptor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + descriptor_ = value; + } + /** + * optional string Descriptor = 2; + */ + private void clearDescriptor() { + + descriptor_ = getDefaultInstance().getDescriptor(); + } + /** + * optional string Descriptor = 2; + */ + private void setDescriptorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + descriptor_ = value.toStringUtf8(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (analysisId_ != 0) { + output.writeInt32(1, analysisId_); + } + if (!descriptor_.isEmpty()) { + output.writeString(2, getDescriptor()); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (analysisId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, analysisId_); + } + if (!descriptor_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getDescriptor()); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code RegisterAnalysis} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis, Builder> implements + // @@protoc_insertion_point(builder_implements:RegisterAnalysis) + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysisOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int32 AnalysisId = 1; + */ + public int getAnalysisId() { + return instance.getAnalysisId(); + } + /** + * optional int32 AnalysisId = 1; + */ + public Builder setAnalysisId(int value) { + copyOnWrite(); + instance.setAnalysisId(value); + return this; + } + /** + * optional int32 AnalysisId = 1; + */ + public Builder clearAnalysisId() { + copyOnWrite(); + instance.clearAnalysisId(); + return this; + } + + /** + * optional string Descriptor = 2; + */ + public java.lang.String getDescriptor() { + return instance.getDescriptor(); + } + /** + * optional string Descriptor = 2; + */ + public com.google.protobuf.ByteString + getDescriptorBytes() { + return instance.getDescriptorBytes(); + } + /** + * optional string Descriptor = 2; + */ + public Builder setDescriptor( + java.lang.String value) { + copyOnWrite(); + instance.setDescriptor(value); + return this; + } + /** + * optional string Descriptor = 2; + */ + public Builder clearDescriptor() { + copyOnWrite(); + instance.clearDescriptor(); + return this; + } + /** + * optional string Descriptor = 2; + */ + public Builder setDescriptorBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setDescriptorBytes(value); + return this; + } + + // @@protoc_insertion_point(builder_scope:RegisterAnalysis) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis other = (ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis) arg1; + analysisId_ = visitor.visitInt(analysisId_ != 0, analysisId_, + other.analysisId_ != 0, other.analysisId_); + descriptor_ = visitor.visitString(!descriptor_.isEmpty(), descriptor_, + !other.descriptor_.isEmpty(), other.descriptor_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + analysisId_ = input.readInt32(); + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + descriptor_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:RegisterAnalysis) + private static final ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new RegisterAnalysis(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface StringInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:StringInfo) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int64 StringTag = 1; + */ + long getStringTag(); + + /** + * optional string StringData = 2; + */ + java.lang.String getStringData(); + /** + * optional string StringData = 2; + */ + com.google.protobuf.ByteString + getStringDataBytes(); + } + /** + * Protobuf type {@code StringInfo} + */ + public static final class StringInfo extends + com.google.protobuf.GeneratedMessageLite< + StringInfo, StringInfo.Builder> implements + // @@protoc_insertion_point(message_implements:StringInfo) + StringInfoOrBuilder { + private StringInfo() { + stringData_ = ""; + } + public static final int STRINGTAG_FIELD_NUMBER = 1; + private long stringTag_; + /** + * optional int64 StringTag = 1; + */ + public long getStringTag() { + return stringTag_; + } + /** + * optional int64 StringTag = 1; + */ + private void setStringTag(long value) { + + stringTag_ = value; + } + /** + * optional int64 StringTag = 1; + */ + private void clearStringTag() { + + stringTag_ = 0L; + } + + public static final int STRINGDATA_FIELD_NUMBER = 2; + private java.lang.String stringData_; + /** + * optional string StringData = 2; + */ + public java.lang.String getStringData() { + return stringData_; + } + /** + * optional string StringData = 2; + */ + public com.google.protobuf.ByteString + getStringDataBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(stringData_); + } + /** + * optional string StringData = 2; + */ + private void setStringData( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + stringData_ = value; + } + /** + * optional string StringData = 2; + */ + private void clearStringData() { + + stringData_ = getDefaultInstance().getStringData(); + } + /** + * optional string StringData = 2; + */ + private void setStringDataBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + stringData_ = value.toStringUtf8(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (stringTag_ != 0L) { + output.writeInt64(1, stringTag_); + } + if (!stringData_.isEmpty()) { + output.writeString(2, getStringData()); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (stringTag_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, stringTag_); + } + if (!stringData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getStringData()); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.StringInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code StringInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.StringInfo, Builder> implements + // @@protoc_insertion_point(builder_implements:StringInfo) + ch.usi.dag.dislre.protocol.Analysis.StringInfoOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.StringInfo.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int64 StringTag = 1; + */ + public long getStringTag() { + return instance.getStringTag(); + } + /** + * optional int64 StringTag = 1; + */ + public Builder setStringTag(long value) { + copyOnWrite(); + instance.setStringTag(value); + return this; + } + /** + * optional int64 StringTag = 1; + */ + public Builder clearStringTag() { + copyOnWrite(); + instance.clearStringTag(); + return this; + } + + /** + * optional string StringData = 2; + */ + public java.lang.String getStringData() { + return instance.getStringData(); + } + /** + * optional string StringData = 2; + */ + public com.google.protobuf.ByteString + getStringDataBytes() { + return instance.getStringDataBytes(); + } + /** + * optional string StringData = 2; + */ + public Builder setStringData( + java.lang.String value) { + copyOnWrite(); + instance.setStringData(value); + return this; + } + /** + * optional string StringData = 2; + */ + public Builder clearStringData() { + copyOnWrite(); + instance.clearStringData(); + return this; + } + /** + * optional string StringData = 2; + */ + public Builder setStringDataBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setStringDataBytes(value); + return this; + } + + // @@protoc_insertion_point(builder_scope:StringInfo) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.StringInfo(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.StringInfo other = (ch.usi.dag.dislre.protocol.Analysis.StringInfo) arg1; + stringTag_ = visitor.visitLong(stringTag_ != 0L, stringTag_, + other.stringTag_ != 0L, other.stringTag_); + stringData_ = visitor.visitString(!stringData_.isEmpty(), stringData_, + !other.stringData_.isEmpty(), other.stringData_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + stringTag_ = input.readInt64(); + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + stringData_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.StringInfo.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:StringInfo) + private static final ch.usi.dag.dislre.protocol.Analysis.StringInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new StringInfo(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ThreadEndOrBuilder extends + // @@protoc_insertion_point(interface_extends:ThreadEnd) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int64 ThreadId = 1; + */ + long getThreadId(); + } + /** + * Protobuf type {@code ThreadEnd} + */ + public static final class ThreadEnd extends + com.google.protobuf.GeneratedMessageLite< + ThreadEnd, ThreadEnd.Builder> implements + // @@protoc_insertion_point(message_implements:ThreadEnd) + ThreadEndOrBuilder { + private ThreadEnd() { + } + public static final int THREADID_FIELD_NUMBER = 1; + private long threadId_; + /** + * optional int64 ThreadId = 1; + */ + public long getThreadId() { + return threadId_; + } + /** + * optional int64 ThreadId = 1; + */ + private void setThreadId(long value) { + + threadId_ = value; + } + /** + * optional int64 ThreadId = 1; + */ + private void clearThreadId() { + + threadId_ = 0L; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (threadId_ != 0L) { + output.writeInt64(1, threadId_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (threadId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, threadId_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.ThreadEnd prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code ThreadEnd} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.ThreadEnd, Builder> implements + // @@protoc_insertion_point(builder_implements:ThreadEnd) + ch.usi.dag.dislre.protocol.Analysis.ThreadEndOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int64 ThreadId = 1; + */ + public long getThreadId() { + return instance.getThreadId(); + } + /** + * optional int64 ThreadId = 1; + */ + public Builder setThreadId(long value) { + copyOnWrite(); + instance.setThreadId(value); + return this; + } + /** + * optional int64 ThreadId = 1; + */ + public Builder clearThreadId() { + copyOnWrite(); + instance.clearThreadId(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ThreadEnd) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.ThreadEnd(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.ThreadEnd other = (ch.usi.dag.dislre.protocol.Analysis.ThreadEnd) arg1; + threadId_ = visitor.visitLong(threadId_ != 0L, threadId_, + other.threadId_ != 0L, other.threadId_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + threadId_ = input.readInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:ThreadEnd) + private static final ch.usi.dag.dislre.protocol.Analysis.ThreadEnd DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ThreadEnd(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ThreadInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:ThreadInfo) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int64 ThreadTag = 1; + */ + long getThreadTag(); + + /** + * optional string Name = 2; + */ + java.lang.String getName(); + /** + * optional string Name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * optional bool IsDaemon = 3; + */ + boolean getIsDaemon(); + } + /** + * Protobuf type {@code ThreadInfo} + */ + public static final class ThreadInfo extends + com.google.protobuf.GeneratedMessageLite< + ThreadInfo, ThreadInfo.Builder> implements + // @@protoc_insertion_point(message_implements:ThreadInfo) + ThreadInfoOrBuilder { + private ThreadInfo() { + name_ = ""; + } + public static final int THREADTAG_FIELD_NUMBER = 1; + private long threadTag_; + /** + * optional int64 ThreadTag = 1; + */ + public long getThreadTag() { + return threadTag_; + } + /** + * optional int64 ThreadTag = 1; + */ + private void setThreadTag(long value) { + + threadTag_ = value; + } + /** + * optional int64 ThreadTag = 1; + */ + private void clearThreadTag() { + + threadTag_ = 0L; + } + + public static final int NAME_FIELD_NUMBER = 2; + private java.lang.String name_; + /** + * optional string Name = 2; + */ + public java.lang.String getName() { + return name_; + } + /** + * optional string Name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(name_); + } + /** + * optional string Name = 2; + */ + private void setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + } + /** + * optional string Name = 2; + */ + private void clearName() { + + name_ = getDefaultInstance().getName(); + } + /** + * optional string Name = 2; + */ + private void setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value.toStringUtf8(); + } + + public static final int ISDAEMON_FIELD_NUMBER = 3; + private boolean isDaemon_; + /** + * optional bool IsDaemon = 3; + */ + public boolean getIsDaemon() { + return isDaemon_; + } + /** + * optional bool IsDaemon = 3; + */ + private void setIsDaemon(boolean value) { + + isDaemon_ = value; + } + /** + * optional bool IsDaemon = 3; + */ + private void clearIsDaemon() { + + isDaemon_ = false; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (threadTag_ != 0L) { + output.writeInt64(1, threadTag_); + } + if (!name_.isEmpty()) { + output.writeString(2, getName()); + } + if (isDaemon_ != false) { + output.writeBool(3, isDaemon_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (threadTag_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, threadTag_); + } + if (!name_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getName()); + } + if (isDaemon_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isDaemon_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.ThreadInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code ThreadInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Analysis.ThreadInfo, Builder> implements + // @@protoc_insertion_point(builder_implements:ThreadInfo) + ch.usi.dag.dislre.protocol.Analysis.ThreadInfoOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int64 ThreadTag = 1; + */ + public long getThreadTag() { + return instance.getThreadTag(); + } + /** + * optional int64 ThreadTag = 1; + */ + public Builder setThreadTag(long value) { + copyOnWrite(); + instance.setThreadTag(value); + return this; + } + /** + * optional int64 ThreadTag = 1; + */ + public Builder clearThreadTag() { + copyOnWrite(); + instance.clearThreadTag(); + return this; + } + + /** + * optional string Name = 2; + */ + public java.lang.String getName() { + return instance.getName(); + } + /** + * optional string Name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + return instance.getNameBytes(); + } + /** + * optional string Name = 2; + */ + public Builder setName( + java.lang.String value) { + copyOnWrite(); + instance.setName(value); + return this; + } + /** + * optional string Name = 2; + */ + public Builder clearName() { + copyOnWrite(); + instance.clearName(); + return this; + } + /** + * optional string Name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setNameBytes(value); + return this; + } + + /** + * optional bool IsDaemon = 3; + */ + public boolean getIsDaemon() { + return instance.getIsDaemon(); + } + /** + * optional bool IsDaemon = 3; + */ + public Builder setIsDaemon(boolean value) { + copyOnWrite(); + instance.setIsDaemon(value); + return this; + } + /** + * optional bool IsDaemon = 3; + */ + public Builder clearIsDaemon() { + copyOnWrite(); + instance.clearIsDaemon(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ThreadInfo) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Analysis.ThreadInfo(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Analysis.ThreadInfo other = (ch.usi.dag.dislre.protocol.Analysis.ThreadInfo) arg1; + threadTag_ = visitor.visitLong(threadTag_ != 0L, threadTag_, + other.threadTag_ != 0L, other.threadTag_); + name_ = visitor.visitString(!name_.isEmpty(), name_, + !other.name_.isEmpty(), other.name_); + isDaemon_ = visitor.visitBoolean(isDaemon_ != false, isDaemon_, + other.isDaemon_ != false, other.isDaemon_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + threadTag_ = input.readInt64(); + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: { + + isDaemon_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:ThreadInfo) + private static final ch.usi.dag.dislre.protocol.Analysis.ThreadInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ThreadInfo(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + + static { + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/shvm-server/src/ch/usi/dag/dislre/protocol/DiSL.java b/shvm-server/src/ch/usi/dag/dislre/protocol/DiSL.java new file mode 100644 index 00000000..b12a60ea --- /dev/null +++ b/shvm-server/src/ch/usi/dag/dislre/protocol/DiSL.java @@ -0,0 +1,3032 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: disl.proto + +package ch.usi.dag.dislre.protocol; + +public final class DiSL { + private DiSL() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public interface ErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:Error) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int32 code = 1; + */ + int getCode(); + + /** + * optional string message = 2; + */ + java.lang.String getMessage(); + /** + * optional string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + *
+   * Common type to send errors
+   * 
+ * + * Protobuf type {@code Error} + */ + public static final class Error extends + com.google.protobuf.GeneratedMessageLite< + Error, Error.Builder> implements + // @@protoc_insertion_point(message_implements:Error) + ErrorOrBuilder { + private Error() { + message_ = ""; + } + public static final int CODE_FIELD_NUMBER = 1; + private int code_; + /** + * optional int32 code = 1; + */ + public int getCode() { + return code_; + } + /** + * optional int32 code = 1; + */ + private void setCode(int value) { + + code_ = value; + } + /** + * optional int32 code = 1; + */ + private void clearCode() { + + code_ = 0; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private java.lang.String message_; + /** + * optional string message = 2; + */ + public java.lang.String getMessage() { + return message_; + } + /** + * optional string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(message_); + } + /** + * optional string message = 2; + */ + private void setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + } + /** + * optional string message = 2; + */ + private void clearMessage() { + + message_ = getDefaultInstance().getMessage(); + } + /** + * optional string message = 2; + */ + private void setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value.toStringUtf8(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != 0) { + output.writeInt32(1, code_); + } + if (!message_.isEmpty()) { + output.writeString(2, getMessage()); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (code_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, code_); + } + if (!message_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getMessage()); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.Error parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.DiSL.Error prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * Common type to send errors
+     * 
+ * + * Protobuf type {@code Error} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.DiSL.Error, Builder> implements + // @@protoc_insertion_point(builder_implements:Error) + ch.usi.dag.dislre.protocol.DiSL.ErrorOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.DiSL.Error.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int32 code = 1; + */ + public int getCode() { + return instance.getCode(); + } + /** + * optional int32 code = 1; + */ + public Builder setCode(int value) { + copyOnWrite(); + instance.setCode(value); + return this; + } + /** + * optional int32 code = 1; + */ + public Builder clearCode() { + copyOnWrite(); + instance.clearCode(); + return this; + } + + /** + * optional string message = 2; + */ + public java.lang.String getMessage() { + return instance.getMessage(); + } + /** + * optional string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + return instance.getMessageBytes(); + } + /** + * optional string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + copyOnWrite(); + instance.setMessage(value); + return this; + } + /** + * optional string message = 2; + */ + public Builder clearMessage() { + copyOnWrite(); + instance.clearMessage(); + return this; + } + /** + * optional string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setMessageBytes(value); + return this; + } + + // @@protoc_insertion_point(builder_scope:Error) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.DiSL.Error(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.DiSL.Error other = (ch.usi.dag.dislre.protocol.DiSL.Error) arg1; + code_ = visitor.visitInt(code_ != 0, code_, + other.code_ != 0, other.code_); + message_ = visitor.visitString(!message_.isEmpty(), message_, + !other.message_.isEmpty(), other.message_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + code_ = input.readInt32(); + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.DiSL.Error.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:Error) + private static final ch.usi.dag.dislre.protocol.DiSL.Error DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Error(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.DiSL.Error getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface InstrumentationDeliveryOrBuilder extends + // @@protoc_insertion_point(interface_extends:InstrumentationDelivery) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * repeated int32 sizes = 1; + */ + java.util.List getSizesList(); + /** + * repeated int32 sizes = 1; + */ + int getSizesCount(); + /** + * repeated int32 sizes = 1; + */ + int getSizes(int index); + + /** + * optional bytes instrumentation = 2; + */ + com.google.protobuf.ByteString getInstrumentation(); + } + /** + *
+   * When the client obtains the session_id, next step should be sending
+   * the instrumentation jar (or more of them) to the instrumentation server.
+   * 
+ * + * Protobuf type {@code InstrumentationDelivery} + */ + public static final class InstrumentationDelivery extends + com.google.protobuf.GeneratedMessageLite< + InstrumentationDelivery, InstrumentationDelivery.Builder> implements + // @@protoc_insertion_point(message_implements:InstrumentationDelivery) + InstrumentationDeliveryOrBuilder { + private InstrumentationDelivery() { + sizes_ = emptyIntList(); + instrumentation_ = com.google.protobuf.ByteString.EMPTY; + } + private int bitField0_; + public static final int SIZES_FIELD_NUMBER = 1; + private com.google.protobuf.Internal.IntList sizes_; + /** + * repeated int32 sizes = 1; + */ + public java.util.List + getSizesList() { + return sizes_; + } + /** + * repeated int32 sizes = 1; + */ + public int getSizesCount() { + return sizes_.size(); + } + /** + * repeated int32 sizes = 1; + */ + public int getSizes(int index) { + return sizes_.getInt(index); + } + private void ensureSizesIsMutable() { + if (!sizes_.isModifiable()) { + sizes_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(sizes_); + } + } + /** + * repeated int32 sizes = 1; + */ + private void setSizes( + int index, int value) { + ensureSizesIsMutable(); + sizes_.setInt(index, value); + } + /** + * repeated int32 sizes = 1; + */ + private void addSizes(int value) { + ensureSizesIsMutable(); + sizes_.addInt(value); + } + /** + * repeated int32 sizes = 1; + */ + private void addAllSizes( + java.lang.Iterable values) { + ensureSizesIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, sizes_); + } + /** + * repeated int32 sizes = 1; + */ + private void clearSizes() { + sizes_ = emptyIntList(); + } + + public static final int INSTRUMENTATION_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString instrumentation_; + /** + * optional bytes instrumentation = 2; + */ + public com.google.protobuf.ByteString getInstrumentation() { + return instrumentation_; + } + /** + * optional bytes instrumentation = 2; + */ + private void setInstrumentation(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + instrumentation_ = value; + } + /** + * optional bytes instrumentation = 2; + */ + private void clearInstrumentation() { + + instrumentation_ = getDefaultInstance().getInstrumentation(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < sizes_.size(); i++) { + output.writeInt32(1, sizes_.getInt(i)); + } + if (!instrumentation_.isEmpty()) { + output.writeBytes(2, instrumentation_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < sizes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(sizes_.getInt(i)); + } + size += dataSize; + size += 1 * getSizesList().size(); + } + if (!instrumentation_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, instrumentation_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * When the client obtains the session_id, next step should be sending
+     * the instrumentation jar (or more of them) to the instrumentation server.
+     * 
+ * + * Protobuf type {@code InstrumentationDelivery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery, Builder> implements + // @@protoc_insertion_point(builder_implements:InstrumentationDelivery) + ch.usi.dag.dislre.protocol.DiSL.InstrumentationDeliveryOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * repeated int32 sizes = 1; + */ + public java.util.List + getSizesList() { + return java.util.Collections.unmodifiableList( + instance.getSizesList()); + } + /** + * repeated int32 sizes = 1; + */ + public int getSizesCount() { + return instance.getSizesCount(); + } + /** + * repeated int32 sizes = 1; + */ + public int getSizes(int index) { + return instance.getSizes(index); + } + /** + * repeated int32 sizes = 1; + */ + public Builder setSizes( + int index, int value) { + copyOnWrite(); + instance.setSizes(index, value); + return this; + } + /** + * repeated int32 sizes = 1; + */ + public Builder addSizes(int value) { + copyOnWrite(); + instance.addSizes(value); + return this; + } + /** + * repeated int32 sizes = 1; + */ + public Builder addAllSizes( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllSizes(values); + return this; + } + /** + * repeated int32 sizes = 1; + */ + public Builder clearSizes() { + copyOnWrite(); + instance.clearSizes(); + return this; + } + + /** + * optional bytes instrumentation = 2; + */ + public com.google.protobuf.ByteString getInstrumentation() { + return instance.getInstrumentation(); + } + /** + * optional bytes instrumentation = 2; + */ + public Builder setInstrumentation(com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setInstrumentation(value); + return this; + } + /** + * optional bytes instrumentation = 2; + */ + public Builder clearInstrumentation() { + copyOnWrite(); + instance.clearInstrumentation(); + return this; + } + + // @@protoc_insertion_point(builder_scope:InstrumentationDelivery) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + sizes_.makeImmutable(); + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery other = (ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery) arg1; + sizes_= visitor.visitIntList(sizes_, other.sizes_); + instrumentation_ = visitor.visitByteString(instrumentation_ != com.google.protobuf.ByteString.EMPTY, instrumentation_, + other.instrumentation_ != com.google.protobuf.ByteString.EMPTY, other.instrumentation_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + if (!sizes_.isModifiable()) { + sizes_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(sizes_); + } + sizes_.addInt(input.readInt32()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!sizes_.isModifiable() && input.getBytesUntilLimit() > 0) { + sizes_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(sizes_); + } + while (input.getBytesUntilLimit() > 0) { + sizes_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } + case 18: { + + instrumentation_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:InstrumentationDelivery) + private static final ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new InstrumentationDelivery(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface InstrumentationAcceptConfirmationOrBuilder extends + // @@protoc_insertion_point(interface_extends:InstrumentationAcceptConfirmation) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional bool instrumentation_accepted = 1; + */ + boolean getInstrumentationAccepted(); + + /** + * repeated .Error errors = 2; + */ + java.util.List + getErrorsList(); + /** + * repeated .Error errors = 2; + */ + ch.usi.dag.dislre.protocol.DiSL.Error getErrors(int index); + /** + * repeated .Error errors = 2; + */ + int getErrorsCount(); + } + /** + *
+   * This is server response to InstrumentationDelivery message
+   * 
+ * + * Protobuf type {@code InstrumentationAcceptConfirmation} + */ + public static final class InstrumentationAcceptConfirmation extends + com.google.protobuf.GeneratedMessageLite< + InstrumentationAcceptConfirmation, InstrumentationAcceptConfirmation.Builder> implements + // @@protoc_insertion_point(message_implements:InstrumentationAcceptConfirmation) + InstrumentationAcceptConfirmationOrBuilder { + private InstrumentationAcceptConfirmation() { + errors_ = emptyProtobufList(); + } + private int bitField0_; + public static final int INSTRUMENTATION_ACCEPTED_FIELD_NUMBER = 1; + private boolean instrumentationAccepted_; + /** + * optional bool instrumentation_accepted = 1; + */ + public boolean getInstrumentationAccepted() { + return instrumentationAccepted_; + } + /** + * optional bool instrumentation_accepted = 1; + */ + private void setInstrumentationAccepted(boolean value) { + + instrumentationAccepted_ = value; + } + /** + * optional bool instrumentation_accepted = 1; + */ + private void clearInstrumentationAccepted() { + + instrumentationAccepted_ = false; + } + + public static final int ERRORS_FIELD_NUMBER = 2; + private com.google.protobuf.Internal.ProtobufList errors_; + /** + * repeated .Error errors = 2; + */ + public java.util.List getErrorsList() { + return errors_; + } + /** + * repeated .Error errors = 2; + */ + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + /** + * repeated .Error errors = 2; + */ + public int getErrorsCount() { + return errors_.size(); + } + /** + * repeated .Error errors = 2; + */ + public ch.usi.dag.dislre.protocol.DiSL.Error getErrors(int index) { + return errors_.get(index); + } + /** + * repeated .Error errors = 2; + */ + public ch.usi.dag.dislre.protocol.DiSL.ErrorOrBuilder getErrorsOrBuilder( + int index) { + return errors_.get(index); + } + private void ensureErrorsIsMutable() { + if (!errors_.isModifiable()) { + errors_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(errors_); + } + } + + /** + * repeated .Error errors = 2; + */ + private void setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + } + /** + * repeated .Error errors = 2; + */ + private void setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + } + /** + * repeated .Error errors = 2; + */ + private void addErrors(ch.usi.dag.dislre.protocol.DiSL.Error value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + } + /** + * repeated .Error errors = 2; + */ + private void addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + } + /** + * repeated .Error errors = 2; + */ + private void addErrors( + ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + } + /** + * repeated .Error errors = 2; + */ + private void addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + } + /** + * repeated .Error errors = 2; + */ + private void addAllErrors( + java.lang.Iterable values) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, errors_); + } + /** + * repeated .Error errors = 2; + */ + private void clearErrors() { + errors_ = emptyProtobufList(); + } + /** + * repeated .Error errors = 2; + */ + private void removeErrors(int index) { + ensureErrorsIsMutable(); + errors_.remove(index); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (instrumentationAccepted_ != false) { + output.writeBool(1, instrumentationAccepted_); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(2, errors_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (instrumentationAccepted_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, instrumentationAccepted_); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, errors_.get(i)); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * This is server response to InstrumentationDelivery message
+     * 
+ * + * Protobuf type {@code InstrumentationAcceptConfirmation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation, Builder> implements + // @@protoc_insertion_point(builder_implements:InstrumentationAcceptConfirmation) + ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmationOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional bool instrumentation_accepted = 1; + */ + public boolean getInstrumentationAccepted() { + return instance.getInstrumentationAccepted(); + } + /** + * optional bool instrumentation_accepted = 1; + */ + public Builder setInstrumentationAccepted(boolean value) { + copyOnWrite(); + instance.setInstrumentationAccepted(value); + return this; + } + /** + * optional bool instrumentation_accepted = 1; + */ + public Builder clearInstrumentationAccepted() { + copyOnWrite(); + instance.clearInstrumentationAccepted(); + return this; + } + + /** + * repeated .Error errors = 2; + */ + public java.util.List getErrorsList() { + return java.util.Collections.unmodifiableList( + instance.getErrorsList()); + } + /** + * repeated .Error errors = 2; + */ + public int getErrorsCount() { + return instance.getErrorsCount(); + }/** + * repeated .Error errors = 2; + */ + public ch.usi.dag.dislre.protocol.DiSL.Error getErrors(int index) { + return instance.getErrors(index); + } + /** + * repeated .Error errors = 2; + */ + public Builder setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + copyOnWrite(); + instance.setErrors(index, value); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + copyOnWrite(); + instance.setErrors(index, builderForValue); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder addErrors(ch.usi.dag.dislre.protocol.DiSL.Error value) { + copyOnWrite(); + instance.addErrors(value); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + copyOnWrite(); + instance.addErrors(index, value); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder addErrors( + ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + copyOnWrite(); + instance.addErrors(builderForValue); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + copyOnWrite(); + instance.addErrors(index, builderForValue); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder addAllErrors( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllErrors(values); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder clearErrors() { + copyOnWrite(); + instance.clearErrors(); + return this; + } + /** + * repeated .Error errors = 2; + */ + public Builder removeErrors(int index) { + copyOnWrite(); + instance.removeErrors(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:InstrumentationAcceptConfirmation) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + errors_.makeImmutable(); + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation other = (ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation) arg1; + instrumentationAccepted_ = visitor.visitBoolean(instrumentationAccepted_ != false, instrumentationAccepted_, + other.instrumentationAccepted_ != false, other.instrumentationAccepted_); + errors_= visitor.visitList(errors_, other.errors_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + instrumentationAccepted_ = input.readBool(); + break; + } + case 18: { + if (!errors_.isModifiable()) { + errors_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(errors_); + } + errors_.add( + input.readMessage(ch.usi.dag.dislre.protocol.DiSL.Error.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:InstrumentationAcceptConfirmation) + private static final ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new InstrumentationAcceptConfirmation(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface InstrClassInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:InstrClassInfo) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional string className = 1; + */ + java.lang.String getClassName(); + /** + * optional string className = 1; + */ + com.google.protobuf.ByteString + getClassNameBytes(); + + /** + * optional int64 classLoaderTag = 2; + */ + long getClassLoaderTag(); + } + /** + * Protobuf type {@code InstrClassInfo} + */ + public static final class InstrClassInfo extends + com.google.protobuf.GeneratedMessageLite< + InstrClassInfo, InstrClassInfo.Builder> implements + // @@protoc_insertion_point(message_implements:InstrClassInfo) + InstrClassInfoOrBuilder { + private InstrClassInfo() { + className_ = ""; + } + public static final int CLASSNAME_FIELD_NUMBER = 1; + private java.lang.String className_; + /** + * optional string className = 1; + */ + public java.lang.String getClassName() { + return className_; + } + /** + * optional string className = 1; + */ + public com.google.protobuf.ByteString + getClassNameBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(className_); + } + /** + * optional string className = 1; + */ + private void setClassName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + className_ = value; + } + /** + * optional string className = 1; + */ + private void clearClassName() { + + className_ = getDefaultInstance().getClassName(); + } + /** + * optional string className = 1; + */ + private void setClassNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + className_ = value.toStringUtf8(); + } + + public static final int CLASSLOADERTAG_FIELD_NUMBER = 2; + private long classLoaderTag_; + /** + * optional int64 classLoaderTag = 2; + */ + public long getClassLoaderTag() { + return classLoaderTag_; + } + /** + * optional int64 classLoaderTag = 2; + */ + private void setClassLoaderTag(long value) { + + classLoaderTag_ = value; + } + /** + * optional int64 classLoaderTag = 2; + */ + private void clearClassLoaderTag() { + + classLoaderTag_ = 0L; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!className_.isEmpty()) { + output.writeString(1, getClassName()); + } + if (classLoaderTag_ != 0L) { + output.writeInt64(2, classLoaderTag_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!className_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(1, getClassName()); + } + if (classLoaderTag_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, classLoaderTag_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + * Protobuf type {@code InstrClassInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo, Builder> implements + // @@protoc_insertion_point(builder_implements:InstrClassInfo) + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfoOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional string className = 1; + */ + public java.lang.String getClassName() { + return instance.getClassName(); + } + /** + * optional string className = 1; + */ + public com.google.protobuf.ByteString + getClassNameBytes() { + return instance.getClassNameBytes(); + } + /** + * optional string className = 1; + */ + public Builder setClassName( + java.lang.String value) { + copyOnWrite(); + instance.setClassName(value); + return this; + } + /** + * optional string className = 1; + */ + public Builder clearClassName() { + copyOnWrite(); + instance.clearClassName(); + return this; + } + /** + * optional string className = 1; + */ + public Builder setClassNameBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setClassNameBytes(value); + return this; + } + + /** + * optional int64 classLoaderTag = 2; + */ + public long getClassLoaderTag() { + return instance.getClassLoaderTag(); + } + /** + * optional int64 classLoaderTag = 2; + */ + public Builder setClassLoaderTag(long value) { + copyOnWrite(); + instance.setClassLoaderTag(value); + return this; + } + /** + * optional int64 classLoaderTag = 2; + */ + public Builder clearClassLoaderTag() { + copyOnWrite(); + instance.clearClassLoaderTag(); + return this; + } + + // @@protoc_insertion_point(builder_scope:InstrClassInfo) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo other = (ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo) arg1; + className_ = visitor.visitString(!className_.isEmpty(), className_, + !other.className_.isEmpty(), other.className_); + classLoaderTag_ = visitor.visitLong(classLoaderTag_ != 0L, classLoaderTag_, + other.classLoaderTag_ != 0L, other.classLoaderTag_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + String s = input.readStringRequireUtf8(); + + className_ = s; + break; + } + case 16: { + + classLoaderTag_ = input.readInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:InstrClassInfo) + private static final ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new InstrClassInfo(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface InstrumentClassRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:InstrumentClassRequest) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int32 flags = 2; + */ + int getFlags(); + + /** + * optional .InstrClassInfo classInfo = 5; + */ + boolean hasClassInfo(); + /** + * optional .InstrClassInfo classInfo = 5; + */ + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo getClassInfo(); + + /** + * optional bytes classBytes = 4; + */ + com.google.protobuf.ByteString getClassBytes(); + + /** + * repeated .InstrClassInfo superTypes = 6; + */ + java.util.List + getSuperTypesList(); + /** + * repeated .InstrClassInfo superTypes = 6; + */ + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo getSuperTypes(int index); + /** + * repeated .InstrClassInfo superTypes = 6; + */ + int getSuperTypesCount(); + } + /** + *
+   * This is the request to the instrumentaion server to instrument attached class.
+   * 
+ * + * Protobuf type {@code InstrumentClassRequest} + */ + public static final class InstrumentClassRequest extends + com.google.protobuf.GeneratedMessageLite< + InstrumentClassRequest, InstrumentClassRequest.Builder> implements + // @@protoc_insertion_point(message_implements:InstrumentClassRequest) + InstrumentClassRequestOrBuilder { + private InstrumentClassRequest() { + classBytes_ = com.google.protobuf.ByteString.EMPTY; + superTypes_ = emptyProtobufList(); + } + private int bitField0_; + public static final int FLAGS_FIELD_NUMBER = 2; + private int flags_; + /** + * optional int32 flags = 2; + */ + public int getFlags() { + return flags_; + } + /** + * optional int32 flags = 2; + */ + private void setFlags(int value) { + + flags_ = value; + } + /** + * optional int32 flags = 2; + */ + private void clearFlags() { + + flags_ = 0; + } + + public static final int CLASSINFO_FIELD_NUMBER = 5; + private ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo classInfo_; + /** + * optional .InstrClassInfo classInfo = 5; + */ + public boolean hasClassInfo() { + return classInfo_ != null; + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo getClassInfo() { + return classInfo_ == null ? ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.getDefaultInstance() : classInfo_; + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + private void setClassInfo(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + if (value == null) { + throw new NullPointerException(); + } + classInfo_ = value; + + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + private void setClassInfo( + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + classInfo_ = builderForValue.build(); + + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + private void mergeClassInfo(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + if (classInfo_ != null && + classInfo_ != ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.getDefaultInstance()) { + classInfo_ = + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.newBuilder(classInfo_).mergeFrom(value).buildPartial(); + } else { + classInfo_ = value; + } + + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + private void clearClassInfo() { classInfo_ = null; + + } + + public static final int CLASSBYTES_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString classBytes_; + /** + * optional bytes classBytes = 4; + */ + public com.google.protobuf.ByteString getClassBytes() { + return classBytes_; + } + /** + * optional bytes classBytes = 4; + */ + private void setClassBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + classBytes_ = value; + } + /** + * optional bytes classBytes = 4; + */ + private void clearClassBytes() { + + classBytes_ = getDefaultInstance().getClassBytes(); + } + + public static final int SUPERTYPES_FIELD_NUMBER = 6; + private com.google.protobuf.Internal.ProtobufList superTypes_; + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public java.util.List getSuperTypesList() { + return superTypes_; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public java.util.List + getSuperTypesOrBuilderList() { + return superTypes_; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public int getSuperTypesCount() { + return superTypes_.size(); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo getSuperTypes(int index) { + return superTypes_.get(index); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrClassInfoOrBuilder getSuperTypesOrBuilder( + int index) { + return superTypes_.get(index); + } + private void ensureSuperTypesIsMutable() { + if (!superTypes_.isModifiable()) { + superTypes_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(superTypes_); + } + } + + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void setSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuperTypesIsMutable(); + superTypes_.set(index, value); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void setSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + ensureSuperTypesIsMutable(); + superTypes_.set(index, builderForValue.build()); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void addSuperTypes(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuperTypesIsMutable(); + superTypes_.add(value); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void addSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuperTypesIsMutable(); + superTypes_.add(index, value); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void addSuperTypes( + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + ensureSuperTypesIsMutable(); + superTypes_.add(builderForValue.build()); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void addSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + ensureSuperTypesIsMutable(); + superTypes_.add(index, builderForValue.build()); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void addAllSuperTypes( + java.lang.Iterable values) { + ensureSuperTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, superTypes_); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void clearSuperTypes() { + superTypes_ = emptyProtobufList(); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + private void removeSuperTypes(int index) { + ensureSuperTypesIsMutable(); + superTypes_.remove(index); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (flags_ != 0) { + output.writeInt32(2, flags_); + } + if (!classBytes_.isEmpty()) { + output.writeBytes(4, classBytes_); + } + if (classInfo_ != null) { + output.writeMessage(5, getClassInfo()); + } + for (int i = 0; i < superTypes_.size(); i++) { + output.writeMessage(6, superTypes_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (flags_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, flags_); + } + if (!classBytes_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, classBytes_); + } + if (classInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getClassInfo()); + } + for (int i = 0; i < superTypes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, superTypes_.get(i)); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * This is the request to the instrumentaion server to instrument attached class.
+     * 
+ * + * Protobuf type {@code InstrumentClassRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest, Builder> implements + // @@protoc_insertion_point(builder_implements:InstrumentClassRequest) + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequestOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional int32 flags = 2; + */ + public int getFlags() { + return instance.getFlags(); + } + /** + * optional int32 flags = 2; + */ + public Builder setFlags(int value) { + copyOnWrite(); + instance.setFlags(value); + return this; + } + /** + * optional int32 flags = 2; + */ + public Builder clearFlags() { + copyOnWrite(); + instance.clearFlags(); + return this; + } + + /** + * optional .InstrClassInfo classInfo = 5; + */ + public boolean hasClassInfo() { + return instance.hasClassInfo(); + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo getClassInfo() { + return instance.getClassInfo(); + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + public Builder setClassInfo(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + copyOnWrite(); + instance.setClassInfo(value); + return this; + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + public Builder setClassInfo( + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + copyOnWrite(); + instance.setClassInfo(builderForValue); + return this; + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + public Builder mergeClassInfo(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + copyOnWrite(); + instance.mergeClassInfo(value); + return this; + } + /** + * optional .InstrClassInfo classInfo = 5; + */ + public Builder clearClassInfo() { copyOnWrite(); + instance.clearClassInfo(); + return this; + } + + /** + * optional bytes classBytes = 4; + */ + public com.google.protobuf.ByteString getClassBytes() { + return instance.getClassBytes(); + } + /** + * optional bytes classBytes = 4; + */ + public Builder setClassBytes(com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setClassBytes(value); + return this; + } + /** + * optional bytes classBytes = 4; + */ + public Builder clearClassBytes() { + copyOnWrite(); + instance.clearClassBytes(); + return this; + } + + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public java.util.List getSuperTypesList() { + return java.util.Collections.unmodifiableList( + instance.getSuperTypesList()); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public int getSuperTypesCount() { + return instance.getSuperTypesCount(); + }/** + * repeated .InstrClassInfo superTypes = 6; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo getSuperTypes(int index) { + return instance.getSuperTypes(index); + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder setSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + copyOnWrite(); + instance.setSuperTypes(index, value); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder setSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + copyOnWrite(); + instance.setSuperTypes(index, builderForValue); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder addSuperTypes(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + copyOnWrite(); + instance.addSuperTypes(value); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder addSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo value) { + copyOnWrite(); + instance.addSuperTypes(index, value); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder addSuperTypes( + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + copyOnWrite(); + instance.addSuperTypes(builderForValue); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder addSuperTypes( + int index, ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder builderForValue) { + copyOnWrite(); + instance.addSuperTypes(index, builderForValue); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder addAllSuperTypes( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllSuperTypes(values); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder clearSuperTypes() { + copyOnWrite(); + instance.clearSuperTypes(); + return this; + } + /** + * repeated .InstrClassInfo superTypes = 6; + */ + public Builder removeSuperTypes(int index) { + copyOnWrite(); + instance.removeSuperTypes(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:InstrumentClassRequest) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + superTypes_.makeImmutable(); + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest other = (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest) arg1; + flags_ = visitor.visitInt(flags_ != 0, flags_, + other.flags_ != 0, other.flags_); + classInfo_ = visitor.visitMessage(classInfo_, other.classInfo_); + classBytes_ = visitor.visitByteString(classBytes_ != com.google.protobuf.ByteString.EMPTY, classBytes_, + other.classBytes_ != com.google.protobuf.ByteString.EMPTY, other.classBytes_); + superTypes_= visitor.visitList(superTypes_, other.superTypes_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 16: { + + flags_ = input.readInt32(); + break; + } + case 34: { + + classBytes_ = input.readBytes(); + break; + } + case 42: { + ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.Builder subBuilder = null; + if (classInfo_ != null) { + subBuilder = classInfo_.toBuilder(); + } + classInfo_ = input.readMessage(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(classInfo_); + classInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + if (!superTypes_.isModifiable()) { + superTypes_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(superTypes_); + } + superTypes_.add( + input.readMessage(ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:InstrumentClassRequest) + private static final ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new InstrumentClassRequest(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface InstrumentClassResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:InstrumentClassResponse) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + int getResultValue(); + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult getResult(); + + /** + * optional string errorMessage = 2; + */ + java.lang.String getErrorMessage(); + /** + * optional string errorMessage = 2; + */ + com.google.protobuf.ByteString + getErrorMessageBytes(); + + /** + * optional bytes classBytes = 3; + */ + com.google.protobuf.ByteString getClassBytes(); + } + /** + *
+   * Server response containing either the instrumented classbytes or error message
+   * 
+ * + * Protobuf type {@code InstrumentClassResponse} + */ + public static final class InstrumentClassResponse extends + com.google.protobuf.GeneratedMessageLite< + InstrumentClassResponse, InstrumentClassResponse.Builder> implements + // @@protoc_insertion_point(message_implements:InstrumentClassResponse) + InstrumentClassResponseOrBuilder { + private InstrumentClassResponse() { + errorMessage_ = ""; + classBytes_ = com.google.protobuf.ByteString.EMPTY; + } + /** + * Protobuf enum {@code InstrumentClassResponse.InstrumentClassResult} + */ + public enum InstrumentClassResult + implements com.google.protobuf.Internal.EnumLite { + /** + * CLASS_UNMODIFIED = 0; + */ + CLASS_UNMODIFIED(0), + /** + * CLASS_MODIFIED = 1; + */ + CLASS_MODIFIED(1), + /** + * ERROR = 3; + */ + ERROR(3), + UNRECOGNIZED(-1), + ; + + /** + * CLASS_UNMODIFIED = 0; + */ + public static final int CLASS_UNMODIFIED_VALUE = 0; + /** + * CLASS_MODIFIED = 1; + */ + public static final int CLASS_MODIFIED_VALUE = 1; + /** + * ERROR = 3; + */ + public static final int ERROR_VALUE = 3; + + + public final int getNumber() { + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InstrumentClassResult valueOf(int value) { + return forNumber(value); + } + + public static InstrumentClassResult forNumber(int value) { + switch (value) { + case 0: return CLASS_UNMODIFIED; + case 1: return CLASS_MODIFIED; + case 3: return ERROR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + InstrumentClassResult> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InstrumentClassResult findValueByNumber(int number) { + return InstrumentClassResult.forNumber(number); + } + }; + + private final int value; + + private InstrumentClassResult(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:InstrumentClassResponse.InstrumentClassResult) + } + + public static final int RESULT_FIELD_NUMBER = 1; + private int result_; + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + public int getResultValue() { + return result_; + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult getResult() { + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult result = ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult.forNumber(result_); + return result == null ? ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult.UNRECOGNIZED : result; + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + private void setResultValue(int value) { + result_ = value; + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + private void setResult(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult value) { + if (value == null) { + throw new NullPointerException(); + } + + result_ = value.getNumber(); + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + private void clearResult() { + + result_ = 0; + } + + public static final int ERRORMESSAGE_FIELD_NUMBER = 2; + private java.lang.String errorMessage_; + /** + * optional string errorMessage = 2; + */ + public java.lang.String getErrorMessage() { + return errorMessage_; + } + /** + * optional string errorMessage = 2; + */ + public com.google.protobuf.ByteString + getErrorMessageBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(errorMessage_); + } + /** + * optional string errorMessage = 2; + */ + private void setErrorMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + errorMessage_ = value; + } + /** + * optional string errorMessage = 2; + */ + private void clearErrorMessage() { + + errorMessage_ = getDefaultInstance().getErrorMessage(); + } + /** + * optional string errorMessage = 2; + */ + private void setErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + errorMessage_ = value.toStringUtf8(); + } + + public static final int CLASSBYTES_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString classBytes_; + /** + * optional bytes classBytes = 3; + */ + public com.google.protobuf.ByteString getClassBytes() { + return classBytes_; + } + /** + * optional bytes classBytes = 3; + */ + private void setClassBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + classBytes_ = value; + } + /** + * optional bytes classBytes = 3; + */ + private void clearClassBytes() { + + classBytes_ = getDefaultInstance().getClassBytes(); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (result_ != ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult.CLASS_UNMODIFIED.getNumber()) { + output.writeEnum(1, result_); + } + if (!errorMessage_.isEmpty()) { + output.writeString(2, getErrorMessage()); + } + if (!classBytes_.isEmpty()) { + output.writeBytes(3, classBytes_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (result_ != ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult.CLASS_UNMODIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, result_); + } + if (!errorMessage_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(2, getErrorMessage()); + } + if (!classBytes_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, classBytes_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * Server response containing either the instrumented classbytes or error message
+     * 
+ * + * Protobuf type {@code InstrumentClassResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse, Builder> implements + // @@protoc_insertion_point(builder_implements:InstrumentClassResponse) + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponseOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + public int getResultValue() { + return instance.getResultValue(); + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + public Builder setResultValue(int value) { + copyOnWrite(); + instance.setResultValue(value); + return this; + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult getResult() { + return instance.getResult(); + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + public Builder setResult(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.InstrumentClassResult value) { + copyOnWrite(); + instance.setResult(value); + return this; + } + /** + * optional .InstrumentClassResponse.InstrumentClassResult result = 1; + */ + public Builder clearResult() { + copyOnWrite(); + instance.clearResult(); + return this; + } + + /** + * optional string errorMessage = 2; + */ + public java.lang.String getErrorMessage() { + return instance.getErrorMessage(); + } + /** + * optional string errorMessage = 2; + */ + public com.google.protobuf.ByteString + getErrorMessageBytes() { + return instance.getErrorMessageBytes(); + } + /** + * optional string errorMessage = 2; + */ + public Builder setErrorMessage( + java.lang.String value) { + copyOnWrite(); + instance.setErrorMessage(value); + return this; + } + /** + * optional string errorMessage = 2; + */ + public Builder clearErrorMessage() { + copyOnWrite(); + instance.clearErrorMessage(); + return this; + } + /** + * optional string errorMessage = 2; + */ + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setErrorMessageBytes(value); + return this; + } + + /** + * optional bytes classBytes = 3; + */ + public com.google.protobuf.ByteString getClassBytes() { + return instance.getClassBytes(); + } + /** + * optional bytes classBytes = 3; + */ + public Builder setClassBytes(com.google.protobuf.ByteString value) { + copyOnWrite(); + instance.setClassBytes(value); + return this; + } + /** + * optional bytes classBytes = 3; + */ + public Builder clearClassBytes() { + copyOnWrite(); + instance.clearClassBytes(); + return this; + } + + // @@protoc_insertion_point(builder_scope:InstrumentClassResponse) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse other = (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse) arg1; + result_ = visitor.visitInt(result_ != 0, result_, other.result_ != 0, other.result_); + errorMessage_ = visitor.visitString(!errorMessage_.isEmpty(), errorMessage_, + !other.errorMessage_.isEmpty(), other.errorMessage_); + classBytes_ = visitor.visitByteString(classBytes_ != com.google.protobuf.ByteString.EMPTY, classBytes_, + other.classBytes_ != com.google.protobuf.ByteString.EMPTY, other.classBytes_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + result_ = rawValue; + break; + } + case 18: { + String s = input.readStringRequireUtf8(); + + errorMessage_ = s; + break; + } + case 26: { + + classBytes_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:InstrumentClassResponse) + private static final ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new InstrumentClassResponse(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + + static { + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/shvm-server/src/ch/usi/dag/dislre/protocol/Main.java b/shvm-server/src/ch/usi/dag/dislre/protocol/Main.java new file mode 100644 index 00000000..c3273e0e --- /dev/null +++ b/shvm-server/src/ch/usi/dag/dislre/protocol/Main.java @@ -0,0 +1,3896 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: main.proto + +package ch.usi.dag.dislre.protocol; + +public final class Main { + private Main() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + public interface SessionInitRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:SessionInitRequest) + com.google.protobuf.MessageLiteOrBuilder { + } + /** + *
+   * Request server to initialize session
+   * This is sent as the clients first message
+   * May contain some additional data to describe the client (JVM version etc.)
+   * 
+ * + * Protobuf type {@code SessionInitRequest} + */ + public static final class SessionInitRequest extends + com.google.protobuf.GeneratedMessageLite< + SessionInitRequest, SessionInitRequest.Builder> implements + // @@protoc_insertion_point(message_implements:SessionInitRequest) + SessionInitRequestOrBuilder { + private SessionInitRequest() { + } + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Main.SessionInitRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * Request server to initialize session
+     * This is sent as the clients first message
+     * May contain some additional data to describe the client (JVM version etc.)
+     * 
+ * + * Protobuf type {@code SessionInitRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Main.SessionInitRequest, Builder> implements + // @@protoc_insertion_point(builder_implements:SessionInitRequest) + ch.usi.dag.dislre.protocol.Main.SessionInitRequestOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Main.SessionInitRequest.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + // @@protoc_insertion_point(builder_scope:SessionInitRequest) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Main.SessionInitRequest(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Main.SessionInitRequest other = (ch.usi.dag.dislre.protocol.Main.SessionInitRequest) arg1; + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Main.SessionInitRequest.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:SessionInitRequest) + private static final ch.usi.dag.dislre.protocol.Main.SessionInitRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new SessionInitRequest(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Main.SessionInitRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface SessionInitResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:SessionInitResponse) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional bool accepted = 1; + */ + boolean getAccepted(); + + /** + * optional int32 session_id = 2; + */ + int getSessionId(); + + /** + * repeated .Error errors = 3; + */ + java.util.List + getErrorsList(); + /** + * repeated .Error errors = 3; + */ + ch.usi.dag.dislre.protocol.DiSL.Error getErrors(int index); + /** + * repeated .Error errors = 3; + */ + int getErrorsCount(); + } + /** + *
+   * This is the response to SessionInitRequest message
+   * The request could either be ACCEPTed or DENYed
+   * In the case of positive answer, there is also a session_id present
+   * 
+ * + * Protobuf type {@code SessionInitResponse} + */ + public static final class SessionInitResponse extends + com.google.protobuf.GeneratedMessageLite< + SessionInitResponse, SessionInitResponse.Builder> implements + // @@protoc_insertion_point(message_implements:SessionInitResponse) + SessionInitResponseOrBuilder { + private SessionInitResponse() { + errors_ = emptyProtobufList(); + } + private int bitField0_; + public static final int ACCEPTED_FIELD_NUMBER = 1; + private boolean accepted_; + /** + * optional bool accepted = 1; + */ + public boolean getAccepted() { + return accepted_; + } + /** + * optional bool accepted = 1; + */ + private void setAccepted(boolean value) { + + accepted_ = value; + } + /** + * optional bool accepted = 1; + */ + private void clearAccepted() { + + accepted_ = false; + } + + public static final int SESSION_ID_FIELD_NUMBER = 2; + private int sessionId_; + /** + * optional int32 session_id = 2; + */ + public int getSessionId() { + return sessionId_; + } + /** + * optional int32 session_id = 2; + */ + private void setSessionId(int value) { + + sessionId_ = value; + } + /** + * optional int32 session_id = 2; + */ + private void clearSessionId() { + + sessionId_ = 0; + } + + public static final int ERRORS_FIELD_NUMBER = 3; + private com.google.protobuf.Internal.ProtobufList errors_; + /** + * repeated .Error errors = 3; + */ + public java.util.List getErrorsList() { + return errors_; + } + /** + * repeated .Error errors = 3; + */ + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + /** + * repeated .Error errors = 3; + */ + public int getErrorsCount() { + return errors_.size(); + } + /** + * repeated .Error errors = 3; + */ + public ch.usi.dag.dislre.protocol.DiSL.Error getErrors(int index) { + return errors_.get(index); + } + /** + * repeated .Error errors = 3; + */ + public ch.usi.dag.dislre.protocol.DiSL.ErrorOrBuilder getErrorsOrBuilder( + int index) { + return errors_.get(index); + } + private void ensureErrorsIsMutable() { + if (!errors_.isModifiable()) { + errors_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(errors_); + } + } + + /** + * repeated .Error errors = 3; + */ + private void setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + } + /** + * repeated .Error errors = 3; + */ + private void setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + } + /** + * repeated .Error errors = 3; + */ + private void addErrors(ch.usi.dag.dislre.protocol.DiSL.Error value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + } + /** + * repeated .Error errors = 3; + */ + private void addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + } + /** + * repeated .Error errors = 3; + */ + private void addErrors( + ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + } + /** + * repeated .Error errors = 3; + */ + private void addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + } + /** + * repeated .Error errors = 3; + */ + private void addAllErrors( + java.lang.Iterable values) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.addAll( + values, errors_); + } + /** + * repeated .Error errors = 3; + */ + private void clearErrors() { + errors_ = emptyProtobufList(); + } + /** + * repeated .Error errors = 3; + */ + private void removeErrors(int index) { + ensureErrorsIsMutable(); + errors_.remove(index); + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (accepted_ != false) { + output.writeBool(1, accepted_); + } + if (sessionId_ != 0) { + output.writeInt32(2, sessionId_); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(3, errors_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (accepted_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, accepted_); + } + if (sessionId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, sessionId_); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, errors_.get(i)); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Main.SessionInitResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * This is the response to SessionInitRequest message
+     * The request could either be ACCEPTed or DENYed
+     * In the case of positive answer, there is also a session_id present
+     * 
+ * + * Protobuf type {@code SessionInitResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Main.SessionInitResponse, Builder> implements + // @@protoc_insertion_point(builder_implements:SessionInitResponse) + ch.usi.dag.dislre.protocol.Main.SessionInitResponseOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Main.SessionInitResponse.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional bool accepted = 1; + */ + public boolean getAccepted() { + return instance.getAccepted(); + } + /** + * optional bool accepted = 1; + */ + public Builder setAccepted(boolean value) { + copyOnWrite(); + instance.setAccepted(value); + return this; + } + /** + * optional bool accepted = 1; + */ + public Builder clearAccepted() { + copyOnWrite(); + instance.clearAccepted(); + return this; + } + + /** + * optional int32 session_id = 2; + */ + public int getSessionId() { + return instance.getSessionId(); + } + /** + * optional int32 session_id = 2; + */ + public Builder setSessionId(int value) { + copyOnWrite(); + instance.setSessionId(value); + return this; + } + /** + * optional int32 session_id = 2; + */ + public Builder clearSessionId() { + copyOnWrite(); + instance.clearSessionId(); + return this; + } + + /** + * repeated .Error errors = 3; + */ + public java.util.List getErrorsList() { + return java.util.Collections.unmodifiableList( + instance.getErrorsList()); + } + /** + * repeated .Error errors = 3; + */ + public int getErrorsCount() { + return instance.getErrorsCount(); + }/** + * repeated .Error errors = 3; + */ + public ch.usi.dag.dislre.protocol.DiSL.Error getErrors(int index) { + return instance.getErrors(index); + } + /** + * repeated .Error errors = 3; + */ + public Builder setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + copyOnWrite(); + instance.setErrors(index, value); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder setErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + copyOnWrite(); + instance.setErrors(index, builderForValue); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors(ch.usi.dag.dislre.protocol.DiSL.Error value) { + copyOnWrite(); + instance.addErrors(value); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error value) { + copyOnWrite(); + instance.addErrors(index, value); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors( + ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + copyOnWrite(); + instance.addErrors(builderForValue); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors( + int index, ch.usi.dag.dislre.protocol.DiSL.Error.Builder builderForValue) { + copyOnWrite(); + instance.addErrors(index, builderForValue); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addAllErrors( + java.lang.Iterable values) { + copyOnWrite(); + instance.addAllErrors(values); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder clearErrors() { + copyOnWrite(); + instance.clearErrors(); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder removeErrors(int index) { + copyOnWrite(); + instance.removeErrors(index); + return this; + } + + // @@protoc_insertion_point(builder_scope:SessionInitResponse) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Main.SessionInitResponse(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + errors_.makeImmutable(); + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Main.SessionInitResponse other = (ch.usi.dag.dislre.protocol.Main.SessionInitResponse) arg1; + accepted_ = visitor.visitBoolean(accepted_ != false, accepted_, + other.accepted_ != false, other.accepted_); + sessionId_ = visitor.visitInt(sessionId_ != 0, sessionId_, + other.sessionId_ != 0, other.sessionId_); + errors_= visitor.visitList(errors_, other.errors_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + bitField0_ |= other.bitField0_; + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + accepted_ = input.readBool(); + break; + } + case 16: { + + sessionId_ = input.readInt32(); + break; + } + case 26: { + if (!errors_.isModifiable()) { + errors_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(errors_); + } + errors_.add( + input.readMessage(ch.usi.dag.dislre.protocol.DiSL.Error.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Main.SessionInitResponse.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:SessionInitResponse) + private static final ch.usi.dag.dislre.protocol.Main.SessionInitResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new SessionInitResponse(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Main.SessionInitResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface CloseConnectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:CloseConnection) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + int getReasonValue(); + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason getReason(); + } + /** + *
+   **
+   * Notify server about closing connection
+   * 
+ * + * Protobuf type {@code CloseConnection} + */ + public static final class CloseConnection extends + com.google.protobuf.GeneratedMessageLite< + CloseConnection, CloseConnection.Builder> implements + // @@protoc_insertion_point(message_implements:CloseConnection) + CloseConnectionOrBuilder { + private CloseConnection() { + } + /** + * Protobuf enum {@code CloseConnection.CloseReason} + */ + public enum CloseReason + implements com.google.protobuf.Internal.EnumLite { + /** + * FINISHED = 0; + */ + FINISHED(0), + UNRECOGNIZED(-1), + ; + + /** + * FINISHED = 0; + */ + public static final int FINISHED_VALUE = 0; + + + public final int getNumber() { + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CloseReason valueOf(int value) { + return forNumber(value); + } + + public static CloseReason forNumber(int value) { + switch (value) { + case 0: return FINISHED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + CloseReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CloseReason findValueByNumber(int number) { + return CloseReason.forNumber(number); + } + }; + + private final int value; + + private CloseReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:CloseConnection.CloseReason) + } + + public static final int REASON_FIELD_NUMBER = 2; + private int reason_; + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + public int getReasonValue() { + return reason_; + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + public ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason getReason() { + ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason result = ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason.forNumber(reason_); + return result == null ? ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason.UNRECOGNIZED : result; + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + private void setReasonValue(int value) { + reason_ = value; + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + private void setReason(ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason value) { + if (value == null) { + throw new NullPointerException(); + } + + reason_ = value.getNumber(); + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + private void clearReason() { + + reason_ = 0; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reason_ != ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason.FINISHED.getNumber()) { + output.writeEnum(2, reason_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (reason_ != ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason.FINISHED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, reason_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.CloseConnection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Main.CloseConnection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     **
+     * Notify server about closing connection
+     * 
+ * + * Protobuf type {@code CloseConnection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Main.CloseConnection, Builder> implements + // @@protoc_insertion_point(builder_implements:CloseConnection) + ch.usi.dag.dislre.protocol.Main.CloseConnectionOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Main.CloseConnection.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + public int getReasonValue() { + return instance.getReasonValue(); + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + public Builder setReasonValue(int value) { + copyOnWrite(); + instance.setReasonValue(value); + return this; + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + public ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason getReason() { + return instance.getReason(); + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + public Builder setReason(ch.usi.dag.dislre.protocol.Main.CloseConnection.CloseReason value) { + copyOnWrite(); + instance.setReason(value); + return this; + } + /** + * optional .CloseConnection.CloseReason reason = 2; + */ + public Builder clearReason() { + copyOnWrite(); + instance.clearReason(); + return this; + } + + // @@protoc_insertion_point(builder_scope:CloseConnection) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Main.CloseConnection(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Main.CloseConnection other = (ch.usi.dag.dislre.protocol.Main.CloseConnection) arg1; + reason_ = visitor.visitInt(reason_ != 0, reason_, other.reason_ != 0, other.reason_); + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 16: { + int rawValue = input.readEnum(); + + reason_ = rawValue; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Main.CloseConnection.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:CloseConnection) + private static final ch.usi.dag.dislre.protocol.Main.CloseConnection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new CloseConnection(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Main.CloseConnection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ClientMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:ClientMessage) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional int32 session_id = 1; + */ + int getSessionId(); + + /** + *
+     */ Instrumentation messages
+     * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + ch.usi.dag.dislre.protocol.Main.SessionInitRequest getSessionInitRequest(); + + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery getInstrumentationDelivery(); + + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest getInstrumentClassRequest(); + + /** + * optional .CloseConnection close_connection = 5; + */ + ch.usi.dag.dislre.protocol.Main.CloseConnection getCloseConnection(); + + /** + *
+     */ Analysis messages
+     * 
+ * + * optional .Analyze analyze = 10; + */ + ch.usi.dag.dislre.protocol.Analysis.Analyze getAnalyze(); + + /** + * optional .CloseConnection close = 11; + */ + ch.usi.dag.dislre.protocol.Main.CloseConnection getClose(); + + /** + * optional .ClassInfo class_info = 12; + */ + ch.usi.dag.dislre.protocol.Analysis.ClassInfo getClassInfo(); + + /** + * optional .NewClass new_class = 13; + */ + ch.usi.dag.dislre.protocol.Analysis.NewClass getNewClass(); + + /** + * optional .ObjectFree object_free = 14; + */ + ch.usi.dag.dislre.protocol.Analysis.ObjectFree getObjectFree(); + + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis getRegisterAnalysis(); + + /** + * optional .StringInfo string_info = 16; + */ + ch.usi.dag.dislre.protocol.Analysis.StringInfo getStringInfo(); + + /** + * optional .ThreadEnd thread_end = 17; + */ + ch.usi.dag.dislre.protocol.Analysis.ThreadEnd getThreadEnd(); + + /** + * optional .ThreadInfo thread_info = 18; + */ + ch.usi.dag.dislre.protocol.Analysis.ThreadInfo getThreadInfo(); + + public ch.usi.dag.dislre.protocol.Main.ClientMessage.RequestCase getRequestCase(); + } + /** + *
+   * Pack together messages from client to simply distinguish them at the server side.
+   * 
+ * + * Protobuf type {@code ClientMessage} + */ + public static final class ClientMessage extends + com.google.protobuf.GeneratedMessageLite< + ClientMessage, ClientMessage.Builder> implements + // @@protoc_insertion_point(message_implements:ClientMessage) + ClientMessageOrBuilder { + private ClientMessage() { + } + private int requestCase_ = 0; + private java.lang.Object request_; + public enum RequestCase + implements com.google.protobuf.Internal.EnumLite { + SESSION_INIT_REQUEST(2), + INSTRUMENTATION_DELIVERY(3), + INSTRUMENT_CLASS_REQUEST(4), + CLOSE_CONNECTION(5), + ANALYZE(10), + CLOSE(11), + CLASS_INFO(12), + NEW_CLASS(13), + OBJECT_FREE(14), + REGISTER_ANALYSIS(15), + STRING_INFO(16), + THREAD_END(17), + THREAD_INFO(18), + REQUEST_NOT_SET(0); + private final int value; + private RequestCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RequestCase valueOf(int value) { + return forNumber(value); + } + + public static RequestCase forNumber(int value) { + switch (value) { + case 2: return SESSION_INIT_REQUEST; + case 3: return INSTRUMENTATION_DELIVERY; + case 4: return INSTRUMENT_CLASS_REQUEST; + case 5: return CLOSE_CONNECTION; + case 10: return ANALYZE; + case 11: return CLOSE; + case 12: return CLASS_INFO; + case 13: return NEW_CLASS; + case 14: return OBJECT_FREE; + case 15: return REGISTER_ANALYSIS; + case 16: return STRING_INFO; + case 17: return THREAD_END; + case 18: return THREAD_INFO; + case 0: return REQUEST_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); + } + + private void clearRequest() { + requestCase_ = 0; + request_ = null; + } + + public static final int SESSION_ID_FIELD_NUMBER = 1; + private int sessionId_; + /** + * optional int32 session_id = 1; + */ + public int getSessionId() { + return sessionId_; + } + /** + * optional int32 session_id = 1; + */ + private void setSessionId(int value) { + + sessionId_ = value; + } + /** + * optional int32 session_id = 1; + */ + private void clearSessionId() { + + sessionId_ = 0; + } + + public static final int SESSION_INIT_REQUEST_FIELD_NUMBER = 2; + /** + *
+     */ Instrumentation messages
+     * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + public ch.usi.dag.dislre.protocol.Main.SessionInitRequest getSessionInitRequest() { + if (requestCase_ == 2) { + return (ch.usi.dag.dislre.protocol.Main.SessionInitRequest) request_; + } + return ch.usi.dag.dislre.protocol.Main.SessionInitRequest.getDefaultInstance(); + } + /** + *
+     */ Instrumentation messages
+     * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + private void setSessionInitRequest(ch.usi.dag.dislre.protocol.Main.SessionInitRequest value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 2; + } + /** + *
+     */ Instrumentation messages
+     * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + private void setSessionInitRequest( + ch.usi.dag.dislre.protocol.Main.SessionInitRequest.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 2; + } + /** + *
+     */ Instrumentation messages
+     * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + private void mergeSessionInitRequest(ch.usi.dag.dislre.protocol.Main.SessionInitRequest value) { + if (requestCase_ == 2 && + request_ != ch.usi.dag.dislre.protocol.Main.SessionInitRequest.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Main.SessionInitRequest.newBuilder((ch.usi.dag.dislre.protocol.Main.SessionInitRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 2; + } + /** + *
+     */ Instrumentation messages
+     * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + private void clearSessionInitRequest() { + if (requestCase_ == 2) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int INSTRUMENTATION_DELIVERY_FIELD_NUMBER = 3; + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery getInstrumentationDelivery() { + if (requestCase_ == 3) { + return (ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery) request_; + } + return ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.getDefaultInstance(); + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + private void setInstrumentationDelivery(ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 3; + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + private void setInstrumentationDelivery( + ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 3; + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + private void mergeInstrumentationDelivery(ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery value) { + if (requestCase_ == 3 && + request_ != ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.newBuilder((ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 3; + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + private void clearInstrumentationDelivery() { + if (requestCase_ == 3) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int INSTRUMENT_CLASS_REQUEST_FIELD_NUMBER = 4; + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest getInstrumentClassRequest() { + if (requestCase_ == 4) { + return (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest) request_; + } + return ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.getDefaultInstance(); + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + private void setInstrumentClassRequest(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 4; + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + private void setInstrumentClassRequest( + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 4; + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + private void mergeInstrumentClassRequest(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest value) { + if (requestCase_ == 4 && + request_ != ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.newBuilder((ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 4; + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + private void clearInstrumentClassRequest() { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int CLOSE_CONNECTION_FIELD_NUMBER = 5; + /** + * optional .CloseConnection close_connection = 5; + */ + public ch.usi.dag.dislre.protocol.Main.CloseConnection getCloseConnection() { + if (requestCase_ == 5) { + return (ch.usi.dag.dislre.protocol.Main.CloseConnection) request_; + } + return ch.usi.dag.dislre.protocol.Main.CloseConnection.getDefaultInstance(); + } + /** + * optional .CloseConnection close_connection = 5; + */ + private void setCloseConnection(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 5; + } + /** + * optional .CloseConnection close_connection = 5; + */ + private void setCloseConnection( + ch.usi.dag.dislre.protocol.Main.CloseConnection.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 5; + } + /** + * optional .CloseConnection close_connection = 5; + */ + private void mergeCloseConnection(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + if (requestCase_ == 5 && + request_ != ch.usi.dag.dislre.protocol.Main.CloseConnection.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Main.CloseConnection.newBuilder((ch.usi.dag.dislre.protocol.Main.CloseConnection) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 5; + } + /** + * optional .CloseConnection close_connection = 5; + */ + private void clearCloseConnection() { + if (requestCase_ == 5) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int ANALYZE_FIELD_NUMBER = 10; + /** + *
+     */ Analysis messages
+     * 
+ * + * optional .Analyze analyze = 10; + */ + public ch.usi.dag.dislre.protocol.Analysis.Analyze getAnalyze() { + if (requestCase_ == 10) { + return (ch.usi.dag.dislre.protocol.Analysis.Analyze) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.Analyze.getDefaultInstance(); + } + /** + *
+     */ Analysis messages
+     * 
+ * + * optional .Analyze analyze = 10; + */ + private void setAnalyze(ch.usi.dag.dislre.protocol.Analysis.Analyze value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 10; + } + /** + *
+     */ Analysis messages
+     * 
+ * + * optional .Analyze analyze = 10; + */ + private void setAnalyze( + ch.usi.dag.dislre.protocol.Analysis.Analyze.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 10; + } + /** + *
+     */ Analysis messages
+     * 
+ * + * optional .Analyze analyze = 10; + */ + private void mergeAnalyze(ch.usi.dag.dislre.protocol.Analysis.Analyze value) { + if (requestCase_ == 10 && + request_ != ch.usi.dag.dislre.protocol.Analysis.Analyze.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.Analyze.newBuilder((ch.usi.dag.dislre.protocol.Analysis.Analyze) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 10; + } + /** + *
+     */ Analysis messages
+     * 
+ * + * optional .Analyze analyze = 10; + */ + private void clearAnalyze() { + if (requestCase_ == 10) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int CLOSE_FIELD_NUMBER = 11; + /** + * optional .CloseConnection close = 11; + */ + public ch.usi.dag.dislre.protocol.Main.CloseConnection getClose() { + if (requestCase_ == 11) { + return (ch.usi.dag.dislre.protocol.Main.CloseConnection) request_; + } + return ch.usi.dag.dislre.protocol.Main.CloseConnection.getDefaultInstance(); + } + /** + * optional .CloseConnection close = 11; + */ + private void setClose(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 11; + } + /** + * optional .CloseConnection close = 11; + */ + private void setClose( + ch.usi.dag.dislre.protocol.Main.CloseConnection.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 11; + } + /** + * optional .CloseConnection close = 11; + */ + private void mergeClose(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + if (requestCase_ == 11 && + request_ != ch.usi.dag.dislre.protocol.Main.CloseConnection.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Main.CloseConnection.newBuilder((ch.usi.dag.dislre.protocol.Main.CloseConnection) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 11; + } + /** + * optional .CloseConnection close = 11; + */ + private void clearClose() { + if (requestCase_ == 11) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int CLASS_INFO_FIELD_NUMBER = 12; + /** + * optional .ClassInfo class_info = 12; + */ + public ch.usi.dag.dislre.protocol.Analysis.ClassInfo getClassInfo() { + if (requestCase_ == 12) { + return (ch.usi.dag.dislre.protocol.Analysis.ClassInfo) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.ClassInfo.getDefaultInstance(); + } + /** + * optional .ClassInfo class_info = 12; + */ + private void setClassInfo(ch.usi.dag.dislre.protocol.Analysis.ClassInfo value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 12; + } + /** + * optional .ClassInfo class_info = 12; + */ + private void setClassInfo( + ch.usi.dag.dislre.protocol.Analysis.ClassInfo.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 12; + } + /** + * optional .ClassInfo class_info = 12; + */ + private void mergeClassInfo(ch.usi.dag.dislre.protocol.Analysis.ClassInfo value) { + if (requestCase_ == 12 && + request_ != ch.usi.dag.dislre.protocol.Analysis.ClassInfo.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.ClassInfo.newBuilder((ch.usi.dag.dislre.protocol.Analysis.ClassInfo) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 12; + } + /** + * optional .ClassInfo class_info = 12; + */ + private void clearClassInfo() { + if (requestCase_ == 12) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int NEW_CLASS_FIELD_NUMBER = 13; + /** + * optional .NewClass new_class = 13; + */ + public ch.usi.dag.dislre.protocol.Analysis.NewClass getNewClass() { + if (requestCase_ == 13) { + return (ch.usi.dag.dislre.protocol.Analysis.NewClass) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.NewClass.getDefaultInstance(); + } + /** + * optional .NewClass new_class = 13; + */ + private void setNewClass(ch.usi.dag.dislre.protocol.Analysis.NewClass value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 13; + } + /** + * optional .NewClass new_class = 13; + */ + private void setNewClass( + ch.usi.dag.dislre.protocol.Analysis.NewClass.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 13; + } + /** + * optional .NewClass new_class = 13; + */ + private void mergeNewClass(ch.usi.dag.dislre.protocol.Analysis.NewClass value) { + if (requestCase_ == 13 && + request_ != ch.usi.dag.dislre.protocol.Analysis.NewClass.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.NewClass.newBuilder((ch.usi.dag.dislre.protocol.Analysis.NewClass) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 13; + } + /** + * optional .NewClass new_class = 13; + */ + private void clearNewClass() { + if (requestCase_ == 13) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int OBJECT_FREE_FIELD_NUMBER = 14; + /** + * optional .ObjectFree object_free = 14; + */ + public ch.usi.dag.dislre.protocol.Analysis.ObjectFree getObjectFree() { + if (requestCase_ == 14) { + return (ch.usi.dag.dislre.protocol.Analysis.ObjectFree) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.ObjectFree.getDefaultInstance(); + } + /** + * optional .ObjectFree object_free = 14; + */ + private void setObjectFree(ch.usi.dag.dislre.protocol.Analysis.ObjectFree value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 14; + } + /** + * optional .ObjectFree object_free = 14; + */ + private void setObjectFree( + ch.usi.dag.dislre.protocol.Analysis.ObjectFree.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 14; + } + /** + * optional .ObjectFree object_free = 14; + */ + private void mergeObjectFree(ch.usi.dag.dislre.protocol.Analysis.ObjectFree value) { + if (requestCase_ == 14 && + request_ != ch.usi.dag.dislre.protocol.Analysis.ObjectFree.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.ObjectFree.newBuilder((ch.usi.dag.dislre.protocol.Analysis.ObjectFree) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 14; + } + /** + * optional .ObjectFree object_free = 14; + */ + private void clearObjectFree() { + if (requestCase_ == 14) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int REGISTER_ANALYSIS_FIELD_NUMBER = 15; + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + public ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis getRegisterAnalysis() { + if (requestCase_ == 15) { + return (ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.getDefaultInstance(); + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + private void setRegisterAnalysis(ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 15; + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + private void setRegisterAnalysis( + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 15; + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + private void mergeRegisterAnalysis(ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis value) { + if (requestCase_ == 15 && + request_ != ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.newBuilder((ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 15; + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + private void clearRegisterAnalysis() { + if (requestCase_ == 15) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int STRING_INFO_FIELD_NUMBER = 16; + /** + * optional .StringInfo string_info = 16; + */ + public ch.usi.dag.dislre.protocol.Analysis.StringInfo getStringInfo() { + if (requestCase_ == 16) { + return (ch.usi.dag.dislre.protocol.Analysis.StringInfo) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.StringInfo.getDefaultInstance(); + } + /** + * optional .StringInfo string_info = 16; + */ + private void setStringInfo(ch.usi.dag.dislre.protocol.Analysis.StringInfo value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 16; + } + /** + * optional .StringInfo string_info = 16; + */ + private void setStringInfo( + ch.usi.dag.dislre.protocol.Analysis.StringInfo.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 16; + } + /** + * optional .StringInfo string_info = 16; + */ + private void mergeStringInfo(ch.usi.dag.dislre.protocol.Analysis.StringInfo value) { + if (requestCase_ == 16 && + request_ != ch.usi.dag.dislre.protocol.Analysis.StringInfo.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.StringInfo.newBuilder((ch.usi.dag.dislre.protocol.Analysis.StringInfo) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 16; + } + /** + * optional .StringInfo string_info = 16; + */ + private void clearStringInfo() { + if (requestCase_ == 16) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int THREAD_END_FIELD_NUMBER = 17; + /** + * optional .ThreadEnd thread_end = 17; + */ + public ch.usi.dag.dislre.protocol.Analysis.ThreadEnd getThreadEnd() { + if (requestCase_ == 17) { + return (ch.usi.dag.dislre.protocol.Analysis.ThreadEnd) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.getDefaultInstance(); + } + /** + * optional .ThreadEnd thread_end = 17; + */ + private void setThreadEnd(ch.usi.dag.dislre.protocol.Analysis.ThreadEnd value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 17; + } + /** + * optional .ThreadEnd thread_end = 17; + */ + private void setThreadEnd( + ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 17; + } + /** + * optional .ThreadEnd thread_end = 17; + */ + private void mergeThreadEnd(ch.usi.dag.dislre.protocol.Analysis.ThreadEnd value) { + if (requestCase_ == 17 && + request_ != ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.newBuilder((ch.usi.dag.dislre.protocol.Analysis.ThreadEnd) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 17; + } + /** + * optional .ThreadEnd thread_end = 17; + */ + private void clearThreadEnd() { + if (requestCase_ == 17) { + requestCase_ = 0; + request_ = null; + } + } + + public static final int THREAD_INFO_FIELD_NUMBER = 18; + /** + * optional .ThreadInfo thread_info = 18; + */ + public ch.usi.dag.dislre.protocol.Analysis.ThreadInfo getThreadInfo() { + if (requestCase_ == 18) { + return (ch.usi.dag.dislre.protocol.Analysis.ThreadInfo) request_; + } + return ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.getDefaultInstance(); + } + /** + * optional .ThreadInfo thread_info = 18; + */ + private void setThreadInfo(ch.usi.dag.dislre.protocol.Analysis.ThreadInfo value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 18; + } + /** + * optional .ThreadInfo thread_info = 18; + */ + private void setThreadInfo( + ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 18; + } + /** + * optional .ThreadInfo thread_info = 18; + */ + private void mergeThreadInfo(ch.usi.dag.dislre.protocol.Analysis.ThreadInfo value) { + if (requestCase_ == 18 && + request_ != ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.newBuilder((ch.usi.dag.dislre.protocol.Analysis.ThreadInfo) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 18; + } + /** + * optional .ThreadInfo thread_info = 18; + */ + private void clearThreadInfo() { + if (requestCase_ == 18) { + requestCase_ = 0; + request_ = null; + } + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (sessionId_ != 0) { + output.writeInt32(1, sessionId_); + } + if (requestCase_ == 2) { + output.writeMessage(2, (ch.usi.dag.dislre.protocol.Main.SessionInitRequest) request_); + } + if (requestCase_ == 3) { + output.writeMessage(3, (ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery) request_); + } + if (requestCase_ == 4) { + output.writeMessage(4, (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest) request_); + } + if (requestCase_ == 5) { + output.writeMessage(5, (ch.usi.dag.dislre.protocol.Main.CloseConnection) request_); + } + if (requestCase_ == 10) { + output.writeMessage(10, (ch.usi.dag.dislre.protocol.Analysis.Analyze) request_); + } + if (requestCase_ == 11) { + output.writeMessage(11, (ch.usi.dag.dislre.protocol.Main.CloseConnection) request_); + } + if (requestCase_ == 12) { + output.writeMessage(12, (ch.usi.dag.dislre.protocol.Analysis.ClassInfo) request_); + } + if (requestCase_ == 13) { + output.writeMessage(13, (ch.usi.dag.dislre.protocol.Analysis.NewClass) request_); + } + if (requestCase_ == 14) { + output.writeMessage(14, (ch.usi.dag.dislre.protocol.Analysis.ObjectFree) request_); + } + if (requestCase_ == 15) { + output.writeMessage(15, (ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis) request_); + } + if (requestCase_ == 16) { + output.writeMessage(16, (ch.usi.dag.dislre.protocol.Analysis.StringInfo) request_); + } + if (requestCase_ == 17) { + output.writeMessage(17, (ch.usi.dag.dislre.protocol.Analysis.ThreadEnd) request_); + } + if (requestCase_ == 18) { + output.writeMessage(18, (ch.usi.dag.dislre.protocol.Analysis.ThreadInfo) request_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (sessionId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, sessionId_); + } + if (requestCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (ch.usi.dag.dislre.protocol.Main.SessionInitRequest) request_); + } + if (requestCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery) request_); + } + if (requestCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest) request_); + } + if (requestCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (ch.usi.dag.dislre.protocol.Main.CloseConnection) request_); + } + if (requestCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (ch.usi.dag.dislre.protocol.Analysis.Analyze) request_); + } + if (requestCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (ch.usi.dag.dislre.protocol.Main.CloseConnection) request_); + } + if (requestCase_ == 12) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (ch.usi.dag.dislre.protocol.Analysis.ClassInfo) request_); + } + if (requestCase_ == 13) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, (ch.usi.dag.dislre.protocol.Analysis.NewClass) request_); + } + if (requestCase_ == 14) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, (ch.usi.dag.dislre.protocol.Analysis.ObjectFree) request_); + } + if (requestCase_ == 15) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, (ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis) request_); + } + if (requestCase_ == 16) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, (ch.usi.dag.dislre.protocol.Analysis.StringInfo) request_); + } + if (requestCase_ == 17) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, (ch.usi.dag.dislre.protocol.Analysis.ThreadEnd) request_); + } + if (requestCase_ == 18) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, (ch.usi.dag.dislre.protocol.Analysis.ThreadInfo) request_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.ClientMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Main.ClientMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * Pack together messages from client to simply distinguish them at the server side.
+     * 
+ * + * Protobuf type {@code ClientMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Main.ClientMessage, Builder> implements + // @@protoc_insertion_point(builder_implements:ClientMessage) + ch.usi.dag.dislre.protocol.Main.ClientMessageOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Main.ClientMessage.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + public RequestCase + getRequestCase() { + return instance.getRequestCase(); + } + + public Builder clearRequest() { + copyOnWrite(); + instance.clearRequest(); + return this; + } + + + /** + * optional int32 session_id = 1; + */ + public int getSessionId() { + return instance.getSessionId(); + } + /** + * optional int32 session_id = 1; + */ + public Builder setSessionId(int value) { + copyOnWrite(); + instance.setSessionId(value); + return this; + } + /** + * optional int32 session_id = 1; + */ + public Builder clearSessionId() { + copyOnWrite(); + instance.clearSessionId(); + return this; + } + + /** + *
+       */ Instrumentation messages
+       * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + public ch.usi.dag.dislre.protocol.Main.SessionInitRequest getSessionInitRequest() { + return instance.getSessionInitRequest(); + } + /** + *
+       */ Instrumentation messages
+       * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + public Builder setSessionInitRequest(ch.usi.dag.dislre.protocol.Main.SessionInitRequest value) { + copyOnWrite(); + instance.setSessionInitRequest(value); + return this; + } + /** + *
+       */ Instrumentation messages
+       * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + public Builder setSessionInitRequest( + ch.usi.dag.dislre.protocol.Main.SessionInitRequest.Builder builderForValue) { + copyOnWrite(); + instance.setSessionInitRequest(builderForValue); + return this; + } + /** + *
+       */ Instrumentation messages
+       * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + public Builder mergeSessionInitRequest(ch.usi.dag.dislre.protocol.Main.SessionInitRequest value) { + copyOnWrite(); + instance.mergeSessionInitRequest(value); + return this; + } + /** + *
+       */ Instrumentation messages
+       * 
+ * + * optional .SessionInitRequest session_init_request = 2; + */ + public Builder clearSessionInitRequest() { + copyOnWrite(); + instance.clearSessionInitRequest(); + return this; + } + + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery getInstrumentationDelivery() { + return instance.getInstrumentationDelivery(); + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + public Builder setInstrumentationDelivery(ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery value) { + copyOnWrite(); + instance.setInstrumentationDelivery(value); + return this; + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + public Builder setInstrumentationDelivery( + ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.Builder builderForValue) { + copyOnWrite(); + instance.setInstrumentationDelivery(builderForValue); + return this; + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + public Builder mergeInstrumentationDelivery(ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery value) { + copyOnWrite(); + instance.mergeInstrumentationDelivery(value); + return this; + } + /** + * optional .InstrumentationDelivery instrumentation_delivery = 3; + */ + public Builder clearInstrumentationDelivery() { + copyOnWrite(); + instance.clearInstrumentationDelivery(); + return this; + } + + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest getInstrumentClassRequest() { + return instance.getInstrumentClassRequest(); + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + public Builder setInstrumentClassRequest(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest value) { + copyOnWrite(); + instance.setInstrumentClassRequest(value); + return this; + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + public Builder setInstrumentClassRequest( + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.Builder builderForValue) { + copyOnWrite(); + instance.setInstrumentClassRequest(builderForValue); + return this; + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + public Builder mergeInstrumentClassRequest(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest value) { + copyOnWrite(); + instance.mergeInstrumentClassRequest(value); + return this; + } + /** + * optional .InstrumentClassRequest instrument_class_request = 4; + */ + public Builder clearInstrumentClassRequest() { + copyOnWrite(); + instance.clearInstrumentClassRequest(); + return this; + } + + /** + * optional .CloseConnection close_connection = 5; + */ + public ch.usi.dag.dislre.protocol.Main.CloseConnection getCloseConnection() { + return instance.getCloseConnection(); + } + /** + * optional .CloseConnection close_connection = 5; + */ + public Builder setCloseConnection(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + copyOnWrite(); + instance.setCloseConnection(value); + return this; + } + /** + * optional .CloseConnection close_connection = 5; + */ + public Builder setCloseConnection( + ch.usi.dag.dislre.protocol.Main.CloseConnection.Builder builderForValue) { + copyOnWrite(); + instance.setCloseConnection(builderForValue); + return this; + } + /** + * optional .CloseConnection close_connection = 5; + */ + public Builder mergeCloseConnection(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + copyOnWrite(); + instance.mergeCloseConnection(value); + return this; + } + /** + * optional .CloseConnection close_connection = 5; + */ + public Builder clearCloseConnection() { + copyOnWrite(); + instance.clearCloseConnection(); + return this; + } + + /** + *
+       */ Analysis messages
+       * 
+ * + * optional .Analyze analyze = 10; + */ + public ch.usi.dag.dislre.protocol.Analysis.Analyze getAnalyze() { + return instance.getAnalyze(); + } + /** + *
+       */ Analysis messages
+       * 
+ * + * optional .Analyze analyze = 10; + */ + public Builder setAnalyze(ch.usi.dag.dislre.protocol.Analysis.Analyze value) { + copyOnWrite(); + instance.setAnalyze(value); + return this; + } + /** + *
+       */ Analysis messages
+       * 
+ * + * optional .Analyze analyze = 10; + */ + public Builder setAnalyze( + ch.usi.dag.dislre.protocol.Analysis.Analyze.Builder builderForValue) { + copyOnWrite(); + instance.setAnalyze(builderForValue); + return this; + } + /** + *
+       */ Analysis messages
+       * 
+ * + * optional .Analyze analyze = 10; + */ + public Builder mergeAnalyze(ch.usi.dag.dislre.protocol.Analysis.Analyze value) { + copyOnWrite(); + instance.mergeAnalyze(value); + return this; + } + /** + *
+       */ Analysis messages
+       * 
+ * + * optional .Analyze analyze = 10; + */ + public Builder clearAnalyze() { + copyOnWrite(); + instance.clearAnalyze(); + return this; + } + + /** + * optional .CloseConnection close = 11; + */ + public ch.usi.dag.dislre.protocol.Main.CloseConnection getClose() { + return instance.getClose(); + } + /** + * optional .CloseConnection close = 11; + */ + public Builder setClose(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + copyOnWrite(); + instance.setClose(value); + return this; + } + /** + * optional .CloseConnection close = 11; + */ + public Builder setClose( + ch.usi.dag.dislre.protocol.Main.CloseConnection.Builder builderForValue) { + copyOnWrite(); + instance.setClose(builderForValue); + return this; + } + /** + * optional .CloseConnection close = 11; + */ + public Builder mergeClose(ch.usi.dag.dislre.protocol.Main.CloseConnection value) { + copyOnWrite(); + instance.mergeClose(value); + return this; + } + /** + * optional .CloseConnection close = 11; + */ + public Builder clearClose() { + copyOnWrite(); + instance.clearClose(); + return this; + } + + /** + * optional .ClassInfo class_info = 12; + */ + public ch.usi.dag.dislre.protocol.Analysis.ClassInfo getClassInfo() { + return instance.getClassInfo(); + } + /** + * optional .ClassInfo class_info = 12; + */ + public Builder setClassInfo(ch.usi.dag.dislre.protocol.Analysis.ClassInfo value) { + copyOnWrite(); + instance.setClassInfo(value); + return this; + } + /** + * optional .ClassInfo class_info = 12; + */ + public Builder setClassInfo( + ch.usi.dag.dislre.protocol.Analysis.ClassInfo.Builder builderForValue) { + copyOnWrite(); + instance.setClassInfo(builderForValue); + return this; + } + /** + * optional .ClassInfo class_info = 12; + */ + public Builder mergeClassInfo(ch.usi.dag.dislre.protocol.Analysis.ClassInfo value) { + copyOnWrite(); + instance.mergeClassInfo(value); + return this; + } + /** + * optional .ClassInfo class_info = 12; + */ + public Builder clearClassInfo() { + copyOnWrite(); + instance.clearClassInfo(); + return this; + } + + /** + * optional .NewClass new_class = 13; + */ + public ch.usi.dag.dislre.protocol.Analysis.NewClass getNewClass() { + return instance.getNewClass(); + } + /** + * optional .NewClass new_class = 13; + */ + public Builder setNewClass(ch.usi.dag.dislre.protocol.Analysis.NewClass value) { + copyOnWrite(); + instance.setNewClass(value); + return this; + } + /** + * optional .NewClass new_class = 13; + */ + public Builder setNewClass( + ch.usi.dag.dislre.protocol.Analysis.NewClass.Builder builderForValue) { + copyOnWrite(); + instance.setNewClass(builderForValue); + return this; + } + /** + * optional .NewClass new_class = 13; + */ + public Builder mergeNewClass(ch.usi.dag.dislre.protocol.Analysis.NewClass value) { + copyOnWrite(); + instance.mergeNewClass(value); + return this; + } + /** + * optional .NewClass new_class = 13; + */ + public Builder clearNewClass() { + copyOnWrite(); + instance.clearNewClass(); + return this; + } + + /** + * optional .ObjectFree object_free = 14; + */ + public ch.usi.dag.dislre.protocol.Analysis.ObjectFree getObjectFree() { + return instance.getObjectFree(); + } + /** + * optional .ObjectFree object_free = 14; + */ + public Builder setObjectFree(ch.usi.dag.dislre.protocol.Analysis.ObjectFree value) { + copyOnWrite(); + instance.setObjectFree(value); + return this; + } + /** + * optional .ObjectFree object_free = 14; + */ + public Builder setObjectFree( + ch.usi.dag.dislre.protocol.Analysis.ObjectFree.Builder builderForValue) { + copyOnWrite(); + instance.setObjectFree(builderForValue); + return this; + } + /** + * optional .ObjectFree object_free = 14; + */ + public Builder mergeObjectFree(ch.usi.dag.dislre.protocol.Analysis.ObjectFree value) { + copyOnWrite(); + instance.mergeObjectFree(value); + return this; + } + /** + * optional .ObjectFree object_free = 14; + */ + public Builder clearObjectFree() { + copyOnWrite(); + instance.clearObjectFree(); + return this; + } + + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + public ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis getRegisterAnalysis() { + return instance.getRegisterAnalysis(); + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + public Builder setRegisterAnalysis(ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis value) { + copyOnWrite(); + instance.setRegisterAnalysis(value); + return this; + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + public Builder setRegisterAnalysis( + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.Builder builderForValue) { + copyOnWrite(); + instance.setRegisterAnalysis(builderForValue); + return this; + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + public Builder mergeRegisterAnalysis(ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis value) { + copyOnWrite(); + instance.mergeRegisterAnalysis(value); + return this; + } + /** + * optional .RegisterAnalysis register_analysis = 15; + */ + public Builder clearRegisterAnalysis() { + copyOnWrite(); + instance.clearRegisterAnalysis(); + return this; + } + + /** + * optional .StringInfo string_info = 16; + */ + public ch.usi.dag.dislre.protocol.Analysis.StringInfo getStringInfo() { + return instance.getStringInfo(); + } + /** + * optional .StringInfo string_info = 16; + */ + public Builder setStringInfo(ch.usi.dag.dislre.protocol.Analysis.StringInfo value) { + copyOnWrite(); + instance.setStringInfo(value); + return this; + } + /** + * optional .StringInfo string_info = 16; + */ + public Builder setStringInfo( + ch.usi.dag.dislre.protocol.Analysis.StringInfo.Builder builderForValue) { + copyOnWrite(); + instance.setStringInfo(builderForValue); + return this; + } + /** + * optional .StringInfo string_info = 16; + */ + public Builder mergeStringInfo(ch.usi.dag.dislre.protocol.Analysis.StringInfo value) { + copyOnWrite(); + instance.mergeStringInfo(value); + return this; + } + /** + * optional .StringInfo string_info = 16; + */ + public Builder clearStringInfo() { + copyOnWrite(); + instance.clearStringInfo(); + return this; + } + + /** + * optional .ThreadEnd thread_end = 17; + */ + public ch.usi.dag.dislre.protocol.Analysis.ThreadEnd getThreadEnd() { + return instance.getThreadEnd(); + } + /** + * optional .ThreadEnd thread_end = 17; + */ + public Builder setThreadEnd(ch.usi.dag.dislre.protocol.Analysis.ThreadEnd value) { + copyOnWrite(); + instance.setThreadEnd(value); + return this; + } + /** + * optional .ThreadEnd thread_end = 17; + */ + public Builder setThreadEnd( + ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.Builder builderForValue) { + copyOnWrite(); + instance.setThreadEnd(builderForValue); + return this; + } + /** + * optional .ThreadEnd thread_end = 17; + */ + public Builder mergeThreadEnd(ch.usi.dag.dislre.protocol.Analysis.ThreadEnd value) { + copyOnWrite(); + instance.mergeThreadEnd(value); + return this; + } + /** + * optional .ThreadEnd thread_end = 17; + */ + public Builder clearThreadEnd() { + copyOnWrite(); + instance.clearThreadEnd(); + return this; + } + + /** + * optional .ThreadInfo thread_info = 18; + */ + public ch.usi.dag.dislre.protocol.Analysis.ThreadInfo getThreadInfo() { + return instance.getThreadInfo(); + } + /** + * optional .ThreadInfo thread_info = 18; + */ + public Builder setThreadInfo(ch.usi.dag.dislre.protocol.Analysis.ThreadInfo value) { + copyOnWrite(); + instance.setThreadInfo(value); + return this; + } + /** + * optional .ThreadInfo thread_info = 18; + */ + public Builder setThreadInfo( + ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.Builder builderForValue) { + copyOnWrite(); + instance.setThreadInfo(builderForValue); + return this; + } + /** + * optional .ThreadInfo thread_info = 18; + */ + public Builder mergeThreadInfo(ch.usi.dag.dislre.protocol.Analysis.ThreadInfo value) { + copyOnWrite(); + instance.mergeThreadInfo(value); + return this; + } + /** + * optional .ThreadInfo thread_info = 18; + */ + public Builder clearThreadInfo() { + copyOnWrite(); + instance.clearThreadInfo(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ClientMessage) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Main.ClientMessage(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Main.ClientMessage other = (ch.usi.dag.dislre.protocol.Main.ClientMessage) arg1; + sessionId_ = visitor.visitInt(sessionId_ != 0, sessionId_, + other.sessionId_ != 0, other.sessionId_); + switch (other.getRequestCase()) { + case SESSION_INIT_REQUEST: { + request_ = visitor.visitOneofMessage( + requestCase_ == 2, + request_, + other.request_); + break; + } + case INSTRUMENTATION_DELIVERY: { + request_ = visitor.visitOneofMessage( + requestCase_ == 3, + request_, + other.request_); + break; + } + case INSTRUMENT_CLASS_REQUEST: { + request_ = visitor.visitOneofMessage( + requestCase_ == 4, + request_, + other.request_); + break; + } + case CLOSE_CONNECTION: { + request_ = visitor.visitOneofMessage( + requestCase_ == 5, + request_, + other.request_); + break; + } + case ANALYZE: { + request_ = visitor.visitOneofMessage( + requestCase_ == 10, + request_, + other.request_); + break; + } + case CLOSE: { + request_ = visitor.visitOneofMessage( + requestCase_ == 11, + request_, + other.request_); + break; + } + case CLASS_INFO: { + request_ = visitor.visitOneofMessage( + requestCase_ == 12, + request_, + other.request_); + break; + } + case NEW_CLASS: { + request_ = visitor.visitOneofMessage( + requestCase_ == 13, + request_, + other.request_); + break; + } + case OBJECT_FREE: { + request_ = visitor.visitOneofMessage( + requestCase_ == 14, + request_, + other.request_); + break; + } + case REGISTER_ANALYSIS: { + request_ = visitor.visitOneofMessage( + requestCase_ == 15, + request_, + other.request_); + break; + } + case STRING_INFO: { + request_ = visitor.visitOneofMessage( + requestCase_ == 16, + request_, + other.request_); + break; + } + case THREAD_END: { + request_ = visitor.visitOneofMessage( + requestCase_ == 17, + request_, + other.request_); + break; + } + case THREAD_INFO: { + request_ = visitor.visitOneofMessage( + requestCase_ == 18, + request_, + other.request_); + break; + } + case REQUEST_NOT_SET: { + visitor.visitOneofNotSet(requestCase_ != 0); + break; + } + } + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + if (other.requestCase_ != 0) { + requestCase_ = other.requestCase_; + } + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + sessionId_ = input.readInt32(); + break; + } + case 18: { + ch.usi.dag.dislre.protocol.Main.SessionInitRequest.Builder subBuilder = null; + if (requestCase_ == 2) { + subBuilder = ((ch.usi.dag.dislre.protocol.Main.SessionInitRequest) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Main.SessionInitRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Main.SessionInitRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 2; + break; + } + case 26: { + ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.Builder subBuilder = null; + if (requestCase_ == 3) { + subBuilder = ((ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.DiSL.InstrumentationDelivery) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 3; + break; + } + case 34: { + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.Builder subBuilder = null; + if (requestCase_ == 4) { + subBuilder = ((ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.DiSL.InstrumentClassRequest) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 4; + break; + } + case 42: { + ch.usi.dag.dislre.protocol.Main.CloseConnection.Builder subBuilder = null; + if (requestCase_ == 5) { + subBuilder = ((ch.usi.dag.dislre.protocol.Main.CloseConnection) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Main.CloseConnection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Main.CloseConnection) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 5; + break; + } + case 82: { + ch.usi.dag.dislre.protocol.Analysis.Analyze.Builder subBuilder = null; + if (requestCase_ == 10) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.Analyze) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.Analyze.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.Analyze) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 10; + break; + } + case 90: { + ch.usi.dag.dislre.protocol.Main.CloseConnection.Builder subBuilder = null; + if (requestCase_ == 11) { + subBuilder = ((ch.usi.dag.dislre.protocol.Main.CloseConnection) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Main.CloseConnection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Main.CloseConnection) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 11; + break; + } + case 98: { + ch.usi.dag.dislre.protocol.Analysis.ClassInfo.Builder subBuilder = null; + if (requestCase_ == 12) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.ClassInfo) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.ClassInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.ClassInfo) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 12; + break; + } + case 106: { + ch.usi.dag.dislre.protocol.Analysis.NewClass.Builder subBuilder = null; + if (requestCase_ == 13) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.NewClass) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.NewClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.NewClass) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 13; + break; + } + case 114: { + ch.usi.dag.dislre.protocol.Analysis.ObjectFree.Builder subBuilder = null; + if (requestCase_ == 14) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.ObjectFree) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.ObjectFree.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.ObjectFree) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 14; + break; + } + case 122: { + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.Builder subBuilder = null; + if (requestCase_ == 15) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 15; + break; + } + case 130: { + ch.usi.dag.dislre.protocol.Analysis.StringInfo.Builder subBuilder = null; + if (requestCase_ == 16) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.StringInfo) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.StringInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.StringInfo) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 16; + break; + } + case 138: { + ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.Builder subBuilder = null; + if (requestCase_ == 17) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.ThreadEnd) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.ThreadEnd) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 17; + break; + } + case 146: { + ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.Builder subBuilder = null; + if (requestCase_ == 18) { + subBuilder = ((ch.usi.dag.dislre.protocol.Analysis.ThreadInfo) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Analysis.ThreadInfo) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 18; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Main.ClientMessage.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:ClientMessage) + private static final ch.usi.dag.dislre.protocol.Main.ClientMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ClientMessage(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Main.ClientMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + public interface ServerMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:ServerMessage) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional .SessionInitResponse session_init_response = 1; + */ + ch.usi.dag.dislre.protocol.Main.SessionInitResponse getSessionInitResponse(); + + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation getInstrumentationAcceptConfirmation(); + + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse getInstrumentClassResponse(); + + public ch.usi.dag.dislre.protocol.Main.ServerMessage.ResponseCase getResponseCase(); + } + /** + *
+   * Pack together messages from server to simply distinguish them at the client side.
+   * 
+ * + * Protobuf type {@code ServerMessage} + */ + public static final class ServerMessage extends + com.google.protobuf.GeneratedMessageLite< + ServerMessage, ServerMessage.Builder> implements + // @@protoc_insertion_point(message_implements:ServerMessage) + ServerMessageOrBuilder { + private ServerMessage() { + } + private int responseCase_ = 0; + private java.lang.Object response_; + public enum ResponseCase + implements com.google.protobuf.Internal.EnumLite { + SESSION_INIT_RESPONSE(1), + INSTRUMENTATION_ACCEPT_CONFIRMATION(2), + INSTRUMENT_CLASS_RESPONSE(3), + RESPONSE_NOT_SET(0); + private final int value; + private ResponseCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResponseCase valueOf(int value) { + return forNumber(value); + } + + public static ResponseCase forNumber(int value) { + switch (value) { + case 1: return SESSION_INIT_RESPONSE; + case 2: return INSTRUMENTATION_ACCEPT_CONFIRMATION; + case 3: return INSTRUMENT_CLASS_RESPONSE; + case 0: return RESPONSE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); + } + + private void clearResponse() { + responseCase_ = 0; + response_ = null; + } + + public static final int SESSION_INIT_RESPONSE_FIELD_NUMBER = 1; + /** + * optional .SessionInitResponse session_init_response = 1; + */ + public ch.usi.dag.dislre.protocol.Main.SessionInitResponse getSessionInitResponse() { + if (responseCase_ == 1) { + return (ch.usi.dag.dislre.protocol.Main.SessionInitResponse) response_; + } + return ch.usi.dag.dislre.protocol.Main.SessionInitResponse.getDefaultInstance(); + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + private void setSessionInitResponse(ch.usi.dag.dislre.protocol.Main.SessionInitResponse value) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + responseCase_ = 1; + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + private void setSessionInitResponse( + ch.usi.dag.dislre.protocol.Main.SessionInitResponse.Builder builderForValue) { + response_ = builderForValue.build(); + responseCase_ = 1; + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + private void mergeSessionInitResponse(ch.usi.dag.dislre.protocol.Main.SessionInitResponse value) { + if (responseCase_ == 1 && + response_ != ch.usi.dag.dislre.protocol.Main.SessionInitResponse.getDefaultInstance()) { + response_ = ch.usi.dag.dislre.protocol.Main.SessionInitResponse.newBuilder((ch.usi.dag.dislre.protocol.Main.SessionInitResponse) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + responseCase_ = 1; + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + private void clearSessionInitResponse() { + if (responseCase_ == 1) { + responseCase_ = 0; + response_ = null; + } + } + + public static final int INSTRUMENTATION_ACCEPT_CONFIRMATION_FIELD_NUMBER = 2; + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation getInstrumentationAcceptConfirmation() { + if (responseCase_ == 2) { + return (ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation) response_; + } + return ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.getDefaultInstance(); + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + private void setInstrumentationAcceptConfirmation(ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation value) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + responseCase_ = 2; + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + private void setInstrumentationAcceptConfirmation( + ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.Builder builderForValue) { + response_ = builderForValue.build(); + responseCase_ = 2; + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + private void mergeInstrumentationAcceptConfirmation(ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation value) { + if (responseCase_ == 2 && + response_ != ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.getDefaultInstance()) { + response_ = ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.newBuilder((ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + responseCase_ = 2; + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + private void clearInstrumentationAcceptConfirmation() { + if (responseCase_ == 2) { + responseCase_ = 0; + response_ = null; + } + } + + public static final int INSTRUMENT_CLASS_RESPONSE_FIELD_NUMBER = 3; + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse getInstrumentClassResponse() { + if (responseCase_ == 3) { + return (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse) response_; + } + return ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.getDefaultInstance(); + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + private void setInstrumentClassResponse(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse value) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + responseCase_ = 3; + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + private void setInstrumentClassResponse( + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.Builder builderForValue) { + response_ = builderForValue.build(); + responseCase_ = 3; + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + private void mergeInstrumentClassResponse(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse value) { + if (responseCase_ == 3 && + response_ != ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.getDefaultInstance()) { + response_ = ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.newBuilder((ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + responseCase_ = 3; + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + private void clearInstrumentClassResponse() { + if (responseCase_ == 3) { + responseCase_ = 0; + response_ = null; + } + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (responseCase_ == 1) { + output.writeMessage(1, (ch.usi.dag.dislre.protocol.Main.SessionInitResponse) response_); + } + if (responseCase_ == 2) { + output.writeMessage(2, (ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation) response_); + } + if (responseCase_ == 3) { + output.writeMessage(3, (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse) response_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (responseCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (ch.usi.dag.dislre.protocol.Main.SessionInitResponse) response_); + } + if (responseCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation) response_); + } + if (responseCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse) response_); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.ServerMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Main.ServerMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + /** + *
+     * Pack together messages from server to simply distinguish them at the client side.
+     * 
+ * + * Protobuf type {@code ServerMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageLite.Builder< + ch.usi.dag.dislre.protocol.Main.ServerMessage, Builder> implements + // @@protoc_insertion_point(builder_implements:ServerMessage) + ch.usi.dag.dislre.protocol.Main.ServerMessageOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Main.ServerMessage.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + public ResponseCase + getResponseCase() { + return instance.getResponseCase(); + } + + public Builder clearResponse() { + copyOnWrite(); + instance.clearResponse(); + return this; + } + + + /** + * optional .SessionInitResponse session_init_response = 1; + */ + public ch.usi.dag.dislre.protocol.Main.SessionInitResponse getSessionInitResponse() { + return instance.getSessionInitResponse(); + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + public Builder setSessionInitResponse(ch.usi.dag.dislre.protocol.Main.SessionInitResponse value) { + copyOnWrite(); + instance.setSessionInitResponse(value); + return this; + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + public Builder setSessionInitResponse( + ch.usi.dag.dislre.protocol.Main.SessionInitResponse.Builder builderForValue) { + copyOnWrite(); + instance.setSessionInitResponse(builderForValue); + return this; + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + public Builder mergeSessionInitResponse(ch.usi.dag.dislre.protocol.Main.SessionInitResponse value) { + copyOnWrite(); + instance.mergeSessionInitResponse(value); + return this; + } + /** + * optional .SessionInitResponse session_init_response = 1; + */ + public Builder clearSessionInitResponse() { + copyOnWrite(); + instance.clearSessionInitResponse(); + return this; + } + + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation getInstrumentationAcceptConfirmation() { + return instance.getInstrumentationAcceptConfirmation(); + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + public Builder setInstrumentationAcceptConfirmation(ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation value) { + copyOnWrite(); + instance.setInstrumentationAcceptConfirmation(value); + return this; + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + public Builder setInstrumentationAcceptConfirmation( + ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.Builder builderForValue) { + copyOnWrite(); + instance.setInstrumentationAcceptConfirmation(builderForValue); + return this; + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + public Builder mergeInstrumentationAcceptConfirmation(ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation value) { + copyOnWrite(); + instance.mergeInstrumentationAcceptConfirmation(value); + return this; + } + /** + * optional .InstrumentationAcceptConfirmation instrumentation_accept_confirmation = 2; + */ + public Builder clearInstrumentationAcceptConfirmation() { + copyOnWrite(); + instance.clearInstrumentationAcceptConfirmation(); + return this; + } + + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + public ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse getInstrumentClassResponse() { + return instance.getInstrumentClassResponse(); + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + public Builder setInstrumentClassResponse(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse value) { + copyOnWrite(); + instance.setInstrumentClassResponse(value); + return this; + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + public Builder setInstrumentClassResponse( + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.Builder builderForValue) { + copyOnWrite(); + instance.setInstrumentClassResponse(builderForValue); + return this; + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + public Builder mergeInstrumentClassResponse(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse value) { + copyOnWrite(); + instance.mergeInstrumentClassResponse(value); + return this; + } + /** + * optional .InstrumentClassResponse instrument_class_response = 3; + */ + public Builder clearInstrumentClassResponse() { + copyOnWrite(); + instance.clearInstrumentClassResponse(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ServerMessage) + } + protected final Object dynamicMethod( + com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, + Object arg0, Object arg1) { + switch (method) { + case NEW_MUTABLE_INSTANCE: { + return new ch.usi.dag.dislre.protocol.Main.ServerMessage(); + } + case IS_INITIALIZED: { + return DEFAULT_INSTANCE; + } + case MAKE_IMMUTABLE: { + return null; + } + case NEW_BUILDER: { + return new Builder(); + } + case VISIT: { + Visitor visitor = (Visitor) arg0; + ch.usi.dag.dislre.protocol.Main.ServerMessage other = (ch.usi.dag.dislre.protocol.Main.ServerMessage) arg1; + switch (other.getResponseCase()) { + case SESSION_INIT_RESPONSE: { + response_ = visitor.visitOneofMessage( + responseCase_ == 1, + response_, + other.response_); + break; + } + case INSTRUMENTATION_ACCEPT_CONFIRMATION: { + response_ = visitor.visitOneofMessage( + responseCase_ == 2, + response_, + other.response_); + break; + } + case INSTRUMENT_CLASS_RESPONSE: { + response_ = visitor.visitOneofMessage( + responseCase_ == 3, + response_, + other.response_); + break; + } + case RESPONSE_NOT_SET: { + visitor.visitOneofNotSet(responseCase_ != 0); + break; + } + } + if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor + .INSTANCE) { + if (other.responseCase_ != 0) { + responseCase_ = other.responseCase_; + } + } + return this; + } + case MERGE_FROM_STREAM: { + com.google.protobuf.CodedInputStream input = + (com.google.protobuf.CodedInputStream) arg0; + com.google.protobuf.ExtensionRegistryLite extensionRegistry = + (com.google.protobuf.ExtensionRegistryLite) arg1; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + ch.usi.dag.dislre.protocol.Main.SessionInitResponse.Builder subBuilder = null; + if (responseCase_ == 1) { + subBuilder = ((ch.usi.dag.dislre.protocol.Main.SessionInitResponse) response_).toBuilder(); + } + response_ = + input.readMessage(ch.usi.dag.dislre.protocol.Main.SessionInitResponse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Main.SessionInitResponse) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 1; + break; + } + case 18: { + ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.Builder subBuilder = null; + if (responseCase_ == 2) { + subBuilder = ((ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation) response_).toBuilder(); + } + response_ = + input.readMessage(ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.DiSL.InstrumentationAcceptConfirmation) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 2; + break; + } + case 26: { + ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.Builder subBuilder = null; + if (responseCase_ == 3) { + subBuilder = ((ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse) response_).toBuilder(); + } + response_ = + input.readMessage(ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.DiSL.InstrumentClassResponse) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 3; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw new RuntimeException(e.setUnfinishedMessage(this)); + } catch (java.io.IOException e) { + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); + } finally { + } + } + case GET_DEFAULT_INSTANCE: { + return DEFAULT_INSTANCE; + } + case GET_PARSER: { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Main.ServerMessage.class) { + if (PARSER == null) { + PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); + } + } + } + return PARSER; + } + } + throw new UnsupportedOperationException(); + } + + + // @@protoc_insertion_point(class_scope:ServerMessage) + private static final ch.usi.dag.dislre.protocol.Main.ServerMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new ServerMessage(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Main.ServerMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static volatile com.google.protobuf.Parser PARSER; + + public static com.google.protobuf.Parser parser() { + return DEFAULT_INSTANCE.getParserForType(); + } + } + + + static { + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/shvm-server/src/ch/usi/dag/dislreserver/DiSLREServer.java b/shvm-server/src/ch/usi/dag/dislreserver/DiSLREServer.java index 5743b355..a019dc87 100644 --- a/shvm-server/src/ch/usi/dag/dislreserver/DiSLREServer.java +++ b/shvm-server/src/ch/usi/dag/dislreserver/DiSLREServer.java @@ -9,6 +9,8 @@ import java.nio.channels.ClosedByInterruptException; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; +import ch.usi.dag.dislre.protocol.Main; + import ch.usi.dag.util.logging.Logger; @@ -92,7 +94,7 @@ public abstract class DiSLREServer { final DataInputStream is = new DataInputStream ( new BufferedInputStream (sock.getInputStream ())); - Protocol.AgentMessage agentMessage; + Main.ClientMessage clientMessage; int messageSize; byte[] byteArray; while (true) { @@ -107,9 +109,9 @@ public abstract class DiSLREServer { is.readFully (byteArray,0, messageSize); - agentMessage = Protocol.AgentMessage.parseFrom (byteArray); + clientMessage = Main.ClientMessage.parseFrom (byteArray); - RequestDispatcher.ProcessMessage (server, agentMessage, __log); + RequestDispatcher.ProcessMessage (server, clientMessage, __log); } } catch (final Exception e) { diff --git a/shvm-server/src/ch/usi/dag/dislreserver/RequestDispatcher.java b/shvm-server/src/ch/usi/dag/dislreserver/RequestDispatcher.java index 1021070f..1d6264ab 100644 --- a/shvm-server/src/ch/usi/dag/dislreserver/RequestDispatcher.java +++ b/shvm-server/src/ch/usi/dag/dislreserver/RequestDispatcher.java @@ -1,6 +1,7 @@ package ch.usi.dag.dislreserver; -import ch.usi.dag.dislreserver.Protocol.*; +import ch.usi.dag.dislre.protocol.Main.*; +import ch.usi.dag.dislre.protocol.Analysis.*; import ch.usi.dag.util.logging.Logger; @@ -15,30 +16,30 @@ final class RequestDispatcher { * Process the agent message, and pass the unpacked data to {@link SHVM} instance. * * @param shadowVM ShadowVM instance to process the requests. - * @param agentMessage The agent message. + * @param clientMessage The agent message. * @param logger Logger * @throws DiSLREServerException */ static void ProcessMessage( - final SHVM shadowVM, final AgentMessage agentMessage, final Logger logger + final SHVM shadowVM, final ClientMessage clientMessage, final Logger logger ) throws DiSLREServerException { - switch (agentMessage.getRequestCase ()) + switch (clientMessage.getRequestCase ()) { case ANALYZE: - Analyze analyze = agentMessage.getAnalyze (); + Analyze analyze = clientMessage.getAnalyze (); shadowVM.HandleAnalyze ( analyze.getOrderingID (), analyze.getInvocationCount (), analyze.getRawData ().toByteArray () ); break; - case CLOSE: + case CLOSE_CONNECTION: shadowVM.HandleClose (); break; case CLASS_INFO: - ClassInfo classInfo = agentMessage.getClassInfo (); + ClassInfo classInfo = clientMessage.getClassInfo (); shadowVM.HandleClassInfo ( classInfo.getClassTag (), classInfo.getClassSignature (), @@ -48,7 +49,7 @@ final class RequestDispatcher { ); break; case NEW_CLASS: - NewClass newClass = agentMessage.getNewClass (); + NewClass newClass = clientMessage.getNewClass (); shadowVM.HandleNewClass ( newClass.getClassName (), newClass.getClassLoaderTag (), @@ -56,24 +57,24 @@ final class RequestDispatcher { ); break; case THREAD_END: - shadowVM.HandleThreadEnd (agentMessage.getThreadEnd ().getThreadId ()); + shadowVM.HandleThreadEnd (clientMessage.getThreadEnd ().getThreadId ()); break; case REGISTER_ANALYSIS: - RegisterAnalysis registerAnalysis = agentMessage.getRegisterAnalysis (); + RegisterAnalysis registerAnalysis = clientMessage.getRegisterAnalysis (); shadowVM.HandleRegisterAnalysis ( registerAnalysis.getAnalysisId (), registerAnalysis.getDescriptor () ); break; case STRING_INFO: - StringInfo stringInfo = agentMessage.getStringInfo (); + StringInfo stringInfo = clientMessage.getStringInfo (); shadowVM.HandleStringInfo ( stringInfo.getStringTag (), stringInfo.getStringData () ); break; case THREAD_INFO: - ThreadInfo threadInfo = agentMessage.getThreadInfo (); + ThreadInfo threadInfo = clientMessage.getThreadInfo (); shadowVM.HandleThreadInfo ( threadInfo.getThreadTag (), threadInfo.getName (), @@ -81,9 +82,9 @@ final class RequestDispatcher { ); break; case OBJECT_FREE: - int count = agentMessage.getObjectFree().getCount (); + int count = clientMessage.getObjectFree().getCount (); long[] ids = new long[count]; - byte[] byteArray = agentMessage.getObjectFree ().getRawData ().toByteArray (); + byte[] byteArray = clientMessage.getObjectFree ().getRawData ().toByteArray (); logger.error ( "Serious error in data transfer: Indicated length (%d) does not match real length (%d)", @@ -99,8 +100,8 @@ final class RequestDispatcher { break; case REQUEST_NOT_SET: default: - logger.error ( - "Serious problem in data transfer: Unknown type of message from agent" + logger.info ( + "Not implemented request case %s", clientMessage.getRequestCase ().name () ); } diff --git a/shvm/.gitignore b/shvm/.gitignore index 53752db2..e7ce4b94 100644 --- a/shvm/.gitignore +++ b/shvm/.gitignore @@ -1 +1,3 @@ output + +*.iml diff --git a/src-disl-agent/CMakeLists.txt b/src-disl-agent/CMakeLists.txt new file mode 100644 index 00000000..d19ad76b --- /dev/null +++ b/src-disl-agent/CMakeLists.txt @@ -0,0 +1,42 @@ +cmake_minimum_required(VERSION 3.13) +project(src_disl_agent C) + +set(CMAKE_C_STANDARD 11) + +include_directories(.) +include_directories(protocol) +include_directories(../src-jdk-include) +include_directories(../src-jdk-include/macosx) + +add_executable(src_disl_agent + protocol/disl.pb-c.c + protocol/disl.pb-c.h + protocol/main.pb-c.c + protocol/main.pb-c.h + protocol/shvm.pb-c.c + protocol/shvm.pb-c.h + bytecode.c + bytecode.h + classparser.c + classparser.h + codeflags.h + common.c + common.h + config.c + config.h + connection.c + connection.h + connpool.c + connpool.h + debug.h + dislagent.c + jvmtiutil.c + jvmtiutil.h + list.h + msgchannel.c + msgchannel.h + network.c + network.h + sessions.c + sessions.h + threads.h) diff --git a/src-disl-agent/Makefile b/src-disl-agent/Makefile index de4d31f8..5167aae8 100644 --- a/src-disl-agent/Makefile +++ b/src-disl-agent/Makefile @@ -108,12 +108,11 @@ LIBRARY := $(TARGET_DIR)/$(LIBRARY_NAME) # Source and object files needed to create the library SOURCES = bytecode.c common.c jvmtiutil.c connection.c \ connpool.c msgchannel.c network.c classparser.c \ - dislserver.pb-c.c protobuf-c.c dislagent.c \ - sessions.c + dislagent.c sessions.c \ + protocol/protobuf-c.c protocol/main.pb-c.c protocol/disl.pb-c.c protocol/shvm.pb-c.c -HEADERS = $(wildcard *.h) codeflags.h dislserver.pb-c.h -GENSRCS = bytecode.c codeflags.h \ - dislserver.pb-c.c dislserver.pb-c.h +HEADERS = $(wildcard *.h) codeflags.h $(wildcard protocol/*.h) +GENSRCS = bytecode.c codeflags.h OBJECTS = $(addprefix $(BUILD_DIR)/,$(SOURCES:%.c=%.o)) SRCDEPS = $(SOURCES:%.c=%.d) @@ -182,6 +181,7 @@ bytecode.c codeflags.h: $(BUILD_DIR): mkdir $@ + mkdir $@/protocol # Compilation and linking targets diff --git a/src-disl-agent/dislagent.c b/src-disl-agent/dislagent.c index 40fcd54b..4e50d143 100644 --- a/src-disl-agent/dislagent.c +++ b/src-disl-agent/dislagent.c @@ -5,7 +5,7 @@ #include "connection.h" #include "network.h" #include "msgchannel.h" -#include "dislserver.pb-c.h" +#include "protocol/main.pb-c.h" #include "sessions.h" #include "bytecode.h" @@ -188,7 +188,7 @@ __instrument_class ( ClientMessage message = CLIENT_MESSAGE__INIT; message.session_id = agent_config.session_id; - ClassInfo class_info = CLASS_INFO__INIT; + InstrClassInfo class_info = INSTR_CLASS_INFO__INIT; class_info.classname = (char *) class_name; class_info.classloadertag = classloader_tag; diff --git a/src-disl-agent/dislserver.pb-c.h b/src-disl-agent/dislserver.pb-c.h deleted file mode 100644 index aee1a726..00000000 --- a/src-disl-agent/dislserver.pb-c.h +++ /dev/null @@ -1,501 +0,0 @@ -/* Generated by the protocol buffer compiler. DO NOT EDIT! */ -/* Generated from: dislserver.proto */ - -#ifndef PROTOBUF_C_dislserver_2eproto__INCLUDED -#define PROTOBUF_C_dislserver_2eproto__INCLUDED - -#include "protobuf-c.h" - -PROTOBUF_C__BEGIN_DECLS - -#if PROTOBUF_C_VERSION_NUMBER < 1003000 -# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. -#elif 1003001 < PROTOBUF_C_MIN_COMPILER_VERSION -# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. -#endif - - -typedef struct _Error Error; -typedef struct _SessionInitRequest SessionInitRequest; -typedef struct _SessionInitResponse SessionInitResponse; -typedef struct _InstrumentationDelivery InstrumentationDelivery; -typedef struct _InstrumentationAcceptConfirmation InstrumentationAcceptConfirmation; -typedef struct _ClassInfo ClassInfo; -typedef struct _InstrumentClassRequest InstrumentClassRequest; -typedef struct _InstrumentClassResponse InstrumentClassResponse; -typedef struct _CloseConnection CloseConnection; -typedef struct _ClientMessage ClientMessage; -typedef struct _ServerMessage ServerMessage; - - -/* --- enums --- */ - -typedef enum _InstrumentClassResponse__InstrumentClassResult { - INSTRUMENT_CLASS_RESPONSE__INSTRUMENT_CLASS_RESULT__CLASS_UNMODIFIED = 0, - INSTRUMENT_CLASS_RESPONSE__INSTRUMENT_CLASS_RESULT__CLASS_MODIFIED = 1, - INSTRUMENT_CLASS_RESPONSE__INSTRUMENT_CLASS_RESULT__ERROR = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(INSTRUMENT_CLASS_RESPONSE__INSTRUMENT_CLASS_RESULT) -} InstrumentClassResponse__InstrumentClassResult; -typedef enum _CloseConnection__CloseReason { - CLOSE_CONNECTION__CLOSE_REASON__FINISHED = 0 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(CLOSE_CONNECTION__CLOSE_REASON) -} CloseConnection__CloseReason; - -/* --- messages --- */ - -/* - * Common type to send errors - */ -struct _Error -{ - ProtobufCMessage base; - int32_t code; - char *message; -}; -#define ERROR__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&error__descriptor) \ - , 0, (char *)protobuf_c_empty_string } - - -/* - * Request server to initialize session - * This is sent as the clients first message - * May contain some additional data to describe the client (JVM version etc.) - */ -struct _SessionInitRequest -{ - ProtobufCMessage base; -}; -#define SESSION_INIT_REQUEST__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&session_init_request__descriptor) \ - } - - -/* - * This is the response to SessionInitRequest message - * The request could either be ACCEPTed or DENYed - * In the case of positive answer, there is also a session_id present - */ -struct _SessionInitResponse -{ - ProtobufCMessage base; - protobuf_c_boolean accepted; - int32_t session_id; - size_t n_errors; - Error **errors; -}; -#define SESSION_INIT_RESPONSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&session_init_response__descriptor) \ - , 0, 0, 0,NULL } - - -/* - * When the client obtains the session_id, next step should be sending - * the instrumentation jar (or more of them) to the instrumentation server. - */ -struct _InstrumentationDelivery -{ - ProtobufCMessage base; - size_t n_sizes; - int32_t *sizes; - ProtobufCBinaryData instrumentation; -}; -#define INSTRUMENTATION_DELIVERY__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&instrumentation_delivery__descriptor) \ - , 0,NULL, {0,NULL} } - - -/* - * This is server response to InstrumentationDelivery message - */ -struct _InstrumentationAcceptConfirmation -{ - ProtobufCMessage base; - protobuf_c_boolean instrumentation_accepted; - size_t n_errors; - Error **errors; -}; -#define INSTRUMENTATION_ACCEPT_CONFIRMATION__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&instrumentation_accept_confirmation__descriptor) \ - , 0, 0,NULL } - - -struct _ClassInfo -{ - ProtobufCMessage base; - char *classname; - int64_t classloadertag; -}; -#define CLASS_INFO__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&class_info__descriptor) \ - , (char *)protobuf_c_empty_string, 0 } - - -/* - * This is the request to the instrumentaion server to instrument attached class. - */ -struct _InstrumentClassRequest -{ - ProtobufCMessage base; - int32_t flags; - ClassInfo *classinfo; - ProtobufCBinaryData classbytes; - size_t n_supertypes; - ClassInfo **supertypes; -}; -#define INSTRUMENT_CLASS_REQUEST__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&instrument_class_request__descriptor) \ - , 0, NULL, {0,NULL}, 0,NULL } - - -/* - * Server response containing either the instrumented classbytes or error message - */ -struct _InstrumentClassResponse -{ - ProtobufCMessage base; - InstrumentClassResponse__InstrumentClassResult result; - char *errormessage; - ProtobufCBinaryData classbytes; -}; -#define INSTRUMENT_CLASS_RESPONSE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&instrument_class_response__descriptor) \ - , INSTRUMENT_CLASS_RESPONSE__INSTRUMENT_CLASS_RESULT__CLASS_UNMODIFIED, (char *)protobuf_c_empty_string, {0,NULL} } - - -/* - * Notify server about closing connection - */ -struct _CloseConnection -{ - ProtobufCMessage base; - CloseConnection__CloseReason reason; -}; -#define CLOSE_CONNECTION__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&close_connection__descriptor) \ - , CLOSE_CONNECTION__CLOSE_REASON__FINISHED } - - -typedef enum { - CLIENT_MESSAGE__REQUEST__NOT_SET = 0, - CLIENT_MESSAGE__REQUEST_SESSION_INIT_REQUEST = 2, - CLIENT_MESSAGE__REQUEST_INSTRUMENTATION_DELIVERY = 3, - CLIENT_MESSAGE__REQUEST_INSTRUMENT_CLASS_REQUEST = 4, - CLIENT_MESSAGE__REQUEST_CLOSE_CONNECTION = 5 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(CLIENT_MESSAGE__REQUEST) -} ClientMessage__RequestCase; - -/* - * Pack together messages from client to simply distinguish them at the server side. - */ -struct _ClientMessage -{ - ProtobufCMessage base; - int32_t session_id; - ClientMessage__RequestCase request_case; - union { - SessionInitRequest *session_init_request; - InstrumentationDelivery *instrumentation_delivery; - InstrumentClassRequest *instrument_class_request; - CloseConnection *close_connection; - }; -}; -#define CLIENT_MESSAGE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&client_message__descriptor) \ - , 0, CLIENT_MESSAGE__REQUEST__NOT_SET, {0} } - - -typedef enum { - SERVER_MESSAGE__RESPONSE__NOT_SET = 0, - SERVER_MESSAGE__RESPONSE_SESSION_INIT_RESPONSE = 1, - SERVER_MESSAGE__RESPONSE_INSTRUMENTATION_ACCEPT_CONFIRMATION = 2, - SERVER_MESSAGE__RESPONSE_INSTRUMENT_CLASS_RESPONSE = 3 - PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(SERVER_MESSAGE__RESPONSE) -} ServerMessage__ResponseCase; - -/* - * Pack together messages from server to simply distinguish them at the client side. - */ -struct _ServerMessage -{ - ProtobufCMessage base; - ServerMessage__ResponseCase response_case; - union { - SessionInitResponse *session_init_response; - InstrumentationAcceptConfirmation *instrumentation_accept_confirmation; - InstrumentClassResponse *instrument_class_response; - }; -}; -#define SERVER_MESSAGE__INIT \ - { PROTOBUF_C_MESSAGE_INIT (&server_message__descriptor) \ - , SERVER_MESSAGE__RESPONSE__NOT_SET, {0} } - - -/* Error methods */ -void error__init - (Error *message); -size_t error__get_packed_size - (const Error *message); -size_t error__pack - (const Error *message, - uint8_t *out); -size_t error__pack_to_buffer - (const Error *message, - ProtobufCBuffer *buffer); -Error * - error__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void error__free_unpacked - (Error *message, - ProtobufCAllocator *allocator); -/* SessionInitRequest methods */ -void session_init_request__init - (SessionInitRequest *message); -size_t session_init_request__get_packed_size - (const SessionInitRequest *message); -size_t session_init_request__pack - (const SessionInitRequest *message, - uint8_t *out); -size_t session_init_request__pack_to_buffer - (const SessionInitRequest *message, - ProtobufCBuffer *buffer); -SessionInitRequest * - session_init_request__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void session_init_request__free_unpacked - (SessionInitRequest *message, - ProtobufCAllocator *allocator); -/* SessionInitResponse methods */ -void session_init_response__init - (SessionInitResponse *message); -size_t session_init_response__get_packed_size - (const SessionInitResponse *message); -size_t session_init_response__pack - (const SessionInitResponse *message, - uint8_t *out); -size_t session_init_response__pack_to_buffer - (const SessionInitResponse *message, - ProtobufCBuffer *buffer); -SessionInitResponse * - session_init_response__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void session_init_response__free_unpacked - (SessionInitResponse *message, - ProtobufCAllocator *allocator); -/* InstrumentationDelivery methods */ -void instrumentation_delivery__init - (InstrumentationDelivery *message); -size_t instrumentation_delivery__get_packed_size - (const InstrumentationDelivery *message); -size_t instrumentation_delivery__pack - (const InstrumentationDelivery *message, - uint8_t *out); -size_t instrumentation_delivery__pack_to_buffer - (const InstrumentationDelivery *message, - ProtobufCBuffer *buffer); -InstrumentationDelivery * - instrumentation_delivery__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void instrumentation_delivery__free_unpacked - (InstrumentationDelivery *message, - ProtobufCAllocator *allocator); -/* InstrumentationAcceptConfirmation methods */ -void instrumentation_accept_confirmation__init - (InstrumentationAcceptConfirmation *message); -size_t instrumentation_accept_confirmation__get_packed_size - (const InstrumentationAcceptConfirmation *message); -size_t instrumentation_accept_confirmation__pack - (const InstrumentationAcceptConfirmation *message, - uint8_t *out); -size_t instrumentation_accept_confirmation__pack_to_buffer - (const InstrumentationAcceptConfirmation *message, - ProtobufCBuffer *buffer); -InstrumentationAcceptConfirmation * - instrumentation_accept_confirmation__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void instrumentation_accept_confirmation__free_unpacked - (InstrumentationAcceptConfirmation *message, - ProtobufCAllocator *allocator); -/* ClassInfo methods */ -void class_info__init - (ClassInfo *message); -size_t class_info__get_packed_size - (const ClassInfo *message); -size_t class_info__pack - (const ClassInfo *message, - uint8_t *out); -size_t class_info__pack_to_buffer - (const ClassInfo *message, - ProtobufCBuffer *buffer); -ClassInfo * - class_info__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void class_info__free_unpacked - (ClassInfo *message, - ProtobufCAllocator *allocator); -/* InstrumentClassRequest methods */ -void instrument_class_request__init - (InstrumentClassRequest *message); -size_t instrument_class_request__get_packed_size - (const InstrumentClassRequest *message); -size_t instrument_class_request__pack - (const InstrumentClassRequest *message, - uint8_t *out); -size_t instrument_class_request__pack_to_buffer - (const InstrumentClassRequest *message, - ProtobufCBuffer *buffer); -InstrumentClassRequest * - instrument_class_request__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void instrument_class_request__free_unpacked - (InstrumentClassRequest *message, - ProtobufCAllocator *allocator); -/* InstrumentClassResponse methods */ -void instrument_class_response__init - (InstrumentClassResponse *message); -size_t instrument_class_response__get_packed_size - (const InstrumentClassResponse *message); -size_t instrument_class_response__pack - (const InstrumentClassResponse *message, - uint8_t *out); -size_t instrument_class_response__pack_to_buffer - (const InstrumentClassResponse *message, - ProtobufCBuffer *buffer); -InstrumentClassResponse * - instrument_class_response__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void instrument_class_response__free_unpacked - (InstrumentClassResponse *message, - ProtobufCAllocator *allocator); -/* CloseConnection methods */ -void close_connection__init - (CloseConnection *message); -size_t close_connection__get_packed_size - (const CloseConnection *message); -size_t close_connection__pack - (const CloseConnection *message, - uint8_t *out); -size_t close_connection__pack_to_buffer - (const CloseConnection *message, - ProtobufCBuffer *buffer); -CloseConnection * - close_connection__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void close_connection__free_unpacked - (CloseConnection *message, - ProtobufCAllocator *allocator); -/* ClientMessage methods */ -void client_message__init - (ClientMessage *message); -size_t client_message__get_packed_size - (const ClientMessage *message); -size_t client_message__pack - (const ClientMessage *message, - uint8_t *out); -size_t client_message__pack_to_buffer - (const ClientMessage *message, - ProtobufCBuffer *buffer); -ClientMessage * - client_message__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void client_message__free_unpacked - (ClientMessage *message, - ProtobufCAllocator *allocator); -/* ServerMessage methods */ -void server_message__init - (ServerMessage *message); -size_t server_message__get_packed_size - (const ServerMessage *message); -size_t server_message__pack - (const ServerMessage *message, - uint8_t *out); -size_t server_message__pack_to_buffer - (const ServerMessage *message, - ProtobufCBuffer *buffer); -ServerMessage * - server_message__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data); -void server_message__free_unpacked - (ServerMessage *message, - ProtobufCAllocator *allocator); -/* --- per-message closures --- */ - -typedef void (*Error_Closure) - (const Error *message, - void *closure_data); -typedef void (*SessionInitRequest_Closure) - (const SessionInitRequest *message, - void *closure_data); -typedef void (*SessionInitResponse_Closure) - (const SessionInitResponse *message, - void *closure_data); -typedef void (*InstrumentationDelivery_Closure) - (const InstrumentationDelivery *message, - void *closure_data); -typedef void (*InstrumentationAcceptConfirmation_Closure) - (const InstrumentationAcceptConfirmation *message, - void *closure_data); -typedef void (*ClassInfo_Closure) - (const ClassInfo *message, - void *closure_data); -typedef void (*InstrumentClassRequest_Closure) - (const InstrumentClassRequest *message, - void *closure_data); -typedef void (*InstrumentClassResponse_Closure) - (const InstrumentClassResponse *message, - void *closure_data); -typedef void (*CloseConnection_Closure) - (const CloseConnection *message, - void *closure_data); -typedef void (*ClientMessage_Closure) - (const ClientMessage *message, - void *closure_data); -typedef void (*ServerMessage_Closure) - (const ServerMessage *message, - void *closure_data); - -/* --- services --- */ - - -/* --- descriptors --- */ - -extern const ProtobufCMessageDescriptor error__descriptor; -extern const ProtobufCMessageDescriptor session_init_request__descriptor; -extern const ProtobufCMessageDescriptor session_init_response__descriptor; -extern const ProtobufCMessageDescriptor instrumentation_delivery__descriptor; -extern const ProtobufCMessageDescriptor instrumentation_accept_confirmation__descriptor; -extern const ProtobufCMessageDescriptor class_info__descriptor; -extern const ProtobufCMessageDescriptor instrument_class_request__descriptor; -extern const ProtobufCMessageDescriptor instrument_class_response__descriptor; -extern const ProtobufCEnumDescriptor instrument_class_response__instrument_class_result__descriptor; -extern const ProtobufCMessageDescriptor close_connection__descriptor; -extern const ProtobufCEnumDescriptor close_connection__close_reason__descriptor; -extern const ProtobufCMessageDescriptor client_message__descriptor; -extern const ProtobufCMessageDescriptor server_message__descriptor; - -PROTOBUF_C__END_DECLS - - -#endif /* PROTOBUF_C_dislserver_2eproto__INCLUDED */ diff --git a/src-disl-agent/dislserver.pb-c.c b/src-disl-agent/protocol/disl.pb-c.c similarity index 51% rename from src-disl-agent/dislserver.pb-c.c rename to src-disl-agent/protocol/disl.pb-c.c index 1136f592..449ce33b 100644 --- a/src-disl-agent/dislserver.pb-c.c +++ b/src-disl-agent/protocol/disl.pb-c.c @@ -1,12 +1,12 @@ /* Generated by the protocol buffer compiler. DO NOT EDIT! */ -/* Generated from: dislserver.proto */ +/* Generated from: disl.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif -#include "dislserver.pb-c.h" +#include "disl.pb-c.h" void error__init (Error *message) { @@ -52,96 +52,6 @@ void error__free_unpacked assert(message->base.descriptor == &error__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -void session_init_request__init - (SessionInitRequest *message) -{ - static const SessionInitRequest init_value = SESSION_INIT_REQUEST__INIT; - *message = init_value; -} -size_t session_init_request__get_packed_size - (const SessionInitRequest *message) -{ - assert(message->base.descriptor == &session_init_request__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t session_init_request__pack - (const SessionInitRequest *message, - uint8_t *out) -{ - assert(message->base.descriptor == &session_init_request__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t session_init_request__pack_to_buffer - (const SessionInitRequest *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &session_init_request__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -SessionInitRequest * - session_init_request__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (SessionInitRequest *) - protobuf_c_message_unpack (&session_init_request__descriptor, - allocator, len, data); -} -void session_init_request__free_unpacked - (SessionInitRequest *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &session_init_request__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} -void session_init_response__init - (SessionInitResponse *message) -{ - static const SessionInitResponse init_value = SESSION_INIT_RESPONSE__INIT; - *message = init_value; -} -size_t session_init_response__get_packed_size - (const SessionInitResponse *message) -{ - assert(message->base.descriptor == &session_init_response__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t session_init_response__pack - (const SessionInitResponse *message, - uint8_t *out) -{ - assert(message->base.descriptor == &session_init_response__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t session_init_response__pack_to_buffer - (const SessionInitResponse *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &session_init_response__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -SessionInitResponse * - session_init_response__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (SessionInitResponse *) - protobuf_c_message_unpack (&session_init_response__descriptor, - allocator, len, data); -} -void session_init_response__free_unpacked - (SessionInitResponse *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &session_init_response__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} void instrumentation_delivery__init (InstrumentationDelivery *message) { @@ -232,49 +142,49 @@ void instrumentation_accept_confirmation__free_unpacked assert(message->base.descriptor == &instrumentation_accept_confirmation__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -void class_info__init - (ClassInfo *message) +void instr_class_info__init + (InstrClassInfo *message) { - static const ClassInfo init_value = CLASS_INFO__INIT; + static const InstrClassInfo init_value = INSTR_CLASS_INFO__INIT; *message = init_value; } -size_t class_info__get_packed_size - (const ClassInfo *message) +size_t instr_class_info__get_packed_size + (const InstrClassInfo *message) { - assert(message->base.descriptor == &class_info__descriptor); + assert(message->base.descriptor == &instr_class_info__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } -size_t class_info__pack - (const ClassInfo *message, +size_t instr_class_info__pack + (const InstrClassInfo *message, uint8_t *out) { - assert(message->base.descriptor == &class_info__descriptor); + assert(message->base.descriptor == &instr_class_info__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } -size_t class_info__pack_to_buffer - (const ClassInfo *message, +size_t instr_class_info__pack_to_buffer + (const InstrClassInfo *message, ProtobufCBuffer *buffer) { - assert(message->base.descriptor == &class_info__descriptor); + assert(message->base.descriptor == &instr_class_info__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } -ClassInfo * - class_info__unpack +InstrClassInfo * + instr_class_info__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { - return (ClassInfo *) - protobuf_c_message_unpack (&class_info__descriptor, + return (InstrClassInfo *) + protobuf_c_message_unpack (&instr_class_info__descriptor, allocator, len, data); } -void class_info__free_unpacked - (ClassInfo *message, +void instr_class_info__free_unpacked + (InstrClassInfo *message, ProtobufCAllocator *allocator) { if(!message) return; - assert(message->base.descriptor == &class_info__descriptor); + assert(message->base.descriptor == &instr_class_info__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } void instrument_class_request__init @@ -367,141 +277,6 @@ void instrument_class_response__free_unpacked assert(message->base.descriptor == &instrument_class_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } -void close_connection__init - (CloseConnection *message) -{ - static const CloseConnection init_value = CLOSE_CONNECTION__INIT; - *message = init_value; -} -size_t close_connection__get_packed_size - (const CloseConnection *message) -{ - assert(message->base.descriptor == &close_connection__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t close_connection__pack - (const CloseConnection *message, - uint8_t *out) -{ - assert(message->base.descriptor == &close_connection__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t close_connection__pack_to_buffer - (const CloseConnection *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &close_connection__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -CloseConnection * - close_connection__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (CloseConnection *) - protobuf_c_message_unpack (&close_connection__descriptor, - allocator, len, data); -} -void close_connection__free_unpacked - (CloseConnection *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &close_connection__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} -void client_message__init - (ClientMessage *message) -{ - static const ClientMessage init_value = CLIENT_MESSAGE__INIT; - *message = init_value; -} -size_t client_message__get_packed_size - (const ClientMessage *message) -{ - assert(message->base.descriptor == &client_message__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t client_message__pack - (const ClientMessage *message, - uint8_t *out) -{ - assert(message->base.descriptor == &client_message__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t client_message__pack_to_buffer - (const ClientMessage *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &client_message__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -ClientMessage * - client_message__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (ClientMessage *) - protobuf_c_message_unpack (&client_message__descriptor, - allocator, len, data); -} -void client_message__free_unpacked - (ClientMessage *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &client_message__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} -void server_message__init - (ServerMessage *message) -{ - static const ServerMessage init_value = SERVER_MESSAGE__INIT; - *message = init_value; -} -size_t server_message__get_packed_size - (const ServerMessage *message) -{ - assert(message->base.descriptor == &server_message__descriptor); - return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); -} -size_t server_message__pack - (const ServerMessage *message, - uint8_t *out) -{ - assert(message->base.descriptor == &server_message__descriptor); - return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); -} -size_t server_message__pack_to_buffer - (const ServerMessage *message, - ProtobufCBuffer *buffer) -{ - assert(message->base.descriptor == &server_message__descriptor); - return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); -} -ServerMessage * - server_message__unpack - (ProtobufCAllocator *allocator, - size_t len, - const uint8_t *data) -{ - return (ServerMessage *) - protobuf_c_message_unpack (&server_message__descriptor, - allocator, len, data); -} -void server_message__free_unpacked - (ServerMessage *message, - ProtobufCAllocator *allocator) -{ - if(!message) - return; - assert(message->base.descriptor == &server_message__descriptor); - protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); -} static const ProtobufCFieldDescriptor error__field_descriptors[2] = { { @@ -553,88 +328,6 @@ const ProtobufCMessageDescriptor error__descriptor = (ProtobufCMessageInit) error__init, NULL,NULL,NULL /* reserved[123] */ }; -#define session_init_request__field_descriptors NULL -#define session_init_request__field_indices_by_name NULL -#define session_init_request__number_ranges NULL -const ProtobufCMessageDescriptor session_init_request__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "SessionInitRequest", - "SessionInitRequest", - "SessionInitRequest", - "", - sizeof(SessionInitRequest), - 0, - session_init_request__field_descriptors, - session_init_request__field_indices_by_name, - 0, session_init_request__number_ranges, - (ProtobufCMessageInit) session_init_request__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor session_init_response__field_descriptors[3] = -{ - { - "accepted", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_BOOL, - 0, /* quantifier_offset */ - offsetof(SessionInitResponse, accepted), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "session_id", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(SessionInitResponse, session_id), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "errors", - 3, - PROTOBUF_C_LABEL_REPEATED, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(SessionInitResponse, n_errors), - offsetof(SessionInitResponse, errors), - &error__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned session_init_response__field_indices_by_name[] = { - 0, /* field[0] = accepted */ - 2, /* field[2] = errors */ - 1, /* field[1] = session_id */ -}; -static const ProtobufCIntRange session_init_response__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor session_init_response__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "SessionInitResponse", - "SessionInitResponse", - "SessionInitResponse", - "", - sizeof(SessionInitResponse), - 3, - session_init_response__field_descriptors, - session_init_response__field_indices_by_name, - 1, session_init_response__number_ranges, - (ProtobufCMessageInit) session_init_response__init, - NULL,NULL,NULL /* reserved[123] */ -}; static const ProtobufCFieldDescriptor instrumentation_delivery__field_descriptors[2] = { { @@ -737,7 +430,7 @@ const ProtobufCMessageDescriptor instrumentation_accept_confirmation__descriptor (ProtobufCMessageInit) instrumentation_accept_confirmation__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCFieldDescriptor class_info__field_descriptors[2] = +static const ProtobufCFieldDescriptor instr_class_info__field_descriptors[2] = { { "className", @@ -745,7 +438,7 @@ static const ProtobufCFieldDescriptor class_info__field_descriptors[2] = PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ - offsetof(ClassInfo, classname), + offsetof(InstrClassInfo, classname), NULL, &protobuf_c_empty_string, 0, /* flags */ @@ -757,35 +450,35 @@ static const ProtobufCFieldDescriptor class_info__field_descriptors[2] = PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_INT64, 0, /* quantifier_offset */ - offsetof(ClassInfo, classloadertag), + offsetof(InstrClassInfo, classloadertag), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; -static const unsigned class_info__field_indices_by_name[] = { +static const unsigned instr_class_info__field_indices_by_name[] = { 1, /* field[1] = classLoaderTag */ 0, /* field[0] = className */ }; -static const ProtobufCIntRange class_info__number_ranges[1 + 1] = +static const ProtobufCIntRange instr_class_info__number_ranges[1 + 1] = { { 1, 0 }, { 0, 2 } }; -const ProtobufCMessageDescriptor class_info__descriptor = +const ProtobufCMessageDescriptor instr_class_info__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "ClassInfo", - "ClassInfo", - "ClassInfo", + "InstrClassInfo", + "InstrClassInfo", + "InstrClassInfo", "", - sizeof(ClassInfo), + sizeof(InstrClassInfo), 2, - class_info__field_descriptors, - class_info__field_indices_by_name, - 1, class_info__number_ranges, - (ProtobufCMessageInit) class_info__init, + instr_class_info__field_descriptors, + instr_class_info__field_indices_by_name, + 1, instr_class_info__number_ranges, + (ProtobufCMessageInit) instr_class_info__init, NULL,NULL,NULL /* reserved[123] */ }; static const ProtobufCFieldDescriptor instrument_class_request__field_descriptors[4] = @@ -821,7 +514,7 @@ static const ProtobufCFieldDescriptor instrument_class_request__field_descriptor PROTOBUF_C_TYPE_MESSAGE, 0, /* quantifier_offset */ offsetof(InstrumentClassRequest, classinfo), - &class_info__descriptor, + &instr_class_info__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ @@ -833,7 +526,7 @@ static const ProtobufCFieldDescriptor instrument_class_request__field_descriptor PROTOBUF_C_TYPE_MESSAGE, offsetof(InstrumentClassRequest, n_supertypes), offsetof(InstrumentClassRequest, supertypes), - &class_info__descriptor, + &instr_class_info__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ @@ -960,221 +653,3 @@ const ProtobufCMessageDescriptor instrument_class_response__descriptor = (ProtobufCMessageInit) instrument_class_response__init, NULL,NULL,NULL /* reserved[123] */ }; -static const ProtobufCEnumValue close_connection__close_reason__enum_values_by_number[1] = -{ - { "FINISHED", "CLOSE_CONNECTION__CLOSE_REASON__FINISHED", 0 }, -}; -static const ProtobufCIntRange close_connection__close_reason__value_ranges[] = { -{0, 0},{0, 1} -}; -static const ProtobufCEnumValueIndex close_connection__close_reason__enum_values_by_name[1] = -{ - { "FINISHED", 0 }, -}; -const ProtobufCEnumDescriptor close_connection__close_reason__descriptor = -{ - PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, - "CloseConnection.CloseReason", - "CloseReason", - "CloseConnection__CloseReason", - "", - 1, - close_connection__close_reason__enum_values_by_number, - 1, - close_connection__close_reason__enum_values_by_name, - 1, - close_connection__close_reason__value_ranges, - NULL,NULL,NULL,NULL /* reserved[1234] */ -}; -static const ProtobufCFieldDescriptor close_connection__field_descriptors[1] = -{ - { - "reason", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_ENUM, - 0, /* quantifier_offset */ - offsetof(CloseConnection, reason), - &close_connection__close_reason__descriptor, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned close_connection__field_indices_by_name[] = { - 0, /* field[0] = reason */ -}; -static const ProtobufCIntRange close_connection__number_ranges[1 + 1] = -{ - { 2, 0 }, - { 0, 1 } -}; -const ProtobufCMessageDescriptor close_connection__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "CloseConnection", - "CloseConnection", - "CloseConnection", - "", - sizeof(CloseConnection), - 1, - close_connection__field_descriptors, - close_connection__field_indices_by_name, - 1, close_connection__number_ranges, - (ProtobufCMessageInit) close_connection__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor client_message__field_descriptors[5] = -{ - { - "session_id", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_INT32, - 0, /* quantifier_offset */ - offsetof(ClientMessage, session_id), - NULL, - NULL, - 0, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "session_init_request", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(ClientMessage, request_case), - offsetof(ClientMessage, session_init_request), - &session_init_request__descriptor, - NULL, - 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "instrumentation_delivery", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(ClientMessage, request_case), - offsetof(ClientMessage, instrumentation_delivery), - &instrumentation_delivery__descriptor, - NULL, - 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "instrument_class_request", - 4, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(ClientMessage, request_case), - offsetof(ClientMessage, instrument_class_request), - &instrument_class_request__descriptor, - NULL, - 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "close_connection", - 5, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(ClientMessage, request_case), - offsetof(ClientMessage, close_connection), - &close_connection__descriptor, - NULL, - 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned client_message__field_indices_by_name[] = { - 4, /* field[4] = close_connection */ - 3, /* field[3] = instrument_class_request */ - 2, /* field[2] = instrumentation_delivery */ - 0, /* field[0] = session_id */ - 1, /* field[1] = session_init_request */ -}; -static const ProtobufCIntRange client_message__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 5 } -}; -const ProtobufCMessageDescriptor client_message__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "ClientMessage", - "ClientMessage", - "ClientMessage", - "", - sizeof(ClientMessage), - 5, - client_message__field_descriptors, - client_message__field_indices_by_name, - 1, client_message__number_ranges, - (ProtobufCMessageInit) client_message__init, - NULL,NULL,NULL /* reserved[123] */ -}; -static const ProtobufCFieldDescriptor server_message__field_descriptors[3] = -{ - { - "session_init_response", - 1, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(ServerMessage, response_case), - offsetof(ServerMessage, session_init_response), - &session_init_response__descriptor, - NULL, - 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "instrumentation_accept_confirmation", - 2, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(ServerMessage, response_case), - offsetof(ServerMessage, instrumentation_accept_confirmation), - &instrumentation_accept_confirmation__descriptor, - NULL, - 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, - { - "instrument_class_response", - 3, - PROTOBUF_C_LABEL_NONE, - PROTOBUF_C_TYPE_MESSAGE, - offsetof(ServerMessage, response_case), - offsetof(ServerMessage, instrument_class_response), - &instrument_class_response__descriptor, - NULL, - 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ - 0,NULL,NULL /* reserved1,reserved2, etc */ - }, -}; -static const unsigned server_message__field_indices_by_name[] = { - 2, /* field[2] = instrument_class_response */ - 1, /* field[1] = instrumentation_accept_confirmation */ - 0, /* field[0] = session_init_response */ -}; -static const ProtobufCIntRange server_message__number_ranges[1 + 1] = -{ - { 1, 0 }, - { 0, 3 } -}; -const ProtobufCMessageDescriptor server_message__descriptor = -{ - PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, - "ServerMessage", - "ServerMessage", - "ServerMessage", - "", - sizeof(ServerMessage), - 3, - server_message__field_descriptors, - server_message__field_indices_by_name, - 1, server_message__number_ranges, - (ProtobufCMessageInit) server_message__init, - NULL,NULL,NULL /* reserved[123] */ -}; diff --git a/src-disl-agent/protocol/disl.pb-c.h b/src-disl-agent/protocol/disl.pb-c.h new file mode 100644 index 00000000..9fa73e02 --- /dev/null +++ b/src-disl-agent/protocol/disl.pb-c.h @@ -0,0 +1,276 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: disl.proto */ + +#ifndef PROTOBUF_C_disl_2eproto__INCLUDED +#define PROTOBUF_C_disl_2eproto__INCLUDED + +#include "protobuf-c.h" + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003001 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _Error Error; +typedef struct _InstrumentationDelivery InstrumentationDelivery; +typedef struct _InstrumentationAcceptConfirmation InstrumentationAcceptConfirmation; +typedef struct _InstrClassInfo InstrClassInfo; +typedef struct _InstrumentClassRequest InstrumentClassRequest; +typedef struct _InstrumentClassResponse InstrumentClassResponse; + + +/* --- enums --- */ + +typedef enum _InstrumentClassResponse__InstrumentClassResult { + INSTRUMENT_CLASS_RESPONSE__INSTRUMENT_CLASS_RESULT__CLASS_UNMODIFIED = 0, + INSTRUMENT_CLASS_RESPONSE__INSTRUMENT_CLASS_RESULT__CLASS_MODIFIED = 1, + INSTRUMENT_CLASS_RESPONSE__INSTRUMENT_CLASS_RESULT__ERROR = 3 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(INSTRUMENT_CLASS_RESPONSE__INSTRUMENT_CLASS_RESULT) +} InstrumentClassResponse__InstrumentClassResult; + +/* --- messages --- */ + +/* + * Common type to send errors + */ +struct _Error +{ + ProtobufCMessage base; + int32_t code; + char *message; +}; +#define ERROR__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&error__descriptor) \ + , 0, (char *)protobuf_c_empty_string } + + +/* + * When the client obtains the session_id, next step should be sending + * the instrumentation jar (or more of them) to the instrumentation server. + */ +struct _InstrumentationDelivery +{ + ProtobufCMessage base; + size_t n_sizes; + int32_t *sizes; + ProtobufCBinaryData instrumentation; +}; +#define INSTRUMENTATION_DELIVERY__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&instrumentation_delivery__descriptor) \ + , 0,NULL, {0,NULL} } + + +/* + * This is server response to InstrumentationDelivery message + */ +struct _InstrumentationAcceptConfirmation +{ + ProtobufCMessage base; + protobuf_c_boolean instrumentation_accepted; + size_t n_errors; + Error **errors; +}; +#define INSTRUMENTATION_ACCEPT_CONFIRMATION__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&instrumentation_accept_confirmation__descriptor) \ + , 0, 0,NULL } + + +struct _InstrClassInfo +{ + ProtobufCMessage base; + char *classname; + int64_t classloadertag; +}; +#define INSTR_CLASS_INFO__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&instr_class_info__descriptor) \ + , (char *)protobuf_c_empty_string, 0 } + + +/* + * This is the request to the instrumentaion server to instrument attached class. + */ +struct _InstrumentClassRequest +{ + ProtobufCMessage base; + int32_t flags; + InstrClassInfo *classinfo; + ProtobufCBinaryData classbytes; + size_t n_supertypes; + InstrClassInfo **supertypes; +}; +#define INSTRUMENT_CLASS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&instrument_class_request__descriptor) \ + , 0, NULL, {0,NULL}, 0,NULL } + + +/* + * Server response containing either the instrumented classbytes or error message + */ +struct _InstrumentClassResponse +{ + ProtobufCMessage base; + InstrumentClassResponse__InstrumentClassResult result; + char *errormessage; + ProtobufCBinaryData classbytes; +}; +#define INSTRUMENT_CLASS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&instrument_class_response__descriptor) \ + , INSTRUMENT_CLASS_RESPONSE__INSTRUMENT_CLASS_RESULT__CLASS_UNMODIFIED, (char *)protobuf_c_empty_string, {0,NULL} } + + +/* Error methods */ +void error__init + (Error *message); +size_t error__get_packed_size + (const Error *message); +size_t error__pack + (const Error *message, + uint8_t *out); +size_t error__pack_to_buffer + (const Error *message, + ProtobufCBuffer *buffer); +Error * + error__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void error__free_unpacked + (Error *message, + ProtobufCAllocator *allocator); +/* InstrumentationDelivery methods */ +void instrumentation_delivery__init + (InstrumentationDelivery *message); +size_t instrumentation_delivery__get_packed_size + (const InstrumentationDelivery *message); +size_t instrumentation_delivery__pack + (const InstrumentationDelivery *message, + uint8_t *out); +size_t instrumentation_delivery__pack_to_buffer + (const InstrumentationDelivery *message, + ProtobufCBuffer *buffer); +InstrumentationDelivery * + instrumentation_delivery__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void instrumentation_delivery__free_unpacked + (InstrumentationDelivery *message, + ProtobufCAllocator *allocator); +/* InstrumentationAcceptConfirmation methods */ +void instrumentation_accept_confirmation__init + (InstrumentationAcceptConfirmation *message); +size_t instrumentation_accept_confirmation__get_packed_size + (const InstrumentationAcceptConfirmation *message); +size_t instrumentation_accept_confirmation__pack + (const InstrumentationAcceptConfirmation *message, + uint8_t *out); +size_t instrumentation_accept_confirmation__pack_to_buffer + (const InstrumentationAcceptConfirmation *message, + ProtobufCBuffer *buffer); +InstrumentationAcceptConfirmation * + instrumentation_accept_confirmation__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void instrumentation_accept_confirmation__free_unpacked + (InstrumentationAcceptConfirmation *message, + ProtobufCAllocator *allocator); +/* InstrClassInfo methods */ +void instr_class_info__init + (InstrClassInfo *message); +size_t instr_class_info__get_packed_size + (const InstrClassInfo *message); +size_t instr_class_info__pack + (const InstrClassInfo *message, + uint8_t *out); +size_t instr_class_info__pack_to_buffer + (const InstrClassInfo *message, + ProtobufCBuffer *buffer); +InstrClassInfo * + instr_class_info__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void instr_class_info__free_unpacked + (InstrClassInfo *message, + ProtobufCAllocator *allocator); +/* InstrumentClassRequest methods */ +void instrument_class_request__init + (InstrumentClassRequest *message); +size_t instrument_class_request__get_packed_size + (const InstrumentClassRequest *message); +size_t instrument_class_request__pack + (const InstrumentClassRequest *message, + uint8_t *out); +size_t instrument_class_request__pack_to_buffer + (const InstrumentClassRequest *message, + ProtobufCBuffer *buffer); +InstrumentClassRequest * + instrument_class_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void instrument_class_request__free_unpacked + (InstrumentClassRequest *message, + ProtobufCAllocator *allocator); +/* InstrumentClassResponse methods */ +void instrument_class_response__init + (InstrumentClassResponse *message); +size_t instrument_class_response__get_packed_size + (const InstrumentClassResponse *message); +size_t instrument_class_response__pack + (const InstrumentClassResponse *message, + uint8_t *out); +size_t instrument_class_response__pack_to_buffer + (const InstrumentClassResponse *message, + ProtobufCBuffer *buffer); +InstrumentClassResponse * + instrument_class_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void instrument_class_response__free_unpacked + (InstrumentClassResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Error_Closure) + (const Error *message, + void *closure_data); +typedef void (*InstrumentationDelivery_Closure) + (const InstrumentationDelivery *message, + void *closure_data); +typedef void (*InstrumentationAcceptConfirmation_Closure) + (const InstrumentationAcceptConfirmation *message, + void *closure_data); +typedef void (*InstrClassInfo_Closure) + (const InstrClassInfo *message, + void *closure_data); +typedef void (*InstrumentClassRequest_Closure) + (const InstrumentClassRequest *message, + void *closure_data); +typedef void (*InstrumentClassResponse_Closure) + (const InstrumentClassResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor error__descriptor; +extern const ProtobufCMessageDescriptor instrumentation_delivery__descriptor; +extern const ProtobufCMessageDescriptor instrumentation_accept_confirmation__descriptor; +extern const ProtobufCMessageDescriptor instr_class_info__descriptor; +extern const ProtobufCMessageDescriptor instrument_class_request__descriptor; +extern const ProtobufCMessageDescriptor instrument_class_response__descriptor; +extern const ProtobufCEnumDescriptor instrument_class_response__instrument_class_result__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_disl_2eproto__INCLUDED */ diff --git a/src-disl-agent/protocol/main.pb-c.c b/src-disl-agent/protocol/main.pb-c.c new file mode 100644 index 00000000..cf490674 --- /dev/null +++ b/src-disl-agent/protocol/main.pb-c.c @@ -0,0 +1,652 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: main.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "main.pb-c.h" +void session_init_request__init + (SessionInitRequest *message) +{ + static const SessionInitRequest init_value = SESSION_INIT_REQUEST__INIT; + *message = init_value; +} +size_t session_init_request__get_packed_size + (const SessionInitRequest *message) +{ + assert(message->base.descriptor == &session_init_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t session_init_request__pack + (const SessionInitRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &session_init_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t session_init_request__pack_to_buffer + (const SessionInitRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &session_init_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +SessionInitRequest * + session_init_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (SessionInitRequest *) + protobuf_c_message_unpack (&session_init_request__descriptor, + allocator, len, data); +} +void session_init_request__free_unpacked + (SessionInitRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &session_init_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void session_init_response__init + (SessionInitResponse *message) +{ + static const SessionInitResponse init_value = SESSION_INIT_RESPONSE__INIT; + *message = init_value; +} +size_t session_init_response__get_packed_size + (const SessionInitResponse *message) +{ + assert(message->base.descriptor == &session_init_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t session_init_response__pack + (const SessionInitResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &session_init_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t session_init_response__pack_to_buffer + (const SessionInitResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &session_init_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +SessionInitResponse * + session_init_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (SessionInitResponse *) + protobuf_c_message_unpack (&session_init_response__descriptor, + allocator, len, data); +} +void session_init_response__free_unpacked + (SessionInitResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &session_init_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void close_connection__init + (CloseConnection *message) +{ + static const CloseConnection init_value = CLOSE_CONNECTION__INIT; + *message = init_value; +} +size_t close_connection__get_packed_size + (const CloseConnection *message) +{ + assert(message->base.descriptor == &close_connection__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t close_connection__pack + (const CloseConnection *message, + uint8_t *out) +{ + assert(message->base.descriptor == &close_connection__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t close_connection__pack_to_buffer + (const CloseConnection *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &close_connection__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +CloseConnection * + close_connection__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (CloseConnection *) + protobuf_c_message_unpack (&close_connection__descriptor, + allocator, len, data); +} +void close_connection__free_unpacked + (CloseConnection *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &close_connection__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void client_message__init + (ClientMessage *message) +{ + static const ClientMessage init_value = CLIENT_MESSAGE__INIT; + *message = init_value; +} +size_t client_message__get_packed_size + (const ClientMessage *message) +{ + assert(message->base.descriptor == &client_message__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t client_message__pack + (const ClientMessage *message, + uint8_t *out) +{ + assert(message->base.descriptor == &client_message__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t client_message__pack_to_buffer + (const ClientMessage *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &client_message__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ClientMessage * + client_message__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ClientMessage *) + protobuf_c_message_unpack (&client_message__descriptor, + allocator, len, data); +} +void client_message__free_unpacked + (ClientMessage *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &client_message__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +void server_message__init + (ServerMessage *message) +{ + static const ServerMessage init_value = SERVER_MESSAGE__INIT; + *message = init_value; +} +size_t server_message__get_packed_size + (const ServerMessage *message) +{ + assert(message->base.descriptor == &server_message__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t server_message__pack + (const ServerMessage *message, + uint8_t *out) +{ + assert(message->base.descriptor == &server_message__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t server_message__pack_to_buffer + (const ServerMessage *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &server_message__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ServerMessage * + server_message__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ServerMessage *) + protobuf_c_message_unpack (&server_message__descriptor, + allocator, len, data); +} +void server_message__free_unpacked + (ServerMessage *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &server_message__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define session_init_request__field_descriptors NULL +#define session_init_request__field_indices_by_name NULL +#define session_init_request__number_ranges NULL +const ProtobufCMessageDescriptor session_init_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "SessionInitRequest", + "SessionInitRequest", + "SessionInitRequest", + "", + sizeof(SessionInitRequest), + 0, + session_init_request__field_descriptors, + session_init_request__field_indices_by_name, + 0, session_init_request__number_ranges, + (ProtobufCMessageInit) session_init_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor session_init_response__field_descriptors[3] = +{ + { + "accepted", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_BOOL, + 0, /* quantifier_offset */ + offsetof(SessionInitResponse, accepted), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "session_id", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(SessionInitResponse, session_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "errors", + 3, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(SessionInitResponse, n_errors), + offsetof(SessionInitResponse, errors), + &error__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned session_init_response__field_indices_by_name[] = { + 0, /* field[0] = accepted */ + 2, /* field[2] = errors */ + 1, /* field[1] = session_id */ +}; +static const ProtobufCIntRange session_init_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor session_init_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "SessionInitResponse", + "SessionInitResponse", + "SessionInitResponse", + "", + sizeof(SessionInitResponse), + 3, + session_init_response__field_descriptors, + session_init_response__field_indices_by_name, + 1, session_init_response__number_ranges, + (ProtobufCMessageInit) session_init_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCEnumValue close_connection__close_reason__enum_values_by_number[1] = +{ + { "FINISHED", "CLOSE_CONNECTION__CLOSE_REASON__FINISHED", 0 }, +}; +static const ProtobufCIntRange close_connection__close_reason__value_ranges[] = { +{0, 0},{0, 1} +}; +static const ProtobufCEnumValueIndex close_connection__close_reason__enum_values_by_name[1] = +{ + { "FINISHED", 0 }, +}; +const ProtobufCEnumDescriptor close_connection__close_reason__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "CloseConnection.CloseReason", + "CloseReason", + "CloseConnection__CloseReason", + "", + 1, + close_connection__close_reason__enum_values_by_number, + 1, + close_connection__close_reason__enum_values_by_name, + 1, + close_connection__close_reason__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; +static const ProtobufCFieldDescriptor close_connection__field_descriptors[1] = +{ + { + "reason", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_ENUM, + 0, /* quantifier_offset */ + offsetof(CloseConnection, reason), + &close_connection__close_reason__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned close_connection__field_indices_by_name[] = { + 0, /* field[0] = reason */ +}; +static const ProtobufCIntRange close_connection__number_ranges[1 + 1] = +{ + { 2, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor close_connection__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "CloseConnection", + "CloseConnection", + "CloseConnection", + "", + sizeof(CloseConnection), + 1, + close_connection__field_descriptors, + close_connection__field_indices_by_name, + 1, close_connection__number_ranges, + (ProtobufCMessageInit) close_connection__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor client_message__field_descriptors[14] = +{ + { + "session_id", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_INT32, + 0, /* quantifier_offset */ + offsetof(ClientMessage, session_id), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "session_init_request", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ClientMessage, request_case), + offsetof(ClientMessage, session_init_request), + &session_init_request__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "instrumentation_delivery", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ClientMessage, request_case), + offsetof(ClientMessage, instrumentation_delivery), + &instrumentation_delivery__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "instrument_class_request", + 4, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ClientMessage, request_case), + offsetof(ClientMessage, instrument_class_request), + &instrument_class_request__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "close_connection", + 5, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ClientMessage, request_case), + offsetof(ClientMessage, close_connection), + &close_connection__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "analyze", + 10, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ClientMessage, request_case), + offsetof(ClientMessage, analyze), + &analyze__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "close", + 11, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ClientMessage, request_case), + offsetof(ClientMessage, close), + &close_connection__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "class_info", + 12, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ClientMessage, request_case), + offsetof(ClientMessage, class_info), + &class_info__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "new_class", + 13, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ClientMessage, request_case), + offsetof(ClientMessage, new_class), + &new_class__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "object_free", + 14, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ClientMessage, request_case), + offsetof(ClientMessage, object_free), + &object_free__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "register_analysis", + 15, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ClientMessage, request_case), + offsetof(ClientMessage, register_analysis), + ®ister_analysis__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "string_info", + 16, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ClientMessage, request_case), + offsetof(ClientMessage, string_info), + &string_info__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "thread_end", + 17, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ClientMessage, request_case), + offsetof(ClientMessage, thread_end), + &thread_end__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "thread_info", + 18, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ClientMessage, request_case), + offsetof(ClientMessage, thread_info), + &thread_info__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned client_message__field_indices_by_name[] = { + 5, /* field[5] = analyze */ + 7, /* field[7] = class_info */ + 6, /* field[6] = close */ + 4, /* field[4] = close_connection */ + 3, /* field[3] = instrument_class_request */ + 2, /* field[2] = instrumentation_delivery */ + 8, /* field[8] = new_class */ + 9, /* field[9] = object_free */ + 10, /* field[10] = register_analysis */ + 0, /* field[0] = session_id */ + 1, /* field[1] = session_init_request */ + 11, /* field[11] = string_info */ + 12, /* field[12] = thread_end */ + 13, /* field[13] = thread_info */ +}; +static const ProtobufCIntRange client_message__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 10, 5 }, + { 0, 14 } +}; +const ProtobufCMessageDescriptor client_message__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ClientMessage", + "ClientMessage", + "ClientMessage", + "", + sizeof(ClientMessage), + 14, + client_message__field_descriptors, + client_message__field_indices_by_name, + 2, client_message__number_ranges, + (ProtobufCMessageInit) client_message__init, + NULL,NULL,NULL /* reserved[123] */ +}; +static const ProtobufCFieldDescriptor server_message__field_descriptors[3] = +{ + { + "session_init_response", + 1, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ServerMessage, response_case), + offsetof(ServerMessage, session_init_response), + &session_init_response__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "instrumentation_accept_confirmation", + 2, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ServerMessage, response_case), + offsetof(ServerMessage, instrumentation_accept_confirmation), + &instrumentation_accept_confirmation__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "instrument_class_response", + 3, + PROTOBUF_C_LABEL_NONE, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(ServerMessage, response_case), + offsetof(ServerMessage, instrument_class_response), + &instrument_class_response__descriptor, + NULL, + 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned server_message__field_indices_by_name[] = { + 2, /* field[2] = instrument_class_response */ + 1, /* field[1] = instrumentation_accept_confirmation */ + 0, /* field[0] = session_init_response */ +}; +static const ProtobufCIntRange server_message__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor server_message__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ServerMessage", + "ServerMessage", + "ServerMessage", + "", + sizeof(ServerMessage), + 3, + server_message__field_descriptors, + server_message__field_indices_by_name, + 1, server_message__number_ranges, + (ProtobufCMessageInit) server_message__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/src-disl-agent/protocol/main.pb-c.h b/src-disl-agent/protocol/main.pb-c.h new file mode 100644 index 00000000..f23cad25 --- /dev/null +++ b/src-disl-agent/protocol/main.pb-c.h @@ -0,0 +1,289 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: main.proto */ + +#ifndef PROTOBUF_C_main_2eproto__INCLUDED +#define PROTOBUF_C_main_2eproto__INCLUDED + +#include "protobuf-c.h" + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003001 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "disl.pb-c.h" +#include "shvm.pb-c.h" + +typedef struct _SessionInitRequest SessionInitRequest; +typedef struct _SessionInitResponse SessionInitResponse; +typedef struct _CloseConnection CloseConnection; +typedef struct _ClientMessage ClientMessage; +typedef struct _ServerMessage ServerMessage; + + +/* --- enums --- */ + +typedef enum _CloseConnection__CloseReason { + CLOSE_CONNECTION__CLOSE_REASON__FINISHED = 0 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(CLOSE_CONNECTION__CLOSE_REASON) +} CloseConnection__CloseReason; + +/* --- messages --- */ + +/* + * Request server to initialize session + * This is sent as the clients first message + * May contain some additional data to describe the client (JVM version etc.) + */ +struct _SessionInitRequest +{ + ProtobufCMessage base; +}; +#define SESSION_INIT_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&session_init_request__descriptor) \ + } + + +/* + * This is the response to SessionInitRequest message + * The request could either be ACCEPTed or DENYed + * In the case of positive answer, there is also a session_id present + */ +struct _SessionInitResponse +{ + ProtobufCMessage base; + protobuf_c_boolean accepted; + int32_t session_id; + size_t n_errors; + Error **errors; +}; +#define SESSION_INIT_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&session_init_response__descriptor) \ + , 0, 0, 0,NULL } + + +/* + ** + * Notify server about closing connection + */ +struct _CloseConnection +{ + ProtobufCMessage base; + CloseConnection__CloseReason reason; +}; +#define CLOSE_CONNECTION__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&close_connection__descriptor) \ + , CLOSE_CONNECTION__CLOSE_REASON__FINISHED } + + +typedef enum { + CLIENT_MESSAGE__REQUEST__NOT_SET = 0, + CLIENT_MESSAGE__REQUEST_SESSION_INIT_REQUEST = 2, + CLIENT_MESSAGE__REQUEST_INSTRUMENTATION_DELIVERY = 3, + CLIENT_MESSAGE__REQUEST_INSTRUMENT_CLASS_REQUEST = 4, + CLIENT_MESSAGE__REQUEST_CLOSE_CONNECTION = 5, + CLIENT_MESSAGE__REQUEST_ANALYZE = 10, + CLIENT_MESSAGE__REQUEST_CLOSE = 11, + CLIENT_MESSAGE__REQUEST_CLASS_INFO = 12, + CLIENT_MESSAGE__REQUEST_NEW_CLASS = 13, + CLIENT_MESSAGE__REQUEST_OBJECT_FREE = 14, + CLIENT_MESSAGE__REQUEST_REGISTER_ANALYSIS = 15, + CLIENT_MESSAGE__REQUEST_STRING_INFO = 16, + CLIENT_MESSAGE__REQUEST_THREAD_END = 17, + CLIENT_MESSAGE__REQUEST_THREAD_INFO = 18 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(CLIENT_MESSAGE__REQUEST) +} ClientMessage__RequestCase; + +/* + * Pack together messages from client to simply distinguish them at the server side. + */ +struct _ClientMessage +{ + ProtobufCMessage base; + int32_t session_id; + ClientMessage__RequestCase request_case; + union { + /* + * / Instrumentation messages + */ + SessionInitRequest *session_init_request; + InstrumentationDelivery *instrumentation_delivery; + InstrumentClassRequest *instrument_class_request; + CloseConnection *close_connection; + /* + * / Analysis messages + */ + Analyze *analyze; + CloseConnection *close; + ClassInfo *class_info; + NewClass *new_class; + ObjectFree *object_free; + RegisterAnalysis *register_analysis; + StringInfo *string_info; + ThreadEnd *thread_end; + ThreadInfo *thread_info; + }; +}; +#define CLIENT_MESSAGE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&client_message__descriptor) \ + , 0, CLIENT_MESSAGE__REQUEST__NOT_SET, {0} } + + +typedef enum { + SERVER_MESSAGE__RESPONSE__NOT_SET = 0, + SERVER_MESSAGE__RESPONSE_SESSION_INIT_RESPONSE = 1, + SERVER_MESSAGE__RESPONSE_INSTRUMENTATION_ACCEPT_CONFIRMATION = 2, + SERVER_MESSAGE__RESPONSE_INSTRUMENT_CLASS_RESPONSE = 3 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(SERVER_MESSAGE__RESPONSE) +} ServerMessage__ResponseCase; + +/* + * Pack together messages from server to simply distinguish them at the client side. + */ +struct _ServerMessage +{ + ProtobufCMessage base; + ServerMessage__ResponseCase response_case; + union { + SessionInitResponse *session_init_response; + InstrumentationAcceptConfirmation *instrumentation_accept_confirmation; + InstrumentClassResponse *instrument_class_response; + }; +}; +#define SERVER_MESSAGE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&server_message__descriptor) \ + , SERVER_MESSAGE__RESPONSE__NOT_SET, {0} } + + +/* SessionInitRequest methods */ +void session_init_request__init + (SessionInitRequest *message); +size_t session_init_request__get_packed_size + (const SessionInitRequest *message); +size_t session_init_request__pack + (const SessionInitRequest *message, + uint8_t *out); +size_t session_init_request__pack_to_buffer + (const SessionInitRequest *message, + ProtobufCBuffer *buffer); +SessionInitRequest * + session_init_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void session_init_request__free_unpacked + (SessionInitRequest *message, + ProtobufCAllocator *allocator); +/* SessionInitResponse methods */ +void session_init_response__init + (SessionInitResponse *message); +size_t session_init_response__get_packed_size + (const SessionInitResponse *message); +size_t session_init_response__pack + (const SessionInitResponse *message, + uint8_t *out); +size_t session_init_response__pack_to_buffer + (const SessionInitResponse *message, + ProtobufCBuffer *buffer); +SessionInitResponse * + session_init_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void session_init_response__free_unpacked + (SessionInitResponse *message, + ProtobufCAllocator *allocator); +/* CloseConnection methods */ +void close_connection__init + (CloseConnection *message); +size_t close_connection__get_packed_size + (const CloseConnection *message); +size_t close_connection__pack + (const CloseConnection *message, + uint8_t *out); +size_t close_connection__pack_to_buffer + (const CloseConnection *message, + ProtobufCBuffer *buffer); +CloseConnection * + close_connection__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void close_co