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.Parserrepeated int32 sizes = 1;
+ */
+ java.util.Listrepeated 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.Listrepeated 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 extends java.lang.Integer> 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.Listrepeated 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 extends java.lang.Integer> 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.Parseroptional 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.Parseroptional 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.Parseroptional 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.Listrepeated .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.ProtobufListrepeated .InstrClassInfo superTypes = 6;
+ */
+ public java.util.Listrepeated .InstrClassInfo superTypes = 6;
+ */
+ public java.util.List extends ch.usi.dag.dislre.protocol.DiSL.InstrClassInfoOrBuilder>
+ 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 extends ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo> 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.Listrepeated .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 extends ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo> 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.Parseroptional .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.EnumLiteMapoptional .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.Parseroptional 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+ * 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.Parseroptional bool accepted = 1;
+ */
+ boolean getAccepted();
+
+ /**
+ * optional int32 session_id = 2;
+ */
+ int getSessionId();
+
+ /**
+ * repeated .Error errors = 3;
+ */
+ java.util.Listrepeated .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.ProtobufListrepeated .Error errors = 3;
+ */
+ public java.util.Listrepeated .Error errors = 3;
+ */
+ public java.util.List extends ch.usi.dag.dislre.protocol.Main.ErrorOrBuilder>
+ 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 extends ch.usi.dag.dislre.protocol.Main.Error> 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.Listrepeated .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 extends ch.usi.dag.dislre.protocol.Main.Error> 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.Parseroptional .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.EnumLiteMapoptional .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.Parseroptional 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.Parseroptional 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.Parseroptional 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- * 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
optional bool accepted = 1;
- */
- boolean getAccepted();
-
- /**
- * optional int32 session_id = 2;
- */
- int getSessionId();
-
- /**
- * repeated .Error errors = 3;
- */
- java.util.Listrepeated .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.ProtobufListrepeated .Error errors = 3;
- */
- public java.util.Listrepeated .Error errors = 3;
- */
- public java.util.List extends ch.usi.dag.dislserver.Protocol.ErrorOrBuilder>
- 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 extends ch.usi.dag.dislserver.Protocol.Error> 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.Listrepeated .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 extends ch.usi.dag.dislserver.Protocol.Error> 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.Parserrepeated int32 sizes = 1;
- */
- java.util.Listrepeated 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.Listrepeated 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 extends java.lang.Integer> 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.Listrepeated 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 extends java.lang.Integer> 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.Parseroptional bool instrumentation_accepted = 1;
- */
- boolean getInstrumentationAccepted();
-
- /**
- * repeated .Error errors = 2;
- */
- java.util.Listrepeated .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.ProtobufListrepeated .Error errors = 2;
- */
- public java.util.Listrepeated .Error errors = 2;
- */
- public java.util.List extends ch.usi.dag.dislserver.Protocol.ErrorOrBuilder>
- 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 extends ch.usi.dag.dislserver.Protocol.Error> 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.Listrepeated .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 extends ch.usi.dag.dislserver.Protocol.Error> 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.Parseroptional 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.Parseroptional 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.Listrepeated .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.ProtobufListrepeated .ClassInfo superTypes = 6;
- */
- public java.util.Listrepeated .ClassInfo superTypes = 6;
- */
- public java.util.List extends ch.usi.dag.dislserver.Protocol.ClassInfoOrBuilder>
- 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 extends ch.usi.dag.dislserver.Protocol.ClassInfo> 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.Listrepeated .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 extends ch.usi.dag.dislserver.Protocol.ClassInfo> 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.Parseroptional .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.EnumLiteMapoptional .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.Parseroptional .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.EnumLiteMapoptional .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.Parseroptional 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.Parseroptional .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* 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 extends Object> 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
* [<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 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.Parseroptional 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.Parseroptional 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.Parseroptional 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.Parseroptional 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.Parseroptional 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.Parseroptional 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.Parseroptional 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.Parserrepeated int32 sizes = 1;
+ */
+ java.util.Listrepeated 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.Listrepeated 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 extends java.lang.Integer> 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.Listrepeated 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 extends java.lang.Integer> 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.Parseroptional 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.Parseroptional 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.Parseroptional 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.Listrepeated .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.ProtobufListrepeated .InstrClassInfo superTypes = 6;
+ */
+ public java.util.Listrepeated .InstrClassInfo superTypes = 6;
+ */
+ public java.util.List extends ch.usi.dag.dislre.protocol.DiSL.InstrClassInfoOrBuilder>
+ 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 extends ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo> 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.Listrepeated .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 extends ch.usi.dag.dislre.protocol.DiSL.InstrClassInfo> 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.Parseroptional .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.EnumLiteMapoptional .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.Parseroptional 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
+ * 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.Parseroptional bool accepted = 1;
+ */
+ boolean getAccepted();
+
+ /**
+ * optional int32 session_id = 2;
+ */
+ int getSessionId();
+
+ /**
+ * repeated .Error errors = 3;
+ */
+ java.util.Listrepeated .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.ProtobufListrepeated .Error errors = 3;
+ */
+ public java.util.Listrepeated .Error errors = 3;
+ */
+ public java.util.List extends ch.usi.dag.dislre.protocol.Main.ErrorOrBuilder>
+ 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 extends ch.usi.dag.dislre.protocol.Main.Error> 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.Listrepeated .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 extends ch.usi.dag.dislre.protocol.Main.Error> 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.Parseroptional .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.EnumLiteMapoptional .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.Parseroptional 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.Parseroptional 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