aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Android_Studio/Tango.PMR/src/main/java
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2017-12-19 10:25:40 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2017-12-19 10:25:40 +0200
commitafc7a07d285e08d905c58dd5978441c155b2f296 (patch)
treea2f4f51ef2747ae3a2aded2637a352ce8ef85934 /Software/Android_Studio/Tango.PMR/src/main/java
parentad35c9c2df0001157ea13312382f3cdfdad67f06 (diff)
downloadTango-afc7a07d285e08d905c58dd5978441c155b2f296.tar.gz
Tango-afc7a07d285e08d905c58dd5978441c155b2f296.zip
MERGE.
Diffstat (limited to 'Software/Android_Studio/Tango.PMR/src/main/java')
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/ErrorCodeOuterClass.java143
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageContainerOuterClass.java171
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageTypeOuterClass.java239
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeReadRequestOuterClass.java525
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeReadResponseOuterClass.java824
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeWriteRequestOuterClass.java815
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeWriteResponseOuterClass.java568
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubDispenserRequestOuterClass.java841
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubDispenserResponseOuterClass.java771
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadBitRequestOuterClass.java608
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadBitResponseOuterClass.java757
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadByteRequestOuterClass.java525
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadByteResponseOuterClass.java673
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteBitRequestOuterClass.java673
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteBitResponseOuterClass.java693
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteByteRequestOuterClass.java588
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteByteResponseOuterClass.java609
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHeaterRequestOuterClass.java673
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHeaterResponseOuterClass.java673
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorEncoderRequestOuterClass.java758
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorEncoderResponseOuterClass.java821
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubOptLimitSwitchRequestOuterClass.java610
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubOptLimitSwitchResponseOuterClass.java689
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubSteperMotorRequestOuterClass.java861
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubSteperMotorResponseOuterClass.java688
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubValveRequestOuterClass.java631
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubValveResponseOuterClass.java525
27 files changed, 16943 insertions, 9 deletions
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/ErrorCodeOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/ErrorCodeOuterClass.java
new file mode 100644
index 000000000..935c1071f
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/ErrorCodeOuterClass.java
@@ -0,0 +1,143 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: ErrorCode.proto
+
+package com.twine.tango.pmr.common;
+
+public final class ErrorCodeOuterClass {
+ private ErrorCodeOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ /**
+ * Protobuf enum {@code Tango.PMR.Common.ErrorCode}
+ */
+ public enum ErrorCode
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>NONE = 0;</code>
+ */
+ NONE(0),
+ /**
+ * <code>BAD_CRC = 1;</code>
+ */
+ BAD_CRC(1),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * <code>NONE = 0;</code>
+ */
+ public static final int NONE_VALUE = 0;
+ /**
+ * <code>BAD_CRC = 1;</code>
+ */
+ public static final int BAD_CRC_VALUE = 1;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ErrorCode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ErrorCode forNumber(int value) {
+ switch (value) {
+ case 0: return NONE;
+ case 1: return BAD_CRC;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<ErrorCode>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ ErrorCode> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<ErrorCode>() {
+ public ErrorCode findValueByNumber(int number) {
+ return ErrorCode.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.common.ErrorCodeOuterClass.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final ErrorCode[] VALUES = values();
+
+ public static ErrorCode valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private ErrorCode(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:Tango.PMR.Common.ErrorCode)
+ }
+
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\017ErrorCode.proto\022\020Tango.PMR.Common*\"\n\tE" +
+ "rrorCode\022\010\n\004NONE\020\000\022\013\n\007BAD_CRC\020\001B\034\n\032com.t" +
+ "wine.tango.pmr.commonb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageContainerOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageContainerOuterClass.java
index c4919dae3..fe9919195 100644
--- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageContainerOuterClass.java
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageContainerOuterClass.java
@@ -51,6 +51,20 @@ public final class MessageContainerOuterClass {
* <code>bytes Data = 5;</code>
*/
com.google.protobuf.ByteString getData();
+
+ /**
+ * <code>uint32 CRC = 6;</code>
+ */
+ int getCRC();
+
+ /**
+ * <code>.Tango.PMR.Common.ErrorCode Error = 7;</code>
+ */
+ int getErrorValue();
+ /**
+ * <code>.Tango.PMR.Common.ErrorCode Error = 7;</code>
+ */
+ com.twine.tango.pmr.common.ErrorCodeOuterClass.ErrorCode getError();
}
/**
* Protobuf type {@code Tango.PMR.Common.MessageContainer}
@@ -70,6 +84,8 @@ public final class MessageContainerOuterClass {
continuous_ = false;
completed_ = false;
data_ = com.google.protobuf.ByteString.EMPTY;
+ cRC_ = 0;
+ error_ = 0;
}
@java.lang.Override
@@ -127,6 +143,17 @@ public final class MessageContainerOuterClass {
data_ = input.readBytes();
break;
}
+ case 48: {
+
+ cRC_ = input.readUInt32();
+ break;
+ }
+ case 56: {
+ int rawValue = input.readEnum();
+
+ error_ = rawValue;
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -228,6 +255,31 @@ public final class MessageContainerOuterClass {
return data_;
}
+ public static final int CRC_FIELD_NUMBER = 6;
+ private int cRC_;
+ /**
+ * <code>uint32 CRC = 6;</code>
+ */
+ public int getCRC() {
+ return cRC_;
+ }
+
+ public static final int ERROR_FIELD_NUMBER = 7;
+ private int error_;
+ /**
+ * <code>.Tango.PMR.Common.ErrorCode Error = 7;</code>
+ */
+ public int getErrorValue() {
+ return error_;
+ }
+ /**
+ * <code>.Tango.PMR.Common.ErrorCode Error = 7;</code>
+ */
+ public com.twine.tango.pmr.common.ErrorCodeOuterClass.ErrorCode getError() {
+ com.twine.tango.pmr.common.ErrorCodeOuterClass.ErrorCode result = com.twine.tango.pmr.common.ErrorCodeOuterClass.ErrorCode.valueOf(error_);
+ return result == null ? com.twine.tango.pmr.common.ErrorCodeOuterClass.ErrorCode.UNRECOGNIZED : result;
+ }
+
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -255,6 +307,12 @@ public final class MessageContainerOuterClass {
if (!data_.isEmpty()) {
output.writeBytes(5, data_);
}
+ if (cRC_ != 0) {
+ output.writeUInt32(6, cRC_);
+ }
+ if (error_ != com.twine.tango.pmr.common.ErrorCodeOuterClass.ErrorCode.NONE.getNumber()) {
+ output.writeEnum(7, error_);
+ }
unknownFields.writeTo(output);
}
@@ -282,6 +340,14 @@ public final class MessageContainerOuterClass {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, data_);
}
+ if (cRC_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(6, cRC_);
+ }
+ if (error_ != com.twine.tango.pmr.common.ErrorCodeOuterClass.ErrorCode.NONE.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(7, error_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -307,6 +373,9 @@ public final class MessageContainerOuterClass {
== other.getCompleted());
result = result && getData()
.equals(other.getData());
+ result = result && (getCRC()
+ == other.getCRC());
+ result = result && error_ == other.error_;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@@ -330,6 +399,10 @@ public final class MessageContainerOuterClass {
getCompleted());
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
+ hash = (37 * hash) + CRC_FIELD_NUMBER;
+ hash = (53 * hash) + getCRC();
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + error_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -469,6 +542,10 @@ public final class MessageContainerOuterClass {
data_ = com.google.protobuf.ByteString.EMPTY;
+ cRC_ = 0;
+
+ error_ = 0;
+
return this;
}
@@ -496,6 +573,8 @@ public final class MessageContainerOuterClass {
result.continuous_ = continuous_;
result.completed_ = completed_;
result.data_ = data_;
+ result.cRC_ = cRC_;
+ result.error_ = error_;
onBuilt();
return result;
}
@@ -553,6 +632,12 @@ public final class MessageContainerOuterClass {
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
+ if (other.getCRC() != 0) {
+ setCRC(other.getCRC());
+ }
+ if (other.error_ != 0) {
+ setErrorValue(other.getErrorValue());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -773,6 +858,76 @@ public final class MessageContainerOuterClass {
onChanged();
return this;
}
+
+ private int cRC_ ;
+ /**
+ * <code>uint32 CRC = 6;</code>
+ */
+ public int getCRC() {
+ return cRC_;
+ }
+ /**
+ * <code>uint32 CRC = 6;</code>
+ */
+ public Builder setCRC(int value) {
+
+ cRC_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 CRC = 6;</code>
+ */
+ public Builder clearCRC() {
+
+ cRC_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int error_ = 0;
+ /**
+ * <code>.Tango.PMR.Common.ErrorCode Error = 7;</code>
+ */
+ public int getErrorValue() {
+ return error_;
+ }
+ /**
+ * <code>.Tango.PMR.Common.ErrorCode Error = 7;</code>
+ */
+ public Builder setErrorValue(int value) {
+ error_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>.Tango.PMR.Common.ErrorCode Error = 7;</code>
+ */
+ public com.twine.tango.pmr.common.ErrorCodeOuterClass.ErrorCode getError() {
+ com.twine.tango.pmr.common.ErrorCodeOuterClass.ErrorCode result = com.twine.tango.pmr.common.ErrorCodeOuterClass.ErrorCode.valueOf(error_);
+ return result == null ? com.twine.tango.pmr.common.ErrorCodeOuterClass.ErrorCode.UNRECOGNIZED : result;
+ }
+ /**
+ * <code>.Tango.PMR.Common.ErrorCode Error = 7;</code>
+ */
+ public Builder setError(com.twine.tango.pmr.common.ErrorCodeOuterClass.ErrorCode value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ error_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>.Tango.PMR.Common.ErrorCode Error = 7;</code>
+ */
+ public Builder clearError() {
+
+ error_ = 0;
+ onChanged();
+ return this;
+ }
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
@@ -837,11 +992,13 @@ public final class MessageContainerOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\026MessageContainer.proto\022\020Tango.PMR.Comm" +
- "on\032\021MessageType.proto\"\203\001\n\020MessageContain" +
- "er\022+\n\004Type\030\001 \001(\0162\035.Tango.PMR.Common.Mess" +
- "ageType\022\r\n\005Token\030\002 \001(\t\022\022\n\nContinuous\030\003 \001" +
- "(\010\022\021\n\tCompleted\030\004 \001(\010\022\014\n\004Data\030\005 \001(\014B\034\n\032c" +
- "om.twine.tango.pmr.commonb\006proto3"
+ "on\032\021MessageType.proto\032\017ErrorCode.proto\"\274" +
+ "\001\n\020MessageContainer\022+\n\004Type\030\001 \001(\0162\035.Tang" +
+ "o.PMR.Common.MessageType\022\r\n\005Token\030\002 \001(\t\022" +
+ "\022\n\nContinuous\030\003 \001(\010\022\021\n\tCompleted\030\004 \001(\010\022\014" +
+ "\n\004Data\030\005 \001(\014\022\013\n\003CRC\030\006 \001(\r\022*\n\005Error\030\007 \001(\016" +
+ "2\033.Tango.PMR.Common.ErrorCodeB\034\n\032com.twi" +
+ "ne.tango.pmr.commonb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
@@ -855,14 +1012,16 @@ public final class MessageContainerOuterClass {
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.twine.tango.pmr.common.MessageTypeOuterClass.getDescriptor(),
+ com.twine.tango.pmr.common.ErrorCodeOuterClass.getDescriptor(),
}, assigner);
internal_static_Tango_PMR_Common_MessageContainer_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Tango_PMR_Common_MessageContainer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Tango_PMR_Common_MessageContainer_descriptor,
- new java.lang.String[] { "Type", "Token", "Continuous", "Completed", "Data", });
+ new java.lang.String[] { "Type", "Token", "Continuous", "Completed", "Data", "CRC", "Error", });
com.twine.tango.pmr.common.MessageTypeOuterClass.getDescriptor();
+ com.twine.tango.pmr.common.ErrorCodeOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageTypeOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageTypeOuterClass.java
index 45185ab6d..a58b36456 100644
--- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageTypeOuterClass.java
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageTypeOuterClass.java
@@ -47,6 +47,102 @@ public final class MessageTypeOuterClass {
* <code>ProgressResponse = 6;</code>
*/
ProgressResponse(6),
+ /**
+ * <code>StubCartridgeReadRequest = 7;</code>
+ */
+ StubCartridgeReadRequest(7),
+ /**
+ * <code>StubCartridgeReadResponse = 8;</code>
+ */
+ StubCartridgeReadResponse(8),
+ /**
+ * <code>StubCartridgeWriteRequest = 9;</code>
+ */
+ StubCartridgeWriteRequest(9),
+ /**
+ * <code>StubCartridgeWriteResponse = 10;</code>
+ */
+ StubCartridgeWriteResponse(10),
+ /**
+ * <code>StubDispenserRequest = 11;</code>
+ */
+ StubDispenserRequest(11),
+ /**
+ * <code>StubDispenserResponse = 12;</code>
+ */
+ StubDispenserResponse(12),
+ /**
+ * <code>StubGPIOReadBitRequest = 13;</code>
+ */
+ StubGPIOReadBitRequest(13),
+ /**
+ * <code>StubGPIOReadBitResponse = 14;</code>
+ */
+ StubGPIOReadBitResponse(14),
+ /**
+ * <code>StubGPIOReadByteRequest = 15;</code>
+ */
+ StubGPIOReadByteRequest(15),
+ /**
+ * <code>StubGPIOReadByteResponse = 16;</code>
+ */
+ StubGPIOReadByteResponse(16),
+ /**
+ * <code>StubGPIOWriteBitRequest = 17;</code>
+ */
+ StubGPIOWriteBitRequest(17),
+ /**
+ * <code>StubGPIOWriteBitResponse = 18;</code>
+ */
+ StubGPIOWriteBitResponse(18),
+ /**
+ * <code>StubGPIOWriteByteRequest = 19;</code>
+ */
+ StubGPIOWriteByteRequest(19),
+ /**
+ * <code>StubGPIOWriteByteResponse = 20;</code>
+ */
+ StubGPIOWriteByteResponse(20),
+ /**
+ * <code>StubHeaterRequest = 21;</code>
+ */
+ StubHeaterRequest(21),
+ /**
+ * <code>StubHeaterResponse = 22;</code>
+ */
+ StubHeaterResponse(22),
+ /**
+ * <code>StubMotorEncoderRequest = 23;</code>
+ */
+ StubMotorEncoderRequest(23),
+ /**
+ * <code>StubMotorEncoderResponse = 24;</code>
+ */
+ StubMotorEncoderResponse(24),
+ /**
+ * <code>StubOptLimitSwitchRequest = 25;</code>
+ */
+ StubOptLimitSwitchRequest(25),
+ /**
+ * <code>StubOptLimitSwitchResponse = 26;</code>
+ */
+ StubOptLimitSwitchResponse(26),
+ /**
+ * <code>StubSteperMotorRequest = 27;</code>
+ */
+ StubSteperMotorRequest(27),
+ /**
+ * <code>StubSteperMotorResponse = 28;</code>
+ */
+ StubSteperMotorResponse(28),
+ /**
+ * <code>StubValveRequest = 29;</code>
+ */
+ StubValveRequest(29),
+ /**
+ * <code>StubValveResponse = 30;</code>
+ */
+ StubValveResponse(30),
UNRECOGNIZED(-1),
;
@@ -78,6 +174,102 @@ public final class MessageTypeOuterClass {
* <code>ProgressResponse = 6;</code>
*/
public static final int ProgressResponse_VALUE = 6;
+ /**
+ * <code>StubCartridgeReadRequest = 7;</code>
+ */
+ public static final int StubCartridgeReadRequest_VALUE = 7;
+ /**
+ * <code>StubCartridgeReadResponse = 8;</code>
+ */
+ public static final int StubCartridgeReadResponse_VALUE = 8;
+ /**
+ * <code>StubCartridgeWriteRequest = 9;</code>
+ */
+ public static final int StubCartridgeWriteRequest_VALUE = 9;
+ /**
+ * <code>StubCartridgeWriteResponse = 10;</code>
+ */
+ public static final int StubCartridgeWriteResponse_VALUE = 10;
+ /**
+ * <code>StubDispenserRequest = 11;</code>
+ */
+ public static final int StubDispenserRequest_VALUE = 11;
+ /**
+ * <code>StubDispenserResponse = 12;</code>
+ */
+ public static final int StubDispenserResponse_VALUE = 12;
+ /**
+ * <code>StubGPIOReadBitRequest = 13;</code>
+ */
+ public static final int StubGPIOReadBitRequest_VALUE = 13;
+ /**
+ * <code>StubGPIOReadBitResponse = 14;</code>
+ */
+ public static final int StubGPIOReadBitResponse_VALUE = 14;
+ /**
+ * <code>StubGPIOReadByteRequest = 15;</code>
+ */
+ public static final int StubGPIOReadByteRequest_VALUE = 15;
+ /**
+ * <code>StubGPIOReadByteResponse = 16;</code>
+ */
+ public static final int StubGPIOReadByteResponse_VALUE = 16;
+ /**
+ * <code>StubGPIOWriteBitRequest = 17;</code>
+ */
+ public static final int StubGPIOWriteBitRequest_VALUE = 17;
+ /**
+ * <code>StubGPIOWriteBitResponse = 18;</code>
+ */
+ public static final int StubGPIOWriteBitResponse_VALUE = 18;
+ /**
+ * <code>StubGPIOWriteByteRequest = 19;</code>
+ */
+ public static final int StubGPIOWriteByteRequest_VALUE = 19;
+ /**
+ * <code>StubGPIOWriteByteResponse = 20;</code>
+ */
+ public static final int StubGPIOWriteByteResponse_VALUE = 20;
+ /**
+ * <code>StubHeaterRequest = 21;</code>
+ */
+ public static final int StubHeaterRequest_VALUE = 21;
+ /**
+ * <code>StubHeaterResponse = 22;</code>
+ */
+ public static final int StubHeaterResponse_VALUE = 22;
+ /**
+ * <code>StubMotorEncoderRequest = 23;</code>
+ */
+ public static final int StubMotorEncoderRequest_VALUE = 23;
+ /**
+ * <code>StubMotorEncoderResponse = 24;</code>
+ */
+ public static final int StubMotorEncoderResponse_VALUE = 24;
+ /**
+ * <code>StubOptLimitSwitchRequest = 25;</code>
+ */
+ public static final int StubOptLimitSwitchRequest_VALUE = 25;
+ /**
+ * <code>StubOptLimitSwitchResponse = 26;</code>
+ */
+ public static final int StubOptLimitSwitchResponse_VALUE = 26;
+ /**
+ * <code>StubSteperMotorRequest = 27;</code>
+ */
+ public static final int StubSteperMotorRequest_VALUE = 27;
+ /**
+ * <code>StubSteperMotorResponse = 28;</code>
+ */
+ public static final int StubSteperMotorResponse_VALUE = 28;
+ /**
+ * <code>StubValveRequest = 29;</code>
+ */
+ public static final int StubValveRequest_VALUE = 29;
+ /**
+ * <code>StubValveResponse = 30;</code>
+ */
+ public static final int StubValveResponse_VALUE = 30;
public final int getNumber() {
@@ -105,6 +297,30 @@ public final class MessageTypeOuterClass {
case 4: return CalculateResponse;
case 5: return ProgressRequest;
case 6: return ProgressResponse;
+ case 7: return StubCartridgeReadRequest;
+ case 8: return StubCartridgeReadResponse;
+ case 9: return StubCartridgeWriteRequest;
+ case 10: return StubCartridgeWriteResponse;
+ case 11: return StubDispenserRequest;
+ case 12: return StubDispenserResponse;
+ case 13: return StubGPIOReadBitRequest;
+ case 14: return StubGPIOReadBitResponse;
+ case 15: return StubGPIOReadByteRequest;
+ case 16: return StubGPIOReadByteResponse;
+ case 17: return StubGPIOWriteBitRequest;
+ case 18: return StubGPIOWriteBitResponse;
+ case 19: return StubGPIOWriteByteRequest;
+ case 20: return StubGPIOWriteByteResponse;
+ case 21: return StubHeaterRequest;
+ case 22: return StubHeaterResponse;
+ case 23: return StubMotorEncoderRequest;
+ case 24: return StubMotorEncoderResponse;
+ case 25: return StubOptLimitSwitchRequest;
+ case 26: return StubOptLimitSwitchResponse;
+ case 27: return StubSteperMotorRequest;
+ case 28: return StubSteperMotorResponse;
+ case 29: return StubValveRequest;
+ case 30: return StubValveResponse;
default: return null;
}
}
@@ -166,12 +382,29 @@ public final class MessageTypeOuterClass {
descriptor;
static {
java.lang.String[] descriptorData = {
- "\n\021MessageType.proto\022\020Tango.PMR.Common*\204\001" +
+ "\n\021MessageType.proto\022\020Tango.PMR.Common*\260\006" +
"\n\013MessageType\022\007\n\003RGB\020\000\022\007\n\003Job\020\001\022\013\n\007Segme" +
"nt\020\002\022\024\n\020CalculateRequest\020\003\022\025\n\021CalculateR" +
"esponse\020\004\022\023\n\017ProgressRequest\020\005\022\024\n\020Progre" +
- "ssResponse\020\006B\034\n\032com.twine.tango.pmr.comm" +
- "onb\006proto3"
+ "ssResponse\020\006\022\034\n\030StubCartridgeReadRequest" +
+ "\020\007\022\035\n\031StubCartridgeReadResponse\020\010\022\035\n\031Stu" +
+ "bCartridgeWriteRequest\020\t\022\036\n\032StubCartridg" +
+ "eWriteResponse\020\n\022\030\n\024StubDispenserRequest" +
+ "\020\013\022\031\n\025StubDispenserResponse\020\014\022\032\n\026StubGPI" +
+ "OReadBitRequest\020\r\022\033\n\027StubGPIOReadBitResp",
+ "onse\020\016\022\033\n\027StubGPIOReadByteRequest\020\017\022\034\n\030S" +
+ "tubGPIOReadByteResponse\020\020\022\033\n\027StubGPIOWri" +
+ "teBitRequest\020\021\022\034\n\030StubGPIOWriteBitRespon" +
+ "se\020\022\022\034\n\030StubGPIOWriteByteRequest\020\023\022\035\n\031St" +
+ "ubGPIOWriteByteResponse\020\024\022\025\n\021StubHeaterR" +
+ "equest\020\025\022\026\n\022StubHeaterResponse\020\026\022\033\n\027Stub" +
+ "MotorEncoderRequest\020\027\022\034\n\030StubMotorEncode" +
+ "rResponse\020\030\022\035\n\031StubOptLimitSwitchRequest" +
+ "\020\031\022\036\n\032StubOptLimitSwitchResponse\020\032\022\032\n\026St" +
+ "ubSteperMotorRequest\020\033\022\033\n\027StubSteperMoto",
+ "rResponse\020\034\022\024\n\020StubValveRequest\020\035\022\025\n\021Stu" +
+ "bValveResponse\020\036B\034\n\032com.twine.tango.pmr." +
+ "commonb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeReadRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeReadRequestOuterClass.java
new file mode 100644
index 000000000..baed0890f
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeReadRequestOuterClass.java
@@ -0,0 +1,525 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubCartridgeReadRequest.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubCartridgeReadRequestOuterClass {
+ private StubCartridgeReadRequestOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubCartridgeReadRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubCartridgeReadRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ *0..7
+ * </pre>
+ *
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ int getCartridgeId();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubCartridgeReadRequest}
+ */
+ public static final class StubCartridgeReadRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubCartridgeReadRequest)
+ StubCartridgeReadRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubCartridgeReadRequest.newBuilder() to construct.
+ private StubCartridgeReadRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubCartridgeReadRequest() {
+ cartridgeId_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubCartridgeReadRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ cartridgeId_ = input.readUInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeReadRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeReadRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest.class, com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest.Builder.class);
+ }
+
+ public static final int CARTRIDGEID_FIELD_NUMBER = 1;
+ private int cartridgeId_;
+ /**
+ * <pre>
+ *0..7
+ * </pre>
+ *
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public int getCartridgeId() {
+ return cartridgeId_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (cartridgeId_ != 0) {
+ output.writeUInt32(1, cartridgeId_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (cartridgeId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, cartridgeId_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest other = (com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest) obj;
+
+ boolean result = true;
+ result = result && (getCartridgeId()
+ == other.getCartridgeId());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CARTRIDGEID_FIELD_NUMBER;
+ hash = (53 * hash) + getCartridgeId();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubCartridgeReadRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubCartridgeReadRequest)
+ com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeReadRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeReadRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest.class, com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ cartridgeId_ = 0;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeReadRequest_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest build() {
+ com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest buildPartial() {
+ com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest result = new com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest(this);
+ result.cartridgeId_ = cartridgeId_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest other) {
+ if (other == com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest.getDefaultInstance()) return this;
+ if (other.getCartridgeId() != 0) {
+ setCartridgeId(other.getCartridgeId());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int cartridgeId_ ;
+ /**
+ * <pre>
+ *0..7
+ * </pre>
+ *
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public int getCartridgeId() {
+ return cartridgeId_;
+ }
+ /**
+ * <pre>
+ *0..7
+ * </pre>
+ *
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public Builder setCartridgeId(int value) {
+
+ cartridgeId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ *0..7
+ * </pre>
+ *
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public Builder clearCartridgeId() {
+
+ cartridgeId_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubCartridgeReadRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubCartridgeReadRequest)
+ private static final com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubCartridgeReadRequest>
+ PARSER = new com.google.protobuf.AbstractParser<StubCartridgeReadRequest>() {
+ public StubCartridgeReadRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubCartridgeReadRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubCartridgeReadRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubCartridgeReadRequest> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeReadRequestOuterClass.StubCartridgeReadRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubCartridgeReadRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubCartridgeReadRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\036StubCartridgeReadRequest.proto\022\017Tango." +
+ "PMR.Stubs\"/\n\030StubCartridgeReadRequest\022\023\n" +
+ "\013CartridgeId\030\001 \001(\rB\033\n\031com.twine.tango.pm" +
+ "r.stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubCartridgeReadRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubCartridgeReadRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubCartridgeReadRequest_descriptor,
+ new java.lang.String[] { "CartridgeId", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeReadResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeReadResponseOuterClass.java
new file mode 100644
index 000000000..eb7fd4cb6
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeReadResponseOuterClass.java
@@ -0,0 +1,824 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubCartridgeReadResponse.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubCartridgeReadResponseOuterClass {
+ private StubCartridgeReadResponseOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubCartridgeReadResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubCartridgeReadResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ int getCartridgeId();
+
+ /**
+ * <code>uint32 CartridgeColor = 3;</code>
+ */
+ int getCartridgeColor();
+
+ /**
+ * <code>uint32 CartridgeVersion = 4;</code>
+ */
+ int getCartridgeVersion();
+
+ /**
+ * <code>uint32 CartridgeData = 5;</code>
+ */
+ int getCartridgeData();
+
+ /**
+ * <code>bool CartridgeUsed = 6;</code>
+ */
+ boolean getCartridgeUsed();
+
+ /**
+ * <code>uint32 Status = 8;</code>
+ */
+ int getStatus();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubCartridgeReadResponse}
+ */
+ public static final class StubCartridgeReadResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubCartridgeReadResponse)
+ StubCartridgeReadResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubCartridgeReadResponse.newBuilder() to construct.
+ private StubCartridgeReadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubCartridgeReadResponse() {
+ cartridgeId_ = 0;
+ cartridgeColor_ = 0;
+ cartridgeVersion_ = 0;
+ cartridgeData_ = 0;
+ cartridgeUsed_ = false;
+ status_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubCartridgeReadResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ cartridgeId_ = input.readUInt32();
+ break;
+ }
+ case 24: {
+
+ cartridgeColor_ = input.readUInt32();
+ break;
+ }
+ case 32: {
+
+ cartridgeVersion_ = input.readUInt32();
+ break;
+ }
+ case 40: {
+
+ cartridgeData_ = input.readUInt32();
+ break;
+ }
+ case 48: {
+
+ cartridgeUsed_ = input.readBool();
+ break;
+ }
+ case 64: {
+
+ status_ = input.readUInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeReadResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeReadResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse.class, com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse.Builder.class);
+ }
+
+ public static final int CARTRIDGEID_FIELD_NUMBER = 1;
+ private int cartridgeId_;
+ /**
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public int getCartridgeId() {
+ return cartridgeId_;
+ }
+
+ public static final int CARTRIDGECOLOR_FIELD_NUMBER = 3;
+ private int cartridgeColor_;
+ /**
+ * <code>uint32 CartridgeColor = 3;</code>
+ */
+ public int getCartridgeColor() {
+ return cartridgeColor_;
+ }
+
+ public static final int CARTRIDGEVERSION_FIELD_NUMBER = 4;
+ private int cartridgeVersion_;
+ /**
+ * <code>uint32 CartridgeVersion = 4;</code>
+ */
+ public int getCartridgeVersion() {
+ return cartridgeVersion_;
+ }
+
+ public static final int CARTRIDGEDATA_FIELD_NUMBER = 5;
+ private int cartridgeData_;
+ /**
+ * <code>uint32 CartridgeData = 5;</code>
+ */
+ public int getCartridgeData() {
+ return cartridgeData_;
+ }
+
+ public static final int CARTRIDGEUSED_FIELD_NUMBER = 6;
+ private boolean cartridgeUsed_;
+ /**
+ * <code>bool CartridgeUsed = 6;</code>
+ */
+ public boolean getCartridgeUsed() {
+ return cartridgeUsed_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 8;
+ private int status_;
+ /**
+ * <code>uint32 Status = 8;</code>
+ */
+ public int getStatus() {
+ return status_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (cartridgeId_ != 0) {
+ output.writeUInt32(1, cartridgeId_);
+ }
+ if (cartridgeColor_ != 0) {
+ output.writeUInt32(3, cartridgeColor_);
+ }
+ if (cartridgeVersion_ != 0) {
+ output.writeUInt32(4, cartridgeVersion_);
+ }
+ if (cartridgeData_ != 0) {
+ output.writeUInt32(5, cartridgeData_);
+ }
+ if (cartridgeUsed_ != false) {
+ output.writeBool(6, cartridgeUsed_);
+ }
+ if (status_ != 0) {
+ output.writeUInt32(8, status_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (cartridgeId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, cartridgeId_);
+ }
+ if (cartridgeColor_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(3, cartridgeColor_);
+ }
+ if (cartridgeVersion_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(4, cartridgeVersion_);
+ }
+ if (cartridgeData_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(5, cartridgeData_);
+ }
+ if (cartridgeUsed_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(6, cartridgeUsed_);
+ }
+ if (status_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(8, status_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse other = (com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse) obj;
+
+ boolean result = true;
+ result = result && (getCartridgeId()
+ == other.getCartridgeId());
+ result = result && (getCartridgeColor()
+ == other.getCartridgeColor());
+ result = result && (getCartridgeVersion()
+ == other.getCartridgeVersion());
+ result = result && (getCartridgeData()
+ == other.getCartridgeData());
+ result = result && (getCartridgeUsed()
+ == other.getCartridgeUsed());
+ result = result && (getStatus()
+ == other.getStatus());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CARTRIDGEID_FIELD_NUMBER;
+ hash = (53 * hash) + getCartridgeId();
+ hash = (37 * hash) + CARTRIDGECOLOR_FIELD_NUMBER;
+ hash = (53 * hash) + getCartridgeColor();
+ hash = (37 * hash) + CARTRIDGEVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getCartridgeVersion();
+ hash = (37 * hash) + CARTRIDGEDATA_FIELD_NUMBER;
+ hash = (53 * hash) + getCartridgeData();
+ hash = (37 * hash) + CARTRIDGEUSED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getCartridgeUsed());
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getStatus();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubCartridgeReadResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubCartridgeReadResponse)
+ com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeReadResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeReadResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse.class, com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ cartridgeId_ = 0;
+
+ cartridgeColor_ = 0;
+
+ cartridgeVersion_ = 0;
+
+ cartridgeData_ = 0;
+
+ cartridgeUsed_ = false;
+
+ status_ = 0;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeReadResponse_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse build() {
+ com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse buildPartial() {
+ com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse result = new com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse(this);
+ result.cartridgeId_ = cartridgeId_;
+ result.cartridgeColor_ = cartridgeColor_;
+ result.cartridgeVersion_ = cartridgeVersion_;
+ result.cartridgeData_ = cartridgeData_;
+ result.cartridgeUsed_ = cartridgeUsed_;
+ result.status_ = status_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse other) {
+ if (other == com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse.getDefaultInstance()) return this;
+ if (other.getCartridgeId() != 0) {
+ setCartridgeId(other.getCartridgeId());
+ }
+ if (other.getCartridgeColor() != 0) {
+ setCartridgeColor(other.getCartridgeColor());
+ }
+ if (other.getCartridgeVersion() != 0) {
+ setCartridgeVersion(other.getCartridgeVersion());
+ }
+ if (other.getCartridgeData() != 0) {
+ setCartridgeData(other.getCartridgeData());
+ }
+ if (other.getCartridgeUsed() != false) {
+ setCartridgeUsed(other.getCartridgeUsed());
+ }
+ if (other.getStatus() != 0) {
+ setStatus(other.getStatus());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int cartridgeId_ ;
+ /**
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public int getCartridgeId() {
+ return cartridgeId_;
+ }
+ /**
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public Builder setCartridgeId(int value) {
+
+ cartridgeId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public Builder clearCartridgeId() {
+
+ cartridgeId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int cartridgeColor_ ;
+ /**
+ * <code>uint32 CartridgeColor = 3;</code>
+ */
+ public int getCartridgeColor() {
+ return cartridgeColor_;
+ }
+ /**
+ * <code>uint32 CartridgeColor = 3;</code>
+ */
+ public Builder setCartridgeColor(int value) {
+
+ cartridgeColor_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 CartridgeColor = 3;</code>
+ */
+ public Builder clearCartridgeColor() {
+
+ cartridgeColor_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int cartridgeVersion_ ;
+ /**
+ * <code>uint32 CartridgeVersion = 4;</code>
+ */
+ public int getCartridgeVersion() {
+ return cartridgeVersion_;
+ }
+ /**
+ * <code>uint32 CartridgeVersion = 4;</code>
+ */
+ public Builder setCartridgeVersion(int value) {
+
+ cartridgeVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 CartridgeVersion = 4;</code>
+ */
+ public Builder clearCartridgeVersion() {
+
+ cartridgeVersion_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int cartridgeData_ ;
+ /**
+ * <code>uint32 CartridgeData = 5;</code>
+ */
+ public int getCartridgeData() {
+ return cartridgeData_;
+ }
+ /**
+ * <code>uint32 CartridgeData = 5;</code>
+ */
+ public Builder setCartridgeData(int value) {
+
+ cartridgeData_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 CartridgeData = 5;</code>
+ */
+ public Builder clearCartridgeData() {
+
+ cartridgeData_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean cartridgeUsed_ ;
+ /**
+ * <code>bool CartridgeUsed = 6;</code>
+ */
+ public boolean getCartridgeUsed() {
+ return cartridgeUsed_;
+ }
+ /**
+ * <code>bool CartridgeUsed = 6;</code>
+ */
+ public Builder setCartridgeUsed(boolean value) {
+
+ cartridgeUsed_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>bool CartridgeUsed = 6;</code>
+ */
+ public Builder clearCartridgeUsed() {
+
+ cartridgeUsed_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int status_ ;
+ /**
+ * <code>uint32 Status = 8;</code>
+ */
+ public int getStatus() {
+ return status_;
+ }
+ /**
+ * <code>uint32 Status = 8;</code>
+ */
+ public Builder setStatus(int value) {
+
+ status_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 Status = 8;</code>
+ */
+ public Builder clearStatus() {
+
+ status_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubCartridgeReadResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubCartridgeReadResponse)
+ private static final com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubCartridgeReadResponse>
+ PARSER = new com.google.protobuf.AbstractParser<StubCartridgeReadResponse>() {
+ public StubCartridgeReadResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubCartridgeReadResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubCartridgeReadResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubCartridgeReadResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeReadResponseOuterClass.StubCartridgeReadResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubCartridgeReadResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubCartridgeReadResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\037StubCartridgeReadResponse.proto\022\017Tango" +
+ ".PMR.Stubs\"\240\001\n\031StubCartridgeReadResponse" +
+ "\022\023\n\013CartridgeId\030\001 \001(\r\022\026\n\016CartridgeColor\030" +
+ "\003 \001(\r\022\030\n\020CartridgeVersion\030\004 \001(\r\022\025\n\rCartr" +
+ "idgeData\030\005 \001(\r\022\025\n\rCartridgeUsed\030\006 \001(\010\022\016\n" +
+ "\006Status\030\010 \001(\rB\033\n\031com.twine.tango.pmr.stu" +
+ "bsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubCartridgeReadResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubCartridgeReadResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubCartridgeReadResponse_descriptor,
+ new java.lang.String[] { "CartridgeId", "CartridgeColor", "CartridgeVersion", "CartridgeData", "CartridgeUsed", "Status", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeWriteRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeWriteRequestOuterClass.java
new file mode 100644
index 000000000..d379d450b
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeWriteRequestOuterClass.java
@@ -0,0 +1,815 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubCartridgeWriteRequest.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubCartridgeWriteRequestOuterClass {
+ private StubCartridgeWriteRequestOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubCartridgeWriteRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubCartridgeWriteRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ *0..7
+ * </pre>
+ *
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ int getCartridgeId();
+
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 CartridgeColor = 2;</code>
+ */
+ int getCartridgeColor();
+
+ /**
+ * <code>uint32 CartridgeVersion = 3;</code>
+ */
+ int getCartridgeVersion();
+
+ /**
+ * <code>uint32 CartridgeData = 4;</code>
+ */
+ int getCartridgeData();
+
+ /**
+ * <pre>
+ * 0 - new 1- used
+ * </pre>
+ *
+ * <code>bool CartridgeUsed = 5;</code>
+ */
+ boolean getCartridgeUsed();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubCartridgeWriteRequest}
+ */
+ public static final class StubCartridgeWriteRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubCartridgeWriteRequest)
+ StubCartridgeWriteRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubCartridgeWriteRequest.newBuilder() to construct.
+ private StubCartridgeWriteRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubCartridgeWriteRequest() {
+ cartridgeId_ = 0;
+ cartridgeColor_ = 0;
+ cartridgeVersion_ = 0;
+ cartridgeData_ = 0;
+ cartridgeUsed_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubCartridgeWriteRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ cartridgeId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ cartridgeColor_ = input.readUInt32();
+ break;
+ }
+ case 24: {
+
+ cartridgeVersion_ = input.readUInt32();
+ break;
+ }
+ case 32: {
+
+ cartridgeData_ = input.readUInt32();
+ break;
+ }
+ case 40: {
+
+ cartridgeUsed_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeWriteRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeWriteRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest.class, com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest.Builder.class);
+ }
+
+ public static final int CARTRIDGEID_FIELD_NUMBER = 1;
+ private int cartridgeId_;
+ /**
+ * <pre>
+ *0..7
+ * </pre>
+ *
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public int getCartridgeId() {
+ return cartridgeId_;
+ }
+
+ public static final int CARTRIDGECOLOR_FIELD_NUMBER = 2;
+ private int cartridgeColor_;
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 CartridgeColor = 2;</code>
+ */
+ public int getCartridgeColor() {
+ return cartridgeColor_;
+ }
+
+ public static final int CARTRIDGEVERSION_FIELD_NUMBER = 3;
+ private int cartridgeVersion_;
+ /**
+ * <code>uint32 CartridgeVersion = 3;</code>
+ */
+ public int getCartridgeVersion() {
+ return cartridgeVersion_;
+ }
+
+ public static final int CARTRIDGEDATA_FIELD_NUMBER = 4;
+ private int cartridgeData_;
+ /**
+ * <code>uint32 CartridgeData = 4;</code>
+ */
+ public int getCartridgeData() {
+ return cartridgeData_;
+ }
+
+ public static final int CARTRIDGEUSED_FIELD_NUMBER = 5;
+ private boolean cartridgeUsed_;
+ /**
+ * <pre>
+ * 0 - new 1- used
+ * </pre>
+ *
+ * <code>bool CartridgeUsed = 5;</code>
+ */
+ public boolean getCartridgeUsed() {
+ return cartridgeUsed_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (cartridgeId_ != 0) {
+ output.writeUInt32(1, cartridgeId_);
+ }
+ if (cartridgeColor_ != 0) {
+ output.writeUInt32(2, cartridgeColor_);
+ }
+ if (cartridgeVersion_ != 0) {
+ output.writeUInt32(3, cartridgeVersion_);
+ }
+ if (cartridgeData_ != 0) {
+ output.writeUInt32(4, cartridgeData_);
+ }
+ if (cartridgeUsed_ != false) {
+ output.writeBool(5, cartridgeUsed_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (cartridgeId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, cartridgeId_);
+ }
+ if (cartridgeColor_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, cartridgeColor_);
+ }
+ if (cartridgeVersion_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(3, cartridgeVersion_);
+ }
+ if (cartridgeData_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(4, cartridgeData_);
+ }
+ if (cartridgeUsed_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(5, cartridgeUsed_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest other = (com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest) obj;
+
+ boolean result = true;
+ result = result && (getCartridgeId()
+ == other.getCartridgeId());
+ result = result && (getCartridgeColor()
+ == other.getCartridgeColor());
+ result = result && (getCartridgeVersion()
+ == other.getCartridgeVersion());
+ result = result && (getCartridgeData()
+ == other.getCartridgeData());
+ result = result && (getCartridgeUsed()
+ == other.getCartridgeUsed());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CARTRIDGEID_FIELD_NUMBER;
+ hash = (53 * hash) + getCartridgeId();
+ hash = (37 * hash) + CARTRIDGECOLOR_FIELD_NUMBER;
+ hash = (53 * hash) + getCartridgeColor();
+ hash = (37 * hash) + CARTRIDGEVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getCartridgeVersion();
+ hash = (37 * hash) + CARTRIDGEDATA_FIELD_NUMBER;
+ hash = (53 * hash) + getCartridgeData();
+ hash = (37 * hash) + CARTRIDGEUSED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getCartridgeUsed());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubCartridgeWriteRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubCartridgeWriteRequest)
+ com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeWriteRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeWriteRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest.class, com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ cartridgeId_ = 0;
+
+ cartridgeColor_ = 0;
+
+ cartridgeVersion_ = 0;
+
+ cartridgeData_ = 0;
+
+ cartridgeUsed_ = false;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeWriteRequest_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest build() {
+ com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest buildPartial() {
+ com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest result = new com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest(this);
+ result.cartridgeId_ = cartridgeId_;
+ result.cartridgeColor_ = cartridgeColor_;
+ result.cartridgeVersion_ = cartridgeVersion_;
+ result.cartridgeData_ = cartridgeData_;
+ result.cartridgeUsed_ = cartridgeUsed_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest other) {
+ if (other == com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest.getDefaultInstance()) return this;
+ if (other.getCartridgeId() != 0) {
+ setCartridgeId(other.getCartridgeId());
+ }
+ if (other.getCartridgeColor() != 0) {
+ setCartridgeColor(other.getCartridgeColor());
+ }
+ if (other.getCartridgeVersion() != 0) {
+ setCartridgeVersion(other.getCartridgeVersion());
+ }
+ if (other.getCartridgeData() != 0) {
+ setCartridgeData(other.getCartridgeData());
+ }
+ if (other.getCartridgeUsed() != false) {
+ setCartridgeUsed(other.getCartridgeUsed());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int cartridgeId_ ;
+ /**
+ * <pre>
+ *0..7
+ * </pre>
+ *
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public int getCartridgeId() {
+ return cartridgeId_;
+ }
+ /**
+ * <pre>
+ *0..7
+ * </pre>
+ *
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public Builder setCartridgeId(int value) {
+
+ cartridgeId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ *0..7
+ * </pre>
+ *
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public Builder clearCartridgeId() {
+
+ cartridgeId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int cartridgeColor_ ;
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 CartridgeColor = 2;</code>
+ */
+ public int getCartridgeColor() {
+ return cartridgeColor_;
+ }
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 CartridgeColor = 2;</code>
+ */
+ public Builder setCartridgeColor(int value) {
+
+ cartridgeColor_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 CartridgeColor = 2;</code>
+ */
+ public Builder clearCartridgeColor() {
+
+ cartridgeColor_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int cartridgeVersion_ ;
+ /**
+ * <code>uint32 CartridgeVersion = 3;</code>
+ */
+ public int getCartridgeVersion() {
+ return cartridgeVersion_;
+ }
+ /**
+ * <code>uint32 CartridgeVersion = 3;</code>
+ */
+ public Builder setCartridgeVersion(int value) {
+
+ cartridgeVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 CartridgeVersion = 3;</code>
+ */
+ public Builder clearCartridgeVersion() {
+
+ cartridgeVersion_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int cartridgeData_ ;
+ /**
+ * <code>uint32 CartridgeData = 4;</code>
+ */
+ public int getCartridgeData() {
+ return cartridgeData_;
+ }
+ /**
+ * <code>uint32 CartridgeData = 4;</code>
+ */
+ public Builder setCartridgeData(int value) {
+
+ cartridgeData_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 CartridgeData = 4;</code>
+ */
+ public Builder clearCartridgeData() {
+
+ cartridgeData_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean cartridgeUsed_ ;
+ /**
+ * <pre>
+ * 0 - new 1- used
+ * </pre>
+ *
+ * <code>bool CartridgeUsed = 5;</code>
+ */
+ public boolean getCartridgeUsed() {
+ return cartridgeUsed_;
+ }
+ /**
+ * <pre>
+ * 0 - new 1- used
+ * </pre>
+ *
+ * <code>bool CartridgeUsed = 5;</code>
+ */
+ public Builder setCartridgeUsed(boolean value) {
+
+ cartridgeUsed_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0 - new 1- used
+ * </pre>
+ *
+ * <code>bool CartridgeUsed = 5;</code>
+ */
+ public Builder clearCartridgeUsed() {
+
+ cartridgeUsed_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubCartridgeWriteRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubCartridgeWriteRequest)
+ private static final com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubCartridgeWriteRequest>
+ PARSER = new com.google.protobuf.AbstractParser<StubCartridgeWriteRequest>() {
+ public StubCartridgeWriteRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubCartridgeWriteRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubCartridgeWriteRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubCartridgeWriteRequest> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeWriteRequestOuterClass.StubCartridgeWriteRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubCartridgeWriteRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubCartridgeWriteRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\037StubCartridgeWriteRequest.proto\022\017Tango" +
+ ".PMR.Stubs\"\220\001\n\031StubCartridgeWriteRequest" +
+ "\022\023\n\013CartridgeId\030\001 \001(\r\022\026\n\016CartridgeColor\030" +
+ "\002 \001(\r\022\030\n\020CartridgeVersion\030\003 \001(\r\022\025\n\rCartr" +
+ "idgeData\030\004 \001(\r\022\025\n\rCartridgeUsed\030\005 \001(\010B\033\n" +
+ "\031com.twine.tango.pmr.stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubCartridgeWriteRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubCartridgeWriteRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubCartridgeWriteRequest_descriptor,
+ new java.lang.String[] { "CartridgeId", "CartridgeColor", "CartridgeVersion", "CartridgeData", "CartridgeUsed", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeWriteResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeWriteResponseOuterClass.java
new file mode 100644
index 000000000..12795b75c
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubCartridgeWriteResponseOuterClass.java
@@ -0,0 +1,568 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubCartridgeWriteResponse.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubCartridgeWriteResponseOuterClass {
+ private StubCartridgeWriteResponseOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubCartridgeWriteResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubCartridgeWriteResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ int getCartridgeId();
+
+ /**
+ * <code>uint32 Status = 8;</code>
+ */
+ int getStatus();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubCartridgeWriteResponse}
+ */
+ public static final class StubCartridgeWriteResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubCartridgeWriteResponse)
+ StubCartridgeWriteResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubCartridgeWriteResponse.newBuilder() to construct.
+ private StubCartridgeWriteResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubCartridgeWriteResponse() {
+ cartridgeId_ = 0;
+ status_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubCartridgeWriteResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ cartridgeId_ = input.readUInt32();
+ break;
+ }
+ case 64: {
+
+ status_ = input.readUInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeWriteResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeWriteResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse.class, com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse.Builder.class);
+ }
+
+ public static final int CARTRIDGEID_FIELD_NUMBER = 1;
+ private int cartridgeId_;
+ /**
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public int getCartridgeId() {
+ return cartridgeId_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 8;
+ private int status_;
+ /**
+ * <code>uint32 Status = 8;</code>
+ */
+ public int getStatus() {
+ return status_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (cartridgeId_ != 0) {
+ output.writeUInt32(1, cartridgeId_);
+ }
+ if (status_ != 0) {
+ output.writeUInt32(8, status_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (cartridgeId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, cartridgeId_);
+ }
+ if (status_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(8, status_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse other = (com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse) obj;
+
+ boolean result = true;
+ result = result && (getCartridgeId()
+ == other.getCartridgeId());
+ result = result && (getStatus()
+ == other.getStatus());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CARTRIDGEID_FIELD_NUMBER;
+ hash = (53 * hash) + getCartridgeId();
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getStatus();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubCartridgeWriteResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubCartridgeWriteResponse)
+ com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeWriteResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeWriteResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse.class, com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ cartridgeId_ = 0;
+
+ status_ = 0;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubCartridgeWriteResponse_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse build() {
+ com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse buildPartial() {
+ com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse result = new com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse(this);
+ result.cartridgeId_ = cartridgeId_;
+ result.status_ = status_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse other) {
+ if (other == com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse.getDefaultInstance()) return this;
+ if (other.getCartridgeId() != 0) {
+ setCartridgeId(other.getCartridgeId());
+ }
+ if (other.getStatus() != 0) {
+ setStatus(other.getStatus());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int cartridgeId_ ;
+ /**
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public int getCartridgeId() {
+ return cartridgeId_;
+ }
+ /**
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public Builder setCartridgeId(int value) {
+
+ cartridgeId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 CartridgeId = 1;</code>
+ */
+ public Builder clearCartridgeId() {
+
+ cartridgeId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int status_ ;
+ /**
+ * <code>uint32 Status = 8;</code>
+ */
+ public int getStatus() {
+ return status_;
+ }
+ /**
+ * <code>uint32 Status = 8;</code>
+ */
+ public Builder setStatus(int value) {
+
+ status_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 Status = 8;</code>
+ */
+ public Builder clearStatus() {
+
+ status_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubCartridgeWriteResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubCartridgeWriteResponse)
+ private static final com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubCartridgeWriteResponse>
+ PARSER = new com.google.protobuf.AbstractParser<StubCartridgeWriteResponse>() {
+ public StubCartridgeWriteResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubCartridgeWriteResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubCartridgeWriteResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubCartridgeWriteResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubCartridgeWriteResponseOuterClass.StubCartridgeWriteResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubCartridgeWriteResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubCartridgeWriteResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n StubCartridgeWriteResponse.proto\022\017Tang" +
+ "o.PMR.Stubs\"A\n\032StubCartridgeWriteRespons" +
+ "e\022\023\n\013CartridgeId\030\001 \001(\r\022\016\n\006Status\030\010 \001(\rB\033" +
+ "\n\031com.twine.tango.pmr.stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubCartridgeWriteResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubCartridgeWriteResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubCartridgeWriteResponse_descriptor,
+ new java.lang.String[] { "CartridgeId", "Status", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubDispenserRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubDispenserRequestOuterClass.java
new file mode 100644
index 000000000..e169dfd16
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubDispenserRequestOuterClass.java
@@ -0,0 +1,841 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubDispenserRequest.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubDispenserRequestOuterClass {
+ private StubDispenserRequestOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubDispenserRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubDispenserRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 DispenserId = 1;</code>
+ */
+ int getDispenserId();
+
+ /**
+ * <pre>
+ * 1-start 0-stop
+ * </pre>
+ *
+ * <code>bool Start = 2;</code>
+ */
+ boolean getStart();
+
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool SetDirection = 3;</code>
+ */
+ boolean getSetDirection();
+
+ /**
+ * <pre>
+ * No. of steps for 360 deg.
+ * </pre>
+ *
+ * <code>int32 SetMicrostepDivision = 4;</code>
+ */
+ int getSetMicrostepDivision();
+
+ /**
+ * <code>int32 SetSpeed = 5;</code>
+ */
+ int getSetSpeed();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubDispenserRequest}
+ */
+ public static final class StubDispenserRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubDispenserRequest)
+ StubDispenserRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubDispenserRequest.newBuilder() to construct.
+ private StubDispenserRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubDispenserRequest() {
+ dispenserId_ = 0;
+ start_ = false;
+ setDirection_ = false;
+ setMicrostepDivision_ = 0;
+ setSpeed_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubDispenserRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ dispenserId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ start_ = input.readBool();
+ break;
+ }
+ case 24: {
+
+ setDirection_ = input.readBool();
+ break;
+ }
+ case 32: {
+
+ setMicrostepDivision_ = input.readInt32();
+ break;
+ }
+ case 40: {
+
+ setSpeed_ = input.readInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.internal_static_Tango_PMR_Stubs_StubDispenserRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.internal_static_Tango_PMR_Stubs_StubDispenserRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest.class, com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest.Builder.class);
+ }
+
+ public static final int DISPENSERID_FIELD_NUMBER = 1;
+ private int dispenserId_;
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 DispenserId = 1;</code>
+ */
+ public int getDispenserId() {
+ return dispenserId_;
+ }
+
+ public static final int START_FIELD_NUMBER = 2;
+ private boolean start_;
+ /**
+ * <pre>
+ * 1-start 0-stop
+ * </pre>
+ *
+ * <code>bool Start = 2;</code>
+ */
+ public boolean getStart() {
+ return start_;
+ }
+
+ public static final int SETDIRECTION_FIELD_NUMBER = 3;
+ private boolean setDirection_;
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool SetDirection = 3;</code>
+ */
+ public boolean getSetDirection() {
+ return setDirection_;
+ }
+
+ public static final int SETMICROSTEPDIVISION_FIELD_NUMBER = 4;
+ private int setMicrostepDivision_;
+ /**
+ * <pre>
+ * No. of steps for 360 deg.
+ * </pre>
+ *
+ * <code>int32 SetMicrostepDivision = 4;</code>
+ */
+ public int getSetMicrostepDivision() {
+ return setMicrostepDivision_;
+ }
+
+ public static final int SETSPEED_FIELD_NUMBER = 5;
+ private int setSpeed_;
+ /**
+ * <code>int32 SetSpeed = 5;</code>
+ */
+ public int getSetSpeed() {
+ return setSpeed_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (dispenserId_ != 0) {
+ output.writeUInt32(1, dispenserId_);
+ }
+ if (start_ != false) {
+ output.writeBool(2, start_);
+ }
+ if (setDirection_ != false) {
+ output.writeBool(3, setDirection_);
+ }
+ if (setMicrostepDivision_ != 0) {
+ output.writeInt32(4, setMicrostepDivision_);
+ }
+ if (setSpeed_ != 0) {
+ output.writeInt32(5, setSpeed_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (dispenserId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, dispenserId_);
+ }
+ if (start_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, start_);
+ }
+ if (setDirection_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, setDirection_);
+ }
+ if (setMicrostepDivision_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(4, setMicrostepDivision_);
+ }
+ if (setSpeed_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(5, setSpeed_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest other = (com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest) obj;
+
+ boolean result = true;
+ result = result && (getDispenserId()
+ == other.getDispenserId());
+ result = result && (getStart()
+ == other.getStart());
+ result = result && (getSetDirection()
+ == other.getSetDirection());
+ result = result && (getSetMicrostepDivision()
+ == other.getSetMicrostepDivision());
+ result = result && (getSetSpeed()
+ == other.getSetSpeed());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DISPENSERID_FIELD_NUMBER;
+ hash = (53 * hash) + getDispenserId();
+ hash = (37 * hash) + START_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getStart());
+ hash = (37 * hash) + SETDIRECTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSetDirection());
+ hash = (37 * hash) + SETMICROSTEPDIVISION_FIELD_NUMBER;
+ hash = (53 * hash) + getSetMicrostepDivision();
+ hash = (37 * hash) + SETSPEED_FIELD_NUMBER;
+ hash = (53 * hash) + getSetSpeed();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubDispenserRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubDispenserRequest)
+ com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.internal_static_Tango_PMR_Stubs_StubDispenserRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.internal_static_Tango_PMR_Stubs_StubDispenserRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest.class, com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ dispenserId_ = 0;
+
+ start_ = false;
+
+ setDirection_ = false;
+
+ setMicrostepDivision_ = 0;
+
+ setSpeed_ = 0;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.internal_static_Tango_PMR_Stubs_StubDispenserRequest_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest build() {
+ com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest buildPartial() {
+ com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest result = new com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest(this);
+ result.dispenserId_ = dispenserId_;
+ result.start_ = start_;
+ result.setDirection_ = setDirection_;
+ result.setMicrostepDivision_ = setMicrostepDivision_;
+ result.setSpeed_ = setSpeed_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest other) {
+ if (other == com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest.getDefaultInstance()) return this;
+ if (other.getDispenserId() != 0) {
+ setDispenserId(other.getDispenserId());
+ }
+ if (other.getStart() != false) {
+ setStart(other.getStart());
+ }
+ if (other.getSetDirection() != false) {
+ setSetDirection(other.getSetDirection());
+ }
+ if (other.getSetMicrostepDivision() != 0) {
+ setSetMicrostepDivision(other.getSetMicrostepDivision());
+ }
+ if (other.getSetSpeed() != 0) {
+ setSetSpeed(other.getSetSpeed());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int dispenserId_ ;
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 DispenserId = 1;</code>
+ */
+ public int getDispenserId() {
+ return dispenserId_;
+ }
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 DispenserId = 1;</code>
+ */
+ public Builder setDispenserId(int value) {
+
+ dispenserId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 DispenserId = 1;</code>
+ */
+ public Builder clearDispenserId() {
+
+ dispenserId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean start_ ;
+ /**
+ * <pre>
+ * 1-start 0-stop
+ * </pre>
+ *
+ * <code>bool Start = 2;</code>
+ */
+ public boolean getStart() {
+ return start_;
+ }
+ /**
+ * <pre>
+ * 1-start 0-stop
+ * </pre>
+ *
+ * <code>bool Start = 2;</code>
+ */
+ public Builder setStart(boolean value) {
+
+ start_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 1-start 0-stop
+ * </pre>
+ *
+ * <code>bool Start = 2;</code>
+ */
+ public Builder clearStart() {
+
+ start_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean setDirection_ ;
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool SetDirection = 3;</code>
+ */
+ public boolean getSetDirection() {
+ return setDirection_;
+ }
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool SetDirection = 3;</code>
+ */
+ public Builder setSetDirection(boolean value) {
+
+ setDirection_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool SetDirection = 3;</code>
+ */
+ public Builder clearSetDirection() {
+
+ setDirection_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int setMicrostepDivision_ ;
+ /**
+ * <pre>
+ * No. of steps for 360 deg.
+ * </pre>
+ *
+ * <code>int32 SetMicrostepDivision = 4;</code>
+ */
+ public int getSetMicrostepDivision() {
+ return setMicrostepDivision_;
+ }
+ /**
+ * <pre>
+ * No. of steps for 360 deg.
+ * </pre>
+ *
+ * <code>int32 SetMicrostepDivision = 4;</code>
+ */
+ public Builder setSetMicrostepDivision(int value) {
+
+ setMicrostepDivision_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * No. of steps for 360 deg.
+ * </pre>
+ *
+ * <code>int32 SetMicrostepDivision = 4;</code>
+ */
+ public Builder clearSetMicrostepDivision() {
+
+ setMicrostepDivision_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int setSpeed_ ;
+ /**
+ * <code>int32 SetSpeed = 5;</code>
+ */
+ public int getSetSpeed() {
+ return setSpeed_;
+ }
+ /**
+ * <code>int32 SetSpeed = 5;</code>
+ */
+ public Builder setSetSpeed(int value) {
+
+ setSpeed_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>int32 SetSpeed = 5;</code>
+ */
+ public Builder clearSetSpeed() {
+
+ setSpeed_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubDispenserRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubDispenserRequest)
+ private static final com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubDispenserRequest>
+ PARSER = new com.google.protobuf.AbstractParser<StubDispenserRequest>() {
+ public StubDispenserRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubDispenserRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubDispenserRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubDispenserRequest> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubDispenserRequestOuterClass.StubDispenserRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubDispenserRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubDispenserRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\032StubDispenserRequest.proto\022\017Tango.PMR." +
+ "Stubs\"\200\001\n\024StubDispenserRequest\022\023\n\013Dispen" +
+ "serId\030\001 \001(\r\022\r\n\005Start\030\002 \001(\010\022\024\n\014SetDirecti" +
+ "on\030\003 \001(\010\022\034\n\024SetMicrostepDivision\030\004 \001(\005\022\020" +
+ "\n\010SetSpeed\030\005 \001(\005B\033\n\031com.twine.tango.pmr." +
+ "stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubDispenserRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubDispenserRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubDispenserRequest_descriptor,
+ new java.lang.String[] { "DispenserId", "Start", "SetDirection", "SetMicrostepDivision", "SetSpeed", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubDispenserResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubDispenserResponseOuterClass.java
new file mode 100644
index 000000000..8f6354be7
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubDispenserResponseOuterClass.java
@@ -0,0 +1,771 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubDispenserResponse.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubDispenserResponseOuterClass {
+ private StubDispenserResponseOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubDispenserResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubDispenserResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 DispenserId = 1;</code>
+ */
+ int getDispenserId();
+
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 DispenserPosition = 2;</code>
+ */
+ int getDispenserPosition();
+
+ /**
+ * <pre>
+ * 1- critical 2- level 3- overflow
+ * </pre>
+ *
+ * <code>uint32 InkWorningLevel = 3;</code>
+ */
+ int getInkWorningLevel();
+
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 4;</code>
+ */
+ boolean getStatus();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubDispenserResponse}
+ */
+ public static final class StubDispenserResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubDispenserResponse)
+ StubDispenserResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubDispenserResponse.newBuilder() to construct.
+ private StubDispenserResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubDispenserResponse() {
+ dispenserId_ = 0;
+ dispenserPosition_ = 0;
+ inkWorningLevel_ = 0;
+ status_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubDispenserResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ dispenserId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ dispenserPosition_ = input.readUInt32();
+ break;
+ }
+ case 24: {
+
+ inkWorningLevel_ = input.readUInt32();
+ break;
+ }
+ case 32: {
+
+ status_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.internal_static_Tango_PMR_Stubs_StubDispenserResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.internal_static_Tango_PMR_Stubs_StubDispenserResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse.class, com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse.Builder.class);
+ }
+
+ public static final int DISPENSERID_FIELD_NUMBER = 1;
+ private int dispenserId_;
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 DispenserId = 1;</code>
+ */
+ public int getDispenserId() {
+ return dispenserId_;
+ }
+
+ public static final int DISPENSERPOSITION_FIELD_NUMBER = 2;
+ private int dispenserPosition_;
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 DispenserPosition = 2;</code>
+ */
+ public int getDispenserPosition() {
+ return dispenserPosition_;
+ }
+
+ public static final int INKWORNINGLEVEL_FIELD_NUMBER = 3;
+ private int inkWorningLevel_;
+ /**
+ * <pre>
+ * 1- critical 2- level 3- overflow
+ * </pre>
+ *
+ * <code>uint32 InkWorningLevel = 3;</code>
+ */
+ public int getInkWorningLevel() {
+ return inkWorningLevel_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 4;
+ private boolean status_;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 4;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (dispenserId_ != 0) {
+ output.writeUInt32(1, dispenserId_);
+ }
+ if (dispenserPosition_ != 0) {
+ output.writeUInt32(2, dispenserPosition_);
+ }
+ if (inkWorningLevel_ != 0) {
+ output.writeUInt32(3, inkWorningLevel_);
+ }
+ if (status_ != false) {
+ output.writeBool(4, status_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (dispenserId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, dispenserId_);
+ }
+ if (dispenserPosition_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, dispenserPosition_);
+ }
+ if (inkWorningLevel_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(3, inkWorningLevel_);
+ }
+ if (status_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(4, status_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse other = (com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse) obj;
+
+ boolean result = true;
+ result = result && (getDispenserId()
+ == other.getDispenserId());
+ result = result && (getDispenserPosition()
+ == other.getDispenserPosition());
+ result = result && (getInkWorningLevel()
+ == other.getInkWorningLevel());
+ result = result && (getStatus()
+ == other.getStatus());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DISPENSERID_FIELD_NUMBER;
+ hash = (53 * hash) + getDispenserId();
+ hash = (37 * hash) + DISPENSERPOSITION_FIELD_NUMBER;
+ hash = (53 * hash) + getDispenserPosition();
+ hash = (37 * hash) + INKWORNINGLEVEL_FIELD_NUMBER;
+ hash = (53 * hash) + getInkWorningLevel();
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getStatus());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubDispenserResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubDispenserResponse)
+ com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.internal_static_Tango_PMR_Stubs_StubDispenserResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.internal_static_Tango_PMR_Stubs_StubDispenserResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse.class, com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ dispenserId_ = 0;
+
+ dispenserPosition_ = 0;
+
+ inkWorningLevel_ = 0;
+
+ status_ = false;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.internal_static_Tango_PMR_Stubs_StubDispenserResponse_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse build() {
+ com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse buildPartial() {
+ com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse result = new com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse(this);
+ result.dispenserId_ = dispenserId_;
+ result.dispenserPosition_ = dispenserPosition_;
+ result.inkWorningLevel_ = inkWorningLevel_;
+ result.status_ = status_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse other) {
+ if (other == com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse.getDefaultInstance()) return this;
+ if (other.getDispenserId() != 0) {
+ setDispenserId(other.getDispenserId());
+ }
+ if (other.getDispenserPosition() != 0) {
+ setDispenserPosition(other.getDispenserPosition());
+ }
+ if (other.getInkWorningLevel() != 0) {
+ setInkWorningLevel(other.getInkWorningLevel());
+ }
+ if (other.getStatus() != false) {
+ setStatus(other.getStatus());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int dispenserId_ ;
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 DispenserId = 1;</code>
+ */
+ public int getDispenserId() {
+ return dispenserId_;
+ }
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 DispenserId = 1;</code>
+ */
+ public Builder setDispenserId(int value) {
+
+ dispenserId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 DispenserId = 1;</code>
+ */
+ public Builder clearDispenserId() {
+
+ dispenserId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int dispenserPosition_ ;
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 DispenserPosition = 2;</code>
+ */
+ public int getDispenserPosition() {
+ return dispenserPosition_;
+ }
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 DispenserPosition = 2;</code>
+ */
+ public Builder setDispenserPosition(int value) {
+
+ dispenserPosition_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 DispenserPosition = 2;</code>
+ */
+ public Builder clearDispenserPosition() {
+
+ dispenserPosition_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int inkWorningLevel_ ;
+ /**
+ * <pre>
+ * 1- critical 2- level 3- overflow
+ * </pre>
+ *
+ * <code>uint32 InkWorningLevel = 3;</code>
+ */
+ public int getInkWorningLevel() {
+ return inkWorningLevel_;
+ }
+ /**
+ * <pre>
+ * 1- critical 2- level 3- overflow
+ * </pre>
+ *
+ * <code>uint32 InkWorningLevel = 3;</code>
+ */
+ public Builder setInkWorningLevel(int value) {
+
+ inkWorningLevel_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 1- critical 2- level 3- overflow
+ * </pre>
+ *
+ * <code>uint32 InkWorningLevel = 3;</code>
+ */
+ public Builder clearInkWorningLevel() {
+
+ inkWorningLevel_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean status_ ;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 4;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 4;</code>
+ */
+ public Builder setStatus(boolean value) {
+
+ status_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 4;</code>
+ */
+ public Builder clearStatus() {
+
+ status_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubDispenserResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubDispenserResponse)
+ private static final com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubDispenserResponse>
+ PARSER = new com.google.protobuf.AbstractParser<StubDispenserResponse>() {
+ public StubDispenserResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubDispenserResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubDispenserResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubDispenserResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubDispenserResponseOuterClass.StubDispenserResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubDispenserResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubDispenserResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\033StubDispenserResponse.proto\022\017Tango.PMR" +
+ ".Stubs\"p\n\025StubDispenserResponse\022\023\n\013Dispe" +
+ "nserId\030\001 \001(\r\022\031\n\021DispenserPosition\030\002 \001(\r\022" +
+ "\027\n\017InkWorningLevel\030\003 \001(\r\022\016\n\006Status\030\004 \001(\010" +
+ "B\033\n\031com.twine.tango.pmr.stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubDispenserResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubDispenserResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubDispenserResponse_descriptor,
+ new java.lang.String[] { "DispenserId", "DispenserPosition", "InkWorningLevel", "Status", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadBitRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadBitRequestOuterClass.java
new file mode 100644
index 000000000..504cfbacb
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadBitRequestOuterClass.java
@@ -0,0 +1,608 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubGPIOReadBitRequest.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubGPIOReadBitRequestOuterClass {
+ private StubGPIOReadBitRequestOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubGPIOReadBitRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubGPIOReadBitRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ int getPortId();
+
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ int getPinId();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOReadBitRequest}
+ */
+ public static final class StubGPIOReadBitRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubGPIOReadBitRequest)
+ StubGPIOReadBitRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubGPIOReadBitRequest.newBuilder() to construct.
+ private StubGPIOReadBitRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubGPIOReadBitRequest() {
+ portId_ = 0;
+ pinId_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubGPIOReadBitRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ portId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ pinId_ = input.readUInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadBitRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadBitRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest.class, com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest.Builder.class);
+ }
+
+ public static final int PORTID_FIELD_NUMBER = 1;
+ private int portId_;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+
+ public static final int PINID_FIELD_NUMBER = 2;
+ private int pinId_;
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public int getPinId() {
+ return pinId_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (portId_ != 0) {
+ output.writeUInt32(1, portId_);
+ }
+ if (pinId_ != 0) {
+ output.writeUInt32(2, pinId_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (portId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, portId_);
+ }
+ if (pinId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, pinId_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest other = (com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest) obj;
+
+ boolean result = true;
+ result = result && (getPortId()
+ == other.getPortId());
+ result = result && (getPinId()
+ == other.getPinId());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PORTID_FIELD_NUMBER;
+ hash = (53 * hash) + getPortId();
+ hash = (37 * hash) + PINID_FIELD_NUMBER;
+ hash = (53 * hash) + getPinId();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOReadBitRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubGPIOReadBitRequest)
+ com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadBitRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadBitRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest.class, com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ portId_ = 0;
+
+ pinId_ = 0;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadBitRequest_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest build() {
+ com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest buildPartial() {
+ com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest result = new com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest(this);
+ result.portId_ = portId_;
+ result.pinId_ = pinId_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest other) {
+ if (other == com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest.getDefaultInstance()) return this;
+ if (other.getPortId() != 0) {
+ setPortId(other.getPortId());
+ }
+ if (other.getPinId() != 0) {
+ setPinId(other.getPinId());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int portId_ ;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder setPortId(int value) {
+
+ portId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder clearPortId() {
+
+ portId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int pinId_ ;
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public int getPinId() {
+ return pinId_;
+ }
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public Builder setPinId(int value) {
+
+ pinId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public Builder clearPinId() {
+
+ pinId_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubGPIOReadBitRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOReadBitRequest)
+ private static final com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubGPIOReadBitRequest>
+ PARSER = new com.google.protobuf.AbstractParser<StubGPIOReadBitRequest>() {
+ public StubGPIOReadBitRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubGPIOReadBitRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubGPIOReadBitRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubGPIOReadBitRequest> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadBitRequestOuterClass.StubGPIOReadBitRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubGPIOReadBitRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubGPIOReadBitRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\034StubGPIOReadBitRequest.proto\022\017Tango.PM" +
+ "R.Stubs\"7\n\026StubGPIOReadBitRequest\022\016\n\006Por" +
+ "tId\030\001 \001(\r\022\r\n\005PinId\030\002 \001(\rB\033\n\031com.twine.ta" +
+ "ngo.pmr.stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubGPIOReadBitRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubGPIOReadBitRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubGPIOReadBitRequest_descriptor,
+ new java.lang.String[] { "PortId", "PinId", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadBitResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadBitResponseOuterClass.java
new file mode 100644
index 000000000..a1749ecc8
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadBitResponseOuterClass.java
@@ -0,0 +1,757 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubGPIOReadBitResponse.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubGPIOReadBitResponseOuterClass {
+ private StubGPIOReadBitResponseOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubGPIOReadBitResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubGPIOReadBitResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ int getPortId();
+
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ int getPinId();
+
+ /**
+ * <code>bool BitValue = 3;</code>
+ */
+ boolean getBitValue();
+
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 4;</code>
+ */
+ boolean getStatus();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOReadBitResponse}
+ */
+ public static final class StubGPIOReadBitResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubGPIOReadBitResponse)
+ StubGPIOReadBitResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubGPIOReadBitResponse.newBuilder() to construct.
+ private StubGPIOReadBitResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubGPIOReadBitResponse() {
+ portId_ = 0;
+ pinId_ = 0;
+ bitValue_ = false;
+ status_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubGPIOReadBitResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ portId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ pinId_ = input.readUInt32();
+ break;
+ }
+ case 24: {
+
+ bitValue_ = input.readBool();
+ break;
+ }
+ case 32: {
+
+ status_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadBitResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadBitResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse.class, com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse.Builder.class);
+ }
+
+ public static final int PORTID_FIELD_NUMBER = 1;
+ private int portId_;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+
+ public static final int PINID_FIELD_NUMBER = 2;
+ private int pinId_;
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public int getPinId() {
+ return pinId_;
+ }
+
+ public static final int BITVALUE_FIELD_NUMBER = 3;
+ private boolean bitValue_;
+ /**
+ * <code>bool BitValue = 3;</code>
+ */
+ public boolean getBitValue() {
+ return bitValue_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 4;
+ private boolean status_;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 4;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (portId_ != 0) {
+ output.writeUInt32(1, portId_);
+ }
+ if (pinId_ != 0) {
+ output.writeUInt32(2, pinId_);
+ }
+ if (bitValue_ != false) {
+ output.writeBool(3, bitValue_);
+ }
+ if (status_ != false) {
+ output.writeBool(4, status_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (portId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, portId_);
+ }
+ if (pinId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, pinId_);
+ }
+ if (bitValue_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, bitValue_);
+ }
+ if (status_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(4, status_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse other = (com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse) obj;
+
+ boolean result = true;
+ result = result && (getPortId()
+ == other.getPortId());
+ result = result && (getPinId()
+ == other.getPinId());
+ result = result && (getBitValue()
+ == other.getBitValue());
+ result = result && (getStatus()
+ == other.getStatus());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PORTID_FIELD_NUMBER;
+ hash = (53 * hash) + getPortId();
+ hash = (37 * hash) + PINID_FIELD_NUMBER;
+ hash = (53 * hash) + getPinId();
+ hash = (37 * hash) + BITVALUE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getBitValue());
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getStatus());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOReadBitResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubGPIOReadBitResponse)
+ com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadBitResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadBitResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse.class, com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ portId_ = 0;
+
+ pinId_ = 0;
+
+ bitValue_ = false;
+
+ status_ = false;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadBitResponse_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse build() {
+ com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse buildPartial() {
+ com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse result = new com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse(this);
+ result.portId_ = portId_;
+ result.pinId_ = pinId_;
+ result.bitValue_ = bitValue_;
+ result.status_ = status_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse other) {
+ if (other == com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse.getDefaultInstance()) return this;
+ if (other.getPortId() != 0) {
+ setPortId(other.getPortId());
+ }
+ if (other.getPinId() != 0) {
+ setPinId(other.getPinId());
+ }
+ if (other.getBitValue() != false) {
+ setBitValue(other.getBitValue());
+ }
+ if (other.getStatus() != false) {
+ setStatus(other.getStatus());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int portId_ ;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder setPortId(int value) {
+
+ portId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder clearPortId() {
+
+ portId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int pinId_ ;
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public int getPinId() {
+ return pinId_;
+ }
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public Builder setPinId(int value) {
+
+ pinId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public Builder clearPinId() {
+
+ pinId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean bitValue_ ;
+ /**
+ * <code>bool BitValue = 3;</code>
+ */
+ public boolean getBitValue() {
+ return bitValue_;
+ }
+ /**
+ * <code>bool BitValue = 3;</code>
+ */
+ public Builder setBitValue(boolean value) {
+
+ bitValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>bool BitValue = 3;</code>
+ */
+ public Builder clearBitValue() {
+
+ bitValue_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean status_ ;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 4;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 4;</code>
+ */
+ public Builder setStatus(boolean value) {
+
+ status_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 4;</code>
+ */
+ public Builder clearStatus() {
+
+ status_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubGPIOReadBitResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOReadBitResponse)
+ private static final com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubGPIOReadBitResponse>
+ PARSER = new com.google.protobuf.AbstractParser<StubGPIOReadBitResponse>() {
+ public StubGPIOReadBitResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubGPIOReadBitResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubGPIOReadBitResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubGPIOReadBitResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadBitResponseOuterClass.StubGPIOReadBitResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubGPIOReadBitResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubGPIOReadBitResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\035StubGPIOReadBitResponse.proto\022\017Tango.P" +
+ "MR.Stubs\"Z\n\027StubGPIOReadBitResponse\022\016\n\006P" +
+ "ortId\030\001 \001(\r\022\r\n\005PinId\030\002 \001(\r\022\020\n\010BitValue\030\003" +
+ " \001(\010\022\016\n\006Status\030\004 \001(\010B\033\n\031com.twine.tango." +
+ "pmr.stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubGPIOReadBitResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubGPIOReadBitResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubGPIOReadBitResponse_descriptor,
+ new java.lang.String[] { "PortId", "PinId", "BitValue", "Status", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadByteRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadByteRequestOuterClass.java
new file mode 100644
index 000000000..1ff44f3a9
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadByteRequestOuterClass.java
@@ -0,0 +1,525 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubGPIOReadByteRequest.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubGPIOReadByteRequestOuterClass {
+ private StubGPIOReadByteRequestOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubGPIOReadByteRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubGPIOReadByteRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ int getPortId();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOReadByteRequest}
+ */
+ public static final class StubGPIOReadByteRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubGPIOReadByteRequest)
+ StubGPIOReadByteRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubGPIOReadByteRequest.newBuilder() to construct.
+ private StubGPIOReadByteRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubGPIOReadByteRequest() {
+ portId_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubGPIOReadByteRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ portId_ = input.readUInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadByteRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadByteRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest.class, com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest.Builder.class);
+ }
+
+ public static final int PORTID_FIELD_NUMBER = 1;
+ private int portId_;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (portId_ != 0) {
+ output.writeUInt32(1, portId_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (portId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, portId_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest other = (com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest) obj;
+
+ boolean result = true;
+ result = result && (getPortId()
+ == other.getPortId());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PORTID_FIELD_NUMBER;
+ hash = (53 * hash) + getPortId();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOReadByteRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubGPIOReadByteRequest)
+ com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadByteRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadByteRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest.class, com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ portId_ = 0;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadByteRequest_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest build() {
+ com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest buildPartial() {
+ com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest result = new com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest(this);
+ result.portId_ = portId_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest other) {
+ if (other == com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest.getDefaultInstance()) return this;
+ if (other.getPortId() != 0) {
+ setPortId(other.getPortId());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int portId_ ;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder setPortId(int value) {
+
+ portId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder clearPortId() {
+
+ portId_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubGPIOReadByteRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOReadByteRequest)
+ private static final com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubGPIOReadByteRequest>
+ PARSER = new com.google.protobuf.AbstractParser<StubGPIOReadByteRequest>() {
+ public StubGPIOReadByteRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubGPIOReadByteRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubGPIOReadByteRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubGPIOReadByteRequest> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadByteRequestOuterClass.StubGPIOReadByteRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubGPIOReadByteRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubGPIOReadByteRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\035StubGPIOReadByteRequest.proto\022\017Tango.P" +
+ "MR.Stubs\")\n\027StubGPIOReadByteRequest\022\016\n\006P" +
+ "ortId\030\001 \001(\rB\033\n\031com.twine.tango.pmr.stubs" +
+ "b\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubGPIOReadByteRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubGPIOReadByteRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubGPIOReadByteRequest_descriptor,
+ new java.lang.String[] { "PortId", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadByteResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadByteResponseOuterClass.java
new file mode 100644
index 000000000..757afbb4a
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOReadByteResponseOuterClass.java
@@ -0,0 +1,673 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubGPIOReadByteResponse.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubGPIOReadByteResponseOuterClass {
+ private StubGPIOReadByteResponseOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubGPIOReadByteResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubGPIOReadByteResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ int getPortId();
+
+ /**
+ * <code>uint32 ByteValue = 2;</code>
+ */
+ int getByteValue();
+
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool status = 3;</code>
+ */
+ boolean getStatus();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOReadByteResponse}
+ */
+ public static final class StubGPIOReadByteResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubGPIOReadByteResponse)
+ StubGPIOReadByteResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubGPIOReadByteResponse.newBuilder() to construct.
+ private StubGPIOReadByteResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubGPIOReadByteResponse() {
+ portId_ = 0;
+ byteValue_ = 0;
+ status_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubGPIOReadByteResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ portId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ byteValue_ = input.readUInt32();
+ break;
+ }
+ case 24: {
+
+ status_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadByteResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadByteResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse.class, com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse.Builder.class);
+ }
+
+ public static final int PORTID_FIELD_NUMBER = 1;
+ private int portId_;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+
+ public static final int BYTEVALUE_FIELD_NUMBER = 2;
+ private int byteValue_;
+ /**
+ * <code>uint32 ByteValue = 2;</code>
+ */
+ public int getByteValue() {
+ return byteValue_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 3;
+ private boolean status_;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool status = 3;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (portId_ != 0) {
+ output.writeUInt32(1, portId_);
+ }
+ if (byteValue_ != 0) {
+ output.writeUInt32(2, byteValue_);
+ }
+ if (status_ != false) {
+ output.writeBool(3, status_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (portId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, portId_);
+ }
+ if (byteValue_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, byteValue_);
+ }
+ if (status_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, status_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse other = (com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse) obj;
+
+ boolean result = true;
+ result = result && (getPortId()
+ == other.getPortId());
+ result = result && (getByteValue()
+ == other.getByteValue());
+ result = result && (getStatus()
+ == other.getStatus());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PORTID_FIELD_NUMBER;
+ hash = (53 * hash) + getPortId();
+ hash = (37 * hash) + BYTEVALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getByteValue();
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getStatus());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOReadByteResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubGPIOReadByteResponse)
+ com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadByteResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadByteResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse.class, com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ portId_ = 0;
+
+ byteValue_ = 0;
+
+ status_ = false;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOReadByteResponse_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse build() {
+ com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse buildPartial() {
+ com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse result = new com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse(this);
+ result.portId_ = portId_;
+ result.byteValue_ = byteValue_;
+ result.status_ = status_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse other) {
+ if (other == com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse.getDefaultInstance()) return this;
+ if (other.getPortId() != 0) {
+ setPortId(other.getPortId());
+ }
+ if (other.getByteValue() != 0) {
+ setByteValue(other.getByteValue());
+ }
+ if (other.getStatus() != false) {
+ setStatus(other.getStatus());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int portId_ ;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder setPortId(int value) {
+
+ portId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder clearPortId() {
+
+ portId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int byteValue_ ;
+ /**
+ * <code>uint32 ByteValue = 2;</code>
+ */
+ public int getByteValue() {
+ return byteValue_;
+ }
+ /**
+ * <code>uint32 ByteValue = 2;</code>
+ */
+ public Builder setByteValue(int value) {
+
+ byteValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 ByteValue = 2;</code>
+ */
+ public Builder clearByteValue() {
+
+ byteValue_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean status_ ;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool status = 3;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool status = 3;</code>
+ */
+ public Builder setStatus(boolean value) {
+
+ status_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool status = 3;</code>
+ */
+ public Builder clearStatus() {
+
+ status_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubGPIOReadByteResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOReadByteResponse)
+ private static final com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubGPIOReadByteResponse>
+ PARSER = new com.google.protobuf.AbstractParser<StubGPIOReadByteResponse>() {
+ public StubGPIOReadByteResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubGPIOReadByteResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubGPIOReadByteResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubGPIOReadByteResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOReadByteResponseOuterClass.StubGPIOReadByteResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubGPIOReadByteResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubGPIOReadByteResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\036StubGPIOReadByteResponse.proto\022\017Tango." +
+ "PMR.Stubs\"M\n\030StubGPIOReadByteResponse\022\016\n" +
+ "\006PortId\030\001 \001(\r\022\021\n\tByteValue\030\002 \001(\r\022\016\n\006stat" +
+ "us\030\003 \001(\010B\033\n\031com.twine.tango.pmr.stubsb\006p" +
+ "roto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubGPIOReadByteResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubGPIOReadByteResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubGPIOReadByteResponse_descriptor,
+ new java.lang.String[] { "PortId", "ByteValue", "Status", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteBitRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteBitRequestOuterClass.java
new file mode 100644
index 000000000..7672c3cbb
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteBitRequestOuterClass.java
@@ -0,0 +1,673 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubGPIOWriteBitRequest.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubGPIOWriteBitRequestOuterClass {
+ private StubGPIOWriteBitRequestOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubGPIOWriteBitRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubGPIOWriteBitRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ int getPortId();
+
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ int getPinId();
+
+ /**
+ * <code>bool BitToWrite = 3;</code>
+ */
+ boolean getBitToWrite();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOWriteBitRequest}
+ */
+ public static final class StubGPIOWriteBitRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubGPIOWriteBitRequest)
+ StubGPIOWriteBitRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubGPIOWriteBitRequest.newBuilder() to construct.
+ private StubGPIOWriteBitRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubGPIOWriteBitRequest() {
+ portId_ = 0;
+ pinId_ = 0;
+ bitToWrite_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubGPIOWriteBitRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ portId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ pinId_ = input.readUInt32();
+ break;
+ }
+ case 24: {
+
+ bitToWrite_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteBitRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteBitRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest.class, com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest.Builder.class);
+ }
+
+ public static final int PORTID_FIELD_NUMBER = 1;
+ private int portId_;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+
+ public static final int PINID_FIELD_NUMBER = 2;
+ private int pinId_;
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public int getPinId() {
+ return pinId_;
+ }
+
+ public static final int BITTOWRITE_FIELD_NUMBER = 3;
+ private boolean bitToWrite_;
+ /**
+ * <code>bool BitToWrite = 3;</code>
+ */
+ public boolean getBitToWrite() {
+ return bitToWrite_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (portId_ != 0) {
+ output.writeUInt32(1, portId_);
+ }
+ if (pinId_ != 0) {
+ output.writeUInt32(2, pinId_);
+ }
+ if (bitToWrite_ != false) {
+ output.writeBool(3, bitToWrite_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (portId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, portId_);
+ }
+ if (pinId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, pinId_);
+ }
+ if (bitToWrite_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, bitToWrite_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest other = (com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest) obj;
+
+ boolean result = true;
+ result = result && (getPortId()
+ == other.getPortId());
+ result = result && (getPinId()
+ == other.getPinId());
+ result = result && (getBitToWrite()
+ == other.getBitToWrite());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PORTID_FIELD_NUMBER;
+ hash = (53 * hash) + getPortId();
+ hash = (37 * hash) + PINID_FIELD_NUMBER;
+ hash = (53 * hash) + getPinId();
+ hash = (37 * hash) + BITTOWRITE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getBitToWrite());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOWriteBitRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubGPIOWriteBitRequest)
+ com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteBitRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteBitRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest.class, com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ portId_ = 0;
+
+ pinId_ = 0;
+
+ bitToWrite_ = false;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteBitRequest_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest build() {
+ com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest buildPartial() {
+ com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest result = new com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest(this);
+ result.portId_ = portId_;
+ result.pinId_ = pinId_;
+ result.bitToWrite_ = bitToWrite_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest other) {
+ if (other == com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest.getDefaultInstance()) return this;
+ if (other.getPortId() != 0) {
+ setPortId(other.getPortId());
+ }
+ if (other.getPinId() != 0) {
+ setPinId(other.getPinId());
+ }
+ if (other.getBitToWrite() != false) {
+ setBitToWrite(other.getBitToWrite());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int portId_ ;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder setPortId(int value) {
+
+ portId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder clearPortId() {
+
+ portId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int pinId_ ;
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public int getPinId() {
+ return pinId_;
+ }
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public Builder setPinId(int value) {
+
+ pinId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public Builder clearPinId() {
+
+ pinId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean bitToWrite_ ;
+ /**
+ * <code>bool BitToWrite = 3;</code>
+ */
+ public boolean getBitToWrite() {
+ return bitToWrite_;
+ }
+ /**
+ * <code>bool BitToWrite = 3;</code>
+ */
+ public Builder setBitToWrite(boolean value) {
+
+ bitToWrite_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>bool BitToWrite = 3;</code>
+ */
+ public Builder clearBitToWrite() {
+
+ bitToWrite_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubGPIOWriteBitRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOWriteBitRequest)
+ private static final com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubGPIOWriteBitRequest>
+ PARSER = new com.google.protobuf.AbstractParser<StubGPIOWriteBitRequest>() {
+ public StubGPIOWriteBitRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubGPIOWriteBitRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubGPIOWriteBitRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubGPIOWriteBitRequest> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteBitRequestOuterClass.StubGPIOWriteBitRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteBitRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteBitRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\035StubGPIOWriteBitRequest.proto\022\017Tango.P" +
+ "MR.Stubs\"L\n\027StubGPIOWriteBitRequest\022\016\n\006P" +
+ "ortId\030\001 \001(\r\022\r\n\005PinId\030\002 \001(\r\022\022\n\nBitToWrite" +
+ "\030\003 \001(\010B\033\n\031com.twine.tango.pmr.stubsb\006pro" +
+ "to3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteBitRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteBitRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteBitRequest_descriptor,
+ new java.lang.String[] { "PortId", "PinId", "BitToWrite", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteBitResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteBitResponseOuterClass.java
new file mode 100644
index 000000000..cfc6f784c
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteBitResponseOuterClass.java
@@ -0,0 +1,693 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubGPIOWriteBitResponse.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubGPIOWriteBitResponseOuterClass {
+ private StubGPIOWriteBitResponseOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubGPIOWriteBitResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubGPIOWriteBitResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ int getPortId();
+
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ int getPinId();
+
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ boolean getStatus();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOWriteBitResponse}
+ */
+ public static final class StubGPIOWriteBitResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubGPIOWriteBitResponse)
+ StubGPIOWriteBitResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubGPIOWriteBitResponse.newBuilder() to construct.
+ private StubGPIOWriteBitResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubGPIOWriteBitResponse() {
+ portId_ = 0;
+ pinId_ = 0;
+ status_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubGPIOWriteBitResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ portId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ pinId_ = input.readUInt32();
+ break;
+ }
+ case 24: {
+
+ status_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteBitResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteBitResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse.class, com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse.Builder.class);
+ }
+
+ public static final int PORTID_FIELD_NUMBER = 1;
+ private int portId_;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+
+ public static final int PINID_FIELD_NUMBER = 2;
+ private int pinId_;
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public int getPinId() {
+ return pinId_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 3;
+ private boolean status_;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (portId_ != 0) {
+ output.writeUInt32(1, portId_);
+ }
+ if (pinId_ != 0) {
+ output.writeUInt32(2, pinId_);
+ }
+ if (status_ != false) {
+ output.writeBool(3, status_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (portId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, portId_);
+ }
+ if (pinId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, pinId_);
+ }
+ if (status_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, status_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse other = (com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse) obj;
+
+ boolean result = true;
+ result = result && (getPortId()
+ == other.getPortId());
+ result = result && (getPinId()
+ == other.getPinId());
+ result = result && (getStatus()
+ == other.getStatus());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PORTID_FIELD_NUMBER;
+ hash = (53 * hash) + getPortId();
+ hash = (37 * hash) + PINID_FIELD_NUMBER;
+ hash = (53 * hash) + getPinId();
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getStatus());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOWriteBitResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubGPIOWriteBitResponse)
+ com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteBitResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteBitResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse.class, com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ portId_ = 0;
+
+ pinId_ = 0;
+
+ status_ = false;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteBitResponse_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse build() {
+ com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse buildPartial() {
+ com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse result = new com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse(this);
+ result.portId_ = portId_;
+ result.pinId_ = pinId_;
+ result.status_ = status_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse other) {
+ if (other == com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse.getDefaultInstance()) return this;
+ if (other.getPortId() != 0) {
+ setPortId(other.getPortId());
+ }
+ if (other.getPinId() != 0) {
+ setPinId(other.getPinId());
+ }
+ if (other.getStatus() != false) {
+ setStatus(other.getStatus());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int portId_ ;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder setPortId(int value) {
+
+ portId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder clearPortId() {
+
+ portId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int pinId_ ;
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public int getPinId() {
+ return pinId_;
+ }
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public Builder setPinId(int value) {
+
+ pinId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0..7
+ * </pre>
+ *
+ * <code>uint32 PinId = 2;</code>
+ */
+ public Builder clearPinId() {
+
+ pinId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean status_ ;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public Builder setStatus(boolean value) {
+
+ status_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public Builder clearStatus() {
+
+ status_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubGPIOWriteBitResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOWriteBitResponse)
+ private static final com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubGPIOWriteBitResponse>
+ PARSER = new com.google.protobuf.AbstractParser<StubGPIOWriteBitResponse>() {
+ public StubGPIOWriteBitResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubGPIOWriteBitResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubGPIOWriteBitResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubGPIOWriteBitResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteBitResponseOuterClass.StubGPIOWriteBitResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteBitResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteBitResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\036StubGPIOWriteBitResponse.proto\022\017Tango." +
+ "PMR.Stubs\"I\n\030StubGPIOWriteBitResponse\022\016\n" +
+ "\006PortId\030\001 \001(\r\022\r\n\005PinId\030\002 \001(\r\022\016\n\006Status\030\003" +
+ " \001(\010B\033\n\031com.twine.tango.pmr.stubsb\006proto" +
+ "3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteBitResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteBitResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteBitResponse_descriptor,
+ new java.lang.String[] { "PortId", "PinId", "Status", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteByteRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteByteRequestOuterClass.java
new file mode 100644
index 000000000..ee9e8d42e
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteByteRequestOuterClass.java
@@ -0,0 +1,588 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubGPIOWriteByteRequest.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubGPIOWriteByteRequestOuterClass {
+ private StubGPIOWriteByteRequestOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubGPIOWriteByteRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubGPIOWriteByteRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ int getPortId();
+
+ /**
+ * <code>uint32 DataToWrite = 3;</code>
+ */
+ int getDataToWrite();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOWriteByteRequest}
+ */
+ public static final class StubGPIOWriteByteRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubGPIOWriteByteRequest)
+ StubGPIOWriteByteRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubGPIOWriteByteRequest.newBuilder() to construct.
+ private StubGPIOWriteByteRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubGPIOWriteByteRequest() {
+ portId_ = 0;
+ dataToWrite_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubGPIOWriteByteRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ portId_ = input.readUInt32();
+ break;
+ }
+ case 24: {
+
+ dataToWrite_ = input.readUInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteByteRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteByteRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest.class, com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest.Builder.class);
+ }
+
+ public static final int PORTID_FIELD_NUMBER = 1;
+ private int portId_;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+
+ public static final int DATATOWRITE_FIELD_NUMBER = 3;
+ private int dataToWrite_;
+ /**
+ * <code>uint32 DataToWrite = 3;</code>
+ */
+ public int getDataToWrite() {
+ return dataToWrite_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (portId_ != 0) {
+ output.writeUInt32(1, portId_);
+ }
+ if (dataToWrite_ != 0) {
+ output.writeUInt32(3, dataToWrite_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (portId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, portId_);
+ }
+ if (dataToWrite_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(3, dataToWrite_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest other = (com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest) obj;
+
+ boolean result = true;
+ result = result && (getPortId()
+ == other.getPortId());
+ result = result && (getDataToWrite()
+ == other.getDataToWrite());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PORTID_FIELD_NUMBER;
+ hash = (53 * hash) + getPortId();
+ hash = (37 * hash) + DATATOWRITE_FIELD_NUMBER;
+ hash = (53 * hash) + getDataToWrite();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOWriteByteRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubGPIOWriteByteRequest)
+ com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteByteRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteByteRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest.class, com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ portId_ = 0;
+
+ dataToWrite_ = 0;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteByteRequest_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest build() {
+ com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest buildPartial() {
+ com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest result = new com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest(this);
+ result.portId_ = portId_;
+ result.dataToWrite_ = dataToWrite_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest other) {
+ if (other == com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest.getDefaultInstance()) return this;
+ if (other.getPortId() != 0) {
+ setPortId(other.getPortId());
+ }
+ if (other.getDataToWrite() != 0) {
+ setDataToWrite(other.getDataToWrite());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int portId_ ;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder setPortId(int value) {
+
+ portId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder clearPortId() {
+
+ portId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int dataToWrite_ ;
+ /**
+ * <code>uint32 DataToWrite = 3;</code>
+ */
+ public int getDataToWrite() {
+ return dataToWrite_;
+ }
+ /**
+ * <code>uint32 DataToWrite = 3;</code>
+ */
+ public Builder setDataToWrite(int value) {
+
+ dataToWrite_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 DataToWrite = 3;</code>
+ */
+ public Builder clearDataToWrite() {
+
+ dataToWrite_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubGPIOWriteByteRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOWriteByteRequest)
+ private static final com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubGPIOWriteByteRequest>
+ PARSER = new com.google.protobuf.AbstractParser<StubGPIOWriteByteRequest>() {
+ public StubGPIOWriteByteRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubGPIOWriteByteRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubGPIOWriteByteRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubGPIOWriteByteRequest> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteByteRequestOuterClass.StubGPIOWriteByteRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteByteRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteByteRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\036StubGPIOWriteByteRequest.proto\022\017Tango." +
+ "PMR.Stubs\"?\n\030StubGPIOWriteByteRequest\022\016\n" +
+ "\006PortId\030\001 \001(\r\022\023\n\013DataToWrite\030\003 \001(\rB\033\n\031co" +
+ "m.twine.tango.pmr.stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteByteRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteByteRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteByteRequest_descriptor,
+ new java.lang.String[] { "PortId", "DataToWrite", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteByteResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteByteResponseOuterClass.java
new file mode 100644
index 000000000..d1ce9ca45
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubGPIOWriteByteResponseOuterClass.java
@@ -0,0 +1,609 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubGPIOWriteByteResponse.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubGPIOWriteByteResponseOuterClass {
+ private StubGPIOWriteByteResponseOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubGPIOWriteByteResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubGPIOWriteByteResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ int getPortId();
+
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool status = 3;</code>
+ */
+ boolean getStatus();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOWriteByteResponse}
+ */
+ public static final class StubGPIOWriteByteResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubGPIOWriteByteResponse)
+ StubGPIOWriteByteResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubGPIOWriteByteResponse.newBuilder() to construct.
+ private StubGPIOWriteByteResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubGPIOWriteByteResponse() {
+ portId_ = 0;
+ status_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubGPIOWriteByteResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ portId_ = input.readUInt32();
+ break;
+ }
+ case 24: {
+
+ status_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteByteResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteByteResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse.class, com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse.Builder.class);
+ }
+
+ public static final int PORTID_FIELD_NUMBER = 1;
+ private int portId_;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 3;
+ private boolean status_;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool status = 3;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (portId_ != 0) {
+ output.writeUInt32(1, portId_);
+ }
+ if (status_ != false) {
+ output.writeBool(3, status_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (portId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, portId_);
+ }
+ if (status_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, status_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse other = (com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse) obj;
+
+ boolean result = true;
+ result = result && (getPortId()
+ == other.getPortId());
+ result = result && (getStatus()
+ == other.getStatus());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PORTID_FIELD_NUMBER;
+ hash = (53 * hash) + getPortId();
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getStatus());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubGPIOWriteByteResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubGPIOWriteByteResponse)
+ com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteByteResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteByteResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse.class, com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ portId_ = 0;
+
+ status_ = false;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubGPIOWriteByteResponse_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse build() {
+ com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse buildPartial() {
+ com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse result = new com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse(this);
+ result.portId_ = portId_;
+ result.status_ = status_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse other) {
+ if (other == com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse.getDefaultInstance()) return this;
+ if (other.getPortId() != 0) {
+ setPortId(other.getPortId());
+ }
+ if (other.getStatus() != false) {
+ setStatus(other.getStatus());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int portId_ ;
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public int getPortId() {
+ return portId_;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder setPortId(int value) {
+
+ portId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0..119
+ * </pre>
+ *
+ * <code>uint32 PortId = 1;</code>
+ */
+ public Builder clearPortId() {
+
+ portId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean status_ ;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool status = 3;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool status = 3;</code>
+ */
+ public Builder setStatus(boolean value) {
+
+ status_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool status = 3;</code>
+ */
+ public Builder clearStatus() {
+
+ status_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubGPIOWriteByteResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubGPIOWriteByteResponse)
+ private static final com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubGPIOWriteByteResponse>
+ PARSER = new com.google.protobuf.AbstractParser<StubGPIOWriteByteResponse>() {
+ public StubGPIOWriteByteResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubGPIOWriteByteResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubGPIOWriteByteResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubGPIOWriteByteResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubGPIOWriteByteResponseOuterClass.StubGPIOWriteByteResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteByteResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteByteResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\037StubGPIOWriteByteResponse.proto\022\017Tango" +
+ ".PMR.Stubs\";\n\031StubGPIOWriteByteResponse\022" +
+ "\016\n\006PortId\030\001 \001(\r\022\016\n\006status\030\003 \001(\010B\033\n\031com.t" +
+ "wine.tango.pmr.stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteByteResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteByteResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubGPIOWriteByteResponse_descriptor,
+ new java.lang.String[] { "PortId", "Status", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHeaterRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHeaterRequestOuterClass.java
new file mode 100644
index 000000000..a443addbb
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHeaterRequestOuterClass.java
@@ -0,0 +1,673 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubHeaterRequest.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubHeaterRequestOuterClass {
+ private StubHeaterRequestOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubHeaterRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubHeaterRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ *0..2
+ * </pre>
+ *
+ * <code>uint32 HeaterGroupId = 1;</code>
+ */
+ int getHeaterGroupId();
+
+ /**
+ * <pre>
+ * 1-On 0-Off
+ * </pre>
+ *
+ * <code>bool HeaterGroupOn = 2;</code>
+ */
+ boolean getHeaterGroupOn();
+
+ /**
+ * <code>uint32 HeaterTemperatureReq = 3;</code>
+ */
+ int getHeaterTemperatureReq();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubHeaterRequest}
+ */
+ public static final class StubHeaterRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubHeaterRequest)
+ StubHeaterRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubHeaterRequest.newBuilder() to construct.
+ private StubHeaterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubHeaterRequest() {
+ heaterGroupId_ = 0;
+ heaterGroupOn_ = false;
+ heaterTemperatureReq_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubHeaterRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ heaterGroupId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ heaterGroupOn_ = input.readBool();
+ break;
+ }
+ case 24: {
+
+ heaterTemperatureReq_ = input.readUInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.internal_static_Tango_PMR_Stubs_StubHeaterRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.internal_static_Tango_PMR_Stubs_StubHeaterRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest.class, com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest.Builder.class);
+ }
+
+ public static final int HEATERGROUPID_FIELD_NUMBER = 1;
+ private int heaterGroupId_;
+ /**
+ * <pre>
+ *0..2
+ * </pre>
+ *
+ * <code>uint32 HeaterGroupId = 1;</code>
+ */
+ public int getHeaterGroupId() {
+ return heaterGroupId_;
+ }
+
+ public static final int HEATERGROUPON_FIELD_NUMBER = 2;
+ private boolean heaterGroupOn_;
+ /**
+ * <pre>
+ * 1-On 0-Off
+ * </pre>
+ *
+ * <code>bool HeaterGroupOn = 2;</code>
+ */
+ public boolean getHeaterGroupOn() {
+ return heaterGroupOn_;
+ }
+
+ public static final int HEATERTEMPERATUREREQ_FIELD_NUMBER = 3;
+ private int heaterTemperatureReq_;
+ /**
+ * <code>uint32 HeaterTemperatureReq = 3;</code>
+ */
+ public int getHeaterTemperatureReq() {
+ return heaterTemperatureReq_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (heaterGroupId_ != 0) {
+ output.writeUInt32(1, heaterGroupId_);
+ }
+ if (heaterGroupOn_ != false) {
+ output.writeBool(2, heaterGroupOn_);
+ }
+ if (heaterTemperatureReq_ != 0) {
+ output.writeUInt32(3, heaterTemperatureReq_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (heaterGroupId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, heaterGroupId_);
+ }
+ if (heaterGroupOn_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, heaterGroupOn_);
+ }
+ if (heaterTemperatureReq_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(3, heaterTemperatureReq_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest other = (com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest) obj;
+
+ boolean result = true;
+ result = result && (getHeaterGroupId()
+ == other.getHeaterGroupId());
+ result = result && (getHeaterGroupOn()
+ == other.getHeaterGroupOn());
+ result = result && (getHeaterTemperatureReq()
+ == other.getHeaterTemperatureReq());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + HEATERGROUPID_FIELD_NUMBER;
+ hash = (53 * hash) + getHeaterGroupId();
+ hash = (37 * hash) + HEATERGROUPON_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getHeaterGroupOn());
+ hash = (37 * hash) + HEATERTEMPERATUREREQ_FIELD_NUMBER;
+ hash = (53 * hash) + getHeaterTemperatureReq();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubHeaterRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubHeaterRequest)
+ com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.internal_static_Tango_PMR_Stubs_StubHeaterRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.internal_static_Tango_PMR_Stubs_StubHeaterRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest.class, com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ heaterGroupId_ = 0;
+
+ heaterGroupOn_ = false;
+
+ heaterTemperatureReq_ = 0;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.internal_static_Tango_PMR_Stubs_StubHeaterRequest_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest build() {
+ com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest buildPartial() {
+ com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest result = new com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest(this);
+ result.heaterGroupId_ = heaterGroupId_;
+ result.heaterGroupOn_ = heaterGroupOn_;
+ result.heaterTemperatureReq_ = heaterTemperatureReq_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest other) {
+ if (other == com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest.getDefaultInstance()) return this;
+ if (other.getHeaterGroupId() != 0) {
+ setHeaterGroupId(other.getHeaterGroupId());
+ }
+ if (other.getHeaterGroupOn() != false) {
+ setHeaterGroupOn(other.getHeaterGroupOn());
+ }
+ if (other.getHeaterTemperatureReq() != 0) {
+ setHeaterTemperatureReq(other.getHeaterTemperatureReq());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int heaterGroupId_ ;
+ /**
+ * <pre>
+ *0..2
+ * </pre>
+ *
+ * <code>uint32 HeaterGroupId = 1;</code>
+ */
+ public int getHeaterGroupId() {
+ return heaterGroupId_;
+ }
+ /**
+ * <pre>
+ *0..2
+ * </pre>
+ *
+ * <code>uint32 HeaterGroupId = 1;</code>
+ */
+ public Builder setHeaterGroupId(int value) {
+
+ heaterGroupId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ *0..2
+ * </pre>
+ *
+ * <code>uint32 HeaterGroupId = 1;</code>
+ */
+ public Builder clearHeaterGroupId() {
+
+ heaterGroupId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean heaterGroupOn_ ;
+ /**
+ * <pre>
+ * 1-On 0-Off
+ * </pre>
+ *
+ * <code>bool HeaterGroupOn = 2;</code>
+ */
+ public boolean getHeaterGroupOn() {
+ return heaterGroupOn_;
+ }
+ /**
+ * <pre>
+ * 1-On 0-Off
+ * </pre>
+ *
+ * <code>bool HeaterGroupOn = 2;</code>
+ */
+ public Builder setHeaterGroupOn(boolean value) {
+
+ heaterGroupOn_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 1-On 0-Off
+ * </pre>
+ *
+ * <code>bool HeaterGroupOn = 2;</code>
+ */
+ public Builder clearHeaterGroupOn() {
+
+ heaterGroupOn_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int heaterTemperatureReq_ ;
+ /**
+ * <code>uint32 HeaterTemperatureReq = 3;</code>
+ */
+ public int getHeaterTemperatureReq() {
+ return heaterTemperatureReq_;
+ }
+ /**
+ * <code>uint32 HeaterTemperatureReq = 3;</code>
+ */
+ public Builder setHeaterTemperatureReq(int value) {
+
+ heaterTemperatureReq_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 HeaterTemperatureReq = 3;</code>
+ */
+ public Builder clearHeaterTemperatureReq() {
+
+ heaterTemperatureReq_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubHeaterRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubHeaterRequest)
+ private static final com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubHeaterRequest>
+ PARSER = new com.google.protobuf.AbstractParser<StubHeaterRequest>() {
+ public StubHeaterRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubHeaterRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubHeaterRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubHeaterRequest> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubHeaterRequestOuterClass.StubHeaterRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubHeaterRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubHeaterRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\027StubHeaterRequest.proto\022\017Tango.PMR.Stu" +
+ "bs\"_\n\021StubHeaterRequest\022\025\n\rHeaterGroupId" +
+ "\030\001 \001(\r\022\025\n\rHeaterGroupOn\030\002 \001(\010\022\034\n\024HeaterT" +
+ "emperatureReq\030\003 \001(\rB\033\n\031com.twine.tango.p" +
+ "mr.stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubHeaterRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubHeaterRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubHeaterRequest_descriptor,
+ new java.lang.String[] { "HeaterGroupId", "HeaterGroupOn", "HeaterTemperatureReq", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHeaterResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHeaterResponseOuterClass.java
new file mode 100644
index 000000000..875b1aeac
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHeaterResponseOuterClass.java
@@ -0,0 +1,673 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubHeaterResponse.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubHeaterResponseOuterClass {
+ private StubHeaterResponseOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubHeaterResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubHeaterResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ *0..2
+ * </pre>
+ *
+ * <code>uint32 HeaterGroupId = 1;</code>
+ */
+ int getHeaterGroupId();
+
+ /**
+ * <code>uint32 HeaterTemperatureSensor = 2;</code>
+ */
+ int getHeaterTemperatureSensor();
+
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ boolean getStatus();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubHeaterResponse}
+ */
+ public static final class StubHeaterResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubHeaterResponse)
+ StubHeaterResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubHeaterResponse.newBuilder() to construct.
+ private StubHeaterResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubHeaterResponse() {
+ heaterGroupId_ = 0;
+ heaterTemperatureSensor_ = 0;
+ status_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubHeaterResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ heaterGroupId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ heaterTemperatureSensor_ = input.readUInt32();
+ break;
+ }
+ case 24: {
+
+ status_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.internal_static_Tango_PMR_Stubs_StubHeaterResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.internal_static_Tango_PMR_Stubs_StubHeaterResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse.class, com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse.Builder.class);
+ }
+
+ public static final int HEATERGROUPID_FIELD_NUMBER = 1;
+ private int heaterGroupId_;
+ /**
+ * <pre>
+ *0..2
+ * </pre>
+ *
+ * <code>uint32 HeaterGroupId = 1;</code>
+ */
+ public int getHeaterGroupId() {
+ return heaterGroupId_;
+ }
+
+ public static final int HEATERTEMPERATURESENSOR_FIELD_NUMBER = 2;
+ private int heaterTemperatureSensor_;
+ /**
+ * <code>uint32 HeaterTemperatureSensor = 2;</code>
+ */
+ public int getHeaterTemperatureSensor() {
+ return heaterTemperatureSensor_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 3;
+ private boolean status_;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (heaterGroupId_ != 0) {
+ output.writeUInt32(1, heaterGroupId_);
+ }
+ if (heaterTemperatureSensor_ != 0) {
+ output.writeUInt32(2, heaterTemperatureSensor_);
+ }
+ if (status_ != false) {
+ output.writeBool(3, status_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (heaterGroupId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, heaterGroupId_);
+ }
+ if (heaterTemperatureSensor_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, heaterTemperatureSensor_);
+ }
+ if (status_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, status_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse other = (com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse) obj;
+
+ boolean result = true;
+ result = result && (getHeaterGroupId()
+ == other.getHeaterGroupId());
+ result = result && (getHeaterTemperatureSensor()
+ == other.getHeaterTemperatureSensor());
+ result = result && (getStatus()
+ == other.getStatus());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + HEATERGROUPID_FIELD_NUMBER;
+ hash = (53 * hash) + getHeaterGroupId();
+ hash = (37 * hash) + HEATERTEMPERATURESENSOR_FIELD_NUMBER;
+ hash = (53 * hash) + getHeaterTemperatureSensor();
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getStatus());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubHeaterResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubHeaterResponse)
+ com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.internal_static_Tango_PMR_Stubs_StubHeaterResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.internal_static_Tango_PMR_Stubs_StubHeaterResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse.class, com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ heaterGroupId_ = 0;
+
+ heaterTemperatureSensor_ = 0;
+
+ status_ = false;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.internal_static_Tango_PMR_Stubs_StubHeaterResponse_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse build() {
+ com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse buildPartial() {
+ com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse result = new com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse(this);
+ result.heaterGroupId_ = heaterGroupId_;
+ result.heaterTemperatureSensor_ = heaterTemperatureSensor_;
+ result.status_ = status_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse other) {
+ if (other == com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse.getDefaultInstance()) return this;
+ if (other.getHeaterGroupId() != 0) {
+ setHeaterGroupId(other.getHeaterGroupId());
+ }
+ if (other.getHeaterTemperatureSensor() != 0) {
+ setHeaterTemperatureSensor(other.getHeaterTemperatureSensor());
+ }
+ if (other.getStatus() != false) {
+ setStatus(other.getStatus());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int heaterGroupId_ ;
+ /**
+ * <pre>
+ *0..2
+ * </pre>
+ *
+ * <code>uint32 HeaterGroupId = 1;</code>
+ */
+ public int getHeaterGroupId() {
+ return heaterGroupId_;
+ }
+ /**
+ * <pre>
+ *0..2
+ * </pre>
+ *
+ * <code>uint32 HeaterGroupId = 1;</code>
+ */
+ public Builder setHeaterGroupId(int value) {
+
+ heaterGroupId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ *0..2
+ * </pre>
+ *
+ * <code>uint32 HeaterGroupId = 1;</code>
+ */
+ public Builder clearHeaterGroupId() {
+
+ heaterGroupId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int heaterTemperatureSensor_ ;
+ /**
+ * <code>uint32 HeaterTemperatureSensor = 2;</code>
+ */
+ public int getHeaterTemperatureSensor() {
+ return heaterTemperatureSensor_;
+ }
+ /**
+ * <code>uint32 HeaterTemperatureSensor = 2;</code>
+ */
+ public Builder setHeaterTemperatureSensor(int value) {
+
+ heaterTemperatureSensor_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 HeaterTemperatureSensor = 2;</code>
+ */
+ public Builder clearHeaterTemperatureSensor() {
+
+ heaterTemperatureSensor_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean status_ ;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public Builder setStatus(boolean value) {
+
+ status_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public Builder clearStatus() {
+
+ status_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubHeaterResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubHeaterResponse)
+ private static final com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubHeaterResponse>
+ PARSER = new com.google.protobuf.AbstractParser<StubHeaterResponse>() {
+ public StubHeaterResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubHeaterResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubHeaterResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubHeaterResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubHeaterResponseOuterClass.StubHeaterResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubHeaterResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubHeaterResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\030StubHeaterResponse.proto\022\017Tango.PMR.St" +
+ "ubs\"\\\n\022StubHeaterResponse\022\025\n\rHeaterGroup" +
+ "Id\030\001 \001(\r\022\037\n\027HeaterTemperatureSensor\030\002 \001(" +
+ "\r\022\016\n\006Status\030\003 \001(\010B\033\n\031com.twine.tango.pmr" +
+ ".stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubHeaterResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubHeaterResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubHeaterResponse_descriptor,
+ new java.lang.String[] { "HeaterGroupId", "HeaterTemperatureSensor", "Status", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorEncoderRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorEncoderRequestOuterClass.java
new file mode 100644
index 000000000..f55007864
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorEncoderRequestOuterClass.java
@@ -0,0 +1,758 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubMotorEncoderRequest.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubMotorEncoderRequestOuterClass {
+ private StubMotorEncoderRequestOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubMotorEncoderRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorEncoderRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ *0..8
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ int getMotorId();
+
+ /**
+ * <code>bool ReadEncSpeed = 2;</code>
+ */
+ boolean getReadEncSpeed();
+
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool ReadDirection = 3;</code>
+ */
+ boolean getReadDirection();
+
+ /**
+ * <pre>
+ * close loop using the encoder
+ * </pre>
+ *
+ * <code>bool Motion_Control = 4;</code>
+ */
+ boolean getMotionControl();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubMotorEncoderRequest}
+ */
+ public static final class StubMotorEncoderRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorEncoderRequest)
+ StubMotorEncoderRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubMotorEncoderRequest.newBuilder() to construct.
+ private StubMotorEncoderRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubMotorEncoderRequest() {
+ motorId_ = 0;
+ readEncSpeed_ = false;
+ readDirection_ = false;
+ motionControl_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubMotorEncoderRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ motorId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ readEncSpeed_ = input.readBool();
+ break;
+ }
+ case 24: {
+
+ readDirection_ = input.readBool();
+ break;
+ }
+ case 32: {
+
+ motionControl_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorEncoderRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorEncoderRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest.class, com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest.Builder.class);
+ }
+
+ public static final int MOTORID_FIELD_NUMBER = 1;
+ private int motorId_;
+ /**
+ * <pre>
+ *0..8
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ public int getMotorId() {
+ return motorId_;
+ }
+
+ public static final int READENCSPEED_FIELD_NUMBER = 2;
+ private boolean readEncSpeed_;
+ /**
+ * <code>bool ReadEncSpeed = 2;</code>
+ */
+ public boolean getReadEncSpeed() {
+ return readEncSpeed_;
+ }
+
+ public static final int READDIRECTION_FIELD_NUMBER = 3;
+ private boolean readDirection_;
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool ReadDirection = 3;</code>
+ */
+ public boolean getReadDirection() {
+ return readDirection_;
+ }
+
+ public static final int MOTION_CONTROL_FIELD_NUMBER = 4;
+ private boolean motionControl_;
+ /**
+ * <pre>
+ * close loop using the encoder
+ * </pre>
+ *
+ * <code>bool Motion_Control = 4;</code>
+ */
+ public boolean getMotionControl() {
+ return motionControl_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (motorId_ != 0) {
+ output.writeUInt32(1, motorId_);
+ }
+ if (readEncSpeed_ != false) {
+ output.writeBool(2, readEncSpeed_);
+ }
+ if (readDirection_ != false) {
+ output.writeBool(3, readDirection_);
+ }
+ if (motionControl_ != false) {
+ output.writeBool(4, motionControl_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (motorId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, motorId_);
+ }
+ if (readEncSpeed_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, readEncSpeed_);
+ }
+ if (readDirection_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, readDirection_);
+ }
+ if (motionControl_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(4, motionControl_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest other = (com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest) obj;
+
+ boolean result = true;
+ result = result && (getMotorId()
+ == other.getMotorId());
+ result = result && (getReadEncSpeed()
+ == other.getReadEncSpeed());
+ result = result && (getReadDirection()
+ == other.getReadDirection());
+ result = result && (getMotionControl()
+ == other.getMotionControl());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MOTORID_FIELD_NUMBER;
+ hash = (53 * hash) + getMotorId();
+ hash = (37 * hash) + READENCSPEED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getReadEncSpeed());
+ hash = (37 * hash) + READDIRECTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getReadDirection());
+ hash = (37 * hash) + MOTION_CONTROL_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getMotionControl());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubMotorEncoderRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorEncoderRequest)
+ com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorEncoderRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorEncoderRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest.class, com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ motorId_ = 0;
+
+ readEncSpeed_ = false;
+
+ readDirection_ = false;
+
+ motionControl_ = false;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorEncoderRequest_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest build() {
+ com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest buildPartial() {
+ com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest result = new com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest(this);
+ result.motorId_ = motorId_;
+ result.readEncSpeed_ = readEncSpeed_;
+ result.readDirection_ = readDirection_;
+ result.motionControl_ = motionControl_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest other) {
+ if (other == com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest.getDefaultInstance()) return this;
+ if (other.getMotorId() != 0) {
+ setMotorId(other.getMotorId());
+ }
+ if (other.getReadEncSpeed() != false) {
+ setReadEncSpeed(other.getReadEncSpeed());
+ }
+ if (other.getReadDirection() != false) {
+ setReadDirection(other.getReadDirection());
+ }
+ if (other.getMotionControl() != false) {
+ setMotionControl(other.getMotionControl());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int motorId_ ;
+ /**
+ * <pre>
+ *0..8
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ public int getMotorId() {
+ return motorId_;
+ }
+ /**
+ * <pre>
+ *0..8
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ public Builder setMotorId(int value) {
+
+ motorId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ *0..8
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ public Builder clearMotorId() {
+
+ motorId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean readEncSpeed_ ;
+ /**
+ * <code>bool ReadEncSpeed = 2;</code>
+ */
+ public boolean getReadEncSpeed() {
+ return readEncSpeed_;
+ }
+ /**
+ * <code>bool ReadEncSpeed = 2;</code>
+ */
+ public Builder setReadEncSpeed(boolean value) {
+
+ readEncSpeed_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>bool ReadEncSpeed = 2;</code>
+ */
+ public Builder clearReadEncSpeed() {
+
+ readEncSpeed_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean readDirection_ ;
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool ReadDirection = 3;</code>
+ */
+ public boolean getReadDirection() {
+ return readDirection_;
+ }
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool ReadDirection = 3;</code>
+ */
+ public Builder setReadDirection(boolean value) {
+
+ readDirection_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool ReadDirection = 3;</code>
+ */
+ public Builder clearReadDirection() {
+
+ readDirection_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean motionControl_ ;
+ /**
+ * <pre>
+ * close loop using the encoder
+ * </pre>
+ *
+ * <code>bool Motion_Control = 4;</code>
+ */
+ public boolean getMotionControl() {
+ return motionControl_;
+ }
+ /**
+ * <pre>
+ * close loop using the encoder
+ * </pre>
+ *
+ * <code>bool Motion_Control = 4;</code>
+ */
+ public Builder setMotionControl(boolean value) {
+
+ motionControl_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * close loop using the encoder
+ * </pre>
+ *
+ * <code>bool Motion_Control = 4;</code>
+ */
+ public Builder clearMotionControl() {
+
+ motionControl_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorEncoderRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorEncoderRequest)
+ private static final com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubMotorEncoderRequest>
+ PARSER = new com.google.protobuf.AbstractParser<StubMotorEncoderRequest>() {
+ public StubMotorEncoderRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubMotorEncoderRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubMotorEncoderRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubMotorEncoderRequest> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubMotorEncoderRequestOuterClass.StubMotorEncoderRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubMotorEncoderRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubMotorEncoderRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\035StubMotorEncoderRequest.proto\022\017Tango.P" +
+ "MR.Stubs\"o\n\027StubMotorEncoderRequest\022\017\n\007M" +
+ "otorId\030\001 \001(\r\022\024\n\014ReadEncSpeed\030\002 \001(\010\022\025\n\rRe" +
+ "adDirection\030\003 \001(\010\022\026\n\016Motion_Control\030\004 \001(" +
+ "\010B\033\n\031com.twine.tango.pmr.stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubMotorEncoderRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubMotorEncoderRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubMotorEncoderRequest_descriptor,
+ new java.lang.String[] { "MotorId", "ReadEncSpeed", "ReadDirection", "MotionControl", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorEncoderResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorEncoderResponseOuterClass.java
new file mode 100644
index 000000000..9fd3aa229
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorEncoderResponseOuterClass.java
@@ -0,0 +1,821 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubMotorEncoderResponse.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubMotorEncoderResponseOuterClass {
+ private StubMotorEncoderResponseOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubMotorEncoderResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorEncoderResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ *0..8
+ * </pre>
+ *
+ * <code>uint32 EncoderId = 1;</code>
+ */
+ int getEncoderId();
+
+ /**
+ * <code>uint32 EncoderVersion = 2;</code>
+ */
+ int getEncoderVersion();
+
+ /**
+ * <code>int32 MotorSpeed = 3;</code>
+ */
+ int getMotorSpeed();
+
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool MotorDirection = 4;</code>
+ */
+ boolean getMotorDirection();
+
+ /**
+ * <pre>
+ * 0-OK 1-Failed ( motion control error &gt; ?)
+ * </pre>
+ *
+ * <code>bool Status = 5;</code>
+ */
+ boolean getStatus();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubMotorEncoderResponse}
+ */
+ public static final class StubMotorEncoderResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorEncoderResponse)
+ StubMotorEncoderResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubMotorEncoderResponse.newBuilder() to construct.
+ private StubMotorEncoderResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubMotorEncoderResponse() {
+ encoderId_ = 0;
+ encoderVersion_ = 0;
+ motorSpeed_ = 0;
+ motorDirection_ = false;
+ status_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubMotorEncoderResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ encoderId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ encoderVersion_ = input.readUInt32();
+ break;
+ }
+ case 24: {
+
+ motorSpeed_ = input.readInt32();
+ break;
+ }
+ case 32: {
+
+ motorDirection_ = input.readBool();
+ break;
+ }
+ case 40: {
+
+ status_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorEncoderResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorEncoderResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse.class, com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse.Builder.class);
+ }
+
+ public static final int ENCODERID_FIELD_NUMBER = 1;
+ private int encoderId_;
+ /**
+ * <pre>
+ *0..8
+ * </pre>
+ *
+ * <code>uint32 EncoderId = 1;</code>
+ */
+ public int getEncoderId() {
+ return encoderId_;
+ }
+
+ public static final int ENCODERVERSION_FIELD_NUMBER = 2;
+ private int encoderVersion_;
+ /**
+ * <code>uint32 EncoderVersion = 2;</code>
+ */
+ public int getEncoderVersion() {
+ return encoderVersion_;
+ }
+
+ public static final int MOTORSPEED_FIELD_NUMBER = 3;
+ private int motorSpeed_;
+ /**
+ * <code>int32 MotorSpeed = 3;</code>
+ */
+ public int getMotorSpeed() {
+ return motorSpeed_;
+ }
+
+ public static final int MOTORDIRECTION_FIELD_NUMBER = 4;
+ private boolean motorDirection_;
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool MotorDirection = 4;</code>
+ */
+ public boolean getMotorDirection() {
+ return motorDirection_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 5;
+ private boolean status_;
+ /**
+ * <pre>
+ * 0-OK 1-Failed ( motion control error &gt; ?)
+ * </pre>
+ *
+ * <code>bool Status = 5;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (encoderId_ != 0) {
+ output.writeUInt32(1, encoderId_);
+ }
+ if (encoderVersion_ != 0) {
+ output.writeUInt32(2, encoderVersion_);
+ }
+ if (motorSpeed_ != 0) {
+ output.writeInt32(3, motorSpeed_);
+ }
+ if (motorDirection_ != false) {
+ output.writeBool(4, motorDirection_);
+ }
+ if (status_ != false) {
+ output.writeBool(5, status_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (encoderId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, encoderId_);
+ }
+ if (encoderVersion_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, encoderVersion_);
+ }
+ if (motorSpeed_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(3, motorSpeed_);
+ }
+ if (motorDirection_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(4, motorDirection_);
+ }
+ if (status_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(5, status_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse other = (com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse) obj;
+
+ boolean result = true;
+ result = result && (getEncoderId()
+ == other.getEncoderId());
+ result = result && (getEncoderVersion()
+ == other.getEncoderVersion());
+ result = result && (getMotorSpeed()
+ == other.getMotorSpeed());
+ result = result && (getMotorDirection()
+ == other.getMotorDirection());
+ result = result && (getStatus()
+ == other.getStatus());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ENCODERID_FIELD_NUMBER;
+ hash = (53 * hash) + getEncoderId();
+ hash = (37 * hash) + ENCODERVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getEncoderVersion();
+ hash = (37 * hash) + MOTORSPEED_FIELD_NUMBER;
+ hash = (53 * hash) + getMotorSpeed();
+ hash = (37 * hash) + MOTORDIRECTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getMotorDirection());
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getStatus());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubMotorEncoderResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorEncoderResponse)
+ com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorEncoderResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorEncoderResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse.class, com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ encoderId_ = 0;
+
+ encoderVersion_ = 0;
+
+ motorSpeed_ = 0;
+
+ motorDirection_ = false;
+
+ status_ = false;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorEncoderResponse_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse build() {
+ com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse buildPartial() {
+ com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse result = new com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse(this);
+ result.encoderId_ = encoderId_;
+ result.encoderVersion_ = encoderVersion_;
+ result.motorSpeed_ = motorSpeed_;
+ result.motorDirection_ = motorDirection_;
+ result.status_ = status_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse other) {
+ if (other == com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse.getDefaultInstance()) return this;
+ if (other.getEncoderId() != 0) {
+ setEncoderId(other.getEncoderId());
+ }
+ if (other.getEncoderVersion() != 0) {
+ setEncoderVersion(other.getEncoderVersion());
+ }
+ if (other.getMotorSpeed() != 0) {
+ setMotorSpeed(other.getMotorSpeed());
+ }
+ if (other.getMotorDirection() != false) {
+ setMotorDirection(other.getMotorDirection());
+ }
+ if (other.getStatus() != false) {
+ setStatus(other.getStatus());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int encoderId_ ;
+ /**
+ * <pre>
+ *0..8
+ * </pre>
+ *
+ * <code>uint32 EncoderId = 1;</code>
+ */
+ public int getEncoderId() {
+ return encoderId_;
+ }
+ /**
+ * <pre>
+ *0..8
+ * </pre>
+ *
+ * <code>uint32 EncoderId = 1;</code>
+ */
+ public Builder setEncoderId(int value) {
+
+ encoderId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ *0..8
+ * </pre>
+ *
+ * <code>uint32 EncoderId = 1;</code>
+ */
+ public Builder clearEncoderId() {
+
+ encoderId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int encoderVersion_ ;
+ /**
+ * <code>uint32 EncoderVersion = 2;</code>
+ */
+ public int getEncoderVersion() {
+ return encoderVersion_;
+ }
+ /**
+ * <code>uint32 EncoderVersion = 2;</code>
+ */
+ public Builder setEncoderVersion(int value) {
+
+ encoderVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>uint32 EncoderVersion = 2;</code>
+ */
+ public Builder clearEncoderVersion() {
+
+ encoderVersion_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int motorSpeed_ ;
+ /**
+ * <code>int32 MotorSpeed = 3;</code>
+ */
+ public int getMotorSpeed() {
+ return motorSpeed_;
+ }
+ /**
+ * <code>int32 MotorSpeed = 3;</code>
+ */
+ public Builder setMotorSpeed(int value) {
+
+ motorSpeed_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>int32 MotorSpeed = 3;</code>
+ */
+ public Builder clearMotorSpeed() {
+
+ motorSpeed_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean motorDirection_ ;
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool MotorDirection = 4;</code>
+ */
+ public boolean getMotorDirection() {
+ return motorDirection_;
+ }
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool MotorDirection = 4;</code>
+ */
+ public Builder setMotorDirection(boolean value) {
+
+ motorDirection_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool MotorDirection = 4;</code>
+ */
+ public Builder clearMotorDirection() {
+
+ motorDirection_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean status_ ;
+ /**
+ * <pre>
+ * 0-OK 1-Failed ( motion control error &gt; ?)
+ * </pre>
+ *
+ * <code>bool Status = 5;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed ( motion control error &gt; ?)
+ * </pre>
+ *
+ * <code>bool Status = 5;</code>
+ */
+ public Builder setStatus(boolean value) {
+
+ status_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed ( motion control error &gt; ?)
+ * </pre>
+ *
+ * <code>bool Status = 5;</code>
+ */
+ public Builder clearStatus() {
+
+ status_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorEncoderResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorEncoderResponse)
+ private static final com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubMotorEncoderResponse>
+ PARSER = new com.google.protobuf.AbstractParser<StubMotorEncoderResponse>() {
+ public StubMotorEncoderResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubMotorEncoderResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubMotorEncoderResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubMotorEncoderResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubMotorEncoderResponseOuterClass.StubMotorEncoderResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubMotorEncoderResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubMotorEncoderResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\036StubMotorEncoderResponse.proto\022\017Tango." +
+ "PMR.Stubs\"\201\001\n\030StubMotorEncoderResponse\022\021" +
+ "\n\tEncoderId\030\001 \001(\r\022\026\n\016EncoderVersion\030\002 \001(" +
+ "\r\022\022\n\nMotorSpeed\030\003 \001(\005\022\026\n\016MotorDirection\030" +
+ "\004 \001(\010\022\016\n\006Status\030\005 \001(\010B\033\n\031com.twine.tango" +
+ ".pmr.stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubMotorEncoderResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubMotorEncoderResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubMotorEncoderResponse_descriptor,
+ new java.lang.String[] { "EncoderId", "EncoderVersion", "MotorSpeed", "MotorDirection", "Status", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubOptLimitSwitchRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubOptLimitSwitchRequestOuterClass.java
new file mode 100644
index 000000000..8331c4cc6
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubOptLimitSwitchRequestOuterClass.java
@@ -0,0 +1,610 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubOptLimitSwitchRequest.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubOptLimitSwitchRequestOuterClass {
+ private StubOptLimitSwitchRequestOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubOptLimitSwitchRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubOptLimitSwitchRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ *0..16
+ * </pre>
+ *
+ * <code>uint32 LimitSwitchrId = 1;</code>
+ */
+ int getLimitSwitchrId();
+
+ /**
+ * <pre>
+ * 0 - Enable 1 - Disable
+ * </pre>
+ *
+ * <code>bool LimitSwitchrDisable = 2;</code>
+ */
+ boolean getLimitSwitchrDisable();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubOptLimitSwitchRequest}
+ */
+ public static final class StubOptLimitSwitchRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubOptLimitSwitchRequest)
+ StubOptLimitSwitchRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubOptLimitSwitchRequest.newBuilder() to construct.
+ private StubOptLimitSwitchRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubOptLimitSwitchRequest() {
+ limitSwitchrId_ = 0;
+ limitSwitchrDisable_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubOptLimitSwitchRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ limitSwitchrId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ limitSwitchrDisable_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.internal_static_Tango_PMR_Stubs_StubOptLimitSwitchRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.internal_static_Tango_PMR_Stubs_StubOptLimitSwitchRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest.class, com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest.Builder.class);
+ }
+
+ public static final int LIMITSWITCHRID_FIELD_NUMBER = 1;
+ private int limitSwitchrId_;
+ /**
+ * <pre>
+ *0..16
+ * </pre>
+ *
+ * <code>uint32 LimitSwitchrId = 1;</code>
+ */
+ public int getLimitSwitchrId() {
+ return limitSwitchrId_;
+ }
+
+ public static final int LIMITSWITCHRDISABLE_FIELD_NUMBER = 2;
+ private boolean limitSwitchrDisable_;
+ /**
+ * <pre>
+ * 0 - Enable 1 - Disable
+ * </pre>
+ *
+ * <code>bool LimitSwitchrDisable = 2;</code>
+ */
+ public boolean getLimitSwitchrDisable() {
+ return limitSwitchrDisable_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (limitSwitchrId_ != 0) {
+ output.writeUInt32(1, limitSwitchrId_);
+ }
+ if (limitSwitchrDisable_ != false) {
+ output.writeBool(2, limitSwitchrDisable_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (limitSwitchrId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, limitSwitchrId_);
+ }
+ if (limitSwitchrDisable_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, limitSwitchrDisable_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest other = (com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest) obj;
+
+ boolean result = true;
+ result = result && (getLimitSwitchrId()
+ == other.getLimitSwitchrId());
+ result = result && (getLimitSwitchrDisable()
+ == other.getLimitSwitchrDisable());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + LIMITSWITCHRID_FIELD_NUMBER;
+ hash = (53 * hash) + getLimitSwitchrId();
+ hash = (37 * hash) + LIMITSWITCHRDISABLE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getLimitSwitchrDisable());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubOptLimitSwitchRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubOptLimitSwitchRequest)
+ com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.internal_static_Tango_PMR_Stubs_StubOptLimitSwitchRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.internal_static_Tango_PMR_Stubs_StubOptLimitSwitchRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest.class, com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ limitSwitchrId_ = 0;
+
+ limitSwitchrDisable_ = false;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.internal_static_Tango_PMR_Stubs_StubOptLimitSwitchRequest_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest build() {
+ com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest buildPartial() {
+ com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest result = new com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest(this);
+ result.limitSwitchrId_ = limitSwitchrId_;
+ result.limitSwitchrDisable_ = limitSwitchrDisable_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest other) {
+ if (other == com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest.getDefaultInstance()) return this;
+ if (other.getLimitSwitchrId() != 0) {
+ setLimitSwitchrId(other.getLimitSwitchrId());
+ }
+ if (other.getLimitSwitchrDisable() != false) {
+ setLimitSwitchrDisable(other.getLimitSwitchrDisable());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int limitSwitchrId_ ;
+ /**
+ * <pre>
+ *0..16
+ * </pre>
+ *
+ * <code>uint32 LimitSwitchrId = 1;</code>
+ */
+ public int getLimitSwitchrId() {
+ return limitSwitchrId_;
+ }
+ /**
+ * <pre>
+ *0..16
+ * </pre>
+ *
+ * <code>uint32 LimitSwitchrId = 1;</code>
+ */
+ public Builder setLimitSwitchrId(int value) {
+
+ limitSwitchrId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ *0..16
+ * </pre>
+ *
+ * <code>uint32 LimitSwitchrId = 1;</code>
+ */
+ public Builder clearLimitSwitchrId() {
+
+ limitSwitchrId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean limitSwitchrDisable_ ;
+ /**
+ * <pre>
+ * 0 - Enable 1 - Disable
+ * </pre>
+ *
+ * <code>bool LimitSwitchrDisable = 2;</code>
+ */
+ public boolean getLimitSwitchrDisable() {
+ return limitSwitchrDisable_;
+ }
+ /**
+ * <pre>
+ * 0 - Enable 1 - Disable
+ * </pre>
+ *
+ * <code>bool LimitSwitchrDisable = 2;</code>
+ */
+ public Builder setLimitSwitchrDisable(boolean value) {
+
+ limitSwitchrDisable_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0 - Enable 1 - Disable
+ * </pre>
+ *
+ * <code>bool LimitSwitchrDisable = 2;</code>
+ */
+ public Builder clearLimitSwitchrDisable() {
+
+ limitSwitchrDisable_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubOptLimitSwitchRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubOptLimitSwitchRequest)
+ private static final com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubOptLimitSwitchRequest>
+ PARSER = new com.google.protobuf.AbstractParser<StubOptLimitSwitchRequest>() {
+ public StubOptLimitSwitchRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubOptLimitSwitchRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubOptLimitSwitchRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubOptLimitSwitchRequest> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubOptLimitSwitchRequestOuterClass.StubOptLimitSwitchRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubOptLimitSwitchRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubOptLimitSwitchRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\037StubOptLimitSwitchRequest.proto\022\017Tango" +
+ ".PMR.Stubs\"P\n\031StubOptLimitSwitchRequest\022" +
+ "\026\n\016LimitSwitchrId\030\001 \001(\r\022\033\n\023LimitSwitchrD" +
+ "isable\030\002 \001(\010B\033\n\031com.twine.tango.pmr.stub" +
+ "sb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubOptLimitSwitchRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubOptLimitSwitchRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubOptLimitSwitchRequest_descriptor,
+ new java.lang.String[] { "LimitSwitchrId", "LimitSwitchrDisable", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubOptLimitSwitchResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubOptLimitSwitchResponseOuterClass.java
new file mode 100644
index 000000000..a0e0f6f86
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubOptLimitSwitchResponseOuterClass.java
@@ -0,0 +1,689 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubOptLimitSwitchResponse.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubOptLimitSwitchResponseOuterClass {
+ private StubOptLimitSwitchResponseOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubOptLimitSwitchResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubOptLimitSwitchResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 LimitSwitchrId = 1;</code>
+ */
+ int getLimitSwitchrId();
+
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>bool LimitSwitchDitection = 2;</code>
+ */
+ boolean getLimitSwitchDitection();
+
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ boolean getStatus();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubOptLimitSwitchResponse}
+ */
+ public static final class StubOptLimitSwitchResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubOptLimitSwitchResponse)
+ StubOptLimitSwitchResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubOptLimitSwitchResponse.newBuilder() to construct.
+ private StubOptLimitSwitchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubOptLimitSwitchResponse() {
+ limitSwitchrId_ = 0;
+ limitSwitchDitection_ = false;
+ status_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubOptLimitSwitchResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ limitSwitchrId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ limitSwitchDitection_ = input.readBool();
+ break;
+ }
+ case 24: {
+
+ status_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.internal_static_Tango_PMR_Stubs_StubOptLimitSwitchResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.internal_static_Tango_PMR_Stubs_StubOptLimitSwitchResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse.class, com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse.Builder.class);
+ }
+
+ public static final int LIMITSWITCHRID_FIELD_NUMBER = 1;
+ private int limitSwitchrId_;
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 LimitSwitchrId = 1;</code>
+ */
+ public int getLimitSwitchrId() {
+ return limitSwitchrId_;
+ }
+
+ public static final int LIMITSWITCHDITECTION_FIELD_NUMBER = 2;
+ private boolean limitSwitchDitection_;
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>bool LimitSwitchDitection = 2;</code>
+ */
+ public boolean getLimitSwitchDitection() {
+ return limitSwitchDitection_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 3;
+ private boolean status_;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (limitSwitchrId_ != 0) {
+ output.writeUInt32(1, limitSwitchrId_);
+ }
+ if (limitSwitchDitection_ != false) {
+ output.writeBool(2, limitSwitchDitection_);
+ }
+ if (status_ != false) {
+ output.writeBool(3, status_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (limitSwitchrId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, limitSwitchrId_);
+ }
+ if (limitSwitchDitection_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, limitSwitchDitection_);
+ }
+ if (status_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, status_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse other = (com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse) obj;
+
+ boolean result = true;
+ result = result && (getLimitSwitchrId()
+ == other.getLimitSwitchrId());
+ result = result && (getLimitSwitchDitection()
+ == other.getLimitSwitchDitection());
+ result = result && (getStatus()
+ == other.getStatus());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + LIMITSWITCHRID_FIELD_NUMBER;
+ hash = (53 * hash) + getLimitSwitchrId();
+ hash = (37 * hash) + LIMITSWITCHDITECTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getLimitSwitchDitection());
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getStatus());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubOptLimitSwitchResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubOptLimitSwitchResponse)
+ com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.internal_static_Tango_PMR_Stubs_StubOptLimitSwitchResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.internal_static_Tango_PMR_Stubs_StubOptLimitSwitchResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse.class, com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ limitSwitchrId_ = 0;
+
+ limitSwitchDitection_ = false;
+
+ status_ = false;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.internal_static_Tango_PMR_Stubs_StubOptLimitSwitchResponse_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse build() {
+ com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse buildPartial() {
+ com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse result = new com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse(this);
+ result.limitSwitchrId_ = limitSwitchrId_;
+ result.limitSwitchDitection_ = limitSwitchDitection_;
+ result.status_ = status_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse other) {
+ if (other == com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse.getDefaultInstance()) return this;
+ if (other.getLimitSwitchrId() != 0) {
+ setLimitSwitchrId(other.getLimitSwitchrId());
+ }
+ if (other.getLimitSwitchDitection() != false) {
+ setLimitSwitchDitection(other.getLimitSwitchDitection());
+ }
+ if (other.getStatus() != false) {
+ setStatus(other.getStatus());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int limitSwitchrId_ ;
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 LimitSwitchrId = 1;</code>
+ */
+ public int getLimitSwitchrId() {
+ return limitSwitchrId_;
+ }
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 LimitSwitchrId = 1;</code>
+ */
+ public Builder setLimitSwitchrId(int value) {
+
+ limitSwitchrId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 LimitSwitchrId = 1;</code>
+ */
+ public Builder clearLimitSwitchrId() {
+
+ limitSwitchrId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean limitSwitchDitection_ ;
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>bool LimitSwitchDitection = 2;</code>
+ */
+ public boolean getLimitSwitchDitection() {
+ return limitSwitchDitection_;
+ }
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>bool LimitSwitchDitection = 2;</code>
+ */
+ public Builder setLimitSwitchDitection(boolean value) {
+
+ limitSwitchDitection_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>bool LimitSwitchDitection = 2;</code>
+ */
+ public Builder clearLimitSwitchDitection() {
+
+ limitSwitchDitection_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean status_ ;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public Builder setStatus(boolean value) {
+
+ status_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public Builder clearStatus() {
+
+ status_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubOptLimitSwitchResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubOptLimitSwitchResponse)
+ private static final com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubOptLimitSwitchResponse>
+ PARSER = new com.google.protobuf.AbstractParser<StubOptLimitSwitchResponse>() {
+ public StubOptLimitSwitchResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubOptLimitSwitchResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubOptLimitSwitchResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubOptLimitSwitchResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubOptLimitSwitchResponseOuterClass.StubOptLimitSwitchResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubOptLimitSwitchResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubOptLimitSwitchResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n StubOptLimitSwitchResponse.proto\022\017Tang" +
+ "o.PMR.Stubs\"b\n\032StubOptLimitSwitchRespons" +
+ "e\022\026\n\016LimitSwitchrId\030\001 \001(\r\022\034\n\024LimitSwitch" +
+ "Ditection\030\002 \001(\010\022\016\n\006Status\030\003 \001(\010B\033\n\031com.t" +
+ "wine.tango.pmr.stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubOptLimitSwitchResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubOptLimitSwitchResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubOptLimitSwitchResponse_descriptor,
+ new java.lang.String[] { "LimitSwitchrId", "LimitSwitchDitection", "Status", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubSteperMotorRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubSteperMotorRequestOuterClass.java
new file mode 100644
index 000000000..8d41f4c3f
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubSteperMotorRequestOuterClass.java
@@ -0,0 +1,861 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubSteperMotorRequest.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubSteperMotorRequestOuterClass {
+ private StubSteperMotorRequestOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubSteperMotorRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubSteperMotorRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ int getMotorId();
+
+ /**
+ * <pre>
+ * 1-start 0-stop
+ * </pre>
+ *
+ * <code>bool Start = 2;</code>
+ */
+ boolean getStart();
+
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool SetDirection = 3;</code>
+ */
+ boolean getSetDirection();
+
+ /**
+ * <pre>
+ * No. of steps for 360 deg.
+ * </pre>
+ *
+ * <code>int32 SetMicrostepDivision = 4;</code>
+ */
+ int getSetMicrostepDivision();
+
+ /**
+ * <pre>
+ * ?
+ * </pre>
+ *
+ * <code>int32 SetSpeed = 5;</code>
+ */
+ int getSetSpeed();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubSteperMotorRequest}
+ */
+ public static final class StubSteperMotorRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubSteperMotorRequest)
+ StubSteperMotorRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubSteperMotorRequest.newBuilder() to construct.
+ private StubSteperMotorRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubSteperMotorRequest() {
+ motorId_ = 0;
+ start_ = false;
+ setDirection_ = false;
+ setMicrostepDivision_ = 0;
+ setSpeed_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubSteperMotorRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ motorId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ start_ = input.readBool();
+ break;
+ }
+ case 24: {
+
+ setDirection_ = input.readBool();
+ break;
+ }
+ case 32: {
+
+ setMicrostepDivision_ = input.readInt32();
+ break;
+ }
+ case 40: {
+
+ setSpeed_ = input.readInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.internal_static_Tango_PMR_Stubs_StubSteperMotorRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.internal_static_Tango_PMR_Stubs_StubSteperMotorRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest.class, com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest.Builder.class);
+ }
+
+ public static final int MOTORID_FIELD_NUMBER = 1;
+ private int motorId_;
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ public int getMotorId() {
+ return motorId_;
+ }
+
+ public static final int START_FIELD_NUMBER = 2;
+ private boolean start_;
+ /**
+ * <pre>
+ * 1-start 0-stop
+ * </pre>
+ *
+ * <code>bool Start = 2;</code>
+ */
+ public boolean getStart() {
+ return start_;
+ }
+
+ public static final int SETDIRECTION_FIELD_NUMBER = 3;
+ private boolean setDirection_;
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool SetDirection = 3;</code>
+ */
+ public boolean getSetDirection() {
+ return setDirection_;
+ }
+
+ public static final int SETMICROSTEPDIVISION_FIELD_NUMBER = 4;
+ private int setMicrostepDivision_;
+ /**
+ * <pre>
+ * No. of steps for 360 deg.
+ * </pre>
+ *
+ * <code>int32 SetMicrostepDivision = 4;</code>
+ */
+ public int getSetMicrostepDivision() {
+ return setMicrostepDivision_;
+ }
+
+ public static final int SETSPEED_FIELD_NUMBER = 5;
+ private int setSpeed_;
+ /**
+ * <pre>
+ * ?
+ * </pre>
+ *
+ * <code>int32 SetSpeed = 5;</code>
+ */
+ public int getSetSpeed() {
+ return setSpeed_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (motorId_ != 0) {
+ output.writeUInt32(1, motorId_);
+ }
+ if (start_ != false) {
+ output.writeBool(2, start_);
+ }
+ if (setDirection_ != false) {
+ output.writeBool(3, setDirection_);
+ }
+ if (setMicrostepDivision_ != 0) {
+ output.writeInt32(4, setMicrostepDivision_);
+ }
+ if (setSpeed_ != 0) {
+ output.writeInt32(5, setSpeed_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (motorId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, motorId_);
+ }
+ if (start_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, start_);
+ }
+ if (setDirection_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, setDirection_);
+ }
+ if (setMicrostepDivision_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(4, setMicrostepDivision_);
+ }
+ if (setSpeed_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(5, setSpeed_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest other = (com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest) obj;
+
+ boolean result = true;
+ result = result && (getMotorId()
+ == other.getMotorId());
+ result = result && (getStart()
+ == other.getStart());
+ result = result && (getSetDirection()
+ == other.getSetDirection());
+ result = result && (getSetMicrostepDivision()
+ == other.getSetMicrostepDivision());
+ result = result && (getSetSpeed()
+ == other.getSetSpeed());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MOTORID_FIELD_NUMBER;
+ hash = (53 * hash) + getMotorId();
+ hash = (37 * hash) + START_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getStart());
+ hash = (37 * hash) + SETDIRECTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSetDirection());
+ hash = (37 * hash) + SETMICROSTEPDIVISION_FIELD_NUMBER;
+ hash = (53 * hash) + getSetMicrostepDivision();
+ hash = (37 * hash) + SETSPEED_FIELD_NUMBER;
+ hash = (53 * hash) + getSetSpeed();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubSteperMotorRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubSteperMotorRequest)
+ com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.internal_static_Tango_PMR_Stubs_StubSteperMotorRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.internal_static_Tango_PMR_Stubs_StubSteperMotorRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest.class, com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ motorId_ = 0;
+
+ start_ = false;
+
+ setDirection_ = false;
+
+ setMicrostepDivision_ = 0;
+
+ setSpeed_ = 0;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.internal_static_Tango_PMR_Stubs_StubSteperMotorRequest_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest build() {
+ com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest buildPartial() {
+ com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest result = new com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest(this);
+ result.motorId_ = motorId_;
+ result.start_ = start_;
+ result.setDirection_ = setDirection_;
+ result.setMicrostepDivision_ = setMicrostepDivision_;
+ result.setSpeed_ = setSpeed_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest other) {
+ if (other == com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest.getDefaultInstance()) return this;
+ if (other.getMotorId() != 0) {
+ setMotorId(other.getMotorId());
+ }
+ if (other.getStart() != false) {
+ setStart(other.getStart());
+ }
+ if (other.getSetDirection() != false) {
+ setSetDirection(other.getSetDirection());
+ }
+ if (other.getSetMicrostepDivision() != 0) {
+ setSetMicrostepDivision(other.getSetMicrostepDivision());
+ }
+ if (other.getSetSpeed() != 0) {
+ setSetSpeed(other.getSetSpeed());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int motorId_ ;
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ public int getMotorId() {
+ return motorId_;
+ }
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ public Builder setMotorId(int value) {
+
+ motorId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ public Builder clearMotorId() {
+
+ motorId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean start_ ;
+ /**
+ * <pre>
+ * 1-start 0-stop
+ * </pre>
+ *
+ * <code>bool Start = 2;</code>
+ */
+ public boolean getStart() {
+ return start_;
+ }
+ /**
+ * <pre>
+ * 1-start 0-stop
+ * </pre>
+ *
+ * <code>bool Start = 2;</code>
+ */
+ public Builder setStart(boolean value) {
+
+ start_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 1-start 0-stop
+ * </pre>
+ *
+ * <code>bool Start = 2;</code>
+ */
+ public Builder clearStart() {
+
+ start_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean setDirection_ ;
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool SetDirection = 3;</code>
+ */
+ public boolean getSetDirection() {
+ return setDirection_;
+ }
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool SetDirection = 3;</code>
+ */
+ public Builder setSetDirection(boolean value) {
+
+ setDirection_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 1-cw 0-ccw
+ * </pre>
+ *
+ * <code>bool SetDirection = 3;</code>
+ */
+ public Builder clearSetDirection() {
+
+ setDirection_ = false;
+ onChanged();
+ return this;
+ }
+
+ private int setMicrostepDivision_ ;
+ /**
+ * <pre>
+ * No. of steps for 360 deg.
+ * </pre>
+ *
+ * <code>int32 SetMicrostepDivision = 4;</code>
+ */
+ public int getSetMicrostepDivision() {
+ return setMicrostepDivision_;
+ }
+ /**
+ * <pre>
+ * No. of steps for 360 deg.
+ * </pre>
+ *
+ * <code>int32 SetMicrostepDivision = 4;</code>
+ */
+ public Builder setSetMicrostepDivision(int value) {
+
+ setMicrostepDivision_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * No. of steps for 360 deg.
+ * </pre>
+ *
+ * <code>int32 SetMicrostepDivision = 4;</code>
+ */
+ public Builder clearSetMicrostepDivision() {
+
+ setMicrostepDivision_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int setSpeed_ ;
+ /**
+ * <pre>
+ * ?
+ * </pre>
+ *
+ * <code>int32 SetSpeed = 5;</code>
+ */
+ public int getSetSpeed() {
+ return setSpeed_;
+ }
+ /**
+ * <pre>
+ * ?
+ * </pre>
+ *
+ * <code>int32 SetSpeed = 5;</code>
+ */
+ public Builder setSetSpeed(int value) {
+
+ setSpeed_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * ?
+ * </pre>
+ *
+ * <code>int32 SetSpeed = 5;</code>
+ */
+ public Builder clearSetSpeed() {
+
+ setSpeed_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubSteperMotorRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubSteperMotorRequest)
+ private static final com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubSteperMotorRequest>
+ PARSER = new com.google.protobuf.AbstractParser<StubSteperMotorRequest>() {
+ public StubSteperMotorRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubSteperMotorRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubSteperMotorRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubSteperMotorRequest> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubSteperMotorRequestOuterClass.StubSteperMotorRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubSteperMotorRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubSteperMotorRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\034StubSteperMotorRequest.proto\022\017Tango.PM" +
+ "R.Stubs\"~\n\026StubSteperMotorRequest\022\017\n\007Mot" +
+ "orId\030\001 \001(\r\022\r\n\005Start\030\002 \001(\010\022\024\n\014SetDirectio" +
+ "n\030\003 \001(\010\022\034\n\024SetMicrostepDivision\030\004 \001(\005\022\020\n" +
+ "\010SetSpeed\030\005 \001(\005B\033\n\031com.twine.tango.pmr.s" +
+ "tubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubSteperMotorRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubSteperMotorRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubSteperMotorRequest_descriptor,
+ new java.lang.String[] { "MotorId", "Start", "SetDirection", "SetMicrostepDivision", "SetSpeed", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubSteperMotorResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubSteperMotorResponseOuterClass.java
new file mode 100644
index 000000000..5c65563ec
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubSteperMotorResponseOuterClass.java
@@ -0,0 +1,688 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubSteperMotorResponse.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubSteperMotorResponseOuterClass {
+ private StubSteperMotorResponseOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubSteperMotorResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubSteperMotorResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ int getMotorId();
+
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 MotorVersion = 2;</code>
+ */
+ int getMotorVersion();
+
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ boolean getStatus();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubSteperMotorResponse}
+ */
+ public static final class StubSteperMotorResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubSteperMotorResponse)
+ StubSteperMotorResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubSteperMotorResponse.newBuilder() to construct.
+ private StubSteperMotorResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubSteperMotorResponse() {
+ motorId_ = 0;
+ motorVersion_ = 0;
+ status_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubSteperMotorResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ motorId_ = input.readUInt32();
+ break;
+ }
+ case 16: {
+
+ motorVersion_ = input.readUInt32();
+ break;
+ }
+ case 24: {
+
+ status_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.internal_static_Tango_PMR_Stubs_StubSteperMotorResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.internal_static_Tango_PMR_Stubs_StubSteperMotorResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse.class, com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse.Builder.class);
+ }
+
+ public static final int MOTORID_FIELD_NUMBER = 1;
+ private int motorId_;
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ public int getMotorId() {
+ return motorId_;
+ }
+
+ public static final int MOTORVERSION_FIELD_NUMBER = 2;
+ private int motorVersion_;
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 MotorVersion = 2;</code>
+ */
+ public int getMotorVersion() {
+ return motorVersion_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 3;
+ private boolean status_;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (motorId_ != 0) {
+ output.writeUInt32(1, motorId_);
+ }
+ if (motorVersion_ != 0) {
+ output.writeUInt32(2, motorVersion_);
+ }
+ if (status_ != false) {
+ output.writeBool(3, status_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (motorId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(1, motorId_);
+ }
+ if (motorVersion_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, motorVersion_);
+ }
+ if (status_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, status_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse other = (com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse) obj;
+
+ boolean result = true;
+ result = result && (getMotorId()
+ == other.getMotorId());
+ result = result && (getMotorVersion()
+ == other.getMotorVersion());
+ result = result && (getStatus()
+ == other.getStatus());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MOTORID_FIELD_NUMBER;
+ hash = (53 * hash) + getMotorId();
+ hash = (37 * hash) + MOTORVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getMotorVersion();
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getStatus());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubSteperMotorResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubSteperMotorResponse)
+ com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.internal_static_Tango_PMR_Stubs_StubSteperMotorResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.internal_static_Tango_PMR_Stubs_StubSteperMotorResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse.class, com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ motorId_ = 0;
+
+ motorVersion_ = 0;
+
+ status_ = false;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.internal_static_Tango_PMR_Stubs_StubSteperMotorResponse_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse build() {
+ com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse buildPartial() {
+ com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse result = new com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse(this);
+ result.motorId_ = motorId_;
+ result.motorVersion_ = motorVersion_;
+ result.status_ = status_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse other) {
+ if (other == com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse.getDefaultInstance()) return this;
+ if (other.getMotorId() != 0) {
+ setMotorId(other.getMotorId());
+ }
+ if (other.getMotorVersion() != 0) {
+ setMotorVersion(other.getMotorVersion());
+ }
+ if (other.getStatus() != false) {
+ setStatus(other.getStatus());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int motorId_ ;
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ public int getMotorId() {
+ return motorId_;
+ }
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ public Builder setMotorId(int value) {
+
+ motorId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ *0..19
+ * </pre>
+ *
+ * <code>uint32 MotorId = 1;</code>
+ */
+ public Builder clearMotorId() {
+
+ motorId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int motorVersion_ ;
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 MotorVersion = 2;</code>
+ */
+ public int getMotorVersion() {
+ return motorVersion_;
+ }
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 MotorVersion = 2;</code>
+ */
+ public Builder setMotorVersion(int value) {
+
+ motorVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * </pre>
+ *
+ * <code>uint32 MotorVersion = 2;</code>
+ */
+ public Builder clearMotorVersion() {
+
+ motorVersion_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean status_ ;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public Builder setStatus(boolean value) {
+
+ status_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public Builder clearStatus() {
+
+ status_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubSteperMotorResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubSteperMotorResponse)
+ private static final com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubSteperMotorResponse>
+ PARSER = new com.google.protobuf.AbstractParser<StubSteperMotorResponse>() {
+ public StubSteperMotorResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubSteperMotorResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubSteperMotorResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubSteperMotorResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubSteperMotorResponseOuterClass.StubSteperMotorResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubSteperMotorResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubSteperMotorResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\035StubSteperMotorResponse.proto\022\017Tango.P" +
+ "MR.Stubs\"P\n\027StubSteperMotorResponse\022\017\n\007M" +
+ "otorId\030\001 \001(\r\022\024\n\014MotorVersion\030\002 \001(\r\022\016\n\006St" +
+ "atus\030\003 \001(\010B\033\n\031com.twine.tango.pmr.stubsb" +
+ "\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubSteperMotorResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubSteperMotorResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubSteperMotorResponse_descriptor,
+ new java.lang.String[] { "MotorId", "MotorVersion", "Status", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubValveRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubValveRequestOuterClass.java
new file mode 100644
index 000000000..70556b17a
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubValveRequestOuterClass.java
@@ -0,0 +1,631 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubValveRequest.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubValveRequestOuterClass {
+ private StubValveRequestOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubValveRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubValveRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>int32 ValveId = 1;</code>
+ */
+ int getValveId();
+
+ /**
+ * <code>int32 Inkflow = 2;</code>
+ */
+ int getInkflow();
+
+ /**
+ * <code>int32 ValveOn = 3;</code>
+ */
+ int getValveOn();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubValveRequest}
+ */
+ public static final class StubValveRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubValveRequest)
+ StubValveRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubValveRequest.newBuilder() to construct.
+ private StubValveRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubValveRequest() {
+ valveId_ = 0;
+ inkflow_ = 0;
+ valveOn_ = 0;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubValveRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+
+ valveId_ = input.readInt32();
+ break;
+ }
+ case 16: {
+
+ inkflow_ = input.readInt32();
+ break;
+ }
+ case 24: {
+
+ valveOn_ = input.readInt32();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubValveRequestOuterClass.internal_static_Tango_PMR_Stubs_StubValveRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubValveRequestOuterClass.internal_static_Tango_PMR_Stubs_StubValveRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest.class, com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest.Builder.class);
+ }
+
+ public static final int VALVEID_FIELD_NUMBER = 1;
+ private int valveId_;
+ /**
+ * <code>int32 ValveId = 1;</code>
+ */
+ public int getValveId() {
+ return valveId_;
+ }
+
+ public static final int INKFLOW_FIELD_NUMBER = 2;
+ private int inkflow_;
+ /**
+ * <code>int32 Inkflow = 2;</code>
+ */
+ public int getInkflow() {
+ return inkflow_;
+ }
+
+ public static final int VALVEON_FIELD_NUMBER = 3;
+ private int valveOn_;
+ /**
+ * <code>int32 ValveOn = 3;</code>
+ */
+ public int getValveOn() {
+ return valveOn_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (valveId_ != 0) {
+ output.writeInt32(1, valveId_);
+ }
+ if (inkflow_ != 0) {
+ output.writeInt32(2, inkflow_);
+ }
+ if (valveOn_ != 0) {
+ output.writeInt32(3, valveOn_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (valveId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, valveId_);
+ }
+ if (inkflow_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(2, inkflow_);
+ }
+ if (valveOn_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(3, valveOn_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest other = (com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest) obj;
+
+ boolean result = true;
+ result = result && (getValveId()
+ == other.getValveId());
+ result = result && (getInkflow()
+ == other.getInkflow());
+ result = result && (getValveOn()
+ == other.getValveOn());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + VALVEID_FIELD_NUMBER;
+ hash = (53 * hash) + getValveId();
+ hash = (37 * hash) + INKFLOW_FIELD_NUMBER;
+ hash = (53 * hash) + getInkflow();
+ hash = (37 * hash) + VALVEON_FIELD_NUMBER;
+ hash = (53 * hash) + getValveOn();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubValveRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubValveRequest)
+ com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubValveRequestOuterClass.internal_static_Tango_PMR_Stubs_StubValveRequest_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubValveRequestOuterClass.internal_static_Tango_PMR_Stubs_StubValveRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest.class, com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ valveId_ = 0;
+
+ inkflow_ = 0;
+
+ valveOn_ = 0;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubValveRequestOuterClass.internal_static_Tango_PMR_Stubs_StubValveRequest_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest build() {
+ com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest buildPartial() {
+ com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest result = new com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest(this);
+ result.valveId_ = valveId_;
+ result.inkflow_ = inkflow_;
+ result.valveOn_ = valveOn_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest other) {
+ if (other == com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest.getDefaultInstance()) return this;
+ if (other.getValveId() != 0) {
+ setValveId(other.getValveId());
+ }
+ if (other.getInkflow() != 0) {
+ setInkflow(other.getInkflow());
+ }
+ if (other.getValveOn() != 0) {
+ setValveOn(other.getValveOn());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int valveId_ ;
+ /**
+ * <code>int32 ValveId = 1;</code>
+ */
+ public int getValveId() {
+ return valveId_;
+ }
+ /**
+ * <code>int32 ValveId = 1;</code>
+ */
+ public Builder setValveId(int value) {
+
+ valveId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>int32 ValveId = 1;</code>
+ */
+ public Builder clearValveId() {
+
+ valveId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int inkflow_ ;
+ /**
+ * <code>int32 Inkflow = 2;</code>
+ */
+ public int getInkflow() {
+ return inkflow_;
+ }
+ /**
+ * <code>int32 Inkflow = 2;</code>
+ */
+ public Builder setInkflow(int value) {
+
+ inkflow_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>int32 Inkflow = 2;</code>
+ */
+ public Builder clearInkflow() {
+
+ inkflow_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int valveOn_ ;
+ /**
+ * <code>int32 ValveOn = 3;</code>
+ */
+ public int getValveOn() {
+ return valveOn_;
+ }
+ /**
+ * <code>int32 ValveOn = 3;</code>
+ */
+ public Builder setValveOn(int value) {
+
+ valveOn_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>int32 ValveOn = 3;</code>
+ */
+ public Builder clearValveOn() {
+
+ valveOn_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubValveRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubValveRequest)
+ private static final com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubValveRequest>
+ PARSER = new com.google.protobuf.AbstractParser<StubValveRequest>() {
+ public StubValveRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubValveRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubValveRequest> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubValveRequest> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubValveRequestOuterClass.StubValveRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubValveRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubValveRequest_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\026StubValveRequest.proto\022\017Tango.PMR.Stub" +
+ "s\"E\n\020StubValveRequest\022\017\n\007ValveId\030\001 \001(\005\022\017" +
+ "\n\007Inkflow\030\002 \001(\005\022\017\n\007ValveOn\030\003 \001(\005B\033\n\031com." +
+ "twine.tango.pmr.stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubValveRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubValveRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubValveRequest_descriptor,
+ new java.lang.String[] { "ValveId", "Inkflow", "ValveOn", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubValveResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubValveResponseOuterClass.java
new file mode 100644
index 000000000..e963dff05
--- /dev/null
+++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubValveResponseOuterClass.java
@@ -0,0 +1,525 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: StubValveResponse.proto
+
+package com.twine.tango.pmr.stubs;
+
+public final class StubValveResponseOuterClass {
+ private StubValveResponseOuterClass() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ public interface StubValveResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubValveResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ boolean getStatus();
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubValveResponse}
+ */
+ public static final class StubValveResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubValveResponse)
+ StubValveResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StubValveResponse.newBuilder() to construct.
+ private StubValveResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+ super(builder);
+ }
+ private StubValveResponse() {
+ status_ = false;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StubValveResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 24: {
+
+ status_ = input.readBool();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubValveResponseOuterClass.internal_static_Tango_PMR_Stubs_StubValveResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubValveResponseOuterClass.internal_static_Tango_PMR_Stubs_StubValveResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse.class, com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse.Builder.class);
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 3;
+ private boolean status_;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (status_ != false) {
+ output.writeBool(3, status_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (status_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, status_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse)) {
+ return super.equals(obj);
+ }
+ com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse other = (com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse) obj;
+
+ boolean result = true;
+ result = result && (getStatus()
+ == other.getStatus());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getStatus());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code Tango.PMR.Stubs.StubValveResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubValveResponse)
+ com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.twine.tango.pmr.stubs.StubValveResponseOuterClass.internal_static_Tango_PMR_Stubs_StubValveResponse_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.twine.tango.pmr.stubs.StubValveResponseOuterClass.internal_static_Tango_PMR_Stubs_StubValveResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse.class, com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse.Builder.class);
+ }
+
+ // Construct using com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ status_ = false;
+
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.twine.tango.pmr.stubs.StubValveResponseOuterClass.internal_static_Tango_PMR_Stubs_StubValveResponse_descriptor;
+ }
+
+ public com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse getDefaultInstanceForType() {
+ return com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse.getDefaultInstance();
+ }
+
+ public com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse build() {
+ com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse buildPartial() {
+ com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse result = new com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse(this);
+ result.status_ = status_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse) {
+ return mergeFrom((com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse other) {
+ if (other == com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse.getDefaultInstance()) return this;
+ if (other.getStatus() != false) {
+ setStatus(other.getStatus());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private boolean status_ ;
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public boolean getStatus() {
+ return status_;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public Builder setStatus(boolean value) {
+
+ status_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <pre>
+ * 0-OK 1-Failed
+ * </pre>
+ *
+ * <code>bool Status = 3;</code>
+ */
+ public Builder clearStatus() {
+
+ status_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubValveResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubValveResponse)
+ private static final com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse();
+ }
+
+ public static com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser<StubValveResponse>
+ PARSER = new com.google.protobuf.AbstractParser<StubValveResponse>() {
+ public StubValveResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new StubValveResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser<StubValveResponse> parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<StubValveResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public com.twine.tango.pmr.stubs.StubValveResponseOuterClass.StubValveResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Tango_PMR_Stubs_StubValveResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Tango_PMR_Stubs_StubValveResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\027StubValveResponse.proto\022\017Tango.PMR.Stu" +
+ "bs\"#\n\021StubValveResponse\022\016\n\006Status\030\003 \001(\010B" +
+ "\033\n\031com.twine.tango.pmr.stubsb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ }, assigner);
+ internal_static_Tango_PMR_Stubs_StubValveResponse_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Tango_PMR_Stubs_StubValveResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Tango_PMR_Stubs_StubValveResponse_descriptor,
+ new java.lang.String[] { "Status", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}