diff --git a/.classpath b/.classpath deleted file mode 100644 index ccfa5e4f70f4795d5df236da7ae97ebbf25d5df5..0000000000000000000000000000000000000000 --- a/.classpath +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1a19f8f73c2bc8955ed89f3cec8d185f3c87c4c0..2c66b1fd7674bcc6940532b4ae64ee4dd8db1c3e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,3 +55,19 @@ test shvm: policy: pull script: - ant test-shvm + +test util: + stage: test + cache: + <<: *cache + policy: pull + script: + - ant test-util + +test server: + stage: test + cache: + <<: *cache + policy: pull + script: + - ant test-server diff --git a/.project b/.project deleted file mode 100644 index 587ce7f0c1bc146c5549138520c9edd78ac34525..0000000000000000000000000000000000000000 --- a/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - DiSL - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - diff --git a/build.properties b/build.properties index a0e29d5b1cc165bcbbaae9c9da9694189310a10f..fc87ae4fef9aae493e4859eec2d8b90ded7d6564 100644 --- a/build.properties +++ b/build.properties @@ -4,7 +4,7 @@ src.shvm=src-shvm src.shvm.agent=src-shvm-agent src.shvm.dispatch=src-shvm-dispatch src.test=src-test -src.util=src-util +src.util=util/src src.tools=src-tools src.doc=doc src.doc.jdoc=${src.doc}/javadoc @@ -35,12 +35,6 @@ dist.examples=examples dist.src= -# Directory for release archives -release=${out.dir}/release -release.bin.zip=${release}/disl-${disl.version}-bin.zip -release.bin.tar=${release}/disl-${disl.version}-bin.tar.bz2 -release.src.zip=${release}/disl-${disl.version}-src.zip -release.src.tar=${release}/disl-${disl.version}-src.tar.bz2 # Java versions for specific components target.disl.bypass=1.6 diff --git a/build.xml b/build.xml index fc52f0b87b9f384c590fbfef6539f12397ee92fc..ae7c25d8edf82c523326adef38189a4ac758a2f3 100644 --- a/build.xml +++ b/build.xml @@ -44,7 +44,7 @@ unconditional execution so that the download can be always forced. --> - + @@ -255,6 +255,10 @@ + + + + @@ -262,15 +266,15 @@ - + - - + + @@ -452,11 +456,7 @@ - - - - - + + + + + + + + + @@ -528,7 +537,7 @@ the necessary bytecode. --> - + @@ -636,12 +645,6 @@ - - - - - - @@ -661,7 +664,7 @@ - + @@ -778,11 +781,21 @@ - + + + + + + + + + + + - + @@ -803,9 +816,6 @@ - - - @@ -821,9 +831,9 @@ + - - + @@ -837,7 +847,6 @@ - @@ -921,23 +930,17 @@ source="1.8" > - + + + - - - - - - - - - + @@ -965,6 +968,7 @@ + @@ -973,16 +977,17 @@ - + - + + - + @@ -1007,7 +1012,7 @@ - + @@ -1022,6 +1027,7 @@ + @@ -1029,7 +1035,7 @@ - + @@ -1044,9 +1050,9 @@ - + - + @@ -1064,9 +1070,10 @@ - - - + + + + @@ -1085,6 +1092,7 @@ + diff --git a/common.properties b/common.properties index d80909d98680810a0ee1139b98f5028c30c0f71f..1536fcf166264713fad3fc476d98f07d408a20b6 100644 --- a/common.properties +++ b/common.properties @@ -6,6 +6,7 @@ lib.ant.dir=${lib.dir}/ant lib.disl.dir=${lib.dir}/disl lib.test.dir=${lib.dir}/test lib.devel.dir=${lib.dir}/devel +lib.cli.dir=${lib.dir}/cli build.artifacts.list = ${lib.dir}/artifacts.lst @@ -19,9 +20,14 @@ src.bin=bin src.disl.prefix=disl src.disl-server.prefix=disl-server src.shvm.prefix=shvm +src.shvm-server.prefix=shvm-server +src.util.prefix=util + +server.prefix=server disl.lib=disl-server.jar -shvm.lib=dislre-server.jar +shvm-server.lib=dislre-server.jar +server.lib=server.jar # Base output directory out.dir=output @@ -36,15 +42,27 @@ out.doc.jdoc=${out.dir}/jdoc # Directories for build artifacts build.dir=${out.dir}/build -build.util=${build.dir}/util + +build.util=${build.dir}/${src.util.prefix} build.tools=${build.dir}/tools 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=${build.dir}/${src.shvm.prefix} +build.shvm-server=${build.dir}/shvm-server build.shvm.dispatch=${build.shvm}-dispatch + +build.server=${build.dir}/${server.prefix} + build.test=${build.dir}/test build.doc.intro=${build.dir}/intro +# Directory for release archives +release=${out.dir}/release +release.bin.zip=${release}/disl-${disl.version}-bin.zip +release.bin.tar=${release}/disl-${disl.version}-bin.tar.bz2 +release.src.zip=${release}/disl-${disl.version}-src.zip +release.src.tar=${release}/disl-${disl.version}-src.tar.bz2 diff --git a/dependencies.properties b/dependencies.properties index ac435ff7461c482c4eaab7586d3909933a8ab940..cb78d1399478a9329bb1be6712cc193f964aa003 100644 --- a/dependencies.properties +++ b/dependencies.properties @@ -15,3 +15,7 @@ log4j.org=log4j protobuf.rev=3.0.1 protobuf.org=com.google.protobuf protobuf.lib=protobuf-lite + +jcommander.rev=1.72 +jcommander.org=com.beust +jcommander.lib=jcommander diff --git a/dependencies.xml b/dependencies.xml index ae775b6042bda420425b24e248b79ec71aee79c6..2d2acc4a9e4db9f83c09d1791df187dd3039d6c6 100644 --- a/dependencies.xml +++ b/dependencies.xml @@ -12,6 +12,7 @@ + @@ -29,6 +30,9 @@ + + + diff --git a/disl-server/.gitignore b/disl-server/.gitignore index 53752db253e3b4b5e3f17633c0f358b6d7cdd166..e7ce4b945409297d959106655c523aff4146d97e 100644 --- a/disl-server/.gitignore +++ b/disl-server/.gitignore @@ -1 +1,3 @@ output + +*.iml diff --git a/disl-server/build.xml b/disl-server/build.xml index f17bf914919e70147f4e65a0e9a373157d49f2ce..33e1733643186b86da8aa4ceefb16ab7dacccb93 100644 --- a/disl-server/build.xml +++ b/disl-server/build.xml @@ -21,7 +21,7 @@ - + @@ -82,7 +82,7 @@ - + diff --git a/shvm/src/src-proto/ch/usi/dag/dislreserver/Protocol.java b/disl-server/src/ch/usi/dag/dislre/protocol/Analysis.java similarity index 57% rename from shvm/src/src-proto/ch/usi/dag/dislreserver/Protocol.java rename to disl-server/src/ch/usi/dag/dislre/protocol/Analysis.java index 72501df5fa4e113fc41e3e82ecc7ce3fa7ccb786..e6a6f140c68dcf65dd09773f806402eade382a94 100644 --- a/shvm/src/src-proto/ch/usi/dag/dislreserver/Protocol.java +++ b/disl-server/src/ch/usi/dag/dislre/protocol/Analysis.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: shvm.proto -package ch.usi.dag.dislreserver; +package ch.usi.dag.dislre.protocol; -public final class Protocol { - private Protocol() {} +public final class Analysis { + private Analysis() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -144,60 +144,60 @@ public final class Protocol { return size; } - public static ch.usi.dag.dislreserver.Protocol.Analyze parseFrom( + 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.dislreserver.Protocol.Analyze parseFrom( + 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.dislreserver.Protocol.Analyze parseFrom(byte[] data) + 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.dislreserver.Protocol.Analyze parseFrom( + 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.dislreserver.Protocol.Analyze parseFrom(java.io.InputStream input) + 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.dislreserver.Protocol.Analyze parseFrom( + 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.dislreserver.Protocol.Analyze parseDelimitedFrom(java.io.InputStream input) + 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.dislreserver.Protocol.Analyze parseDelimitedFrom( + 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.dislreserver.Protocol.Analyze parseFrom( + 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.dislreserver.Protocol.Analyze parseFrom( + public static ch.usi.dag.dislre.protocol.Analysis.Analyze parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -208,7 +208,7 @@ public final class Protocol { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ch.usi.dag.dislreserver.Protocol.Analyze prototype) { + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.Analyze prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -217,10 +217,10 @@ public final class Protocol { */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislreserver.Protocol.Analyze, Builder> implements + ch.usi.dag.dislre.protocol.Analysis.Analyze, Builder> implements // @@protoc_insertion_point(builder_implements:Analyze) - ch.usi.dag.dislreserver.Protocol.AnalyzeOrBuilder { - // Construct using ch.usi.dag.dislreserver.Protocol.Analyze.newBuilder() + ch.usi.dag.dislre.protocol.Analysis.AnalyzeOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.Analyze.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @@ -302,7 +302,7 @@ public final class Protocol { Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislreserver.Protocol.Analyze(); + return new ch.usi.dag.dislre.protocol.Analysis.Analyze(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; @@ -315,7 +315,7 @@ public final class Protocol { } case VISIT: { Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislreserver.Protocol.Analyze other = (ch.usi.dag.dislreserver.Protocol.Analyze) arg1; + 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_, @@ -376,7 +376,7 @@ public final class Protocol { return DEFAULT_INSTANCE; } case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislreserver.Protocol.Analyze.class) { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.Analyze.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } @@ -390,13 +390,13 @@ public final class Protocol { // @@protoc_insertion_point(class_scope:Analyze) - private static final ch.usi.dag.dislreserver.Protocol.Analyze DEFAULT_INSTANCE; + 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.dislreserver.Protocol.Analyze getDefaultInstance() { + public static ch.usi.dag.dislre.protocol.Analysis.Analyze getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -407,206 +407,6 @@ public final class Protocol { } } - public interface CloseOrBuilder extends - // @@protoc_insertion_point(interface_extends:Close) - com.google.protobuf.MessageLiteOrBuilder { - } - /** - * Protobuf type {@code Close} - */ - public static final class Close extends - com.google.protobuf.GeneratedMessageLite< - Close, Close.Builder> implements - // @@protoc_insertion_point(message_implements:Close) - CloseOrBuilder { - private Close() { - } - 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.dislreserver.Protocol.Close 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.dislreserver.Protocol.Close 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.dislreserver.Protocol.Close parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislreserver.Protocol.Close 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.dislreserver.Protocol.Close parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislreserver.Protocol.Close 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.dislreserver.Protocol.Close parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislreserver.Protocol.Close 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.dislreserver.Protocol.Close parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislreserver.Protocol.Close 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.dislreserver.Protocol.Close prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - * Protobuf type {@code Close} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislreserver.Protocol.Close, Builder> implements - // @@protoc_insertion_point(builder_implements:Close) - ch.usi.dag.dislreserver.Protocol.CloseOrBuilder { - // Construct using ch.usi.dag.dislreserver.Protocol.Close.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - // @@protoc_insertion_point(builder_scope:Close) - } - 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.dislreserver.Protocol.Close(); - } - 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.dislreserver.Protocol.Close other = (ch.usi.dag.dislreserver.Protocol.Close) 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.dislreserver.Protocol.Close.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:Close) - private static final ch.usi.dag.dislreserver.Protocol.Close DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new Close(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static ch.usi.dag.dislreserver.Protocol.Close 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 { @@ -867,60 +667,60 @@ public final class Protocol { return size; } - public static ch.usi.dag.dislreserver.Protocol.ClassInfo parseFrom( + 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.dislreserver.Protocol.ClassInfo parseFrom( + 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.dislreserver.Protocol.ClassInfo parseFrom(byte[] data) + 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.dislreserver.Protocol.ClassInfo parseFrom( + 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.dislreserver.Protocol.ClassInfo parseFrom(java.io.InputStream input) + 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.dislreserver.Protocol.ClassInfo parseFrom( + 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.dislreserver.Protocol.ClassInfo parseDelimitedFrom(java.io.InputStream input) + 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.dislreserver.Protocol.ClassInfo parseDelimitedFrom( + 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.dislreserver.Protocol.ClassInfo parseFrom( + 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.dislreserver.Protocol.ClassInfo parseFrom( + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -931,7 +731,7 @@ public final class Protocol { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ch.usi.dag.dislreserver.Protocol.ClassInfo prototype) { + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.ClassInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -940,10 +740,10 @@ public final class Protocol { */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislreserver.Protocol.ClassInfo, Builder> implements + ch.usi.dag.dislre.protocol.Analysis.ClassInfo, Builder> implements // @@protoc_insertion_point(builder_implements:ClassInfo) - ch.usi.dag.dislreserver.Protocol.ClassInfoOrBuilder { - // Construct using ch.usi.dag.dislreserver.Protocol.ClassInfo.newBuilder() + ch.usi.dag.dislre.protocol.Analysis.ClassInfoOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.ClassInfo.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @@ -1105,7 +905,7 @@ public final class Protocol { Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislreserver.Protocol.ClassInfo(); + return new ch.usi.dag.dislre.protocol.Analysis.ClassInfo(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; @@ -1118,7 +918,7 @@ public final class Protocol { } case VISIT: { Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislreserver.Protocol.ClassInfo other = (ch.usi.dag.dislreserver.Protocol.ClassInfo) arg1; + 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_, @@ -1195,7 +995,7 @@ public final class Protocol { return DEFAULT_INSTANCE; } case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislreserver.Protocol.ClassInfo.class) { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.ClassInfo.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } @@ -1209,13 +1009,13 @@ public final class Protocol { // @@protoc_insertion_point(class_scope:ClassInfo) - private static final ch.usi.dag.dislreserver.Protocol.ClassInfo DEFAULT_INSTANCE; + 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.dislreserver.Protocol.ClassInfo getDefaultInstance() { + public static ch.usi.dag.dislre.protocol.Analysis.ClassInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1391,60 +1191,60 @@ public final class Protocol { return size; } - public static ch.usi.dag.dislreserver.Protocol.NewClass parseFrom( + 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.dislreserver.Protocol.NewClass parseFrom( + 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.dislreserver.Protocol.NewClass parseFrom(byte[] data) + 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.dislreserver.Protocol.NewClass parseFrom( + 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.dislreserver.Protocol.NewClass parseFrom(java.io.InputStream input) + 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.dislreserver.Protocol.NewClass parseFrom( + 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.dislreserver.Protocol.NewClass parseDelimitedFrom(java.io.InputStream input) + 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.dislreserver.Protocol.NewClass parseDelimitedFrom( + 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.dislreserver.Protocol.NewClass parseFrom( + 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.dislreserver.Protocol.NewClass parseFrom( + public static ch.usi.dag.dislre.protocol.Analysis.NewClass parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1455,7 +1255,7 @@ public final class Protocol { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ch.usi.dag.dislreserver.Protocol.NewClass prototype) { + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.NewClass prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -1464,10 +1264,10 @@ public final class Protocol { */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislreserver.Protocol.NewClass, Builder> implements + ch.usi.dag.dislre.protocol.Analysis.NewClass, Builder> implements // @@protoc_insertion_point(builder_implements:NewClass) - ch.usi.dag.dislreserver.Protocol.NewClassOrBuilder { - // Construct using ch.usi.dag.dislreserver.Protocol.NewClass.newBuilder() + ch.usi.dag.dislre.protocol.Analysis.NewClassOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.NewClass.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @@ -1566,7 +1366,7 @@ public final class Protocol { Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislreserver.Protocol.NewClass(); + return new ch.usi.dag.dislre.protocol.Analysis.NewClass(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; @@ -1579,7 +1379,7 @@ public final class Protocol { } case VISIT: { Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislreserver.Protocol.NewClass other = (ch.usi.dag.dislreserver.Protocol.NewClass) arg1; + 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_, @@ -1641,7 +1441,7 @@ public final class Protocol { return DEFAULT_INSTANCE; } case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislreserver.Protocol.NewClass.class) { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.NewClass.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } @@ -1655,13 +1455,13 @@ public final class Protocol { // @@protoc_insertion_point(class_scope:NewClass) - private static final ch.usi.dag.dislreserver.Protocol.NewClass DEFAULT_INSTANCE; + 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.dislreserver.Protocol.NewClass getDefaultInstance() { + public static ch.usi.dag.dislre.protocol.Analysis.NewClass getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -1773,60 +1573,60 @@ public final class Protocol { return size; } - public static ch.usi.dag.dislreserver.Protocol.ObjectFree parseFrom( + 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.dislreserver.Protocol.ObjectFree parseFrom( + 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.dislreserver.Protocol.ObjectFree parseFrom(byte[] data) + 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.dislreserver.Protocol.ObjectFree parseFrom( + 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.dislreserver.Protocol.ObjectFree parseFrom(java.io.InputStream input) + 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.dislreserver.Protocol.ObjectFree parseFrom( + 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.dislreserver.Protocol.ObjectFree parseDelimitedFrom(java.io.InputStream input) + 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.dislreserver.Protocol.ObjectFree parseDelimitedFrom( + 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.dislreserver.Protocol.ObjectFree parseFrom( + 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.dislreserver.Protocol.ObjectFree parseFrom( + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1837,7 +1637,7 @@ public final class Protocol { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ch.usi.dag.dislreserver.Protocol.ObjectFree prototype) { + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.ObjectFree prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -1846,10 +1646,10 @@ public final class Protocol { */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislreserver.Protocol.ObjectFree, Builder> implements + ch.usi.dag.dislre.protocol.Analysis.ObjectFree, Builder> implements // @@protoc_insertion_point(builder_implements:ObjectFree) - ch.usi.dag.dislreserver.Protocol.ObjectFreeOrBuilder { - // Construct using ch.usi.dag.dislreserver.Protocol.ObjectFree.newBuilder() + ch.usi.dag.dislre.protocol.Analysis.ObjectFreeOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.ObjectFree.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @@ -1908,7 +1708,7 @@ public final class Protocol { Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislreserver.Protocol.ObjectFree(); + return new ch.usi.dag.dislre.protocol.Analysis.ObjectFree(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; @@ -1921,7 +1721,7 @@ public final class Protocol { } case VISIT: { Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislreserver.Protocol.ObjectFree other = (ch.usi.dag.dislreserver.Protocol.ObjectFree) arg1; + 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_, @@ -1975,7 +1775,7 @@ public final class Protocol { return DEFAULT_INSTANCE; } case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislreserver.Protocol.ObjectFree.class) { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.ObjectFree.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } @@ -1989,13 +1789,13 @@ public final class Protocol { // @@protoc_insertion_point(class_scope:ObjectFree) - private static final ch.usi.dag.dislreserver.Protocol.ObjectFree DEFAULT_INSTANCE; + 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.dislreserver.Protocol.ObjectFree getDefaultInstance() { + public static ch.usi.dag.dislre.protocol.Analysis.ObjectFree getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2132,60 +1932,60 @@ public final class Protocol { return size; } - public static ch.usi.dag.dislreserver.Protocol.RegisterAnalysis parseFrom( + 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.dislreserver.Protocol.RegisterAnalysis parseFrom( + 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.dislreserver.Protocol.RegisterAnalysis parseFrom(byte[] data) + 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.dislreserver.Protocol.RegisterAnalysis parseFrom( + 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.dislreserver.Protocol.RegisterAnalysis parseFrom(java.io.InputStream input) + 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.dislreserver.Protocol.RegisterAnalysis parseFrom( + 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.dislreserver.Protocol.RegisterAnalysis parseDelimitedFrom(java.io.InputStream input) + 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.dislreserver.Protocol.RegisterAnalysis parseDelimitedFrom( + 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.dislreserver.Protocol.RegisterAnalysis parseFrom( + 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.dislreserver.Protocol.RegisterAnalysis parseFrom( + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2196,7 +1996,7 @@ public final class Protocol { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ch.usi.dag.dislreserver.Protocol.RegisterAnalysis prototype) { + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -2205,10 +2005,10 @@ public final class Protocol { */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislreserver.Protocol.RegisterAnalysis, Builder> implements + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis, Builder> implements // @@protoc_insertion_point(builder_implements:RegisterAnalysis) - ch.usi.dag.dislreserver.Protocol.RegisterAnalysisOrBuilder { - // Construct using ch.usi.dag.dislreserver.Protocol.RegisterAnalysis.newBuilder() + ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysisOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @@ -2284,7 +2084,7 @@ public final class Protocol { Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislreserver.Protocol.RegisterAnalysis(); + return new ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; @@ -2297,7 +2097,7 @@ public final class Protocol { } case VISIT: { Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislreserver.Protocol.RegisterAnalysis other = (ch.usi.dag.dislreserver.Protocol.RegisterAnalysis) arg1; + 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_, @@ -2352,7 +2152,7 @@ public final class Protocol { return DEFAULT_INSTANCE; } case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislreserver.Protocol.RegisterAnalysis.class) { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } @@ -2366,13 +2166,13 @@ public final class Protocol { // @@protoc_insertion_point(class_scope:RegisterAnalysis) - private static final ch.usi.dag.dislreserver.Protocol.RegisterAnalysis DEFAULT_INSTANCE; + 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.dislreserver.Protocol.RegisterAnalysis getDefaultInstance() { + public static ch.usi.dag.dislre.protocol.Analysis.RegisterAnalysis getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2509,60 +2309,60 @@ public final class Protocol { return size; } - public static ch.usi.dag.dislreserver.Protocol.StringInfo parseFrom( + 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.dislreserver.Protocol.StringInfo parseFrom( + 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.dislreserver.Protocol.StringInfo parseFrom(byte[] data) + 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.dislreserver.Protocol.StringInfo parseFrom( + 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.dislreserver.Protocol.StringInfo parseFrom(java.io.InputStream input) + 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.dislreserver.Protocol.StringInfo parseFrom( + 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.dislreserver.Protocol.StringInfo parseDelimitedFrom(java.io.InputStream input) + 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.dislreserver.Protocol.StringInfo parseDelimitedFrom( + 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.dislreserver.Protocol.StringInfo parseFrom( + 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.dislreserver.Protocol.StringInfo parseFrom( + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2573,7 +2373,7 @@ public final class Protocol { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ch.usi.dag.dislreserver.Protocol.StringInfo prototype) { + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.StringInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -2582,10 +2382,10 @@ public final class Protocol { */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislreserver.Protocol.StringInfo, Builder> implements + ch.usi.dag.dislre.protocol.Analysis.StringInfo, Builder> implements // @@protoc_insertion_point(builder_implements:StringInfo) - ch.usi.dag.dislreserver.Protocol.StringInfoOrBuilder { - // Construct using ch.usi.dag.dislreserver.Protocol.StringInfo.newBuilder() + ch.usi.dag.dislre.protocol.Analysis.StringInfoOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.StringInfo.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @@ -2661,7 +2461,7 @@ public final class Protocol { Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislreserver.Protocol.StringInfo(); + return new ch.usi.dag.dislre.protocol.Analysis.StringInfo(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; @@ -2674,7 +2474,7 @@ public final class Protocol { } case VISIT: { Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislreserver.Protocol.StringInfo other = (ch.usi.dag.dislreserver.Protocol.StringInfo) arg1; + 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_, @@ -2729,7 +2529,7 @@ public final class Protocol { return DEFAULT_INSTANCE; } case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislreserver.Protocol.StringInfo.class) { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.StringInfo.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } @@ -2743,13 +2543,13 @@ public final class Protocol { // @@protoc_insertion_point(class_scope:StringInfo) - private static final ch.usi.dag.dislreserver.Protocol.StringInfo DEFAULT_INSTANCE; + 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.dislreserver.Protocol.StringInfo getDefaultInstance() { + public static ch.usi.dag.dislre.protocol.Analysis.StringInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -2822,60 +2622,60 @@ public final class Protocol { return size; } - public static ch.usi.dag.dislreserver.Protocol.ThreadEnd parseFrom( + 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.dislreserver.Protocol.ThreadEnd parseFrom( + 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.dislreserver.Protocol.ThreadEnd parseFrom(byte[] data) + 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.dislreserver.Protocol.ThreadEnd parseFrom( + 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.dislreserver.Protocol.ThreadEnd parseFrom(java.io.InputStream input) + 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.dislreserver.Protocol.ThreadEnd parseFrom( + 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.dislreserver.Protocol.ThreadEnd parseDelimitedFrom(java.io.InputStream input) + 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.dislreserver.Protocol.ThreadEnd parseDelimitedFrom( + 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.dislreserver.Protocol.ThreadEnd parseFrom( + 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.dislreserver.Protocol.ThreadEnd parseFrom( + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2886,7 +2686,7 @@ public final class Protocol { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ch.usi.dag.dislreserver.Protocol.ThreadEnd prototype) { + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.ThreadEnd prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -2895,10 +2695,10 @@ public final class Protocol { */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislreserver.Protocol.ThreadEnd, Builder> implements + ch.usi.dag.dislre.protocol.Analysis.ThreadEnd, Builder> implements // @@protoc_insertion_point(builder_implements:ThreadEnd) - ch.usi.dag.dislreserver.Protocol.ThreadEndOrBuilder { - // Construct using ch.usi.dag.dislreserver.Protocol.ThreadEnd.newBuilder() + ch.usi.dag.dislre.protocol.Analysis.ThreadEndOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @@ -2934,7 +2734,7 @@ public final class Protocol { Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislreserver.Protocol.ThreadEnd(); + return new ch.usi.dag.dislre.protocol.Analysis.ThreadEnd(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; @@ -2947,7 +2747,7 @@ public final class Protocol { } case VISIT: { Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislreserver.Protocol.ThreadEnd other = (ch.usi.dag.dislreserver.Protocol.ThreadEnd) arg1; + 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 @@ -2994,7 +2794,7 @@ public final class Protocol { return DEFAULT_INSTANCE; } case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislreserver.Protocol.ThreadEnd.class) { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.ThreadEnd.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } @@ -3008,13 +2808,13 @@ public final class Protocol { // @@protoc_insertion_point(class_scope:ThreadEnd) - private static final ch.usi.dag.dislreserver.Protocol.ThreadEnd DEFAULT_INSTANCE; + 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.dislreserver.Protocol.ThreadEnd getDefaultInstance() { + public static ch.usi.dag.dislre.protocol.Analysis.ThreadEnd getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3186,60 +2986,60 @@ public final class Protocol { return size; } - public static ch.usi.dag.dislreserver.Protocol.ThreadInfo parseFrom( + 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.dislreserver.Protocol.ThreadInfo parseFrom( + 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.dislreserver.Protocol.ThreadInfo parseFrom(byte[] data) + 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.dislreserver.Protocol.ThreadInfo parseFrom( + 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.dislreserver.Protocol.ThreadInfo parseFrom(java.io.InputStream input) + 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.dislreserver.Protocol.ThreadInfo parseFrom( + 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.dislreserver.Protocol.ThreadInfo parseDelimitedFrom(java.io.InputStream input) + 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.dislreserver.Protocol.ThreadInfo parseDelimitedFrom( + 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.dislreserver.Protocol.ThreadInfo parseFrom( + 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.dislreserver.Protocol.ThreadInfo parseFrom( + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3250,7 +3050,7 @@ public final class Protocol { public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(ch.usi.dag.dislreserver.Protocol.ThreadInfo prototype) { + public static Builder newBuilder(ch.usi.dag.dislre.protocol.Analysis.ThreadInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -3259,10 +3059,10 @@ public final class Protocol { */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislreserver.Protocol.ThreadInfo, Builder> implements + ch.usi.dag.dislre.protocol.Analysis.ThreadInfo, Builder> implements // @@protoc_insertion_point(builder_implements:ThreadInfo) - ch.usi.dag.dislreserver.Protocol.ThreadInfoOrBuilder { - // Construct using ch.usi.dag.dislreserver.Protocol.ThreadInfo.newBuilder() + ch.usi.dag.dislre.protocol.Analysis.ThreadInfoOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @@ -3361,7 +3161,7 @@ public final class Protocol { Object arg0, Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { - return new ch.usi.dag.dislreserver.Protocol.ThreadInfo(); + return new ch.usi.dag.dislre.protocol.Analysis.ThreadInfo(); } case IS_INITIALIZED: { return DEFAULT_INSTANCE; @@ -3374,7 +3174,7 @@ public final class Protocol { } case VISIT: { Visitor visitor = (Visitor) arg0; - ch.usi.dag.dislreserver.Protocol.ThreadInfo other = (ch.usi.dag.dislreserver.Protocol.ThreadInfo) arg1; + 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_, @@ -3436,7 +3236,7 @@ public final class Protocol { return DEFAULT_INSTANCE; } case GET_PARSER: { - if (PARSER == null) { synchronized (ch.usi.dag.dislreserver.Protocol.ThreadInfo.class) { + if (PARSER == null) { synchronized (ch.usi.dag.dislre.protocol.Analysis.ThreadInfo.class) { if (PARSER == null) { PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); } @@ -3450,13 +3250,13 @@ public final class Protocol { // @@protoc_insertion_point(class_scope:ThreadInfo) - private static final ch.usi.dag.dislreserver.Protocol.ThreadInfo DEFAULT_INSTANCE; + 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.dislreserver.Protocol.ThreadInfo getDefaultInstance() { + public static ch.usi.dag.dislre.protocol.Analysis.ThreadInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @@ -3467,1474 +3267,6 @@ public final class Protocol { } } - public interface AgentMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:AgentMessage) - com.google.protobuf.MessageLiteOrBuilder { - - /** - * optional int32 ShvmID = 1; - */ - int getShvmID(); - - /** - * optional .Analyze analyze = 2; - */ - ch.usi.dag.dislreserver.Protocol.Analyze getAnalyze(); - - /** - * optional .Close close = 3; - */ - ch.usi.dag.dislreserver.Protocol.Close getClose(); - - /** - * optional .ClassInfo class_info = 4; - */ - ch.usi.dag.dislreserver.Protocol.ClassInfo getClassInfo(); - - /** - * optional .NewClass new_class = 5; - */ - ch.usi.dag.dislreserver.Protocol.NewClass getNewClass(); - - /** - * optional .ObjectFree object_free = 6; - */ - ch.usi.dag.dislreserver.Protocol.ObjectFree getObjectFree(); - - /** - * optional .RegisterAnalysis register_analysis = 7; - */ - ch.usi.dag.dislreserver.Protocol.RegisterAnalysis getRegisterAnalysis(); - - /** - * optional .StringInfo string_info = 8; - */ - ch.usi.dag.dislreserver.Protocol.StringInfo getStringInfo(); - - /** - * optional .ThreadEnd thread_end = 9; - */ - ch.usi.dag.dislreserver.Protocol.ThreadEnd getThreadEnd(); - - /** - * optional .ThreadInfo thread_info = 10; - */ - ch.usi.dag.dislreserver.Protocol.ThreadInfo getThreadInfo(); - - public ch.usi.dag.dislreserver.Protocol.AgentMessage.RequestCase getRequestCase(); - } - /** - *
-   * Pack together messages from client to simply distinguish them at the server side.
-   * 
- * - * Protobuf type {@code AgentMessage} - */ - public static final class AgentMessage extends - com.google.protobuf.GeneratedMessageLite< - AgentMessage, AgentMessage.Builder> implements - // @@protoc_insertion_point(message_implements:AgentMessage) - AgentMessageOrBuilder { - private AgentMessage() { - } - private int requestCase_ = 0; - private java.lang.Object request_; - public enum RequestCase - implements com.google.protobuf.Internal.EnumLite { - ANALYZE(2), - CLOSE(3), - CLASS_INFO(4), - NEW_CLASS(5), - OBJECT_FREE(6), - REGISTER_ANALYSIS(7), - STRING_INFO(8), - THREAD_END(9), - THREAD_INFO(10), - 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 ANALYZE; - case 3: return CLOSE; - case 4: return CLASS_INFO; - case 5: return NEW_CLASS; - case 6: return OBJECT_FREE; - case 7: return REGISTER_ANALYSIS; - case 8: return STRING_INFO; - case 9: return THREAD_END; - case 10: 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 SHVMID_FIELD_NUMBER = 1; - private int shvmID_; - /** - * optional int32 ShvmID = 1; - */ - public int getShvmID() { - return shvmID_; - } - /** - * optional int32 ShvmID = 1; - */ - private void setShvmID(int value) { - - shvmID_ = value; - } - /** - * optional int32 ShvmID = 1; - */ - private void clearShvmID() { - - shvmID_ = 0; - } - - public static final int ANALYZE_FIELD_NUMBER = 2; - /** - * optional .Analyze analyze = 2; - */ - public ch.usi.dag.dislreserver.Protocol.Analyze getAnalyze() { - if (requestCase_ == 2) { - return (ch.usi.dag.dislreserver.Protocol.Analyze) request_; - } - return ch.usi.dag.dislreserver.Protocol.Analyze.getDefaultInstance(); - } - /** - * optional .Analyze analyze = 2; - */ - private void setAnalyze(ch.usi.dag.dislreserver.Protocol.Analyze value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - requestCase_ = 2; - } - /** - * optional .Analyze analyze = 2; - */ - private void setAnalyze( - ch.usi.dag.dislreserver.Protocol.Analyze.Builder builderForValue) { - request_ = builderForValue.build(); - requestCase_ = 2; - } - /** - * optional .Analyze analyze = 2; - */ - private void mergeAnalyze(ch.usi.dag.dislreserver.Protocol.Analyze value) { - if (requestCase_ == 2 && - request_ != ch.usi.dag.dislreserver.Protocol.Analyze.getDefaultInstance()) { - request_ = ch.usi.dag.dislreserver.Protocol.Analyze.newBuilder((ch.usi.dag.dislreserver.Protocol.Analyze) request_) - .mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - requestCase_ = 2; - } - /** - * optional .Analyze analyze = 2; - */ - private void clearAnalyze() { - if (requestCase_ == 2) { - requestCase_ = 0; - request_ = null; - } - } - - public static final int CLOSE_FIELD_NUMBER = 3; - /** - * optional .Close close = 3; - */ - public ch.usi.dag.dislreserver.Protocol.Close getClose() { - if (requestCase_ == 3) { - return (ch.usi.dag.dislreserver.Protocol.Close) request_; - } - return ch.usi.dag.dislreserver.Protocol.Close.getDefaultInstance(); - } - /** - * optional .Close close = 3; - */ - private void setClose(ch.usi.dag.dislreserver.Protocol.Close value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - requestCase_ = 3; - } - /** - * optional .Close close = 3; - */ - private void setClose( - ch.usi.dag.dislreserver.Protocol.Close.Builder builderForValue) { - request_ = builderForValue.build(); - requestCase_ = 3; - } - /** - * optional .Close close = 3; - */ - private void mergeClose(ch.usi.dag.dislreserver.Protocol.Close value) { - if (requestCase_ == 3 && - request_ != ch.usi.dag.dislreserver.Protocol.Close.getDefaultInstance()) { - request_ = ch.usi.dag.dislreserver.Protocol.Close.newBuilder((ch.usi.dag.dislreserver.Protocol.Close) request_) - .mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - requestCase_ = 3; - } - /** - * optional .Close close = 3; - */ - private void clearClose() { - if (requestCase_ == 3) { - requestCase_ = 0; - request_ = null; - } - } - - public static final int CLASS_INFO_FIELD_NUMBER = 4; - /** - * optional .ClassInfo class_info = 4; - */ - public ch.usi.dag.dislreserver.Protocol.ClassInfo getClassInfo() { - if (requestCase_ == 4) { - return (ch.usi.dag.dislreserver.Protocol.ClassInfo) request_; - } - return ch.usi.dag.dislreserver.Protocol.ClassInfo.getDefaultInstance(); - } - /** - * optional .ClassInfo class_info = 4; - */ - private void setClassInfo(ch.usi.dag.dislreserver.Protocol.ClassInfo value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - requestCase_ = 4; - } - /** - * optional .ClassInfo class_info = 4; - */ - private void setClassInfo( - ch.usi.dag.dislreserver.Protocol.ClassInfo.Builder builderForValue) { - request_ = builderForValue.build(); - requestCase_ = 4; - } - /** - * optional .ClassInfo class_info = 4; - */ - private void mergeClassInfo(ch.usi.dag.dislreserver.Protocol.ClassInfo value) { - if (requestCase_ == 4 && - request_ != ch.usi.dag.dislreserver.Protocol.ClassInfo.getDefaultInstance()) { - request_ = ch.usi.dag.dislreserver.Protocol.ClassInfo.newBuilder((ch.usi.dag.dislreserver.Protocol.ClassInfo) request_) - .mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - requestCase_ = 4; - } - /** - * optional .ClassInfo class_info = 4; - */ - private void clearClassInfo() { - if (requestCase_ == 4) { - requestCase_ = 0; - request_ = null; - } - } - - public static final int NEW_CLASS_FIELD_NUMBER = 5; - /** - * optional .NewClass new_class = 5; - */ - public ch.usi.dag.dislreserver.Protocol.NewClass getNewClass() { - if (requestCase_ == 5) { - return (ch.usi.dag.dislreserver.Protocol.NewClass) request_; - } - return ch.usi.dag.dislreserver.Protocol.NewClass.getDefaultInstance(); - } - /** - * optional .NewClass new_class = 5; - */ - private void setNewClass(ch.usi.dag.dislreserver.Protocol.NewClass value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - requestCase_ = 5; - } - /** - * optional .NewClass new_class = 5; - */ - private void setNewClass( - ch.usi.dag.dislreserver.Protocol.NewClass.Builder builderForValue) { - request_ = builderForValue.build(); - requestCase_ = 5; - } - /** - * optional .NewClass new_class = 5; - */ - private void mergeNewClass(ch.usi.dag.dislreserver.Protocol.NewClass value) { - if (requestCase_ == 5 && - request_ != ch.usi.dag.dislreserver.Protocol.NewClass.getDefaultInstance()) { - request_ = ch.usi.dag.dislreserver.Protocol.NewClass.newBuilder((ch.usi.dag.dislreserver.Protocol.NewClass) request_) - .mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - requestCase_ = 5; - } - /** - * optional .NewClass new_class = 5; - */ - private void clearNewClass() { - if (requestCase_ == 5) { - requestCase_ = 0; - request_ = null; - } - } - - public static final int OBJECT_FREE_FIELD_NUMBER = 6; - /** - * optional .ObjectFree object_free = 6; - */ - public ch.usi.dag.dislreserver.Protocol.ObjectFree getObjectFree() { - if (requestCase_ == 6) { - return (ch.usi.dag.dislreserver.Protocol.ObjectFree) request_; - } - return ch.usi.dag.dislreserver.Protocol.ObjectFree.getDefaultInstance(); - } - /** - * optional .ObjectFree object_free = 6; - */ - private void setObjectFree(ch.usi.dag.dislreserver.Protocol.ObjectFree value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - requestCase_ = 6; - } - /** - * optional .ObjectFree object_free = 6; - */ - private void setObjectFree( - ch.usi.dag.dislreserver.Protocol.ObjectFree.Builder builderForValue) { - request_ = builderForValue.build(); - requestCase_ = 6; - } - /** - * optional .ObjectFree object_free = 6; - */ - private void mergeObjectFree(ch.usi.dag.dislreserver.Protocol.ObjectFree value) { - if (requestCase_ == 6 && - request_ != ch.usi.dag.dislreserver.Protocol.ObjectFree.getDefaultInstance()) { - request_ = ch.usi.dag.dislreserver.Protocol.ObjectFree.newBuilder((ch.usi.dag.dislreserver.Protocol.ObjectFree) request_) - .mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - requestCase_ = 6; - } - /** - * optional .ObjectFree object_free = 6; - */ - private void clearObjectFree() { - if (requestCase_ == 6) { - requestCase_ = 0; - request_ = null; - } - } - - public static final int REGISTER_ANALYSIS_FIELD_NUMBER = 7; - /** - * optional .RegisterAnalysis register_analysis = 7; - */ - public ch.usi.dag.dislreserver.Protocol.RegisterAnalysis getRegisterAnalysis() { - if (requestCase_ == 7) { - return (ch.usi.dag.dislreserver.Protocol.RegisterAnalysis) request_; - } - return ch.usi.dag.dislreserver.Protocol.RegisterAnalysis.getDefaultInstance(); - } - /** - * optional .RegisterAnalysis register_analysis = 7; - */ - private void setRegisterAnalysis(ch.usi.dag.dislreserver.Protocol.RegisterAnalysis value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - requestCase_ = 7; - } - /** - * optional .RegisterAnalysis register_analysis = 7; - */ - private void setRegisterAnalysis( - ch.usi.dag.dislreserver.Protocol.RegisterAnalysis.Builder builderForValue) { - request_ = builderForValue.build(); - requestCase_ = 7; - } - /** - * optional .RegisterAnalysis register_analysis = 7; - */ - private void mergeRegisterAnalysis(ch.usi.dag.dislreserver.Protocol.RegisterAnalysis value) { - if (requestCase_ == 7 && - request_ != ch.usi.dag.dislreserver.Protocol.RegisterAnalysis.getDefaultInstance()) { - request_ = ch.usi.dag.dislreserver.Protocol.RegisterAnalysis.newBuilder((ch.usi.dag.dislreserver.Protocol.RegisterAnalysis) request_) - .mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - requestCase_ = 7; - } - /** - * optional .RegisterAnalysis register_analysis = 7; - */ - private void clearRegisterAnalysis() { - if (requestCase_ == 7) { - requestCase_ = 0; - request_ = null; - } - } - - public static final int STRING_INFO_FIELD_NUMBER = 8; - /** - * optional .StringInfo string_info = 8; - */ - public ch.usi.dag.dislreserver.Protocol.StringInfo getStringInfo() { - if (requestCase_ == 8) { - return (ch.usi.dag.dislreserver.Protocol.StringInfo) request_; - } - return ch.usi.dag.dislreserver.Protocol.StringInfo.getDefaultInstance(); - } - /** - * optional .StringInfo string_info = 8; - */ - private void setStringInfo(ch.usi.dag.dislreserver.Protocol.StringInfo value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - requestCase_ = 8; - } - /** - * optional .StringInfo string_info = 8; - */ - private void setStringInfo( - ch.usi.dag.dislreserver.Protocol.StringInfo.Builder builderForValue) { - request_ = builderForValue.build(); - requestCase_ = 8; - } - /** - * optional .StringInfo string_info = 8; - */ - private void mergeStringInfo(ch.usi.dag.dislreserver.Protocol.StringInfo value) { - if (requestCase_ == 8 && - request_ != ch.usi.dag.dislreserver.Protocol.StringInfo.getDefaultInstance()) { - request_ = ch.usi.dag.dislreserver.Protocol.StringInfo.newBuilder((ch.usi.dag.dislreserver.Protocol.StringInfo) request_) - .mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - requestCase_ = 8; - } - /** - * optional .StringInfo string_info = 8; - */ - private void clearStringInfo() { - if (requestCase_ == 8) { - requestCase_ = 0; - request_ = null; - } - } - - public static final int THREAD_END_FIELD_NUMBER = 9; - /** - * optional .ThreadEnd thread_end = 9; - */ - public ch.usi.dag.dislreserver.Protocol.ThreadEnd getThreadEnd() { - if (requestCase_ == 9) { - return (ch.usi.dag.dislreserver.Protocol.ThreadEnd) request_; - } - return ch.usi.dag.dislreserver.Protocol.ThreadEnd.getDefaultInstance(); - } - /** - * optional .ThreadEnd thread_end = 9; - */ - private void setThreadEnd(ch.usi.dag.dislreserver.Protocol.ThreadEnd value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - requestCase_ = 9; - } - /** - * optional .ThreadEnd thread_end = 9; - */ - private void setThreadEnd( - ch.usi.dag.dislreserver.Protocol.ThreadEnd.Builder builderForValue) { - request_ = builderForValue.build(); - requestCase_ = 9; - } - /** - * optional .ThreadEnd thread_end = 9; - */ - private void mergeThreadEnd(ch.usi.dag.dislreserver.Protocol.ThreadEnd value) { - if (requestCase_ == 9 && - request_ != ch.usi.dag.dislreserver.Protocol.ThreadEnd.getDefaultInstance()) { - request_ = ch.usi.dag.dislreserver.Protocol.ThreadEnd.newBuilder((ch.usi.dag.dislreserver.Protocol.ThreadEnd) request_) - .mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - requestCase_ = 9; - } - /** - * optional .ThreadEnd thread_end = 9; - */ - private void clearThreadEnd() { - if (requestCase_ == 9) { - requestCase_ = 0; - request_ = null; - } - } - - public static final int THREAD_INFO_FIELD_NUMBER = 10; - /** - * optional .ThreadInfo thread_info = 10; - */ - public ch.usi.dag.dislreserver.Protocol.ThreadInfo getThreadInfo() { - if (requestCase_ == 10) { - return (ch.usi.dag.dislreserver.Protocol.ThreadInfo) request_; - } - return ch.usi.dag.dislreserver.Protocol.ThreadInfo.getDefaultInstance(); - } - /** - * optional .ThreadInfo thread_info = 10; - */ - private void setThreadInfo(ch.usi.dag.dislreserver.Protocol.ThreadInfo value) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - requestCase_ = 10; - } - /** - * optional .ThreadInfo thread_info = 10; - */ - private void setThreadInfo( - ch.usi.dag.dislreserver.Protocol.ThreadInfo.Builder builderForValue) { - request_ = builderForValue.build(); - requestCase_ = 10; - } - /** - * optional .ThreadInfo thread_info = 10; - */ - private void mergeThreadInfo(ch.usi.dag.dislreserver.Protocol.ThreadInfo value) { - if (requestCase_ == 10 && - request_ != ch.usi.dag.dislreserver.Protocol.ThreadInfo.getDefaultInstance()) { - request_ = ch.usi.dag.dislreserver.Protocol.ThreadInfo.newBuilder((ch.usi.dag.dislreserver.Protocol.ThreadInfo) request_) - .mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - requestCase_ = 10; - } - /** - * optional .ThreadInfo thread_info = 10; - */ - private void clearThreadInfo() { - if (requestCase_ == 10) { - requestCase_ = 0; - request_ = null; - } - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (shvmID_ != 0) { - output.writeInt32(1, shvmID_); - } - if (requestCase_ == 2) { - output.writeMessage(2, (ch.usi.dag.dislreserver.Protocol.Analyze) request_); - } - if (requestCase_ == 3) { - output.writeMessage(3, (ch.usi.dag.dislreserver.Protocol.Close) request_); - } - if (requestCase_ == 4) { - output.writeMessage(4, (ch.usi.dag.dislreserver.Protocol.ClassInfo) request_); - } - if (requestCase_ == 5) { - output.writeMessage(5, (ch.usi.dag.dislreserver.Protocol.NewClass) request_); - } - if (requestCase_ == 6) { - output.writeMessage(6, (ch.usi.dag.dislreserver.Protocol.ObjectFree) request_); - } - if (requestCase_ == 7) { - output.writeMessage(7, (ch.usi.dag.dislreserver.Protocol.RegisterAnalysis) request_); - } - if (requestCase_ == 8) { - output.writeMessage(8, (ch.usi.dag.dislreserver.Protocol.StringInfo) request_); - } - if (requestCase_ == 9) { - output.writeMessage(9, (ch.usi.dag.dislreserver.Protocol.ThreadEnd) request_); - } - if (requestCase_ == 10) { - output.writeMessage(10, (ch.usi.dag.dislreserver.Protocol.ThreadInfo) request_); - } - } - - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (shvmID_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, shvmID_); - } - if (requestCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (ch.usi.dag.dislreserver.Protocol.Analyze) request_); - } - if (requestCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (ch.usi.dag.dislreserver.Protocol.Close) request_); - } - if (requestCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (ch.usi.dag.dislreserver.Protocol.ClassInfo) request_); - } - if (requestCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (ch.usi.dag.dislreserver.Protocol.NewClass) request_); - } - if (requestCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (ch.usi.dag.dislreserver.Protocol.ObjectFree) request_); - } - if (requestCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (ch.usi.dag.dislreserver.Protocol.RegisterAnalysis) request_); - } - if (requestCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (ch.usi.dag.dislreserver.Protocol.StringInfo) request_); - } - if (requestCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (ch.usi.dag.dislreserver.Protocol.ThreadEnd) request_); - } - if (requestCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (ch.usi.dag.dislreserver.Protocol.ThreadInfo) request_); - } - memoizedSerializedSize = size; - return size; - } - - public static ch.usi.dag.dislreserver.Protocol.AgentMessage 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.dislreserver.Protocol.AgentMessage 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.dislreserver.Protocol.AgentMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, data); - } - public static ch.usi.dag.dislreserver.Protocol.AgentMessage 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.dislreserver.Protocol.AgentMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislreserver.Protocol.AgentMessage 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.dislreserver.Protocol.AgentMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return parseDelimitedFrom(DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislreserver.Protocol.AgentMessage 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.dislreserver.Protocol.AgentMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageLite.parseFrom( - DEFAULT_INSTANCE, input); - } - public static ch.usi.dag.dislreserver.Protocol.AgentMessage 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.dislreserver.Protocol.AgentMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - /** - *
-     * Pack together messages from client to simply distinguish them at the server side.
-     * 
- * - * Protobuf type {@code AgentMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - ch.usi.dag.dislreserver.Protocol.AgentMessage, Builder> implements - // @@protoc_insertion_point(builder_implements:AgentMessage) - ch.usi.dag.dislreserver.Protocol.AgentMessageOrBuilder { - // Construct using ch.usi.dag.dislreserver.Protocol.AgentMessage.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - public RequestCase - getRequestCase() { - return instance.getRequestCase(); - } - - public Builder clearRequest() { - copyOnWrite(); - instance.clearRequest(); - return this; - } - - - /** - * optional int32 ShvmID = 1; - */ - public int getShvmID() { - return instance.getShvmID(); - } - /** - * optional int32 ShvmID = 1; - */ - public Builder setShvmID(int value) { - copyOnWrite(); - instance.setShvmID(value); - return this; - } - /** - * optional int32 ShvmID = 1; - */ - public Builder clearShvmID() { - copyOnWrite(); - instance.clearShvmID(); - return this; - } - - /** - * optional .Analyze analyze = 2; - */ - public ch.usi.dag.dislreserver.Protocol.Analyze getAnalyze() { - return instance.getAnalyze(); - } - /** - * optional .Analyze analyze = 2; - */ - public Builder setAnalyze(ch.usi.dag.dislreserver.Protocol.Analyze value) { - copyOnWrite(); - instance.setAnalyze(value); - return this; - } - /** - * optional .Analyze analyze = 2; - */ - public Builder setAnalyze( - ch.usi.dag.dislreserver.Protocol.Analyze.Builder builderForValue) { - copyOnWrite(); - instance.setAnalyze(builderForValue); - return this; - } - /** - * optional .Analyze analyze = 2; - */ - public Builder mergeAnalyze(ch.usi.dag.dislreserver.Protocol.Analyze value) { - copyOnWrite(); - instance.mergeAnalyze(value); - return this; - } - /** - * optional .Analyze analyze = 2; - */ - public Builder clearAnalyze() { - copyOnWrite(); - instance.clearAnalyze(); - return this; - } - - /** - * optional .Close close = 3; - */ - public ch.usi.dag.dislreserver.Protocol.Close getClose() { - return instance.getClose(); - } - /** - * optional .Close close = 3; - */ - public Builder setClose(ch.usi.dag.dislreserver.Protocol.Close value) { - copyOnWrite(); - instance.setClose(value); - return this; - } - /** - * optional .Close close = 3; - */ - public Builder setClose( - ch.usi.dag.dislreserver.Protocol.Close.Builder builderForValue) { - copyOnWrite(); - instance.setClose(builderForValue); - return this; - } - /** - * optional .Close close = 3; - */ - public Builder mergeClose(ch.usi.dag.dislreserver.Protocol.Close value) { - copyOnWrite(); - instance.mergeClose(value); - return this; - } - /** - * optional .Close close = 3; - */ - public Builder clearClose() { - copyOnWrite(); - instance.clearClose(); - return this; - } - - /** - * optional .ClassInfo class_info = 4; - */ - public ch.usi.dag.dislreserver.Protocol.ClassInfo getClassInfo() { - return instance.getClassInfo(); - } - /** - * optional .ClassInfo class_info = 4; - */ - public Builder setClassInfo(ch.usi.dag.dislreserver.Protocol.ClassInfo value) { - copyOnWrite(); - instance.setClassInfo(value); - return this; - } - /** - * optional .ClassInfo class_info = 4; - */ - public Builder setClassInfo( - ch.usi.dag.dislreserver.Protocol.ClassInfo.Builder builderForValue) { - copyOnWrite(); - instance.setClassInfo(builderForValue); - return this; - } - /** - * optional .ClassInfo class_info = 4; - */ - public Builder mergeClassInfo(ch.usi.dag.dislreserver.Protocol.ClassInfo value) { - copyOnWrite(); - instance.mergeClassInfo(value); - return this; - } - /** - * optional .ClassInfo class_info = 4; - */ - public Builder clearClassInfo() { - copyOnWrite(); - instance.clearClassInfo(); - return this; - } - - /** - * optional .NewClass new_class = 5; - */ - public ch.usi.dag.dislreserver.Protocol.NewClass getNewClass() { - return instance.getNewClass(); - } - /** - * optional .NewClass new_class = 5; - */ - public Builder setNewClass(ch.usi.dag.dislreserver.Protocol.NewClass value) { - copyOnWrite(); - instance.setNewClass(value); - return this; - } - /** - * optional .NewClass new_class = 5; - */ - public Builder setNewClass( - ch.usi.dag.dislreserver.Protocol.NewClass.Builder builderForValue) { - copyOnWrite(); - instance.setNewClass(builderForValue); - return this; - } - /** - * optional .NewClass new_class = 5; - */ - public Builder mergeNewClass(ch.usi.dag.dislreserver.Protocol.NewClass value) { - copyOnWrite(); - instance.mergeNewClass(value); - return this; - } - /** - * optional .NewClass new_class = 5; - */ - public Builder clearNewClass() { - copyOnWrite(); - instance.clearNewClass(); - return this; - } - - /** - * optional .ObjectFree object_free = 6; - */ - public ch.usi.dag.dislreserver.Protocol.ObjectFree getObjectFree() { - return instance.getObjectFree(); - } - /** - * optional .ObjectFree object_free = 6; - */ - public Builder setObjectFree(ch.usi.dag.dislreserver.Protocol.ObjectFree value) { - copyOnWrite(); - instance.setObjectFree(value); - return this; - } - /** - * optional .ObjectFree object_free = 6; - */ - public Builder setObjectFree( - ch.usi.dag.dislreserver.Protocol.ObjectFree.Builder builderForValue) { - copyOnWrite(); - instance.setObjectFree(builderForValue); - return this; - } - /** - * optional .ObjectFree object_free = 6; - */ - public Builder mergeObjectFree(ch.usi.dag.dislreserver.Protocol.ObjectFree value) { - copyOnWrite(); - instance.mergeObjectFree(value); - return this; - } - /** - * optional .ObjectFree object_free = 6; - */ - public Builder clearObjectFree() { - copyOnWrite(); - instance.clearObjectFree(); - return this; - } - - /** - * optional .RegisterAnalysis register_analysis = 7; - */ - public ch.usi.dag.dislreserver.Protocol.RegisterAnalysis getRegisterAnalysis() { - return instance.getRegisterAnalysis(); - } - /** - * optional .RegisterAnalysis register_analysis = 7; - */ - public Builder setRegisterAnalysis(ch.usi.dag.dislreserver.Protocol.RegisterAnalysis value) { - copyOnWrite(); - instance.setRegisterAnalysis(value); - return this; - } - /** - * optional .RegisterAnalysis register_analysis = 7; - */ - public Builder setRegisterAnalysis( - ch.usi.dag.dislreserver.Protocol.RegisterAnalysis.Builder builderForValue) { - copyOnWrite(); - instance.setRegisterAnalysis(builderForValue); - return this; - } - /** - * optional .RegisterAnalysis register_analysis = 7; - */ - public Builder mergeRegisterAnalysis(ch.usi.dag.dislreserver.Protocol.RegisterAnalysis value) { - copyOnWrite(); - instance.mergeRegisterAnalysis(value); - return this; - } - /** - * optional .RegisterAnalysis register_analysis = 7; - */ - public Builder clearRegisterAnalysis() { - copyOnWrite(); - instance.clearRegisterAnalysis(); - return this; - } - - /** - * optional .StringInfo string_info = 8; - */ - public ch.usi.dag.dislreserver.Protocol.StringInfo getStringInfo() { - return instance.getStringInfo(); - } - /** - * optional .StringInfo string_info = 8; - */ - public Builder setStringInfo(ch.usi.dag.dislreserver.Protocol.StringInfo value) { - copyOnWrite(); - instance.setStringInfo(value); - return this; - } - /** - * optional .StringInfo string_info = 8; - */ - public Builder setStringInfo( - ch.usi.dag.dislreserver.Protocol.StringInfo.Builder builderForValue) { - copyOnWrite(); - instance.setStringInfo(builderForValue); - return this; - } - /** - * optional .StringInfo string_info = 8; - */ - public Builder mergeStringInfo(ch.usi.dag.dislreserver.Protocol.StringInfo value) { - copyOnWrite(); - instance.mergeStringInfo(value); - return this; - } - /** - * optional .StringInfo string_info = 8; - */ - public Builder clearStringInfo() { - copyOnWrite(); - instance.clearStringInfo(); - return this; - } - - /** - * optional .ThreadEnd thread_end = 9; - */ - public ch.usi.dag.dislreserver.Protocol.ThreadEnd getThreadEnd() { - return instance.getThreadEnd(); - } - /** - * optional .ThreadEnd thread_end = 9; - */ - public Builder setThreadEnd(ch.usi.dag.dislreserver.Protocol.ThreadEnd value) { - copyOnWrite(); - instance.setThreadEnd(value); - return this; - } - /** - * optional .ThreadEnd thread_end = 9; - */ - public Builder setThreadEnd( - ch.usi.dag.dislreserver.Protocol.ThreadEnd.Builder builderForValue) { - copyOnWrite(); - instance.setThreadEnd(builderForValue); - return this; - } - /** - * optional .ThreadEnd thread_end = 9; - */ - public Builder mergeThreadEnd(ch.usi.dag.dislreserver.Protocol.ThreadEnd value) { - copyOnWrite(); - instance.mergeThreadEnd(value); - return this; - } - /** - * optional .ThreadEnd thread_end = 9; - */ - public Builder clearThreadEnd() { - copyOnWrite(); - instance.clearThreadEnd(); - return this; - } - - /** - * optional .ThreadInfo thread_info = 10; - */ - public ch.usi.dag.dislreserver.Protocol.ThreadInfo getThreadInfo() { - return instance.getThreadInfo(); - } - /** - * optional .ThreadInfo thread_info = 10; - */ - public Builder setThreadInfo(ch.usi.dag.dislreserver.Protocol.ThreadInfo value) { - copyOnWrite(); - instance.setThreadInfo(value); - return this; - } - /** - * optional .ThreadInfo thread_info = 10; - */ - public Builder setThreadInfo( - ch.usi.dag.dislreserver.Protocol.ThreadInfo.Builder builderForValue) { - copyOnWrite(); - instance.setThreadInfo(builderForValue); - return this; - } - /** - * optional .ThreadInfo thread_info = 10; - */ - public Builder mergeThreadInfo(ch.usi.dag.dislreserver.Protocol.ThreadInfo value) { - copyOnWrite(); - instance.mergeThreadInfo(value); - return this; - } - /** - * optional .ThreadInfo thread_info = 10; - */ - public Builder clearThreadInfo() { - copyOnWrite(); - instance.clearThreadInfo(); - return this; - } - - // @@protoc_insertion_point(builder_scope:AgentMessage) - } - 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.dislreserver.Protocol.AgentMessage(); - } - 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.dislreserver.Protocol.AgentMessage other = (ch.usi.dag.dislreserver.Protocol.AgentMessage) arg1; - shvmID_ = visitor.visitInt(shvmID_ != 0, shvmID_, - other.shvmID_ != 0, other.shvmID_); - switch (other.getRequestCase()) { - case ANALYZE: { - request_ = visitor.visitOneofMessage( - requestCase_ == 2, - request_, - other.request_); - break; - } - case CLOSE: { - request_ = visitor.visitOneofMessage( - requestCase_ == 3, - request_, - other.request_); - break; - } - case CLASS_INFO: { - request_ = visitor.visitOneofMessage( - requestCase_ == 4, - request_, - other.request_); - break; - } - case NEW_CLASS: { - request_ = visitor.visitOneofMessage( - requestCase_ == 5, - request_, - other.request_); - break; - } - case OBJECT_FREE: { - request_ = visitor.visitOneofMessage( - requestCase_ == 6, - request_, - other.request_); - break; - } - case REGISTER_ANALYSIS: { - request_ = visitor.visitOneofMessage( - requestCase_ == 7, - request_, - other.request_); - break; - } - case STRING_INFO: { - request_ = visitor.visitOneofMessage( - requestCase_ == 8, - request_, - other.request_); - break; - } - case THREAD_END: { - request_ = visitor.visitOneofMessage( - requestCase_ == 9, - request_, - other.request_); - break; - } - case THREAD_INFO: { - request_ = visitor.visitOneofMessage( - requestCase_ == 10, - 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: { - - shvmID_ = input.readInt32(); - break; - } - case 18: { - ch.usi.dag.dislreserver.Protocol.Analyze.Builder subBuilder = null; - if (requestCase_ == 2) { - subBuilder = ((ch.usi.dag.dislreserver.Protocol.Analyze) request_).toBuilder(); - } - request_ = - input.readMessage(ch.usi.dag.dislreserver.Protocol.Analyze.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislreserver.Protocol.Analyze) request_); - request_ = subBuilder.buildPartial(); - } - requestCase_ = 2; - break; - } - case 26: { - ch.usi.dag.dislreserver.Protocol.Close.Builder subBuilder = null; - if (requestCase_ == 3) { - subBuilder = ((ch.usi.dag.dislreserver.Protocol.Close) request_).toBuilder(); - } - request_ = - input.readMessage(ch.usi.dag.dislreserver.Protocol.Close.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislreserver.Protocol.Close) request_); - request_ = subBuilder.buildPartial(); - } - requestCase_ = 3; - break; - } - case 34: { - ch.usi.dag.dislreserver.Protocol.ClassInfo.Builder subBuilder = null; - if (requestCase_ == 4) { - subBuilder = ((ch.usi.dag.dislreserver.Protocol.ClassInfo) request_).toBuilder(); - } - request_ = - input.readMessage(ch.usi.dag.dislreserver.Protocol.ClassInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislreserver.Protocol.ClassInfo) request_); - request_ = subBuilder.buildPartial(); - } - requestCase_ = 4; - break; - } - case 42: { - ch.usi.dag.dislreserver.Protocol.NewClass.Builder subBuilder = null; - if (requestCase_ == 5) { - subBuilder = ((ch.usi.dag.dislreserver.Protocol.NewClass) request_).toBuilder(); - } - request_ = - input.readMessage(ch.usi.dag.dislreserver.Protocol.NewClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislreserver.Protocol.NewClass) request_); - request_ = subBuilder.buildPartial(); - } - requestCase_ = 5; - break; - } - case 50: { - ch.usi.dag.dislreserver.Protocol.ObjectFree.Builder subBuilder = null; - if (requestCase_ == 6) { - subBuilder = ((ch.usi.dag.dislreserver.Protocol.ObjectFree) request_).toBuilder(); - } - request_ = - input.readMessage(ch.usi.dag.dislreserver.Protocol.ObjectFree.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislreserver.Protocol.ObjectFree) request_); - request_ = subBuilder.buildPartial(); - } - requestCase_ = 6; - break; - } - case 58: { - ch.usi.dag.dislreserver.Protocol.RegisterAnalysis.Builder subBuilder = null; - if (requestCase_ == 7) { - subBuilder = ((ch.usi.dag.dislreserver.Protocol.RegisterAnalysis) request_).toBuilder(); - } - request_ = - input.readMessage(ch.usi.dag.dislreserver.Protocol.RegisterAnalysis.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislreserver.Protocol.RegisterAnalysis) request_); - request_ = subBuilder.buildPartial(); - } - requestCase_ = 7; - break; - } - case 66: { - ch.usi.dag.dislreserver.Protocol.StringInfo.Builder subBuilder = null; - if (requestCase_ == 8) { - subBuilder = ((ch.usi.dag.dislreserver.Protocol.StringInfo) request_).toBuilder(); - } - request_ = - input.readMessage(ch.usi.dag.dislreserver.Protocol.StringInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislreserver.Protocol.StringInfo) request_); - request_ = subBuilder.buildPartial(); - } - requestCase_ = 8; - break; - } - case 74: { - ch.usi.dag.dislreserver.Protocol.ThreadEnd.Builder subBuilder = null; - if (requestCase_ == 9) { - subBuilder = ((ch.usi.dag.dislreserver.Protocol.ThreadEnd) request_).toBuilder(); - } - request_ = - input.readMessage(ch.usi.dag.dislreserver.Protocol.ThreadEnd.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislreserver.Protocol.ThreadEnd) request_); - request_ = subBuilder.buildPartial(); - } - requestCase_ = 9; - break; - } - case 82: { - ch.usi.dag.dislreserver.Protocol.ThreadInfo.Builder subBuilder = null; - if (requestCase_ == 10) { - subBuilder = ((ch.usi.dag.dislreserver.Protocol.ThreadInfo) request_).toBuilder(); - } - request_ = - input.readMessage(ch.usi.dag.dislreserver.Protocol.ThreadInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((ch.usi.dag.dislreserver.Protocol.ThreadInfo) request_); - request_ = subBuilder.buildPartial(); - } - requestCase_ = 10; - 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.dislreserver.Protocol.AgentMessage.class) { - if (PARSER == null) { - PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE); - } - } - } - return PARSER; - } - } - throw new UnsupportedOperationException(); - } - - - // @@protoc_insertion_point(class_scope:AgentMessage) - private static final ch.usi.dag.dislreserver.Protocol.AgentMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new AgentMessage(); - DEFAULT_INSTANCE.makeImmutable(); - } - - public static ch.usi.dag.dislreserver.Protocol.AgentMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static volatile com.google.protobuf.Parser PARSER; - - public static com.google.protobuf.Parser parser() { - return DEFAULT_INSTANCE.getParserForType(); - } - } - static { } 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 0000000000000000000000000000000000000000..930cc96f18b0b0eaf848b06bfcdaee65dfcf91f4 --- /dev/null +++ b/disl-server/src/ch/usi/dag/dislre/protocol/DiSL.java @@ -0,0 +1,2395 @@ +// 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 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(); + } + /** + *
+   * 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() { + } + 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 void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (instrumentationAccepted_ != false) { + output.writeBool(1, instrumentationAccepted_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (instrumentationAccepted_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, instrumentationAccepted_); + } + 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; + } + + // @@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: { + 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_); + 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: { + + instrumentationAccepted_ = 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.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 0000000000000000000000000000000000000000..9815478045e63d2ec8c313a19bdf7dd610e662e3 --- /dev/null +++ b/disl-server/src/ch/usi/dag/dislre/protocol/Main.java @@ -0,0 +1,4784 @@ +// 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 ErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:Error) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional string message = 1; + */ + java.lang.String getMessage(); + /** + * optional string message = 1; + */ + 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 MESSAGE_FIELD_NUMBER = 1; + private java.lang.String message_; + /** + * optional string message = 1; + */ + public java.lang.String getMessage() { + return message_; + } + /** + * optional string message = 1; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(message_); + } + /** + * optional string message = 1; + */ + private void setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + } + /** + * optional string message = 1; + */ + private void clearMessage() { + + message_ = getDefaultInstance().getMessage(); + } + /** + * optional string message = 1; + */ + 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 (!message_.isEmpty()) { + output.writeString(1, getMessage()); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!message_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(1, getMessage()); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Main.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.Main.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.Main.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.Main.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.Main.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.Main.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.Main.Error parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.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.Main.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.Main.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.Main.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.Main.Error, Builder> implements + // @@protoc_insertion_point(builder_implements:Error) + ch.usi.dag.dislre.protocol.Main.ErrorOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Main.Error.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional string message = 1; + */ + public java.lang.String getMessage() { + return instance.getMessage(); + } + /** + * optional string message = 1; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + return instance.getMessageBytes(); + } + /** + * optional string message = 1; + */ + public Builder setMessage( + java.lang.String value) { + copyOnWrite(); + instance.setMessage(value); + return this; + } + /** + * optional string message = 1; + */ + public Builder clearMessage() { + copyOnWrite(); + instance.clearMessage(); + return this; + } + /** + * optional string message = 1; + */ + 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.Main.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.Main.Error other = (ch.usi.dag.dislre.protocol.Main.Error) arg1; + 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 10: { + 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.Main.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.Main.Error DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Error(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Main.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 the instrumentation functionality from the server
+     * 
+ * + * optional bool require_disl = 1; + */ + boolean getRequireDisl(); + + /** + *
+     * Request the ShadowVM functionality from the server
+     * 
+ * + * optional bool require_shvm = 2; + */ + boolean getRequireShvm(); + } + /** + *
+   * 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 static final int REQUIRE_DISL_FIELD_NUMBER = 1; + private boolean requireDisl_; + /** + *
+     * Request the instrumentation functionality from the server
+     * 
+ * + * optional bool require_disl = 1; + */ + public boolean getRequireDisl() { + return requireDisl_; + } + /** + *
+     * Request the instrumentation functionality from the server
+     * 
+ * + * optional bool require_disl = 1; + */ + private void setRequireDisl(boolean value) { + + requireDisl_ = value; + } + /** + *
+     * Request the instrumentation functionality from the server
+     * 
+ * + * optional bool require_disl = 1; + */ + private void clearRequireDisl() { + + requireDisl_ = false; + } + + public static final int REQUIRE_SHVM_FIELD_NUMBER = 2; + private boolean requireShvm_; + /** + *
+     * Request the ShadowVM functionality from the server
+     * 
+ * + * optional bool require_shvm = 2; + */ + public boolean getRequireShvm() { + return requireShvm_; + } + /** + *
+     * Request the ShadowVM functionality from the server
+     * 
+ * + * optional bool require_shvm = 2; + */ + private void setRequireShvm(boolean value) { + + requireShvm_ = value; + } + /** + *
+     * Request the ShadowVM functionality from the server
+     * 
+ * + * optional bool require_shvm = 2; + */ + private void clearRequireShvm() { + + requireShvm_ = false; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (requireDisl_ != false) { + output.writeBool(1, requireDisl_); + } + if (requireShvm_ != false) { + output.writeBool(2, requireShvm_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (requireDisl_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, requireDisl_); + } + if (requireShvm_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, requireShvm_); + } + 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); + } + + + /** + *
+       * Request the instrumentation functionality from the server
+       * 
+ * + * optional bool require_disl = 1; + */ + public boolean getRequireDisl() { + return instance.getRequireDisl(); + } + /** + *
+       * Request the instrumentation functionality from the server
+       * 
+ * + * optional bool require_disl = 1; + */ + public Builder setRequireDisl(boolean value) { + copyOnWrite(); + instance.setRequireDisl(value); + return this; + } + /** + *
+       * Request the instrumentation functionality from the server
+       * 
+ * + * optional bool require_disl = 1; + */ + public Builder clearRequireDisl() { + copyOnWrite(); + instance.clearRequireDisl(); + return this; + } + + /** + *
+       * Request the ShadowVM functionality from the server
+       * 
+ * + * optional bool require_shvm = 2; + */ + public boolean getRequireShvm() { + return instance.getRequireShvm(); + } + /** + *
+       * Request the ShadowVM functionality from the server
+       * 
+ * + * optional bool require_shvm = 2; + */ + public Builder setRequireShvm(boolean value) { + copyOnWrite(); + instance.setRequireShvm(value); + return this; + } + /** + *
+       * Request the ShadowVM functionality from the server
+       * 
+ * + * optional bool require_shvm = 2; + */ + public Builder clearRequireShvm() { + copyOnWrite(); + instance.clearRequireShvm(); + return this; + } + + // @@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; + requireDisl_ = visitor.visitBoolean(requireDisl_ != false, requireDisl_, + other.requireDisl_ != false, other.requireDisl_); + requireShvm_ = visitor.visitBoolean(requireShvm_ != false, requireShvm_, + other.requireShvm_ != false, other.requireShvm_); + 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: { + + requireDisl_ = input.readBool(); + break; + } + case 16: { + + requireShvm_ = 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.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.Main.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.Main.Error getErrors(int index) { + return errors_.get(index); + } + /** + * repeated .Error errors = 3; + */ + public ch.usi.dag.dislre.protocol.Main.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.Main.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.Main.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + } + /** + * repeated .Error errors = 3; + */ + private void addErrors(ch.usi.dag.dislre.protocol.Main.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.Main.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.Main.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + } + /** + * repeated .Error errors = 3; + */ + private void addErrors( + int index, ch.usi.dag.dislre.protocol.Main.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.Main.Error getErrors(int index) { + return instance.getErrors(index); + } + /** + * repeated .Error errors = 3; + */ + public Builder setErrors( + int index, ch.usi.dag.dislre.protocol.Main.Error value) { + copyOnWrite(); + instance.setErrors(index, value); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder setErrors( + int index, ch.usi.dag.dislre.protocol.Main.Error.Builder builderForValue) { + copyOnWrite(); + instance.setErrors(index, builderForValue); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors(ch.usi.dag.dislre.protocol.Main.Error value) { + copyOnWrite(); + instance.addErrors(value); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors( + int index, ch.usi.dag.dislre.protocol.Main.Error value) { + copyOnWrite(); + instance.addErrors(index, value); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors( + ch.usi.dag.dislre.protocol.Main.Error.Builder builderForValue) { + copyOnWrite(); + instance.addErrors(builderForValue); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors( + int index, ch.usi.dag.dislre.protocol.Main.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.Main.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(); + + /** + * optional int32 request_id = 40; + */ + int getRequestId(); + + /** + *
+     */ 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(); + + /** + * optional .Error error = 30; + */ + ch.usi.dag.dislre.protocol.Main.Error getError(); + + 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), + ERROR(30), + 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 30: return ERROR; + 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 REQUEST_ID_FIELD_NUMBER = 40; + private int requestId_; + /** + * optional int32 request_id = 40; + */ + public int getRequestId() { + return requestId_; + } + /** + * optional int32 request_id = 40; + */ + private void setRequestId(int value) { + + requestId_ = value; + } + /** + * optional int32 request_id = 40; + */ + private void clearRequestId() { + + requestId_ = 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 static final int ERROR_FIELD_NUMBER = 30; + /** + * optional .Error error = 30; + */ + public ch.usi.dag.dislre.protocol.Main.Error getError() { + if (requestCase_ == 30) { + return (ch.usi.dag.dislre.protocol.Main.Error) request_; + } + return ch.usi.dag.dislre.protocol.Main.Error.getDefaultInstance(); + } + /** + * optional .Error error = 30; + */ + private void setError(ch.usi.dag.dislre.protocol.Main.Error value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 30; + } + /** + * optional .Error error = 30; + */ + private void setError( + ch.usi.dag.dislre.protocol.Main.Error.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 30; + } + /** + * optional .Error error = 30; + */ + private void mergeError(ch.usi.dag.dislre.protocol.Main.Error value) { + if (requestCase_ == 30 && + request_ != ch.usi.dag.dislre.protocol.Main.Error.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Main.Error.newBuilder((ch.usi.dag.dislre.protocol.Main.Error) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 30; + } + /** + * optional .Error error = 30; + */ + private void clearError() { + if (requestCase_ == 30) { + 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_); + } + if (requestCase_ == 30) { + output.writeMessage(30, (ch.usi.dag.dislre.protocol.Main.Error) request_); + } + if (requestId_ != 0) { + output.writeInt32(40, requestId_); + } + } + + 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_); + } + if (requestCase_ == 30) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, (ch.usi.dag.dislre.protocol.Main.Error) request_); + } + if (requestId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(40, requestId_); + } + 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; + } + + /** + * optional int32 request_id = 40; + */ + public int getRequestId() { + return instance.getRequestId(); + } + /** + * optional int32 request_id = 40; + */ + public Builder setRequestId(int value) { + copyOnWrite(); + instance.setRequestId(value); + return this; + } + /** + * optional int32 request_id = 40; + */ + public Builder clearRequestId() { + copyOnWrite(); + instance.clearRequestId(); + 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; + } + + /** + * optional .Error error = 30; + */ + public ch.usi.dag.dislre.protocol.Main.Error getError() { + return instance.getError(); + } + /** + * optional .Error error = 30; + */ + public Builder setError(ch.usi.dag.dislre.protocol.Main.Error value) { + copyOnWrite(); + instance.setError(value); + return this; + } + /** + * optional .Error error = 30; + */ + public Builder setError( + ch.usi.dag.dislre.protocol.Main.Error.Builder builderForValue) { + copyOnWrite(); + instance.setError(builderForValue); + return this; + } + /** + * optional .Error error = 30; + */ + public Builder mergeError(ch.usi.dag.dislre.protocol.Main.Error value) { + copyOnWrite(); + instance.mergeError(value); + return this; + } + /** + * optional .Error error = 30; + */ + public Builder clearError() { + copyOnWrite(); + instance.clearError(); + 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_); + requestId_ = visitor.visitInt(requestId_ != 0, requestId_, + other.requestId_ != 0, other.requestId_); + 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 ERROR: { + request_ = visitor.visitOneofMessage( + requestCase_ == 30, + 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; + } + case 242: { + ch.usi.dag.dislre.protocol.Main.Error.Builder subBuilder = null; + if (requestCase_ == 30) { + subBuilder = ((ch.usi.dag.dislre.protocol.Main.Error) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Main.Error.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Main.Error) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 30; + break; + } + case 320: { + + requestId_ = input.readInt32(); + 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 int32 response_id = 40; + */ + int getResponseId(); + + /** + * 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(); + + /** + * optional .Error error = 30; + */ + ch.usi.dag.dislre.protocol.Main.Error getError(); + + 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), + ERROR(30), + 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 30: return ERROR; + 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 RESPONSE_ID_FIELD_NUMBER = 40; + private int responseId_; + /** + * optional int32 response_id = 40; + */ + public int getResponseId() { + return responseId_; + } + /** + * optional int32 response_id = 40; + */ + private void setResponseId(int value) { + + responseId_ = value; + } + /** + * optional int32 response_id = 40; + */ + private void clearResponseId() { + + responseId_ = 0; + } + + 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 static final int ERROR_FIELD_NUMBER = 30; + /** + * optional .Error error = 30; + */ + public ch.usi.dag.dislre.protocol.Main.Error getError() { + if (responseCase_ == 30) { + return (ch.usi.dag.dislre.protocol.Main.Error) response_; + } + return ch.usi.dag.dislre.protocol.Main.Error.getDefaultInstance(); + } + /** + * optional .Error error = 30; + */ + private void setError(ch.usi.dag.dislre.protocol.Main.Error value) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + responseCase_ = 30; + } + /** + * optional .Error error = 30; + */ + private void setError( + ch.usi.dag.dislre.protocol.Main.Error.Builder builderForValue) { + response_ = builderForValue.build(); + responseCase_ = 30; + } + /** + * optional .Error error = 30; + */ + private void mergeError(ch.usi.dag.dislre.protocol.Main.Error value) { + if (responseCase_ == 30 && + response_ != ch.usi.dag.dislre.protocol.Main.Error.getDefaultInstance()) { + response_ = ch.usi.dag.dislre.protocol.Main.Error.newBuilder((ch.usi.dag.dislre.protocol.Main.Error) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + responseCase_ = 30; + } + /** + * optional .Error error = 30; + */ + private void clearError() { + if (responseCase_ == 30) { + 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_); + } + if (responseCase_ == 30) { + output.writeMessage(30, (ch.usi.dag.dislre.protocol.Main.Error) response_); + } + if (responseId_ != 0) { + output.writeInt32(40, responseId_); + } + } + + 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_); + } + if (responseCase_ == 30) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, (ch.usi.dag.dislre.protocol.Main.Error) response_); + } + if (responseId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(40, responseId_); + } + 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 int32 response_id = 40; + */ + public int getResponseId() { + return instance.getResponseId(); + } + /** + * optional int32 response_id = 40; + */ + public Builder setResponseId(int value) { + copyOnWrite(); + instance.setResponseId(value); + return this; + } + /** + * optional int32 response_id = 40; + */ + public Builder clearResponseId() { + copyOnWrite(); + instance.clearResponseId(); + 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; + } + + /** + * optional .Error error = 30; + */ + public ch.usi.dag.dislre.protocol.Main.Error getError() { + return instance.getError(); + } + /** + * optional .Error error = 30; + */ + public Builder setError(ch.usi.dag.dislre.protocol.Main.Error value) { + copyOnWrite(); + instance.setError(value); + return this; + } + /** + * optional .Error error = 30; + */ + public Builder setError( + ch.usi.dag.dislre.protocol.Main.Error.Builder builderForValue) { + copyOnWrite(); + instance.setError(builderForValue); + return this; + } + /** + * optional .Error error = 30; + */ + public Builder mergeError(ch.usi.dag.dislre.protocol.Main.Error value) { + copyOnWrite(); + instance.mergeError(value); + return this; + } + /** + * optional .Error error = 30; + */ + public Builder clearError() { + copyOnWrite(); + instance.clearError(); + 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; + responseId_ = visitor.visitInt(responseId_ != 0, responseId_, + other.responseId_ != 0, other.responseId_); + 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 ERROR: { + response_ = visitor.visitOneofMessage( + responseCase_ == 30, + 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; + } + case 242: { + ch.usi.dag.dislre.protocol.Main.Error.Builder subBuilder = null; + if (responseCase_ == 30) { + subBuilder = ((ch.usi.dag.dislre.protocol.Main.Error) response_).toBuilder(); + } + response_ = + input.readMessage(ch.usi.dag.dislre.protocol.Main.Error.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Main.Error) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 30; + break; + } + case 320: { + + responseId_ = input.readInt32(); + 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 0edb11b77d7d145b36ca6e1a740d17d38fd7bad9..6c08c00c0a1a84cf20120d7f3984d906a3005d31 100644 --- a/disl-server/src/ch/usi/dag/dislserver/ConnectionHandler.java +++ b/disl-server/src/ch/usi/dag/dislserver/ConnectionHandler.java @@ -7,15 +7,15 @@ 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.ByteBufferUtils; import ch.usi.dag.util.logging.Logger; import com.google.protobuf.CodedInputStream; import com.google.protobuf.CodedOutputStream; -import java.io.EOFException; import java.io.IOException; import java.nio.ByteBuffer; -import java.nio.ByteOrder; import java.nio.channels.SocketChannel; @@ -141,7 +141,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. @@ -205,7 +205,7 @@ final class ConnectionHandler implements Runnable { final IntervalTimer timer ) throws IOException { - ByteBuffer sendBuffer = __allocDirect (4096); + ByteBuffer sendBuffer = ByteBufferUtils.AllocDirect(4096); // // Note: the CodedOutputStream remembers buffer position at // creation time, so anything put into a byte buffer after @@ -222,7 +222,7 @@ final class ConnectionHandler implements Runnable { sendBuffer.putInt (responseLength); if (sendBuffer.remaining () < responseLength) { - sendBuffer = __expandBuffer (sendBuffer, responseLength); + sendBuffer = ByteBufferUtils.ExpandBuffer(sendBuffer, responseLength); __log.trace ("expanded send buffer to %d bytes", sendBuffer.capacity ()); } @@ -240,7 +240,7 @@ final class ConnectionHandler implements Runnable { __log.trace ("sending instrumentation response"); sendBuffer.flip (); - __bufferSendTo (sendBuffer, __clientSocket); + ByteBufferUtils.BufferSendTo(sendBuffer, __clientSocket); timer.mark (DiSLServer.ElapsedTime.TRANSMIT); } @@ -258,13 +258,11 @@ final class ConnectionHandler implements Runnable { final CounterSet stats ) throws IOException { - final ByteBuffer headBuffer = __allocDirect (4096); - ByteBuffer recvBuffer = __allocDirect (4096); + final ByteBuffer headBuffer = ByteBufferUtils.AllocDirect(Integer.BYTES); // message receive __log.trace ("receiving instrumentation request"); - headBuffer.clear (); - __bufferRecvFrom (__clientSocket, Integer.BYTES, headBuffer); + ByteBufferUtils.BufferRecvFrom(__clientSocket, Integer.BYTES, headBuffer); headBuffer.flip (); final int messageLength = headBuffer.getInt (); @@ -277,13 +275,9 @@ final class ConnectionHandler implements Runnable { return null; } - recvBuffer.clear (); - if (recvBuffer.remaining () < messageLength) { - recvBuffer = __expandBuffer (recvBuffer, messageLength); - __log.debug ("expanded receive buffer to %d bytes", recvBuffer.capacity ()); - } + final ByteBuffer recvBuffer = ByteBufferUtils.AllocDirect(messageLength); - __bufferRecvFrom (__clientSocket, messageLength, recvBuffer); + ByteBufferUtils.BufferRecvFrom(__clientSocket, messageLength, recvBuffer); timer.mark (DiSLServer.ElapsedTime.RECEIVE); // @@ -296,50 +290,4 @@ final class ConnectionHandler implements Runnable { return ClientMessage.parseFrom (recvStream); } - private void __bufferSendTo ( - final ByteBuffer buffer, final SocketChannel sc - ) throws IOException { - while (buffer.hasRemaining ()) { - sc.write (buffer); - } - } - - - private void __bufferRecvFrom ( - final SocketChannel sc, final int length, final ByteBuffer buffer - ) throws IOException { - buffer.limit (buffer.position () + length); - while (buffer.hasRemaining ()) { - final int bytesRead = sc.read (buffer); - if (bytesRead < 0) { - throw new EOFException ("unexpected end of stream"); - } - } - } - - - private ByteBuffer __expandBuffer ( - final ByteBuffer buffer, final int messageLength - ) { - // - // The buffer needs to be in receive mode, i.e., the buffer - // position indicates the first available byte. Any bytes before - // current position will be copied to the new buffer. - // - final int requiredCapacity = buffer.position () + messageLength; - - int newCapacity = 2 * buffer.capacity (); - while (newCapacity < requiredCapacity) { - newCapacity *= 2; - } - - buffer.flip (); - return __allocDirect (newCapacity).put (buffer); - } - - - private ByteBuffer __allocDirect (final int capacity) { - return ByteBuffer.allocateDirect (capacity).order (ByteOrder.BIG_ENDIAN); - } - } 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 634428b5a5331fb4a48313adc2cdab368ba53647..0000000000000000000000000000000000000000 --- 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 81f7e47350ba43299699986e088f7e6e2358a634..eeb361fb9b56294519f9ab67835c06d4b5b264d5 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; @@ -45,9 +45,9 @@ final class RequestProcessor { // - public InstrumentClassResponse process (final InstrumentClassRequest request) { + 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 53752db253e3b4b5e3f17633c0f358b6d7cdd166..e7ce4b945409297d959106655c523aff4146d97e 100644 --- a/disl/.gitignore +++ b/disl/.gitignore @@ -1 +1,3 @@ output + +*.iml diff --git a/disl/build.xml b/disl/build.xml index 021ef3c385070195f324479e8cbe820d673b7e2c..1e860b109f4025ced71833c10a7e7464926a153d 100644 --- a/disl/build.xml +++ b/disl/build.xml @@ -14,7 +14,7 @@
- + @@ -94,9 +94,9 @@ + - diff --git a/disl/src/src-annotation/ch/usi/dag/disl/annotation/After.java b/disl/src/src-annotation/ch/usi/dag/disl/annotation/After.java index f6b475d6d1ce692f7bdd09d212095e342db1f5a9..17e4d6558017aa88aea7d623c7833b3b5b6b7ac6 100644 --- a/disl/src/src-annotation/ch/usi/dag/disl/annotation/After.java +++ b/disl/src/src-annotation/ch/usi/dag/disl/annotation/After.java @@ -63,6 +63,7 @@ public @interface After { * method where to apply the snippet. * * @see Marker Implementation details + * @return The {@link Marker} class */ Class marker(); @@ -71,6 +72,8 @@ public @interface After { * Optional argument for the marker class, passed as a {@link String}. *

* Default value: {@code ""}, means "no arguments". + * + * @return The optional argument for the marker class */ String args() default ""; @@ -78,10 +81,12 @@ public @interface After { /** * Selects methods in which to apply the snippet. *

- * See the {@link ch.usi.dag.disl.scope} package for more information about + * See the {@link ch.usi.dag.disl} package for more information about * the scoping language. *

* Default value: {@code "*"}, means "everywhere". + * + * @return The scope */ String scope() default "*"; @@ -92,6 +97,8 @@ public @interface After { * provide more fine-grained control compared to scopes. *

* Default value: {@code void.class}, means "no guard used". + * + * @return Guard class */ Class guard() default void.class; @@ -102,6 +109,8 @@ public @interface After { * of the marked code region will be the snippet inlined. *

* Default value: {@code 100} + * + * @return The order */ int order() default 100; @@ -116,6 +125,8 @@ public @interface After { * instrumentation framework. *

* Default value: {@code true}, means "automatic bypass activation". + * + * @return Whether or not turn off the dynamic bypass activation. */ boolean dynamicBypass() default true; diff --git a/disl/src/src-annotation/ch/usi/dag/disl/annotation/AfterReturning.java b/disl/src/src-annotation/ch/usi/dag/disl/annotation/AfterReturning.java index 96cb8fe72c446e8f04d26530e9bc906e64dd4a6c..29afcd7ebcfae602027e7a2c744e7dedc805552c 100644 --- a/disl/src/src-annotation/ch/usi/dag/disl/annotation/AfterReturning.java +++ b/disl/src/src-annotation/ch/usi/dag/disl/annotation/AfterReturning.java @@ -78,7 +78,7 @@ public @interface AfterReturning { /** * Selects methods in which to apply the snippet. *

- * See the {@link ch.usi.dag.disl.scope} package for more information about + * See the {@link ch.usi.dag.disl} package for more information about * the scoping language. *

* Default value: {@code "*"}, means "everywhere". diff --git a/disl/src/src-annotation/ch/usi/dag/disl/annotation/AfterThrowing.java b/disl/src/src-annotation/ch/usi/dag/disl/annotation/AfterThrowing.java index d6e80c78c7d9b7da163e9d0c959553737a267318..94f394c656e0bacc351644cb7f11a100599397ce 100644 --- a/disl/src/src-annotation/ch/usi/dag/disl/annotation/AfterThrowing.java +++ b/disl/src/src-annotation/ch/usi/dag/disl/annotation/AfterThrowing.java @@ -77,7 +77,7 @@ public @interface AfterThrowing { /** * Selects methods in which to apply the snippet. *

- * See the {@link ch.usi.dag.disl.scope} package for more information about + * See the {@link ch.usi.dag.disl} package for more information about * the scoping language. *

* Default value: {@code "*"}, means "everywhere". diff --git a/disl/src/src-annotation/ch/usi/dag/disl/annotation/Before.java b/disl/src/src-annotation/ch/usi/dag/disl/annotation/Before.java index f477c49d7ba91e29a9cddcb5a13e66373ed277cb..6d19a98175037fadd5259704969218570a65af0e 100644 --- a/disl/src/src-annotation/ch/usi/dag/disl/annotation/Before.java +++ b/disl/src/src-annotation/ch/usi/dag/disl/annotation/Before.java @@ -77,7 +77,7 @@ public @interface Before { /** * Selects methods in which to apply the snippet. *

- * See the {@link ch.usi.dag.disl.scope} package for more information about + * See the {@link ch.usi.dag.disl} package for more information about * the scoping language. *

* Default value: {@code "*"}, means "everywhere". diff --git a/disl/src/src-coderep/ch/usi/dag/disl/Code.java b/disl/src/src-coderep/ch/usi/dag/disl/Code.java index f909762462c626cf9e3bf10a452a705bf0eef58c..8f570a9e2a1b6914dbccb0737b0137fa4c3d2886 100644 --- a/disl/src/src-coderep/ch/usi/dag/disl/Code.java +++ b/disl/src/src-coderep/ch/usi/dag/disl/Code.java @@ -38,7 +38,7 @@ public class Code { // - public Code ( + Code ( final MethodNode method, final Set syntheticLocals, final Set threadLocals, @@ -84,10 +84,10 @@ public class Code { /** - * @returns An unmodifiable set of all synthetic local variables referenced + * @return An unmodifiable set of all synthetic local variables referenced * in the code. */ - public Set getReferencedSLVs () { + Set getReferencedSLVs () { return __syntheticLocals; } @@ -96,7 +96,7 @@ public class Code { * @return An unmodifiable set all thread local variables referenced in the * code. */ - public Set getReferencedTLVs () { + Set getReferencedTLVs () { return __threadLocals; } @@ -105,7 +105,7 @@ public class Code { * @return An unmodifiable set of static context methods referenced in the * code. */ - public Set getReferencedSCMs () { + Set getReferencedSCMs () { return __staticContextMethods; } @@ -114,7 +114,7 @@ public class Code { * @return {@code true} if the code contains a catch block that handles the * caught exception. */ - public boolean containsHandledException () { + boolean containsHandledException () { return _containsHandledException; } @@ -123,7 +123,7 @@ public class Code { * @return the number of local slots occupied by parameters of the method * representing this code. */ - public int getParameterSlotCount () { + int getParameterSlotCount () { return AsmHelper.getParameterSlotCount (__method); } diff --git a/disl/src/src-context/ch/usi/dag/disl/classcontext/ClassContext.java b/disl/src/src-context/ch/usi/dag/disl/classcontext/ClassContext.java index 0ceb202779f18f78123ac2dcee9adc2e61d74f54..7921d35c76580f3cec7e2072c90c758f2721637a 100644 --- a/disl/src/src-context/ch/usi/dag/disl/classcontext/ClassContext.java +++ b/disl/src/src-context/ch/usi/dag/disl/classcontext/ClassContext.java @@ -9,7 +9,6 @@ public interface ClassContext { * Converts a {@link String} literal representing an internal class name to * a {@link Class} instance. * - * @param name an internal name of the class * @return {@link Class} instance corresponding to the class name, or * {@code null} if the class name could not be resolved. */ diff --git a/disl/src/src-context/ch/usi/dag/disl/processorcontext/ArgumentProcessorContext.java b/disl/src/src-context/ch/usi/dag/disl/processorcontext/ArgumentProcessorContext.java index 3a708783f77631875a0d14b8b9ba929d94533e61..ee7a44332bbabae5b06bbdb65e2bc13529a281d7 100644 --- a/disl/src/src-context/ch/usi/dag/disl/processorcontext/ArgumentProcessorContext.java +++ b/disl/src/src-context/ch/usi/dag/disl/processorcontext/ArgumentProcessorContext.java @@ -2,7 +2,7 @@ package ch.usi.dag.disl.processorcontext; /** * Provides access to method arguments. This can be done either by querying the - * arguments directly using the {@link #getArgs(ArgumentProcessorMode) getArgs) + * arguments directly using the {@link #getArgs(ArgumentProcessorMode) getArgs)} * method, which returns a newly allocated array containing the method * arguments, or by applying an argument processor using the * {@link #apply(Class, ArgumentProcessorMode) apply} method, which allows diff --git a/disl/src/src-main/ch/usi/dag/disl/DiSL.java b/disl/src/src-main/ch/usi/dag/disl/DiSL.java index cacea4880cd5506f26c376e8c77d678c64508e51..9cb996f9c51a5f819ca6a060aa7aa267dcf97f6f 100644 --- a/disl/src/src-main/ch/usi/dag/disl/DiSL.java +++ b/disl/src/src-main/ch/usi/dag/disl/DiSL.java @@ -53,11 +53,13 @@ public final class DiSL { * * @param properties System properties. * @param instrumentations Received instrumentation jars (maybe wrap to something like SessionContext) + * @param exclusionFile The filename of the file containing the exclusion set for DiSL * @throws DiSLException Error while initializing Disl class */ public DiSL( final Properties properties, - final List instrumentations + final List instrumentations, + final String exclusionFile ) throws DiSLException { __codeOptions = __codeOptionsFrom ( @@ -96,7 +98,7 @@ public final class DiSL { __dislClasses = new IsolatedDislClasses (__codeOptions, classNodes, allClasses, __classLoader); __transformers = new IsolatedTransformers ( transformerList, __classLoader ); - __excludedScopes = ExclusionSetFactory.prepare ( instrumentationJars ); + __excludedScopes = ExclusionSetFactory.prepare ( instrumentationJars, exclusionFile ); } @@ -409,6 +411,8 @@ public final class DiSL { * the class to instrument as an array of bytes * @return An array of bytes representing the instrumented class, or * {@code null} if the class has not been instrumented. + * @throws DiSLException In case of error this exception is thrown from inside of the + * {@link DiSL} instance. */ // TODO ! current static context interface does not allow to have nice // synchronization - it should be redesigned such as the staticContextData diff --git a/disl/src/src-main/ch/usi/dag/disl/ExclusionSetFactory.java b/disl/src/src-main/ch/usi/dag/disl/ExclusionSetFactory.java index ec8e546948128a5151fba27d75c0b2229585b477..408fa1483ff8efc0b59b72762234a3d3663907ae 100644 --- a/disl/src/src-main/ch/usi/dag/disl/ExclusionSetFactory.java +++ b/disl/src/src-main/ch/usi/dag/disl/ExclusionSetFactory.java @@ -18,14 +18,18 @@ import java.util.stream.Collectors; /** * Create the exclusion set based on provided instrumentation jars. */ -public abstract class ExclusionSetFactory { +abstract class ExclusionSetFactory { /** * Prepare the exclusion set including hardcoded, instrumentation and user defined exclusions. - * @param instrumentationJars Provided jars. + * @param instrumentationJars Provided jars + * @param exclusionsFile The filename of the file containing the exclusion set. * @return Exclusion set. */ - public static Set prepare (List instrumentationJars) { + static Set prepare( + List instrumentationJars, + final String exclusionsFile + ) { try { final Set result = hardCodedExclusions (); instrumentationJars @@ -33,7 +37,10 @@ public abstract class ExclusionSetFactory { .map (ExclusionSetFactory::instrumentationExclusions) .map (result::addAll); - result.addAll (userDefinedExclusions ()); + if (exclusionsFile != null) { + result.addAll (userDefinedExclusions (exclusionsFile)); + } + return result; } catch (final Exception e) { @@ -72,18 +79,15 @@ public abstract class ExclusionSetFactory { /** - * Parameter name for exclusion list. - */ - private static final String DISL_EXCLUSION_LIST = "disl.exclusionList"; - - - /** - * Load user defined exclusions from (server) manifest file. + * Load user defined exclusions from given file. * * @return Exclusion set. * @throws FileNotFoundException Referenced file not found. */ - private static Set userDefinedExclusions () throws FileNotFoundException { + private static Set userDefinedExclusions ( + final String fileName + ) throws FileNotFoundException + { final String commentPrefix = "#"; final Set result = new HashSet <> (); @@ -91,7 +95,6 @@ public abstract class ExclusionSetFactory { // If a user specified a custom exclusion list, load it line by line, // each line representing a single exclusion scope. // - final String fileName = System.getProperty (DISL_EXCLUSION_LIST, ""); if (!fileName.isEmpty ()) { final Scanner scanner = new Scanner (new FileInputStream (fileName)); while (scanner.hasNextLine ()) { diff --git a/disl/src/src-main/ch/usi/dag/disl/Transformer.java b/disl/src/src-main/ch/usi/dag/disl/Transformer.java index 2cbb9df85013d7f71fd00a462238f5f54dc48ec0..937fadae0b543228894ef4ae0a4bc7672b6a9b56 100644 --- a/disl/src/src-main/ch/usi/dag/disl/Transformer.java +++ b/disl/src/src-main/ch/usi/dag/disl/Transformer.java @@ -4,7 +4,7 @@ import java.lang.instrument.ClassFileTransformer; /** - * Represents a bytecode-level class transformer. A {@link Transfomer} is + * Represents a bytecode-level class transformer. A {@link Transformer} is * expected to consume an array of bytes representing the contents of a class * file, process it, and return an array of bytes representing the class file * contents of the the modified class, or {@code null} if the class was not diff --git a/disl/src/src-scope/ch/usi/dag/disl/ScopeMatcher.java b/disl/src/src-scope/ch/usi/dag/disl/ScopeMatcher.java index 61f039e7bc20a85cbc27c3138412af3b3a59110a..5e09666e44fe728d5cb5010f8e6fa6a34471005d 100644 --- a/disl/src/src-scope/ch/usi/dag/disl/ScopeMatcher.java +++ b/disl/src/src-scope/ch/usi/dag/disl/ScopeMatcher.java @@ -7,10 +7,8 @@ import java.util.regex.Pattern; /** * Filters methods based on class name, method name, method parameters and * return type. A filter is specified as follows: - *

    * [<returnType>] [<className>.]<methodName> * [(<paramTypes>)] - *
* To match multiple methods, the individual filter elements (or their parts) * can be substituted with the "*" wild card character, which will expand to * zero or more non-whitespace characters. The individual filter elements have diff --git a/disl/src/src-snippet/ch/usi/dag/disl/Snippet.java b/disl/src/src-snippet/ch/usi/dag/disl/Snippet.java index 681ef3e198cea6d81e45ff3a359edd168b63cbd3..5197bc935f5e8f3688b1f388e29e715d3079f3e7 100644 --- a/disl/src/src-snippet/ch/usi/dag/disl/Snippet.java +++ b/disl/src/src-snippet/ch/usi/dag/disl/Snippet.java @@ -124,7 +124,7 @@ public class Snippet implements Comparable { /** - * @returns The scope in which the snippet should be applied. + * @return The scope in which the snippet should be applied. */ public Scope getScope () { return scope; @@ -132,7 +132,7 @@ public class Snippet implements Comparable { /** - * @returns The guard which determines where the snippet should be applied. + * @return The guard which determines where the snippet should be applied. */ public Method getGuard () { return guard; diff --git a/disl/src/src-snippet/ch/usi/dag/disl/SnippetCode.java b/disl/src/src-snippet/ch/usi/dag/disl/SnippetCode.java index b555b715d0a87b1ee1db990ddd16ddb688d11fdc..42168f2410fe0e98cf8d884e54958feb0325a50f 100644 --- a/disl/src/src-snippet/ch/usi/dag/disl/SnippetCode.java +++ b/disl/src/src-snippet/ch/usi/dag/disl/SnippetCode.java @@ -1,5 +1,6 @@ package ch.usi.dag.disl; +import ch.usi.dag.disl.marker.Marker; import org.objectweb.asm.tree.InsnList; import org.objectweb.asm.tree.TryCatchBlockNode; @@ -15,7 +16,7 @@ import java.util.stream.Collectors; * Represents an analyzed and partially expanded snippet code template. * Instances of {@link SnippetCode} are obtained from * {@link SnippetUnprocessedCode} instances as a result of calling the - * {@link SnippetUnprocessedCode#process(LocalVars) process()} method on them. + * {@link SnippetUnprocessedCode#process(LocalVars, Map, Marker, Set)} process()} method on them. */ public class SnippetCode { /** diff --git a/lib/artifacts.lst b/lib/artifacts.lst index 47025d4f9e45ab8e3507dc50029cb0394caeb3f5..b234600f95a3d4a08977e5dc081fe28850131db9 100644 --- a/lib/artifacts.lst +++ b/lib/artifacts.lst @@ -1,5 +1,6 @@ lib/ant/ant-contrib.jar lib/ant/ivy.jar +lib/cli/jcommander.jar lib/disl/asm-analysis.jar lib/disl/asm-commons.jar lib/disl/asm-tree.jar diff --git a/server/.gitignore b/server/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..9b4ad56062c280f3066496b1164471e3da061a5c --- /dev/null +++ b/server/.gitignore @@ -0,0 +1,2 @@ +server.iml +output/ diff --git a/server/README.md b/server/README.md new file mode 100644 index 0000000000000000000000000000000000000000..af5c4c28e4881a5acef51c17e777c20489d634f9 --- /dev/null +++ b/server/README.md @@ -0,0 +1,37 @@ +# Integrated analysis server + +This server provides both instrumentation and shadowVM capabilities to the disl/shvm +client. + +The package is `ch.usi.dag.server` + +## Usage + +``` +java -classpath remoteanalysis.jar -jar server.jar [options] + +OPTIONS + -p|--port port to listen for connections + -d|--debug Print the debugging messages + -c|--continuous Do not exit, when the last connected session ends + --disl Act as instrumentation server. + --shvm Act as analysis server. + --status-file FILE This file will be deleted, when the server starts listening + for connections. This is used mainly for synchronisation + when executed by a script. + --exclusion-list FILE + The name of the file containing the exclusion set for DiSL + instrumentations. Another way how to specify is via the + -Ddisl.exclusionList property, but this is obsolete. + +DiSL Specific options + Note that those options are ignored, when the --no-disl option is passed + + --dump-uninstrumented PATH + Dump received uninstrumented classes in given location + + --dump-instrumented PATH + Dump instrumented classes in given PATH, but only when different + from uninstrumented original. + +``` diff --git a/server/build.properties b/server/build.properties new file mode 100644 index 0000000000000000000000000000000000000000..bcac1eaad0ae5998d6cc0bc02e65c73fd64fd521 --- /dev/null +++ b/server/build.properties @@ -0,0 +1,2 @@ +src.server.test=src-test +build.server.test=${build.dir}/test diff --git a/server/build.xml b/server/build.xml new file mode 100644 index 0000000000000000000000000000000000000000..6ffa8f2b0e3ed159d6995ac6b11018ac09732066 --- /dev/null +++ b/server/build.xml @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Running server tests... + + + + + + + + + + + + + + + + + + + + + + diff --git a/server/src-test/ch/usi/dag/server/ProtocolTest.java b/server/src-test/ch/usi/dag/server/ProtocolTest.java new file mode 100644 index 0000000000000000000000000000000000000000..4003029ef23dc6261f15240126399327317d58ea --- /dev/null +++ b/server/src-test/ch/usi/dag/server/ProtocolTest.java @@ -0,0 +1,27 @@ +/** + * This file is part of disl project + * Author: Vit Kabele + * Created on the 28/03/2019 + */ +package ch.usi.dag.server; + +import org.junit.Test; +/** + * Test the behaviour of the server, including, but not limited to, how the server handle + * repeated session init request on single connection, the server behaviour in case that + * functionality that was not requested is now used and so on. + */ +public final class ProtocolTest { + + /** + * Test the behaviour of the server in case that client does not request SHVM functionality, + * but now sends the ShadowVM related message. + */ + @Test + public void ShvmNotRequestedButUsed__Test() { + + + + } + +} diff --git a/server/src-test/ch/usi/dag/server/SessionManagerTest.java b/server/src-test/ch/usi/dag/server/SessionManagerTest.java new file mode 100644 index 0000000000000000000000000000000000000000..3e3128394c39c9af2a57ae8b6ed00271f67c197e --- /dev/null +++ b/server/src-test/ch/usi/dag/server/SessionManagerTest.java @@ -0,0 +1,58 @@ +/** + * This file is part of disl project + * Author: Vit Kabele + * Created on the 28/03/2019 + */ +package ch.usi.dag.server; + +import org.junit.Assert; +import org.junit.Test; + +/** + * Test the {@link SessionManager} class + */ +public final class SessionManagerTest { + + /** + * Test whether the {@link SessionManager#createSession()} creates a valid session, + * with valid session ID. + */ + @Test + public final void CreateSession__Test() { + SessionManager sessionManager = new SessionManager(); + + Session session = sessionManager.createSession(); + + Assert.assertNotNull(session); + } + + /** + * Test whether the created session is correctly stored in the session manager + * internal session storage. + */ + @Test + public final void CreatedSessionStored__Test() { + SessionManager sessionManager = new SessionManager(); + + Session session = sessionManager.createSession(); + + Assert.assertTrue(sessionManager.isValidSessionID(session.getSessionID())); + } + + /** + * Test whether the session is removed after the call to {@link SessionManager#killSession(Integer)} + * call. + */ + @Test + public final void KillSession__Test() { + SessionManager sessionManager = new SessionManager(); + + Session session = sessionManager.createSession(); + + Assert.assertTrue(sessionManager.isValidSessionID(session.getSessionID())); + + sessionManager.killSession(session.getSessionID()); + + Assert.assertFalse(sessionManager.isValidSessionID(session.getSessionID())); + } +} diff --git a/server/src-test/ch/usi/dag/server/SessionTest.java b/server/src-test/ch/usi/dag/server/SessionTest.java new file mode 100644 index 0000000000000000000000000000000000000000..4ec8f1005b678715b606fb5c5d516b27dbac0439 --- /dev/null +++ b/server/src-test/ch/usi/dag/server/SessionTest.java @@ -0,0 +1,23 @@ +/** + * This file is part of disl project + * Author: Vit Kabele + * Created on the 28/03/2019 + */ +package ch.usi.dag.server; + +import org.junit.Assert; +import org.junit.Test; + +/** + * + */ +public final class SessionTest { + + @Test + public final void EmptySession__Test() { + final Session session = new Session(42); + + Assert.assertEquals(42, (int)session.getSessionID()); + } + +} diff --git a/server/src-test/ch/usi/dag/server/SmokeTest.java b/server/src-test/ch/usi/dag/server/SmokeTest.java new file mode 100644 index 0000000000000000000000000000000000000000..99a3037498a9990dd47b11135d84c1c023526eec --- /dev/null +++ b/server/src-test/ch/usi/dag/server/SmokeTest.java @@ -0,0 +1,20 @@ +/** + * This file is part of disl project + * Author: Vit Kabele + * Created on the 28/03/2019 + */ +package ch.usi.dag.server; + +import org.junit.Ignore; +import org.junit.Test; + +/** + * This test is only used to test the correctness of a test setup. + */ +public final class SmokeTest { + + @Test + @Ignore + public final void DoTest() {} + +} diff --git a/server/src/ch/usi/dag/dislre/protocol/Analysis.java b/server/src/ch/usi/dag/dislre/protocol/Analysis.java new file mode 100644 index 0000000000000000000000000000000000000000..e6a6f140c68dcf65dd09773f806402eade382a94 --- /dev/null +++ b/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/server/src/ch/usi/dag/dislre/protocol/DiSL.java b/server/src/ch/usi/dag/dislre/protocol/DiSL.java new file mode 100644 index 0000000000000000000000000000000000000000..930cc96f18b0b0eaf848b06bfcdaee65dfcf91f4 --- /dev/null +++ b/server/src/ch/usi/dag/dislre/protocol/DiSL.java @@ -0,0 +1,2395 @@ +// 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 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(); + } + /** + *
+   * 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() { + } + 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 void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (instrumentationAccepted_ != false) { + output.writeBool(1, instrumentationAccepted_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (instrumentationAccepted_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, instrumentationAccepted_); + } + 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; + } + + // @@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: { + 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_); + 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: { + + instrumentationAccepted_ = 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.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/server/src/ch/usi/dag/dislre/protocol/Main.java b/server/src/ch/usi/dag/dislre/protocol/Main.java new file mode 100644 index 0000000000000000000000000000000000000000..9815478045e63d2ec8c313a19bdf7dd610e662e3 --- /dev/null +++ b/server/src/ch/usi/dag/dislre/protocol/Main.java @@ -0,0 +1,4784 @@ +// 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 ErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:Error) + com.google.protobuf.MessageLiteOrBuilder { + + /** + * optional string message = 1; + */ + java.lang.String getMessage(); + /** + * optional string message = 1; + */ + 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 MESSAGE_FIELD_NUMBER = 1; + private java.lang.String message_; + /** + * optional string message = 1; + */ + public java.lang.String getMessage() { + return message_; + } + /** + * optional string message = 1; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + return com.google.protobuf.ByteString.copyFromUtf8(message_); + } + /** + * optional string message = 1; + */ + private void setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + } + /** + * optional string message = 1; + */ + private void clearMessage() { + + message_ = getDefaultInstance().getMessage(); + } + /** + * optional string message = 1; + */ + 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 (!message_.isEmpty()) { + output.writeString(1, getMessage()); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (!message_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeStringSize(1, getMessage()); + } + memoizedSerializedSize = size; + return size; + } + + public static ch.usi.dag.dislre.protocol.Main.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.Main.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.Main.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.Main.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.Main.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.Main.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.Main.Error parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return parseDelimitedFrom(DEFAULT_INSTANCE, input); + } + public static ch.usi.dag.dislre.protocol.Main.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.Main.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.Main.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.Main.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.Main.Error, Builder> implements + // @@protoc_insertion_point(builder_implements:Error) + ch.usi.dag.dislre.protocol.Main.ErrorOrBuilder { + // Construct using ch.usi.dag.dislre.protocol.Main.Error.newBuilder() + private Builder() { + super(DEFAULT_INSTANCE); + } + + + /** + * optional string message = 1; + */ + public java.lang.String getMessage() { + return instance.getMessage(); + } + /** + * optional string message = 1; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + return instance.getMessageBytes(); + } + /** + * optional string message = 1; + */ + public Builder setMessage( + java.lang.String value) { + copyOnWrite(); + instance.setMessage(value); + return this; + } + /** + * optional string message = 1; + */ + public Builder clearMessage() { + copyOnWrite(); + instance.clearMessage(); + return this; + } + /** + * optional string message = 1; + */ + 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.Main.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.Main.Error other = (ch.usi.dag.dislre.protocol.Main.Error) arg1; + 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 10: { + 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.Main.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.Main.Error DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Error(); + DEFAULT_INSTANCE.makeImmutable(); + } + + public static ch.usi.dag.dislre.protocol.Main.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 the instrumentation functionality from the server
+     * 
+ * + * optional bool require_disl = 1; + */ + boolean getRequireDisl(); + + /** + *
+     * Request the ShadowVM functionality from the server
+     * 
+ * + * optional bool require_shvm = 2; + */ + boolean getRequireShvm(); + } + /** + *
+   * 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 static final int REQUIRE_DISL_FIELD_NUMBER = 1; + private boolean requireDisl_; + /** + *
+     * Request the instrumentation functionality from the server
+     * 
+ * + * optional bool require_disl = 1; + */ + public boolean getRequireDisl() { + return requireDisl_; + } + /** + *
+     * Request the instrumentation functionality from the server
+     * 
+ * + * optional bool require_disl = 1; + */ + private void setRequireDisl(boolean value) { + + requireDisl_ = value; + } + /** + *
+     * Request the instrumentation functionality from the server
+     * 
+ * + * optional bool require_disl = 1; + */ + private void clearRequireDisl() { + + requireDisl_ = false; + } + + public static final int REQUIRE_SHVM_FIELD_NUMBER = 2; + private boolean requireShvm_; + /** + *
+     * Request the ShadowVM functionality from the server
+     * 
+ * + * optional bool require_shvm = 2; + */ + public boolean getRequireShvm() { + return requireShvm_; + } + /** + *
+     * Request the ShadowVM functionality from the server
+     * 
+ * + * optional bool require_shvm = 2; + */ + private void setRequireShvm(boolean value) { + + requireShvm_ = value; + } + /** + *
+     * Request the ShadowVM functionality from the server
+     * 
+ * + * optional bool require_shvm = 2; + */ + private void clearRequireShvm() { + + requireShvm_ = false; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (requireDisl_ != false) { + output.writeBool(1, requireDisl_); + } + if (requireShvm_ != false) { + output.writeBool(2, requireShvm_); + } + } + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (requireDisl_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, requireDisl_); + } + if (requireShvm_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, requireShvm_); + } + 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); + } + + + /** + *
+       * Request the instrumentation functionality from the server
+       * 
+ * + * optional bool require_disl = 1; + */ + public boolean getRequireDisl() { + return instance.getRequireDisl(); + } + /** + *
+       * Request the instrumentation functionality from the server
+       * 
+ * + * optional bool require_disl = 1; + */ + public Builder setRequireDisl(boolean value) { + copyOnWrite(); + instance.setRequireDisl(value); + return this; + } + /** + *
+       * Request the instrumentation functionality from the server
+       * 
+ * + * optional bool require_disl = 1; + */ + public Builder clearRequireDisl() { + copyOnWrite(); + instance.clearRequireDisl(); + return this; + } + + /** + *
+       * Request the ShadowVM functionality from the server
+       * 
+ * + * optional bool require_shvm = 2; + */ + public boolean getRequireShvm() { + return instance.getRequireShvm(); + } + /** + *
+       * Request the ShadowVM functionality from the server
+       * 
+ * + * optional bool require_shvm = 2; + */ + public Builder setRequireShvm(boolean value) { + copyOnWrite(); + instance.setRequireShvm(value); + return this; + } + /** + *
+       * Request the ShadowVM functionality from the server
+       * 
+ * + * optional bool require_shvm = 2; + */ + public Builder clearRequireShvm() { + copyOnWrite(); + instance.clearRequireShvm(); + return this; + } + + // @@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; + requireDisl_ = visitor.visitBoolean(requireDisl_ != false, requireDisl_, + other.requireDisl_ != false, other.requireDisl_); + requireShvm_ = visitor.visitBoolean(requireShvm_ != false, requireShvm_, + other.requireShvm_ != false, other.requireShvm_); + 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: { + + requireDisl_ = input.readBool(); + break; + } + case 16: { + + requireShvm_ = 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.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.Main.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.Main.Error getErrors(int index) { + return errors_.get(index); + } + /** + * repeated .Error errors = 3; + */ + public ch.usi.dag.dislre.protocol.Main.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.Main.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.Main.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + } + /** + * repeated .Error errors = 3; + */ + private void addErrors(ch.usi.dag.dislre.protocol.Main.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.Main.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.Main.Error.Builder builderForValue) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + } + /** + * repeated .Error errors = 3; + */ + private void addErrors( + int index, ch.usi.dag.dislre.protocol.Main.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.Main.Error getErrors(int index) { + return instance.getErrors(index); + } + /** + * repeated .Error errors = 3; + */ + public Builder setErrors( + int index, ch.usi.dag.dislre.protocol.Main.Error value) { + copyOnWrite(); + instance.setErrors(index, value); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder setErrors( + int index, ch.usi.dag.dislre.protocol.Main.Error.Builder builderForValue) { + copyOnWrite(); + instance.setErrors(index, builderForValue); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors(ch.usi.dag.dislre.protocol.Main.Error value) { + copyOnWrite(); + instance.addErrors(value); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors( + int index, ch.usi.dag.dislre.protocol.Main.Error value) { + copyOnWrite(); + instance.addErrors(index, value); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors( + ch.usi.dag.dislre.protocol.Main.Error.Builder builderForValue) { + copyOnWrite(); + instance.addErrors(builderForValue); + return this; + } + /** + * repeated .Error errors = 3; + */ + public Builder addErrors( + int index, ch.usi.dag.dislre.protocol.Main.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.Main.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(); + + /** + * optional int32 request_id = 40; + */ + int getRequestId(); + + /** + *
+     */ 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(); + + /** + * optional .Error error = 30; + */ + ch.usi.dag.dislre.protocol.Main.Error getError(); + + 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), + ERROR(30), + 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 30: return ERROR; + 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 REQUEST_ID_FIELD_NUMBER = 40; + private int requestId_; + /** + * optional int32 request_id = 40; + */ + public int getRequestId() { + return requestId_; + } + /** + * optional int32 request_id = 40; + */ + private void setRequestId(int value) { + + requestId_ = value; + } + /** + * optional int32 request_id = 40; + */ + private void clearRequestId() { + + requestId_ = 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 static final int ERROR_FIELD_NUMBER = 30; + /** + * optional .Error error = 30; + */ + public ch.usi.dag.dislre.protocol.Main.Error getError() { + if (requestCase_ == 30) { + return (ch.usi.dag.dislre.protocol.Main.Error) request_; + } + return ch.usi.dag.dislre.protocol.Main.Error.getDefaultInstance(); + } + /** + * optional .Error error = 30; + */ + private void setError(ch.usi.dag.dislre.protocol.Main.Error value) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + requestCase_ = 30; + } + /** + * optional .Error error = 30; + */ + private void setError( + ch.usi.dag.dislre.protocol.Main.Error.Builder builderForValue) { + request_ = builderForValue.build(); + requestCase_ = 30; + } + /** + * optional .Error error = 30; + */ + private void mergeError(ch.usi.dag.dislre.protocol.Main.Error value) { + if (requestCase_ == 30 && + request_ != ch.usi.dag.dislre.protocol.Main.Error.getDefaultInstance()) { + request_ = ch.usi.dag.dislre.protocol.Main.Error.newBuilder((ch.usi.dag.dislre.protocol.Main.Error) request_) + .mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + requestCase_ = 30; + } + /** + * optional .Error error = 30; + */ + private void clearError() { + if (requestCase_ == 30) { + 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_); + } + if (requestCase_ == 30) { + output.writeMessage(30, (ch.usi.dag.dislre.protocol.Main.Error) request_); + } + if (requestId_ != 0) { + output.writeInt32(40, requestId_); + } + } + + 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_); + } + if (requestCase_ == 30) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, (ch.usi.dag.dislre.protocol.Main.Error) request_); + } + if (requestId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(40, requestId_); + } + 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; + } + + /** + * optional int32 request_id = 40; + */ + public int getRequestId() { + return instance.getRequestId(); + } + /** + * optional int32 request_id = 40; + */ + public Builder setRequestId(int value) { + copyOnWrite(); + instance.setRequestId(value); + return this; + } + /** + * optional int32 request_id = 40; + */ + public Builder clearRequestId() { + copyOnWrite(); + instance.clearRequestId(); + 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; + } + + /** + * optional .Error error = 30; + */ + public ch.usi.dag.dislre.protocol.Main.Error getError() { + return instance.getError(); + } + /** + * optional .Error error = 30; + */ + public Builder setError(ch.usi.dag.dislre.protocol.Main.Error value) { + copyOnWrite(); + instance.setError(value); + return this; + } + /** + * optional .Error error = 30; + */ + public Builder setError( + ch.usi.dag.dislre.protocol.Main.Error.Builder builderForValue) { + copyOnWrite(); + instance.setError(builderForValue); + return this; + } + /** + * optional .Error error = 30; + */ + public Builder mergeError(ch.usi.dag.dislre.protocol.Main.Error value) { + copyOnWrite(); + instance.mergeError(value); + return this; + } + /** + * optional .Error error = 30; + */ + public Builder clearError() { + copyOnWrite(); + instance.clearError(); + 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_); + requestId_ = visitor.visitInt(requestId_ != 0, requestId_, + other.requestId_ != 0, other.requestId_); + 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 ERROR: { + request_ = visitor.visitOneofMessage( + requestCase_ == 30, + 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; + } + case 242: { + ch.usi.dag.dislre.protocol.Main.Error.Builder subBuilder = null; + if (requestCase_ == 30) { + subBuilder = ((ch.usi.dag.dislre.protocol.Main.Error) request_).toBuilder(); + } + request_ = + input.readMessage(ch.usi.dag.dislre.protocol.Main.Error.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Main.Error) request_); + request_ = subBuilder.buildPartial(); + } + requestCase_ = 30; + break; + } + case 320: { + + requestId_ = input.readInt32(); + 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 int32 response_id = 40; + */ + int getResponseId(); + + /** + * 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(); + + /** + * optional .Error error = 30; + */ + ch.usi.dag.dislre.protocol.Main.Error getError(); + + 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), + ERROR(30), + 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 30: return ERROR; + 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 RESPONSE_ID_FIELD_NUMBER = 40; + private int responseId_; + /** + * optional int32 response_id = 40; + */ + public int getResponseId() { + return responseId_; + } + /** + * optional int32 response_id = 40; + */ + private void setResponseId(int value) { + + responseId_ = value; + } + /** + * optional int32 response_id = 40; + */ + private void clearResponseId() { + + responseId_ = 0; + } + + 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 static final int ERROR_FIELD_NUMBER = 30; + /** + * optional .Error error = 30; + */ + public ch.usi.dag.dislre.protocol.Main.Error getError() { + if (responseCase_ == 30) { + return (ch.usi.dag.dislre.protocol.Main.Error) response_; + } + return ch.usi.dag.dislre.protocol.Main.Error.getDefaultInstance(); + } + /** + * optional .Error error = 30; + */ + private void setError(ch.usi.dag.dislre.protocol.Main.Error value) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + responseCase_ = 30; + } + /** + * optional .Error error = 30; + */ + private void setError( + ch.usi.dag.dislre.protocol.Main.Error.Builder builderForValue) { + response_ = builderForValue.build(); + responseCase_ = 30; + } + /** + * optional .Error error = 30; + */ + private void mergeError(ch.usi.dag.dislre.protocol.Main.Error value) { + if (responseCase_ == 30 && + response_ != ch.usi.dag.dislre.protocol.Main.Error.getDefaultInstance()) { + response_ = ch.usi.dag.dislre.protocol.Main.Error.newBuilder((ch.usi.dag.dislre.protocol.Main.Error) response_) + .mergeFrom(value).buildPartial(); + } else { + response_ = value; + } + responseCase_ = 30; + } + /** + * optional .Error error = 30; + */ + private void clearError() { + if (responseCase_ == 30) { + 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_); + } + if (responseCase_ == 30) { + output.writeMessage(30, (ch.usi.dag.dislre.protocol.Main.Error) response_); + } + if (responseId_ != 0) { + output.writeInt32(40, responseId_); + } + } + + 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_); + } + if (responseCase_ == 30) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, (ch.usi.dag.dislre.protocol.Main.Error) response_); + } + if (responseId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(40, responseId_); + } + 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 int32 response_id = 40; + */ + public int getResponseId() { + return instance.getResponseId(); + } + /** + * optional int32 response_id = 40; + */ + public Builder setResponseId(int value) { + copyOnWrite(); + instance.setResponseId(value); + return this; + } + /** + * optional int32 response_id = 40; + */ + public Builder clearResponseId() { + copyOnWrite(); + instance.clearResponseId(); + 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; + } + + /** + * optional .Error error = 30; + */ + public ch.usi.dag.dislre.protocol.Main.Error getError() { + return instance.getError(); + } + /** + * optional .Error error = 30; + */ + public Builder setError(ch.usi.dag.dislre.protocol.Main.Error value) { + copyOnWrite(); + instance.setError(value); + return this; + } + /** + * optional .Error error = 30; + */ + public Builder setError( + ch.usi.dag.dislre.protocol.Main.Error.Builder builderForValue) { + copyOnWrite(); + instance.setError(builderForValue); + return this; + } + /** + * optional .Error error = 30; + */ + public Builder mergeError(ch.usi.dag.dislre.protocol.Main.Error value) { + copyOnWrite(); + instance.mergeError(value); + return this; + } + /** + * optional .Error error = 30; + */ + public Builder clearError() { + copyOnWrite(); + instance.clearError(); + 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; + responseId_ = visitor.visitInt(responseId_ != 0, responseId_, + other.responseId_ != 0, other.responseId_); + 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 ERROR: { + response_ = visitor.visitOneofMessage( + responseCase_ == 30, + 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; + } + case 242: { + ch.usi.dag.dislre.protocol.Main.Error.Builder subBuilder = null; + if (responseCase_ == 30) { + subBuilder = ((ch.usi.dag.dislre.protocol.Main.Error) response_).toBuilder(); + } + response_ = + input.readMessage(ch.usi.dag.dislre.protocol.Main.Error.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((ch.usi.dag.dislre.protocol.Main.Error) response_); + response_ = subBuilder.buildPartial(); + } + responseCase_ = 30; + break; + } + case 320: { + + responseId_ = input.readInt32(); + 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/server/src/ch/usi/dag/server/ClassCache.java b/server/src/ch/usi/dag/server/ClassCache.java new file mode 100644 index 0000000000000000000000000000000000000000..9821518a95e551f77cd9bfacc62b0857997584f3 --- /dev/null +++ b/server/src/ch/usi/dag/server/ClassCache.java @@ -0,0 +1,62 @@ +/** + * This file is part of disl project + * Author: Vit Kabele + * Created on the 27/03/2019 + */ +package ch.usi.dag.server; + +import java.util.concurrent.ConcurrentHashMap; + + +/** + * Cache for the classes received from client, that allows sharing ClassBytes between + * {@link ch.usi.dag.disl.DiSL} and {@link ch.usi.dag.shvm.SHVM} instances. + */ +final class ClassCache { + + private ConcurrentHashMap> __storage; + + ClassCache() { + __storage = new ConcurrentHashMap<>(); + } + + /** + * Insert the class in the storage. Fail if the class name is null + * + * @param classLoaderTag + * @param className + * @param data + * @return True if everything went well, false otherwise. + */ + boolean InsertClass(final long classLoaderTag, final String className, final byte[] data) { + + if (className == null) + return false; + + ConcurrentHashMap c = __storage.computeIfAbsent(classLoaderTag, d -> new ConcurrentHashMap<>()); + c.put(className, data); + + return true; + } + + + /** + * Retrieve the class from the storage if there is one, return null otherwise. + * + * @param classLoaderTag + * @param className + * @return + */ + byte[] RetrieveClass(final long classLoaderTag, final String className) { + + ConcurrentHashMap cl = __storage.getOrDefault(classLoaderTag, null); + + if (cl == null) { + return null; + } + + return cl.getOrDefault(className, null); + + } + +} diff --git a/server/src/ch/usi/dag/server/ConnectionHandler.java b/server/src/ch/usi/dag/server/ConnectionHandler.java new file mode 100644 index 0000000000000000000000000000000000000000..72a6b4faa49dcec642dbd7661c8a94ef97290bb2 --- /dev/null +++ b/server/src/ch/usi/dag/server/ConnectionHandler.java @@ -0,0 +1,179 @@ +/* + * This file is part of disl project + * Author: Vit Kabele + * Created on the 17/03/2019 + */ +package ch.usi.dag.server; + +import ch.usi.dag.dislre.protocol.Main.ServerMessage; +import ch.usi.dag.dislre.protocol.Main.ClientMessage; +import ch.usi.dag.util.logging.Logger; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.EOFException; +import java.io.IOException; +import java.net.Socket; + + +/** + * Handle the single connection from client. Dispatch the messages and pass them to appropriate + * target (i.e. {@link SessionManager}, {@link ch.usi.dag.shvm.SHVM} or {@link ch.usi.dag.disl.DiSL}). + * Note that the entire lifecycle of this runnable task is tied with the given {@link Socket}. + */ +final class ConnectionHandler implements Runnable { + + /** + * Server's end of the connection. + */ + private final Socket __clientSocket; + + /** + * Server context to provide access to shared data structures and settings. + */ + private final Server.Context __context; + + private final Logger __log; + + private static class Stats { + long receivedBytes = 0; + long sentBytes = 0; + } + + private final Stats stats = new Stats(); + + /** + * Constructor + * + * @param context Server context + * @param clientSocket Socket to the client. + */ + ConnectionHandler( + final Server.Context context, + Socket clientSocket + ) + { + __clientSocket = clientSocket; + __context = context; + __log = context.log; + } + + + @Override + public void run() + { + __context.workerCount.incrementAndGet(); + try ( + final DataOutputStream dataOutputStream = new DataOutputStream(__clientSocket.getOutputStream()); + final DataInputStream dataInputStream = new DataInputStream(__clientSocket.getInputStream()) + ) + { + while (true) { + + final ClientMessage clientMessage = ReceiveMessage(dataInputStream, stats); + + if (clientMessage == null) { + __log.debug("Empty message received. Socket was probably closed on the other end."); + break; + } + + final ServerMessage serverMessage = RequestDispatcher.dispatchMessage(__context, clientMessage); + + if (clientMessage.getRequestCase() == ClientMessage.RequestCase.CLOSE_CONNECTION) { + break; + } + + if (serverMessage != null) { + SendMessage(dataOutputStream, serverMessage, stats); + + // Close the connection after sending error message. + if (serverMessage.getResponseCase() == ServerMessage.ResponseCase.ERROR) { + break; + } + } + } + + __log.debug("Finishing the loop for connection from %s", __clientSocket.getRemoteSocketAddress()); + + __log.debug("Bytes received: %d", stats.receivedBytes); + __log.debug("Bytes sent: %d", stats.sentBytes); + + } catch (final IOException e) { + __log.warn(e, "IO Error while communicating with client"); + } catch (final ServerRuntimeException e) { + __log.warn("Error in server runtime"); + __log.warn(e.getLocalizedMessage()); + } catch (final Throwable t) { + __log.error(t, "Unhandled exception in %s", ConnectionHandler.class.getSimpleName()); + } finally { + + try { + __clientSocket.close(); + } catch (final IOException e) { + __log.error(e, "Error occurred while closing the socket."); + } + + final int remaining = __context.workerCount.decrementAndGet(); + if (remaining == 0 && !__context.isContinuous) { + __context.serverThread.interrupt(); + } + } + + } + + + /** + * Send the {@link ServerMessage} to the stream. + * + * @param outputStream + * @param serverMessage + * @throws IOException + */ + private static void SendMessage( + final DataOutputStream outputStream, + final ServerMessage serverMessage, + final Stats stats + ) throws IOException + { + final int responseLength = serverMessage.getSerializedSize(); + + outputStream.writeInt(responseLength); + serverMessage.writeTo(outputStream); + outputStream.flush(); + + stats.sentBytes += responseLength; + } + + /** + * Receive the {@link ClientMessage} from stream. If the other end of stream is closed + * unexpectedly then the null is returned. + * + * @param inputStream + * @return + * @throws IOException + */ + private static ClientMessage ReceiveMessage(final DataInputStream inputStream, final Stats stats) throws IOException + { + int message_length; + + try { + message_length = inputStream.readInt(); + + if (message_length == 0) return null; + + byte[] message = new byte[message_length]; + + inputStream.readFully(message); + + stats.receivedBytes += message_length; + + return ClientMessage.parseFrom(message); + + } catch (final EOFException e) { + return null; + } + + + } + +} diff --git a/server/src/ch/usi/dag/server/InitializationException.java b/server/src/ch/usi/dag/server/InitializationException.java new file mode 100644 index 0000000000000000000000000000000000000000..e2ce220d5423b5155267f130e7a536efc0360ea1 --- /dev/null +++ b/server/src/ch/usi/dag/server/InitializationException.java @@ -0,0 +1,23 @@ +/** + * This file is part of disl project + * Author: Vit Kabele + * Created on the 17/03/2019 + */ +package ch.usi.dag.server; + +/** + * Exception to be thrown in case that server initialization failed. + */ +final class InitializationException extends Throwable { + + InitializationException(final String message) { super(message); } + + InitializationException(final String message, final Throwable throwable) { + super(message, throwable); + } + + InitializationException(final String formatString, Object ... args) { + super(String.format(formatString, args)); + } + +} diff --git a/server/src/ch/usi/dag/server/Logging.java b/server/src/ch/usi/dag/server/Logging.java new file mode 100644 index 0000000000000000000000000000000000000000..39a557d6c9606a5536fd1ed97344db7be56aa8c2 --- /dev/null +++ b/server/src/ch/usi/dag/server/Logging.java @@ -0,0 +1,56 @@ +package ch.usi.dag.server; + +import ch.usi.dag.shvm.SHVM; +import ch.usi.dag.util.logging.Logger; + + +/** + * Utility class to provide logging services tailored to the needs of the + * framework. + * + * @author Lubomir Bulej + */ +public final class Logging { + + /** + * Package name of the framework entry class. + */ + private static final String + __OLD_PREFIX__ = Main.class.getPackage ().getName (); + + /** + * Default prefix for top-level logs. + */ + private static final String + __NEW_PREFIX__ = "server"; + + /** + * Register provider property alias with the logging class. + */ + static { + Logger.registerProviderAlias ("logging.provider"); + Logger.registerLevelAlias ("logging.level"); + } + + // + + private Logging() { + // pure static class - not to be instantiated + } + + // + + public static Logger getPackageInstance () { + // + // Determine the package this method was called from and strip common + // prefix to get tighter, more local names. + // + final StackTraceElement caller = + Thread.currentThread ().getStackTrace () [2]; + + return Logger.getPackageInstance ( + caller, __OLD_PREFIX__, __NEW_PREFIX__ + ); + } + +} diff --git a/server/src/ch/usi/dag/server/Main.java b/server/src/ch/usi/dag/server/Main.java new file mode 100644 index 0000000000000000000000000000000000000000..7b9839f9e1d90deff683a302844f4612553c8c46 --- /dev/null +++ b/server/src/ch/usi/dag/server/Main.java @@ -0,0 +1,121 @@ +/** + * This file is part of disl project + * Author: Vit Kabele + * Created on the 16/03/2019 + */ +package ch.usi.dag.server; + +import com.beust.jcommander.JCommander; +import com.beust.jcommander.Parameter; +import com.beust.jcommander.ParameterException; +import com.beust.jcommander.validators.PositiveInteger; + + +/** + * This is the main class of integrated DiSL and SHVM analysis server. It's responsibility is to + * parse the command line arguments, to create and configure new server instance and then run + * the instance. + */ +public class Main { + + @Parameter(names = "--help", help = true, description = "Prints this help and exits") + private boolean help; + + @Parameter(names = { "-p", "--port" }, description = "The port to listen for connections", validateWith = PositiveInteger.class) + private int port = 11217; + + @Parameter(names = {"-d", "--debug"}, description = "Debug flag") + private boolean debug = false; + + @Parameter(names = {"-c", "--continuous"}, description = "Do not exit, when the last connected session ends") + private boolean continuous = false; + + @Parameter(names = {"--disl"}, description = "Act as instrumentation server") + private boolean disl = false; + + @Parameter(names = {"--shvm"}, description = "Act as analysis server") + private boolean shvm = false; + + @Parameter(names = {"--status-file"}, description = "This file will be deleted, " + + "when the server start listening for connections. It is used for synchronisation in scripts.") + private String statusFile = null; + + @Parameter(names = {"--exclusion-list"}, description = "The DiSL exclusion list file.") + private String exclusionListFilename = null; + + public static void main(String[] args) + { + Main main = new Main(); + + JCommander parser = JCommander.newBuilder().addObject(main).build(); + parser.setProgramName(Main.class.getName()); + + try { + parser.parse(args); + + if (main.help) { + parser.usage(); + return; + } + + main.run(); + } catch (final ParameterException e) { + System.out.println(e.getLocalizedMessage()); + parser.usage(); + } catch (final InitializationException e) { + System.out.println("An error occurred during initialization of the server."); + System.out.println(e.getLocalizedMessage()); + //e.printStackTrace(); + } catch (final Throwable t) { + System.err.println("Fatal error occured during the execution of the program."); + } + + } + + /** + * Create and run the server instance + */ + private void run() throws InitializationException + { + Server.Builder builder = Server.newBuilder(); + builder.setPort(port); + builder.setContinuous(continuous); + builder.setDebug(debug); + builder.setDisl(disl); + builder.setShvm(shvm); + builder.setStatusFile(statusFile); + builder.setExclusionListFilename( + getExclusionListFilename(exclusionListFilename) + ); + + Server server = builder.build(); + + server.run(); + } + + private static final String DISL_EXCLUSION_LIST = "disl.exclusionList"; + + + /** + * TL;DR + * Returns the filename with exclusion set. The filename obtained from the cli parser is the input + * parameter. If this is non-null, then the property filename will not be used. If this is null, + * then the value of the property is checked and if non-empty, then returns this value. + * + * Short: CLI argument overrides the parameter given one. + * + * @param elf + * @return + */ + private static String getExclusionListFilename(final String elf) + { + final String fileName = System.getProperty (DISL_EXCLUSION_LIST, ""); + + if (elf == null && !fileName.isEmpty()){ + return fileName; + } + + return elf; + } + +} diff --git a/server/src/ch/usi/dag/server/RequestDispatcher.java b/server/src/ch/usi/dag/server/RequestDispatcher.java new file mode 100644 index 0000000000000000000000000000000000000000..2897212892b6746c9707dcaf3f1355176b51f94d --- /dev/null +++ b/server/src/ch/usi/dag/server/RequestDispatcher.java @@ -0,0 +1,186 @@ +/** + * This file is part of disl project + * Author: Vit Kabele + * Created on the 17/03/2019 + */ +package ch.usi.dag.server; + +import ch.usi.dag.dislre.protocol.Main; +import ch.usi.dag.dislre.protocol.Main.*; +import ch.usi.dag.dislre.protocol.Main.ServerMessage; +import ch.usi.dag.shvm.SHVMImpl; + + +/** + * Take the protobuf message and call a method according to what message was received. The method + * returns ServerMessage to be packed as a response. + * + * The session related messages process self and the DiSL and SHVM messages pass to the appropriate + * module dispatcher, this is {@link RequestDispatcherDiSL} or {@link RequestDispatcherSHVM} + */ +final class RequestDispatcher { + + /** + * Pure static class. + */ + private RequestDispatcher() {} + + /** + * Pass the messages to appropriate handlers and return {@link ServerMessage} containing + * the reply. When null is returned, then no reply will be sent. + * + * @param context + * @param message + * @return + * @throws ServerRuntimeException When a serious error during occurs during server runtime. + */ + static ServerMessage dispatchMessage( + Server.Context context, + ClientMessage message + ) throws ServerRuntimeException + { + ServerMessage serverMessage = null; + ServerMessage.Builder builder = ServerMessage.newBuilder().setResponseId(message.getRequestId()); + + try { + switch (message.getRequestCase()) { + case SESSION_INIT_REQUEST: + serverMessage = handleSessionInit(context, message.getSessionInitRequest(), builder); + break; + case CLOSE_CONNECTION: + final Integer sessionID = message.getSessionId(); + handleCloseConnection(context, sessionID); + break; + case INSTRUMENTATION_DELIVERY: + case INSTRUMENT_CLASS_REQUEST: + serverMessage = RequestDispatcherDiSL.dispatchMessage(context, message, builder); + break; + case REGISTER_ANALYSIS: + case NEW_CLASS: + case ANALYZE: + case OBJECT_FREE: + case THREAD_INFO: + case STRING_INFO: + case THREAD_END: + case CLASS_INFO: + serverMessage = RequestDispatcherSHVM.dispatchMessage(context, message); + break; + case REQUEST_NOT_SET: + default: + throw new ServerRuntimeException( + String.format("Cannot handle request case %s", message.getRequestCase().name()) + ); + } + } catch (RequestErrorException e) { + + context.log.info("Sending error message to the client: [%s]", e.getLocalizedMessage()); + serverMessage = builder + .setError( + __createErrorMessage(e.getMessage()) + ) + .build(); + + } + + return serverMessage; + } + + + /** + * Register the session in the {@link SessionManager} instance and return {@link ServerMessage} + * acquiring the creation of session and containing the session id. + * + * @param context + * @param request + * @return + */ + private static ServerMessage handleSessionInit( + final Server.Context context, + final SessionInitRequest request, + final ServerMessage.Builder builder + ) throws RequestErrorException + { + Session session = context.sessionManager.createSession(); + + // Client requires the ShadowVM functionality + session.setShadowVMRequested(request.getRequireShvm()); + if (request.getRequireShvm()) { + + // Server is able to provide such functionality + if (context.isShvm) { + session.setShadowVM(new SHVMImpl(context.log)); + } else { + context.log.info("Client requested unsupported functionality (SHVM). If you want to" + + "enable this, run the program with --shvm option"); + throw new RequestErrorException("Server is not able to provide SHVM functionality"); + } + + } + + // Client requires the DiSL functionality + session.setDiSLRequested(request.getRequireDisl()); + if (request.getRequireDisl() && !context.isDisl) { + context.log.info("Client requested unsupported functionality (DiSL). If you want to enable this," + + "run the program with --disl option"); + throw new RequestErrorException("Server is unable to provide DiSL functionality"); + } + + return builder + .setSessionInitResponse( + SessionInitResponse + .newBuilder() + .setSessionId(session.getSessionID()) + .build() + ).build(); + } + + + /** + * Handle the request to close the connection. Delete the session from shared storage and + * terminate the {@link ch.usi.dag.disl.DiSL} and {@link ch.usi.dag.shvm.SHVM} existing instances. + * + * Note that the instances in {@link Server.Context} might be null, when the functionality is + * not required by the client. + * + * @param context + * @param sessionID + * @return + * @throws RequestErrorException + */ + private static ServerMessage handleCloseConnection( + final Server.Context context, + final Integer sessionID + ) throws RequestErrorException + { + context.log.debug("Closing session with ID %d", sessionID); + final Session session = context.sessionManager.getSession(sessionID); + + if (session.getShadowVM() != null) { + session.getShadowVM().HandleClose(); + } + + if (session.getDiSL() != null) { + session.getDiSL().terminate(); + } + + context.sessionManager.killSession(sessionID); + + return null; + } + + + /** + * Create the protobuf error message that will be sent to the client in case of failure or + * wrong request. + * + * @param message The message text. + * @return Error message that will be sent to the client. + */ + private static Main.Error __createErrorMessage(final String message) + { + return Main.Error.newBuilder() + .setMessage(message) + .build(); + } + +} diff --git a/server/src/ch/usi/dag/server/RequestDispatcherDiSL.java b/server/src/ch/usi/dag/server/RequestDispatcherDiSL.java new file mode 100644 index 0000000000000000000000000000000000000000..fb06b659cec7bc3af0890682dba5b8b6be71e60a --- /dev/null +++ b/server/src/ch/usi/dag/server/RequestDispatcherDiSL.java @@ -0,0 +1,187 @@ +/** + * This file is part of disl project + * Author: Vit Kabele + * Created on the 17/03/2019 + */ +package ch.usi.dag.server; + +import ch.usi.dag.disl.DiSL; +import ch.usi.dag.disl.DiSLException; +import ch.usi.dag.disl.JavaNames; +import ch.usi.dag.dislre.protocol.DiSL.*; +import ch.usi.dag.dislre.protocol.Main.*; +import ch.usi.dag.util.logging.Logger; +import com.google.protobuf.ByteString; + +import java.util.ArrayList; +import java.util.List; +import java.util.Set; +import java.util.UUID; + + +/** + * Dispatch DiSL related messages. + */ +final class RequestDispatcherDiSL { + + static ServerMessage dispatchMessage( + final Server.Context context, + final ClientMessage message, + final ServerMessage.Builder builder + ) throws RequestErrorException, ServerRuntimeException + { + final Integer sessionID = message.getSessionId(); + final Session session = context.sessionManager.getSession(sessionID); + + if (!session.getDiSLRequested()) { + final String errorMessage = String.format( + "DiSL functionality was not requested, but DiSL related message (%s) was received from the client.", + message.getRequestCase().name()); + context.log.warn(errorMessage); + throw new RequestErrorException(errorMessage); + } + + switch (message.getRequestCase()) { + case INSTRUMENTATION_DELIVERY: + return handle(session, context, message.getInstrumentationDelivery(), builder); + case INSTRUMENT_CLASS_REQUEST: + return handle(session, context.log, message.getInstrumentClassRequest(), builder); + case REQUEST_NOT_SET: + default: + throw new ServerRuntimeException("DiSL dispatcher obtained a message of unknown type"); + + } + } + + + /** + * handle {@link InstrumentationDelivery} message. Create new instance of {@link DiSL} and set + * this instance to the actual session. + * + * @param session + * @param context + * @param message + * @return + * @throws RequestErrorException + */ + static ServerMessage handle( + final Session session, + final Server.Context context, + final InstrumentationDelivery message, + final ServerMessage.Builder builder + ) throws RequestErrorException + { + final InstrumentationAcceptConfirmation.Builder iacBuilder = InstrumentationAcceptConfirmation.newBuilder(); + final Logger logger = context.log; + final List instrumentations = new ArrayList<>(); + + int off = 0; + for (int i = 0; i < message.getSizesCount(); ++i) { + byte[] bytes = new byte[message.getSizes(i)]; + message.getInstrumentation().copyTo(bytes, off, 0, message.getSizes(i)); + off += message.getSizes(i); + instrumentations.add(bytes); + } + + try { + + session.setDiSL( + new DiSL(System.getProperties(), instrumentations, context.exclusionListFilename) + ); + iacBuilder.setInstrumentationAccepted(true); + + } catch (ch.usi.dag.disl.InitializationException e) { + iacBuilder.setInstrumentationAccepted(false); + logger.error(e, "Error while initializing DiSL"); + throw new RequestErrorException(e.getMessage()); + } catch (DiSLException e) { + iacBuilder.setInstrumentationAccepted(false); + logger.error(e, "Error in DiSL runtime"); + throw new RequestErrorException("Error while creating DiSL instance."); + } + + return builder + .setInstrumentationAcceptConfirmation( + iacBuilder.build() + ).build(); + + } + + + static ServerMessage handle( + final Session session, + final Logger logger, + final InstrumentClassRequest message, + final ServerMessage.Builder builder + ) throws RequestErrorException + { + logger.trace("Processing instrumentation request..."); + + InstrumentClassResponse response = null; + + final byte[] classBytes = message.getClassBytes().toByteArray(); + final InstrClassInfo classInfo = message.getClassInfo(); + final String className = __getClassName(classInfo.getClassName(), classBytes); + final Set options = DiSL.CodeOption.setOf (message.getFlags ()); + + // If operating in combined mode, store the class data in cache + if (session.getShadowVMRequested() && session.getDiSLRequested()) { + session.getClassCache().InsertClass( + classInfo.getClassLoaderTag(), + className, + classBytes + ); + } + + try { + final byte[] newClassBytes = session.getDiSL().instrument(classBytes); + if (newClassBytes == null) { + response = InstrumentClassResponse + .newBuilder() + .setResult(InstrumentClassResponse.InstrumentClassResult.CLASS_UNMODIFIED) + .build(); + } else { + response = InstrumentClassResponse + .newBuilder() + .setResult(InstrumentClassResponse.InstrumentClassResult.CLASS_MODIFIED) + .setClassBytes(ByteString.copyFrom(newClassBytes)) + .build(); + } + + } catch (DiSLException e) { + throw new RequestErrorException( + String.format("Cannot instrument class %s", className), + e + ); + } + + return builder + .setInstrumentClassResponse(response) + .build(); + + } + + + /** + * If no class name is provided in the first argument, then try to extract the name from + * given classbytes, if that method also fail, then return newly generated UUID. + * + * @param name + * @param classBytes + * @return + */ + private static String __getClassName(final String name, final byte [] classBytes) + { + if (!name.isEmpty ()) { + return name; + } else { + String result = JavaNames.getClassNameFromBytes (classBytes); + if (result == null || result.isEmpty ()) { + result = UUID.randomUUID ().toString (); + } + + return result; + } + } + +} diff --git a/server/src/ch/usi/dag/server/RequestDispatcherSHVM.java b/server/src/ch/usi/dag/server/RequestDispatcherSHVM.java new file mode 100644 index 0000000000000000000000000000000000000000..60e7fe29b76ee0b057656bd183f7a79a84177906 --- /dev/null +++ b/server/src/ch/usi/dag/server/RequestDispatcherSHVM.java @@ -0,0 +1,169 @@ +/** + * This file is part of disl project + * Author: Vit Kabele + * Created on the 17/03/2019 + */ +package ch.usi.dag.server; + +import ch.usi.dag.dislre.protocol.Analysis; +import ch.usi.dag.dislre.protocol.Main.*; +import ch.usi.dag.shvm.DiSLREServerException; +import ch.usi.dag.shvm.SHVM; +import ch.usi.dag.util.ByteArrayUtils; +import ch.usi.dag.util.logging.Logger; + + +/** + * Dispatch {@link ch.usi.dag.shvm.SHVM} related messages. + */ +final class RequestDispatcherSHVM { + + /** + * Pure static class + */ + private RequestDispatcherSHVM(){} + + static ServerMessage dispatchMessage( + final Server.Context context, + ClientMessage clientMessage + ) throws RequestErrorException, ServerRuntimeException + { + + Session session = context.sessionManager.getSession(clientMessage.getSessionId()); + + if (!session.getShadowVMRequested()) { + // If client didn't request the ShadowVm functionality, we cannot send the error + // message back to the client, as he is not expecting a reply. Thus we evaluate it + // as a server runtime error. + throw new ServerRuntimeException("Cannot complete the request. Agent didn't request the " + + "ShadowVM functionality, but now sends the ShadowVM related message."); + } + + try { + SHVM shadowVM = session.getShadowVM(); + dispatch(clientMessage, shadowVM, context.log, session); + } catch (DiSLREServerException e) { + throw new RequestErrorException(e.getMessage(), e); + } + + return null; + } + + private static void dispatch( + final ClientMessage clientMessage, + final SHVM shadowVM, + final Logger logger, + final Session session + ) throws DiSLREServerException, ServerRuntimeException + { + switch (clientMessage.getRequestCase ()) + { + case ANALYZE: + Analysis.Analyze analyze = clientMessage.getAnalyze (); + shadowVM.HandleAnalyze ( + analyze.getOrderingID (), + analyze.getInvocationCount (), + analyze.getRawData ().toByteArray () + ); + break; + case CLASS_INFO: + Analysis.ClassInfo classInfo = clientMessage.getClassInfo (); + shadowVM.HandleClassInfo ( + classInfo.getClassTag (), + classInfo.getClassSignature (), + classInfo.getClassGeneric (), + classInfo.getLoaderTag (), + classInfo.getSuperClassTag () + ); + break; + case NEW_CLASS: + Analysis.NewClass newClass = clientMessage.getNewClass (); + handleNewClass(shadowVM, newClass, session); + break; + case THREAD_END: + shadowVM.HandleThreadEnd (clientMessage.getThreadEnd ().getThreadId ()); + break; + case REGISTER_ANALYSIS: + Analysis.RegisterAnalysis registerAnalysis = clientMessage.getRegisterAnalysis (); + shadowVM.HandleRegisterAnalysis ( + registerAnalysis.getAnalysisId (), + registerAnalysis.getDescriptor () + ); + break; + case STRING_INFO: + Analysis.StringInfo stringInfo = clientMessage.getStringInfo (); + shadowVM.HandleStringInfo ( + stringInfo.getStringTag (), + stringInfo.getStringData () + ); + break; + case THREAD_INFO: + Analysis.ThreadInfo threadInfo = clientMessage.getThreadInfo (); + shadowVM.HandleThreadInfo ( + threadInfo.getThreadTag (), + threadInfo.getName (), + threadInfo.getIsDaemon () + ); + break; + case OBJECT_FREE: + int count = clientMessage.getObjectFree().getCount (); + long[] ids = new long[count]; + byte[] byteArray = clientMessage.getObjectFree ().getRawData ().toByteArray (); + + logger.error ( + "Serious error in data transfer: Indicated length (%d) does not match real length (%d)", + count, byteArray.length); + + // ByteArrayUtils method used here, since it's much more lightweight solution than + // creating an input stream again. + for (int i = 0; i < count; ++i) { + ids[i] = ByteArrayUtils.ReadLong (byteArray, i * Long.BYTES); + } + + shadowVM.HandleObjectFree (ids); + break; + case REQUEST_NOT_SET: + default: + logger.info ( + "Not implemented request case %s", clientMessage.getRequestCase ().name () + ); + throw new ServerRuntimeException("Not implemented request case"); + } + } + + + /** + * Handle the new class request. If operating in combined mode, then use the class data from + * cache. + * @param shadowVM + * @param newClass + * @param session + * @throws ServerRuntimeException + */ + private static void handleNewClass( + final SHVM shadowVM, + final Analysis.NewClass newClass, + final Session session + ) throws ServerRuntimeException { + + byte[] data; + long classLoaderTag = newClass.getClassLoaderTag(); + String className = newClass.getClassName(); + // Server provides both instrumentation and analysis. The class data + // are on the server, delivered by InstrumentClassRequests. + if (session.getDiSLRequested() && session.getShadowVMRequested()){ + data = session.getClassCache().RetrieveClass(classLoaderTag, className); + if (data == null) { + throw new ServerRuntimeException("Cannot retrieve class %s from class cache", className); + } + } else { + data = newClass.getClassData().toByteArray(); + } + + shadowVM.HandleNewClass( + className, + classLoaderTag, + data + ); + } +} diff --git a/server/src/ch/usi/dag/server/RequestErrorException.java b/server/src/ch/usi/dag/server/RequestErrorException.java new file mode 100644 index 0000000000000000000000000000000000000000..57a0073031109b6c7bc7c7813fce3b3c8ad9112a --- /dev/null +++ b/server/src/ch/usi/dag/server/RequestErrorException.java @@ -0,0 +1,18 @@ +/** + * This file is part of disl project + * Author: Vit Kabele + * Created on the 18/03/2019 + */ +package ch.usi.dag.server; + +/** + * This exception signalize the error while processiong a request. It should be catched and it's + * message passed to the error response to the client. + */ +class RequestErrorException extends Throwable { + + RequestErrorException(final String message) { super(message); } + + RequestErrorException(final String message, final Throwable throwable) { super(message, throwable); } + +} diff --git a/server/src/ch/usi/dag/server/Server.java b/server/src/ch/usi/dag/server/Server.java new file mode 100644 index 0000000000000000000000000000000000000000..18a8f1b6885134a7f2598ed038f513396c99e4e3 --- /dev/null +++ b/server/src/ch/usi/dag/server/Server.java @@ -0,0 +1,336 @@ +/** + * This file is part of disl project + * Author: Vit Kabele + * Created on the 17/03/2019 + */ +package ch.usi.dag.server; + +import ch.usi.dag.util.logging.Logger; + +import java.io.File; +import java.io.IOException; +import java.net.InetSocketAddress; +import java.net.StandardSocketOptions; +import java.nio.channels.ClosedByInterruptException; +import java.nio.channels.ServerSocketChannel; +import java.nio.channels.SocketChannel; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.atomic.AtomicInteger; + + +/** + * This class is responsible for creating a socket on given address, creating and managing thread + * pool, receiving connections and passing them to thread pool. + * Once build, this class should be immutable. + */ +final class Server { + + /** + * To be used when constructing new instance of {@link Server}. Every error created during + * initialization of the final class, such as occupied ports and so on, should be determined + * in the build method. Not before, and possibly not after. + */ + final static class Builder { + + private int port = 11217; + + private boolean debug = false; + + private boolean continuous = false; + + private boolean disl = false; + + private boolean shvm = false; + + private String statusFile = null; + + private String exclusionListFilename; + + + Builder setPort(int port) + { + this.port = port; + return this; + } + + + Builder setDebug(boolean debug) + { + this.debug = debug; + return this; + } + + + Builder setContinuous(boolean continuous) + { + this.continuous = continuous; + return this; + } + + + Builder setDisl(boolean disl) + { + this.disl = disl; + return this; + } + + + Builder setShvm(boolean shvm) + { + this.shvm = shvm; + return this; + } + + Builder setStatusFile(final String statusFile) + { + this.statusFile = statusFile; + return this; + } + + Builder setExclusionListFilename(final String exclusionListFilename) + { + this.exclusionListFilename = exclusionListFilename; + return this; + } + + private Builder() {} + + + Server build() throws InitializationException + { + + if (!disl && !shvm) { + throw new InitializationException( + "At least one of the SHVM/DiSL functionality should be enabled"); + } + + final Context context = new Context(disl, shvm, continuous, new SessionManager(), exclusionListFilename); + + final File statusFile = getExistingFile(this.statusFile); + + return new Server( + createServerSocket(port), + context, + statusFile + ); + } + + + /** + * Returns the new {@link File} class instance for given filename. If the filename is empty, + * or null, than null is returned. However, when the given path is not empty the + * {@link InitializationException} is thrown with message that invalid path was given. + * + * @param fileName + * @return + */ + private static File getExistingFile(final String fileName) throws InitializationException { + + if (fileName == null || fileName.isEmpty()) { + return null; + } + + final File file = new File(fileName); + + if (!file.exists()) { + throw new InitializationException( + "The file does not exist: %s", fileName); + } + + return file; + } + + /** + * Create the {@link ServerSocketChannel} on specified port. + * + * @param port Numerical representation of port to be bound to. + * @return + * @throws InitializationException + */ + private static ServerSocketChannel createServerSocket(int port) throws InitializationException + { + + if (port < 1 || port > 65535) { + throw new InitializationException("Given port must be between 1 and 65535"); + } + + try { + final InetSocketAddress inetSocketAddress = new InetSocketAddress(port); + final ServerSocketChannel ssc = ServerSocketChannel.open(); + ssc.setOption(StandardSocketOptions.SO_REUSEADDR, true); + ssc.bind(inetSocketAddress); + return ssc; + } catch (IOException e) { + throw new InitializationException("Error while creating the socket", e); + } + + } + + } + + /** + * Obtain new instance of {@link Builder}. This is the only way of getting new instances of + * {@link Server} + * + * @return New instance of {@link Builder} + */ + static Builder newBuilder() + { + return new Builder(); + } + + + /** + * Internal configuration and state storage. Only one instance is present in the whole server, + * thus the more fields are immutable, the better. Since the properties are final, there is no + * need to access them via getter. + */ + final static class Context { + + final Thread serverThread = Thread.currentThread(); + + final SessionManager sessionManager; + + final boolean isDisl; + + final boolean isShvm; + + final boolean isContinuous; + + /** + * This is the name of file containing the DiSL exclusion list. + */ + final String exclusionListFilename; + + final Logger log = Logging.getPackageInstance(); + + /** + * The number of active worker count. This should be equivalent to the number of active + * connections. Active means, that the number is incremented at the enter to the {@link ConnectionHandler#run()} + * method and decremented before exit. + */ + final AtomicInteger workerCount = new AtomicInteger(); + + + private Context( + final boolean disl, + final boolean shvm, + final boolean continuous, + final SessionManager sessionManager, + final String exclusionListFilename + ) + { + isDisl = disl; + isShvm = shvm; + isContinuous = continuous; + this.sessionManager = sessionManager; + this.exclusionListFilename = exclusionListFilename; + } + } + + + /** + * Manage and store the sessions. Provide the interface to create new, obtain one via session + * id and allow change state of session with given id. + */ + private final SessionManager __sessionManager; + + /** + * Server context. Contains the data about server instance that needs to be shared between + * different submodules as well as the copy of some config parameters that are used later + * in the server lifecycle, such as command line options for {@link ch.usi.dag.disl.DiSL} + * instrumentation processor, whose instances will be created per-request. + */ + private final Context __context; + + /** + * The executor for connection handlers. Each incoming connection gets assigned one instance of + * {@link ConnectionHandler} that will be executed using this service. Note that the Executor + * must be {@link ExecutorService#shutdown()}ed, otherwise the app will hang and never exits. + */ + private final ExecutorService __executorService; + + /** + * The server's end of communication with client. + */ + private final ServerSocketChannel __serverSocket; + + /** + * Server status file. This one is deleted when the server starts listening for connections. + * It's used mainly for synchronization in scripts. + */ + private final File __statusFile; + + /** + * Private constructor to be used from the builder class only. + * @param serverSocket + * @param context + */ + private Server( + final ServerSocketChannel serverSocket, + final Context con