aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Android_Studio
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-03-18 13:33:56 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-03-18 13:33:56 +0200
commitb3a61113315777f2523912ca17d3cf76e435a446 (patch)
tree99de580e9cf26e93acdec7c360759f7237bf36a1 /Software/Android_Studio
parentfd2641e5aa4e915cc133310bd87d21278b84e50b (diff)
downloadTango-b3a61113315777f2523912ca17d3cf76e435a446.tar.gz
Tango-b3a61113315777f2523912ca17d3cf76e435a446.zip
Managed to get java back working again.
Diffstat (limited to 'Software/Android_Studio')
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/RGBOuterClass.java630
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/StartDiagnosticsRequestOuterClass.java635
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/StartDiagnosticsResponseOuterClass.java782
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/Dispenser.java1406
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/JobOuterClass.java1856
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/Motor.java1500
-rw-r--r--Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/SegmentOuterClass.java1214
7 files changed, 0 insertions, 8023 deletions
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/RGBOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/RGBOuterClass.java
deleted file mode 100644
index 4e751dd48..000000000
--- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/RGBOuterClass.java
+++ /dev/null
@@ -1,630 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: RGB.proto
-
-package com.twine.tango.pmr.common;
-
-public final class RGBOuterClass {
- private RGBOuterClass() {}
- 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 RGBOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Tango.PMR.Common.RGB)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>int32 R = 1;</code>
- */
- int getR();
-
- /**
- * <code>int32 G = 2;</code>
- */
- int getG();
-
- /**
- * <code>int32 B = 3;</code>
- */
- int getB();
- }
- /**
- * Protobuf type {@code Tango.PMR.Common.RGB}
- */
- public static final class RGB extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Tango.PMR.Common.RGB)
- RGBOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use RGB.newBuilder() to construct.
- private RGB(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private RGB() {
- r_ = 0;
- g_ = 0;
- b_ = 0;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private RGB(
- 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: {
-
- r_ = input.readInt32();
- break;
- }
- case 16: {
-
- g_ = input.readInt32();
- break;
- }
- case 24: {
-
- b_ = 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.common.RGBOuterClass.internal_static_Tango_PMR_Common_RGB_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.common.RGBOuterClass.internal_static_Tango_PMR_Common_RGB_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.common.RGBOuterClass.RGB.class, com.twine.tango.pmr.common.RGBOuterClass.RGB.Builder.class);
- }
-
- public static final int R_FIELD_NUMBER = 1;
- private int r_;
- /**
- * <code>int32 R = 1;</code>
- */
- public int getR() {
- return r_;
- }
-
- public static final int G_FIELD_NUMBER = 2;
- private int g_;
- /**
- * <code>int32 G = 2;</code>
- */
- public int getG() {
- return g_;
- }
-
- public static final int B_FIELD_NUMBER = 3;
- private int b_;
- /**
- * <code>int32 B = 3;</code>
- */
- public int getB() {
- return b_;
- }
-
- 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 (r_ != 0) {
- output.writeInt32(1, r_);
- }
- if (g_ != 0) {
- output.writeInt32(2, g_);
- }
- if (b_ != 0) {
- output.writeInt32(3, b_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (r_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, r_);
- }
- if (g_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(2, g_);
- }
- if (b_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(3, b_);
- }
- 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.common.RGBOuterClass.RGB)) {
- return super.equals(obj);
- }
- com.twine.tango.pmr.common.RGBOuterClass.RGB other = (com.twine.tango.pmr.common.RGBOuterClass.RGB) obj;
-
- boolean result = true;
- result = result && (getR()
- == other.getR());
- result = result && (getG()
- == other.getG());
- result = result && (getB()
- == other.getB());
- 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) + R_FIELD_NUMBER;
- hash = (53 * hash) + getR();
- hash = (37 * hash) + G_FIELD_NUMBER;
- hash = (53 * hash) + getG();
- hash = (37 * hash) + B_FIELD_NUMBER;
- hash = (53 * hash) + getB();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.twine.tango.pmr.common.RGBOuterClass.RGB parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.common.RGBOuterClass.RGB 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.common.RGBOuterClass.RGB parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.common.RGBOuterClass.RGB 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.common.RGBOuterClass.RGB parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.common.RGBOuterClass.RGB parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.twine.tango.pmr.common.RGBOuterClass.RGB parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.common.RGBOuterClass.RGB 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.common.RGBOuterClass.RGB parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.common.RGBOuterClass.RGB 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.common.RGBOuterClass.RGB parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.common.RGBOuterClass.RGB 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.common.RGBOuterClass.RGB 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.Common.RGB}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:Tango.PMR.Common.RGB)
- com.twine.tango.pmr.common.RGBOuterClass.RGBOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.twine.tango.pmr.common.RGBOuterClass.internal_static_Tango_PMR_Common_RGB_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.common.RGBOuterClass.internal_static_Tango_PMR_Common_RGB_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.common.RGBOuterClass.RGB.class, com.twine.tango.pmr.common.RGBOuterClass.RGB.Builder.class);
- }
-
- // Construct using com.twine.tango.pmr.common.RGBOuterClass.RGB.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();
- r_ = 0;
-
- g_ = 0;
-
- b_ = 0;
-
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.twine.tango.pmr.common.RGBOuterClass.internal_static_Tango_PMR_Common_RGB_descriptor;
- }
-
- public com.twine.tango.pmr.common.RGBOuterClass.RGB getDefaultInstanceForType() {
- return com.twine.tango.pmr.common.RGBOuterClass.RGB.getDefaultInstance();
- }
-
- public com.twine.tango.pmr.common.RGBOuterClass.RGB build() {
- com.twine.tango.pmr.common.RGBOuterClass.RGB result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.twine.tango.pmr.common.RGBOuterClass.RGB buildPartial() {
- com.twine.tango.pmr.common.RGBOuterClass.RGB result = new com.twine.tango.pmr.common.RGBOuterClass.RGB(this);
- result.r_ = r_;
- result.g_ = g_;
- result.b_ = b_;
- 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.common.RGBOuterClass.RGB) {
- return mergeFrom((com.twine.tango.pmr.common.RGBOuterClass.RGB)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.twine.tango.pmr.common.RGBOuterClass.RGB other) {
- if (other == com.twine.tango.pmr.common.RGBOuterClass.RGB.getDefaultInstance()) return this;
- if (other.getR() != 0) {
- setR(other.getR());
- }
- if (other.getG() != 0) {
- setG(other.getG());
- }
- if (other.getB() != 0) {
- setB(other.getB());
- }
- 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.common.RGBOuterClass.RGB parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.twine.tango.pmr.common.RGBOuterClass.RGB) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int r_ ;
- /**
- * <code>int32 R = 1;</code>
- */
- public int getR() {
- return r_;
- }
- /**
- * <code>int32 R = 1;</code>
- */
- public Builder setR(int value) {
-
- r_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>int32 R = 1;</code>
- */
- public Builder clearR() {
-
- r_ = 0;
- onChanged();
- return this;
- }
-
- private int g_ ;
- /**
- * <code>int32 G = 2;</code>
- */
- public int getG() {
- return g_;
- }
- /**
- * <code>int32 G = 2;</code>
- */
- public Builder setG(int value) {
-
- g_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>int32 G = 2;</code>
- */
- public Builder clearG() {
-
- g_ = 0;
- onChanged();
- return this;
- }
-
- private int b_ ;
- /**
- * <code>int32 B = 3;</code>
- */
- public int getB() {
- return b_;
- }
- /**
- * <code>int32 B = 3;</code>
- */
- public Builder setB(int value) {
-
- b_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>int32 B = 3;</code>
- */
- public Builder clearB() {
-
- b_ = 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.Common.RGB)
- }
-
- // @@protoc_insertion_point(class_scope:Tango.PMR.Common.RGB)
- private static final com.twine.tango.pmr.common.RGBOuterClass.RGB DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.twine.tango.pmr.common.RGBOuterClass.RGB();
- }
-
- public static com.twine.tango.pmr.common.RGBOuterClass.RGB getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<RGB>
- PARSER = new com.google.protobuf.AbstractParser<RGB>() {
- public RGB parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new RGB(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser<RGB> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<RGB> getParserForType() {
- return PARSER;
- }
-
- public com.twine.tango.pmr.common.RGBOuterClass.RGB getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_Tango_PMR_Common_RGB_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_Tango_PMR_Common_RGB_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\tRGB.proto\022\020Tango.PMR.Common\"&\n\003RGB\022\t\n\001" +
- "R\030\001 \001(\005\022\t\n\001G\030\002 \001(\005\022\t\n\001B\030\003 \001(\005B\034\n\032com.twi" +
- "ne.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);
- internal_static_Tango_PMR_Common_RGB_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_Tango_PMR_Common_RGB_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_Tango_PMR_Common_RGB_descriptor,
- new java.lang.String[] { "R", "G", "B", });
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/StartDiagnosticsRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/StartDiagnosticsRequestOuterClass.java
deleted file mode 100644
index f4d31c154..000000000
--- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/StartDiagnosticsRequestOuterClass.java
+++ /dev/null
@@ -1,635 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: StartDiagnosticsRequest.proto
-
-package com.twine.tango.pmr.diagnostics;
-
-public final class StartDiagnosticsRequestOuterClass {
- private StartDiagnosticsRequestOuterClass() {}
- 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 StartDiagnosticsRequestOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.StartDiagnosticsRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>bool PushSensors = 1;</code>
- */
- boolean getPushSensors();
-
- /**
- * <code>bool PushMotors = 2;</code>
- */
- boolean getPushMotors();
-
- /**
- * <code>bool PushLogs = 3;</code>
- */
- boolean getPushLogs();
- }
- /**
- * Protobuf type {@code Tango.PMR.Diagnostics.StartDiagnosticsRequest}
- */
- public static final class StartDiagnosticsRequest extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.StartDiagnosticsRequest)
- StartDiagnosticsRequestOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use StartDiagnosticsRequest.newBuilder() to construct.
- private StartDiagnosticsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private StartDiagnosticsRequest() {
- pushSensors_ = false;
- pushMotors_ = false;
- pushLogs_ = false;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private StartDiagnosticsRequest(
- 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: {
-
- pushSensors_ = input.readBool();
- break;
- }
- case 16: {
-
- pushMotors_ = input.readBool();
- break;
- }
- case 24: {
-
- pushLogs_ = 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.diagnostics.StartDiagnosticsRequestOuterClass.internal_static_Tango_PMR_Diagnostics_StartDiagnosticsRequest_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.internal_static_Tango_PMR_Diagnostics_StartDiagnosticsRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest.class, com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest.Builder.class);
- }
-
- public static final int PUSHSENSORS_FIELD_NUMBER = 1;
- private boolean pushSensors_;
- /**
- * <code>bool PushSensors = 1;</code>
- */
- public boolean getPushSensors() {
- return pushSensors_;
- }
-
- public static final int PUSHMOTORS_FIELD_NUMBER = 2;
- private boolean pushMotors_;
- /**
- * <code>bool PushMotors = 2;</code>
- */
- public boolean getPushMotors() {
- return pushMotors_;
- }
-
- public static final int PUSHLOGS_FIELD_NUMBER = 3;
- private boolean pushLogs_;
- /**
- * <code>bool PushLogs = 3;</code>
- */
- public boolean getPushLogs() {
- return pushLogs_;
- }
-
- 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 (pushSensors_ != false) {
- output.writeBool(1, pushSensors_);
- }
- if (pushMotors_ != false) {
- output.writeBool(2, pushMotors_);
- }
- if (pushLogs_ != false) {
- output.writeBool(3, pushLogs_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (pushSensors_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(1, pushSensors_);
- }
- if (pushMotors_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(2, pushMotors_);
- }
- if (pushLogs_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(3, pushLogs_);
- }
- 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.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest)) {
- return super.equals(obj);
- }
- com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest other = (com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest) obj;
-
- boolean result = true;
- result = result && (getPushSensors()
- == other.getPushSensors());
- result = result && (getPushMotors()
- == other.getPushMotors());
- result = result && (getPushLogs()
- == other.getPushLogs());
- 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) + PUSHSENSORS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getPushSensors());
- hash = (37 * hash) + PUSHMOTORS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getPushMotors());
- hash = (37 * hash) + PUSHLOGS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getPushLogs());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest 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.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest 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.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest 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.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest 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.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest 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.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest 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.Diagnostics.StartDiagnosticsRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.StartDiagnosticsRequest)
- com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.internal_static_Tango_PMR_Diagnostics_StartDiagnosticsRequest_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.internal_static_Tango_PMR_Diagnostics_StartDiagnosticsRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest.class, com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest.Builder.class);
- }
-
- // Construct using com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest.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();
- pushSensors_ = false;
-
- pushMotors_ = false;
-
- pushLogs_ = false;
-
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.internal_static_Tango_PMR_Diagnostics_StartDiagnosticsRequest_descriptor;
- }
-
- public com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest getDefaultInstanceForType() {
- return com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest.getDefaultInstance();
- }
-
- public com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest build() {
- com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest buildPartial() {
- com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest result = new com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest(this);
- result.pushSensors_ = pushSensors_;
- result.pushMotors_ = pushMotors_;
- result.pushLogs_ = pushLogs_;
- 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.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest) {
- return mergeFrom((com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest other) {
- if (other == com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest.getDefaultInstance()) return this;
- if (other.getPushSensors() != false) {
- setPushSensors(other.getPushSensors());
- }
- if (other.getPushMotors() != false) {
- setPushMotors(other.getPushMotors());
- }
- if (other.getPushLogs() != false) {
- setPushLogs(other.getPushLogs());
- }
- 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.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private boolean pushSensors_ ;
- /**
- * <code>bool PushSensors = 1;</code>
- */
- public boolean getPushSensors() {
- return pushSensors_;
- }
- /**
- * <code>bool PushSensors = 1;</code>
- */
- public Builder setPushSensors(boolean value) {
-
- pushSensors_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>bool PushSensors = 1;</code>
- */
- public Builder clearPushSensors() {
-
- pushSensors_ = false;
- onChanged();
- return this;
- }
-
- private boolean pushMotors_ ;
- /**
- * <code>bool PushMotors = 2;</code>
- */
- public boolean getPushMotors() {
- return pushMotors_;
- }
- /**
- * <code>bool PushMotors = 2;</code>
- */
- public Builder setPushMotors(boolean value) {
-
- pushMotors_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>bool PushMotors = 2;</code>
- */
- public Builder clearPushMotors() {
-
- pushMotors_ = false;
- onChanged();
- return this;
- }
-
- private boolean pushLogs_ ;
- /**
- * <code>bool PushLogs = 3;</code>
- */
- public boolean getPushLogs() {
- return pushLogs_;
- }
- /**
- * <code>bool PushLogs = 3;</code>
- */
- public Builder setPushLogs(boolean value) {
-
- pushLogs_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>bool PushLogs = 3;</code>
- */
- public Builder clearPushLogs() {
-
- pushLogs_ = 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.Diagnostics.StartDiagnosticsRequest)
- }
-
- // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.StartDiagnosticsRequest)
- private static final com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest();
- }
-
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<StartDiagnosticsRequest>
- PARSER = new com.google.protobuf.AbstractParser<StartDiagnosticsRequest>() {
- public StartDiagnosticsRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new StartDiagnosticsRequest(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser<StartDiagnosticsRequest> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<StartDiagnosticsRequest> getParserForType() {
- return PARSER;
- }
-
- public com.twine.tango.pmr.diagnostics.StartDiagnosticsRequestOuterClass.StartDiagnosticsRequest getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_Tango_PMR_Diagnostics_StartDiagnosticsRequest_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_Tango_PMR_Diagnostics_StartDiagnosticsRequest_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\035StartDiagnosticsRequest.proto\022\025Tango.P" +
- "MR.Diagnostics\"T\n\027StartDiagnosticsReques" +
- "t\022\023\n\013PushSensors\030\001 \001(\010\022\022\n\nPushMotors\030\002 \001" +
- "(\010\022\020\n\010PushLogs\030\003 \001(\010B!\n\037com.twine.tango." +
- "pmr.diagnosticsb\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_Diagnostics_StartDiagnosticsRequest_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_Tango_PMR_Diagnostics_StartDiagnosticsRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_Tango_PMR_Diagnostics_StartDiagnosticsRequest_descriptor,
- new java.lang.String[] { "PushSensors", "PushMotors", "PushLogs", });
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/StartDiagnosticsResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/StartDiagnosticsResponseOuterClass.java
deleted file mode 100644
index fa5b736e1..000000000
--- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/StartDiagnosticsResponseOuterClass.java
+++ /dev/null
@@ -1,782 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: StartDiagnosticsResponse.proto
-
-package com.twine.tango.pmr.diagnostics;
-
-public final class StartDiagnosticsResponseOuterClass {
- private StartDiagnosticsResponseOuterClass() {}
- 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 StartDiagnosticsResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.StartDiagnosticsResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>repeated double Temperature = 1;</code>
- */
- java.util.List<java.lang.Double> getTemperatureList();
- /**
- * <code>repeated double Temperature = 1;</code>
- */
- int getTemperatureCount();
- /**
- * <code>repeated double Temperature = 1;</code>
- */
- double getTemperature(int index);
-
- /**
- * <code>repeated double Velocity = 2;</code>
- */
- java.util.List<java.lang.Double> getVelocityList();
- /**
- * <code>repeated double Velocity = 2;</code>
- */
- int getVelocityCount();
- /**
- * <code>repeated double Velocity = 2;</code>
- */
- double getVelocity(int index);
- }
- /**
- * Protobuf type {@code Tango.PMR.Diagnostics.StartDiagnosticsResponse}
- */
- public static final class StartDiagnosticsResponse extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.StartDiagnosticsResponse)
- StartDiagnosticsResponseOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use StartDiagnosticsResponse.newBuilder() to construct.
- private StartDiagnosticsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private StartDiagnosticsResponse() {
- temperature_ = java.util.Collections.emptyList();
- velocity_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private StartDiagnosticsResponse(
- 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 9: {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- temperature_ = new java.util.ArrayList<java.lang.Double>();
- mutable_bitField0_ |= 0x00000001;
- }
- temperature_.add(input.readDouble());
- break;
- }
- case 10: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
- temperature_ = new java.util.ArrayList<java.lang.Double>();
- mutable_bitField0_ |= 0x00000001;
- }
- while (input.getBytesUntilLimit() > 0) {
- temperature_.add(input.readDouble());
- }
- input.popLimit(limit);
- break;
- }
- case 17: {
- if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- velocity_ = new java.util.ArrayList<java.lang.Double>();
- mutable_bitField0_ |= 0x00000002;
- }
- velocity_.add(input.readDouble());
- break;
- }
- case 18: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
- velocity_ = new java.util.ArrayList<java.lang.Double>();
- mutable_bitField0_ |= 0x00000002;
- }
- while (input.getBytesUntilLimit() > 0) {
- velocity_.add(input.readDouble());
- }
- input.popLimit(limit);
- 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 {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- temperature_ = java.util.Collections.unmodifiableList(temperature_);
- }
- if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- velocity_ = java.util.Collections.unmodifiableList(velocity_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.internal_static_Tango_PMR_Diagnostics_StartDiagnosticsResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.internal_static_Tango_PMR_Diagnostics_StartDiagnosticsResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse.class, com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse.Builder.class);
- }
-
- public static final int TEMPERATURE_FIELD_NUMBER = 1;
- private java.util.List<java.lang.Double> temperature_;
- /**
- * <code>repeated double Temperature = 1;</code>
- */
- public java.util.List<java.lang.Double>
- getTemperatureList() {
- return temperature_;
- }
- /**
- * <code>repeated double Temperature = 1;</code>
- */
- public int getTemperatureCount() {
- return temperature_.size();
- }
- /**
- * <code>repeated double Temperature = 1;</code>
- */
- public double getTemperature(int index) {
- return temperature_.get(index);
- }
- private int temperatureMemoizedSerializedSize = -1;
-
- public static final int VELOCITY_FIELD_NUMBER = 2;
- private java.util.List<java.lang.Double> velocity_;
- /**
- * <code>repeated double Velocity = 2;</code>
- */
- public java.util.List<java.lang.Double>
- getVelocityList() {
- return velocity_;
- }
- /**
- * <code>repeated double Velocity = 2;</code>
- */
- public int getVelocityCount() {
- return velocity_.size();
- }
- /**
- * <code>repeated double Velocity = 2;</code>
- */
- public double getVelocity(int index) {
- return velocity_.get(index);
- }
- private int velocityMemoizedSerializedSize = -1;
-
- 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 {
- getSerializedSize();
- if (getTemperatureList().size() > 0) {
- output.writeUInt32NoTag(10);
- output.writeUInt32NoTag(temperatureMemoizedSerializedSize);
- }
- for (int i = 0; i < temperature_.size(); i++) {
- output.writeDoubleNoTag(temperature_.get(i));
- }
- if (getVelocityList().size() > 0) {
- output.writeUInt32NoTag(18);
- output.writeUInt32NoTag(velocityMemoizedSerializedSize);
- }
- for (int i = 0; i < velocity_.size(); i++) {
- output.writeDoubleNoTag(velocity_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- {
- int dataSize = 0;
- dataSize = 8 * getTemperatureList().size();
- size += dataSize;
- if (!getTemperatureList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- temperatureMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- dataSize = 8 * getVelocityList().size();
- size += dataSize;
- if (!getVelocityList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- velocityMemoizedSerializedSize = dataSize;
- }
- 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.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse)) {
- return super.equals(obj);
- }
- com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse other = (com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse) obj;
-
- boolean result = true;
- result = result && getTemperatureList()
- .equals(other.getTemperatureList());
- result = result && getVelocityList()
- .equals(other.getVelocityList());
- 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();
- if (getTemperatureCount() > 0) {
- hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER;
- hash = (53 * hash) + getTemperatureList().hashCode();
- }
- if (getVelocityCount() > 0) {
- hash = (37 * hash) + VELOCITY_FIELD_NUMBER;
- hash = (53 * hash) + getVelocityList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse 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.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse 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.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse 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.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse 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.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse 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.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse 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.Diagnostics.StartDiagnosticsResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.StartDiagnosticsResponse)
- com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.internal_static_Tango_PMR_Diagnostics_StartDiagnosticsResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.internal_static_Tango_PMR_Diagnostics_StartDiagnosticsResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse.class, com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse.Builder.class);
- }
-
- // Construct using com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse.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();
- temperature_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- velocity_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.internal_static_Tango_PMR_Diagnostics_StartDiagnosticsResponse_descriptor;
- }
-
- public com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse getDefaultInstanceForType() {
- return com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse.getDefaultInstance();
- }
-
- public com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse build() {
- com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse buildPartial() {
- com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse result = new com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse(this);
- int from_bitField0_ = bitField0_;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- temperature_ = java.util.Collections.unmodifiableList(temperature_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.temperature_ = temperature_;
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- velocity_ = java.util.Collections.unmodifiableList(velocity_);
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.velocity_ = velocity_;
- 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.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse) {
- return mergeFrom((com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse other) {
- if (other == com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse.getDefaultInstance()) return this;
- if (!other.temperature_.isEmpty()) {
- if (temperature_.isEmpty()) {
- temperature_ = other.temperature_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensureTemperatureIsMutable();
- temperature_.addAll(other.temperature_);
- }
- onChanged();
- }
- if (!other.velocity_.isEmpty()) {
- if (velocity_.isEmpty()) {
- velocity_ = other.velocity_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureVelocityIsMutable();
- velocity_.addAll(other.velocity_);
- }
- onChanged();
- }
- 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.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.util.List<java.lang.Double> temperature_ = java.util.Collections.emptyList();
- private void ensureTemperatureIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
- temperature_ = new java.util.ArrayList<java.lang.Double>(temperature_);
- bitField0_ |= 0x00000001;
- }
- }
- /**
- * <code>repeated double Temperature = 1;</code>
- */
- public java.util.List<java.lang.Double>
- getTemperatureList() {
- return java.util.Collections.unmodifiableList(temperature_);
- }
- /**
- * <code>repeated double Temperature = 1;</code>
- */
- public int getTemperatureCount() {
- return temperature_.size();
- }
- /**
- * <code>repeated double Temperature = 1;</code>
- */
- public double getTemperature(int index) {
- return temperature_.get(index);
- }
- /**
- * <code>repeated double Temperature = 1;</code>
- */
- public Builder setTemperature(
- int index, double value) {
- ensureTemperatureIsMutable();
- temperature_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated double Temperature = 1;</code>
- */
- public Builder addTemperature(double value) {
- ensureTemperatureIsMutable();
- temperature_.add(value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated double Temperature = 1;</code>
- */
- public Builder addAllTemperature(
- java.lang.Iterable<? extends java.lang.Double> values) {
- ensureTemperatureIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, temperature_);
- onChanged();
- return this;
- }
- /**
- * <code>repeated double Temperature = 1;</code>
- */
- public Builder clearTemperature() {
- temperature_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- return this;
- }
-
- private java.util.List<java.lang.Double> velocity_ = java.util.Collections.emptyList();
- private void ensureVelocityIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- velocity_ = new java.util.ArrayList<java.lang.Double>(velocity_);
- bitField0_ |= 0x00000002;
- }
- }
- /**
- * <code>repeated double Velocity = 2;</code>
- */
- public java.util.List<java.lang.Double>
- getVelocityList() {
- return java.util.Collections.unmodifiableList(velocity_);
- }
- /**
- * <code>repeated double Velocity = 2;</code>
- */
- public int getVelocityCount() {
- return velocity_.size();
- }
- /**
- * <code>repeated double Velocity = 2;</code>
- */
- public double getVelocity(int index) {
- return velocity_.get(index);
- }
- /**
- * <code>repeated double Velocity = 2;</code>
- */
- public Builder setVelocity(
- int index, double value) {
- ensureVelocityIsMutable();
- velocity_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated double Velocity = 2;</code>
- */
- public Builder addVelocity(double value) {
- ensureVelocityIsMutable();
- velocity_.add(value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated double Velocity = 2;</code>
- */
- public Builder addAllVelocity(
- java.lang.Iterable<? extends java.lang.Double> values) {
- ensureVelocityIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, velocity_);
- onChanged();
- return this;
- }
- /**
- * <code>repeated double Velocity = 2;</code>
- */
- public Builder clearVelocity() {
- velocity_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- 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.Diagnostics.StartDiagnosticsResponse)
- }
-
- // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.StartDiagnosticsResponse)
- private static final com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse();
- }
-
- public static com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<StartDiagnosticsResponse>
- PARSER = new com.google.protobuf.AbstractParser<StartDiagnosticsResponse>() {
- public StartDiagnosticsResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new StartDiagnosticsResponse(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser<StartDiagnosticsResponse> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<StartDiagnosticsResponse> getParserForType() {
- return PARSER;
- }
-
- public com.twine.tango.pmr.diagnostics.StartDiagnosticsResponseOuterClass.StartDiagnosticsResponse getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_Tango_PMR_Diagnostics_StartDiagnosticsResponse_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_Tango_PMR_Diagnostics_StartDiagnosticsResponse_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\036StartDiagnosticsResponse.proto\022\025Tango." +
- "PMR.Diagnostics\"A\n\030StartDiagnosticsRespo" +
- "nse\022\023\n\013Temperature\030\001 \003(\001\022\020\n\010Velocity\030\002 \003" +
- "(\001B!\n\037com.twine.tango.pmr.diagnosticsb\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_Diagnostics_StartDiagnosticsResponse_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_Tango_PMR_Diagnostics_StartDiagnosticsResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_Tango_PMR_Diagnostics_StartDiagnosticsResponse_descriptor,
- new java.lang.String[] { "Temperature", "Velocity", });
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/Dispenser.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/Dispenser.java
deleted file mode 100644
index e1193c8d3..000000000
--- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/Dispenser.java
+++ /dev/null
@@ -1,1406 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: dispenser.proto
-
-package com.twine.tango.pmr.jobs;
-
-public final class Dispenser {
- private Dispenser() {}
- 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 gradientFlowOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Tango.PMR.Jobs.gradientFlow)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>double NLflow = 1;</code>
- */
- double getNLflow();
- }
- /**
- * Protobuf type {@code Tango.PMR.Jobs.gradientFlow}
- */
- public static final class gradientFlow extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Tango.PMR.Jobs.gradientFlow)
- gradientFlowOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use gradientFlow.newBuilder() to construct.
- private gradientFlow(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private gradientFlow() {
- nLflow_ = 0D;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private gradientFlow(
- 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 9: {
-
- nLflow_ = input.readDouble();
- 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.jobs.Dispenser.internal_static_Tango_PMR_Jobs_gradientFlow_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.jobs.Dispenser.internal_static_Tango_PMR_Jobs_gradientFlow_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.jobs.Dispenser.gradientFlow.class, com.twine.tango.pmr.jobs.Dispenser.gradientFlow.Builder.class);
- }
-
- public static final int NLFLOW_FIELD_NUMBER = 1;
- private double nLflow_;
- /**
- * <code>double NLflow = 1;</code>
- */
- public double getNLflow() {
- return nLflow_;
- }
-
- 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 (nLflow_ != 0D) {
- output.writeDouble(1, nLflow_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (nLflow_ != 0D) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(1, nLflow_);
- }
- 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.jobs.Dispenser.gradientFlow)) {
- return super.equals(obj);
- }
- com.twine.tango.pmr.jobs.Dispenser.gradientFlow other = (com.twine.tango.pmr.jobs.Dispenser.gradientFlow) obj;
-
- boolean result = true;
- result = result && (
- java.lang.Double.doubleToLongBits(getNLflow())
- == java.lang.Double.doubleToLongBits(
- other.getNLflow()));
- 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) + NLFLOW_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getNLflow()));
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.twine.tango.pmr.jobs.Dispenser.gradientFlow parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.Dispenser.gradientFlow 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.jobs.Dispenser.gradientFlow parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.Dispenser.gradientFlow 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.jobs.Dispenser.gradientFlow parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.Dispenser.gradientFlow parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.twine.tango.pmr.jobs.Dispenser.gradientFlow parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.Dispenser.gradientFlow 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.jobs.Dispenser.gradientFlow parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.Dispenser.gradientFlow 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.jobs.Dispenser.gradientFlow parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.Dispenser.gradientFlow 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.jobs.Dispenser.gradientFlow 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.Jobs.gradientFlow}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:Tango.PMR.Jobs.gradientFlow)
- com.twine.tango.pmr.jobs.Dispenser.gradientFlowOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.twine.tango.pmr.jobs.Dispenser.internal_static_Tango_PMR_Jobs_gradientFlow_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.jobs.Dispenser.internal_static_Tango_PMR_Jobs_gradientFlow_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.jobs.Dispenser.gradientFlow.class, com.twine.tango.pmr.jobs.Dispenser.gradientFlow.Builder.class);
- }
-
- // Construct using com.twine.tango.pmr.jobs.Dispenser.gradientFlow.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();
- nLflow_ = 0D;
-
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.twine.tango.pmr.jobs.Dispenser.internal_static_Tango_PMR_Jobs_gradientFlow_descriptor;
- }
-
- public com.twine.tango.pmr.jobs.Dispenser.gradientFlow getDefaultInstanceForType() {
- return com.twine.tango.pmr.jobs.Dispenser.gradientFlow.getDefaultInstance();
- }
-
- public com.twine.tango.pmr.jobs.Dispenser.gradientFlow build() {
- com.twine.tango.pmr.jobs.Dispenser.gradientFlow result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.twine.tango.pmr.jobs.Dispenser.gradientFlow buildPartial() {
- com.twine.tango.pmr.jobs.Dispenser.gradientFlow result = new com.twine.tango.pmr.jobs.Dispenser.gradientFlow(this);
- result.nLflow_ = nLflow_;
- 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.jobs.Dispenser.gradientFlow) {
- return mergeFrom((com.twine.tango.pmr.jobs.Dispenser.gradientFlow)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.twine.tango.pmr.jobs.Dispenser.gradientFlow other) {
- if (other == com.twine.tango.pmr.jobs.Dispenser.gradientFlow.getDefaultInstance()) return this;
- if (other.getNLflow() != 0D) {
- setNLflow(other.getNLflow());
- }
- 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.jobs.Dispenser.gradientFlow parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.twine.tango.pmr.jobs.Dispenser.gradientFlow) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private double nLflow_ ;
- /**
- * <code>double NLflow = 1;</code>
- */
- public double getNLflow() {
- return nLflow_;
- }
- /**
- * <code>double NLflow = 1;</code>
- */
- public Builder setNLflow(double value) {
-
- nLflow_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>double NLflow = 1;</code>
- */
- public Builder clearNLflow() {
-
- nLflow_ = 0D;
- 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.Jobs.gradientFlow)
- }
-
- // @@protoc_insertion_point(class_scope:Tango.PMR.Jobs.gradientFlow)
- private static final com.twine.tango.pmr.jobs.Dispenser.gradientFlow DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.twine.tango.pmr.jobs.Dispenser.gradientFlow();
- }
-
- public static com.twine.tango.pmr.jobs.Dispenser.gradientFlow getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<gradientFlow>
- PARSER = new com.google.protobuf.AbstractParser<gradientFlow>() {
- public gradientFlow parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new gradientFlow(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser<gradientFlow> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<gradientFlow> getParserForType() {
- return PARSER;
- }
-
- public com.twine.tango.pmr.jobs.Dispenser.gradientFlow getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface DispenseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Tango.PMR.Jobs.Dispense)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>int32 Id = 1;</code>
- */
- int getId();
-
- /**
- * <code>double startFlow = 2;</code>
- */
- double getStartFlow();
-
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- java.util.List<com.twine.tango.pmr.jobs.Dispenser.gradientFlow>
- getGradientList();
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- com.twine.tango.pmr.jobs.Dispenser.gradientFlow getGradient(int index);
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- int getGradientCount();
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- java.util.List<? extends com.twine.tango.pmr.jobs.Dispenser.gradientFlowOrBuilder>
- getGradientOrBuilderList();
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- com.twine.tango.pmr.jobs.Dispenser.gradientFlowOrBuilder getGradientOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code Tango.PMR.Jobs.Dispense}
- */
- public static final class Dispense extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Tango.PMR.Jobs.Dispense)
- DispenseOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use Dispense.newBuilder() to construct.
- private Dispense(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private Dispense() {
- id_ = 0;
- startFlow_ = 0D;
- gradient_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Dispense(
- 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: {
-
- id_ = input.readInt32();
- break;
- }
- case 17: {
-
- startFlow_ = input.readDouble();
- break;
- }
- case 26: {
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- gradient_ = new java.util.ArrayList<com.twine.tango.pmr.jobs.Dispenser.gradientFlow>();
- mutable_bitField0_ |= 0x00000004;
- }
- gradient_.add(
- input.readMessage(com.twine.tango.pmr.jobs.Dispenser.gradientFlow.parser(), extensionRegistry));
- 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 {
- if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- gradient_ = java.util.Collections.unmodifiableList(gradient_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.twine.tango.pmr.jobs.Dispenser.internal_static_Tango_PMR_Jobs_Dispense_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.jobs.Dispenser.internal_static_Tango_PMR_Jobs_Dispense_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.jobs.Dispenser.Dispense.class, com.twine.tango.pmr.jobs.Dispenser.Dispense.Builder.class);
- }
-
- private int bitField0_;
- public static final int ID_FIELD_NUMBER = 1;
- private int id_;
- /**
- * <code>int32 Id = 1;</code>
- */
- public int getId() {
- return id_;
- }
-
- public static final int STARTFLOW_FIELD_NUMBER = 2;
- private double startFlow_;
- /**
- * <code>double startFlow = 2;</code>
- */
- public double getStartFlow() {
- return startFlow_;
- }
-
- public static final int GRADIENT_FIELD_NUMBER = 3;
- private java.util.List<com.twine.tango.pmr.jobs.Dispenser.gradientFlow> gradient_;
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public java.util.List<com.twine.tango.pmr.jobs.Dispenser.gradientFlow> getGradientList() {
- return gradient_;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public java.util.List<? extends com.twine.tango.pmr.jobs.Dispenser.gradientFlowOrBuilder>
- getGradientOrBuilderList() {
- return gradient_;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public int getGradientCount() {
- return gradient_.size();
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public com.twine.tango.pmr.jobs.Dispenser.gradientFlow getGradient(int index) {
- return gradient_.get(index);
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public com.twine.tango.pmr.jobs.Dispenser.gradientFlowOrBuilder getGradientOrBuilder(
- int index) {
- return gradient_.get(index);
- }
-
- 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 (id_ != 0) {
- output.writeInt32(1, id_);
- }
- if (startFlow_ != 0D) {
- output.writeDouble(2, startFlow_);
- }
- for (int i = 0; i < gradient_.size(); i++) {
- output.writeMessage(3, gradient_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (id_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, id_);
- }
- if (startFlow_ != 0D) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(2, startFlow_);
- }
- for (int i = 0; i < gradient_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, gradient_.get(i));
- }
- 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.jobs.Dispenser.Dispense)) {
- return super.equals(obj);
- }
- com.twine.tango.pmr.jobs.Dispenser.Dispense other = (com.twine.tango.pmr.jobs.Dispenser.Dispense) obj;
-
- boolean result = true;
- result = result && (getId()
- == other.getId());
- result = result && (
- java.lang.Double.doubleToLongBits(getStartFlow())
- == java.lang.Double.doubleToLongBits(
- other.getStartFlow()));
- result = result && getGradientList()
- .equals(other.getGradientList());
- 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) + ID_FIELD_NUMBER;
- hash = (53 * hash) + getId();
- hash = (37 * hash) + STARTFLOW_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getStartFlow()));
- if (getGradientCount() > 0) {
- hash = (37 * hash) + GRADIENT_FIELD_NUMBER;
- hash = (53 * hash) + getGradientList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.twine.tango.pmr.jobs.Dispenser.Dispense parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.Dispenser.Dispense 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.jobs.Dispenser.Dispense parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.Dispenser.Dispense 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.jobs.Dispenser.Dispense parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.Dispenser.Dispense parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.twine.tango.pmr.jobs.Dispenser.Dispense parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.Dispenser.Dispense 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.jobs.Dispenser.Dispense parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.Dispenser.Dispense 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.jobs.Dispenser.Dispense parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.Dispenser.Dispense 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.jobs.Dispenser.Dispense 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.Jobs.Dispense}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:Tango.PMR.Jobs.Dispense)
- com.twine.tango.pmr.jobs.Dispenser.DispenseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.twine.tango.pmr.jobs.Dispenser.internal_static_Tango_PMR_Jobs_Dispense_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.jobs.Dispenser.internal_static_Tango_PMR_Jobs_Dispense_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.jobs.Dispenser.Dispense.class, com.twine.tango.pmr.jobs.Dispenser.Dispense.Builder.class);
- }
-
- // Construct using com.twine.tango.pmr.jobs.Dispenser.Dispense.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- getGradientFieldBuilder();
- }
- }
- public Builder clear() {
- super.clear();
- id_ = 0;
-
- startFlow_ = 0D;
-
- if (gradientBuilder_ == null) {
- gradient_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- gradientBuilder_.clear();
- }
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.twine.tango.pmr.jobs.Dispenser.internal_static_Tango_PMR_Jobs_Dispense_descriptor;
- }
-
- public com.twine.tango.pmr.jobs.Dispenser.Dispense getDefaultInstanceForType() {
- return com.twine.tango.pmr.jobs.Dispenser.Dispense.getDefaultInstance();
- }
-
- public com.twine.tango.pmr.jobs.Dispenser.Dispense build() {
- com.twine.tango.pmr.jobs.Dispenser.Dispense result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.twine.tango.pmr.jobs.Dispenser.Dispense buildPartial() {
- com.twine.tango.pmr.jobs.Dispenser.Dispense result = new com.twine.tango.pmr.jobs.Dispenser.Dispense(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- result.id_ = id_;
- result.startFlow_ = startFlow_;
- if (gradientBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- gradient_ = java.util.Collections.unmodifiableList(gradient_);
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.gradient_ = gradient_;
- } else {
- result.gradient_ = gradientBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- 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.jobs.Dispenser.Dispense) {
- return mergeFrom((com.twine.tango.pmr.jobs.Dispenser.Dispense)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.twine.tango.pmr.jobs.Dispenser.Dispense other) {
- if (other == com.twine.tango.pmr.jobs.Dispenser.Dispense.getDefaultInstance()) return this;
- if (other.getId() != 0) {
- setId(other.getId());
- }
- if (other.getStartFlow() != 0D) {
- setStartFlow(other.getStartFlow());
- }
- if (gradientBuilder_ == null) {
- if (!other.gradient_.isEmpty()) {
- if (gradient_.isEmpty()) {
- gradient_ = other.gradient_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureGradientIsMutable();
- gradient_.addAll(other.gradient_);
- }
- onChanged();
- }
- } else {
- if (!other.gradient_.isEmpty()) {
- if (gradientBuilder_.isEmpty()) {
- gradientBuilder_.dispose();
- gradientBuilder_ = null;
- gradient_ = other.gradient_;
- bitField0_ = (bitField0_ & ~0x00000004);
- gradientBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getGradientFieldBuilder() : null;
- } else {
- gradientBuilder_.addAllMessages(other.gradient_);
- }
- }
- }
- 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.jobs.Dispenser.Dispense parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.twine.tango.pmr.jobs.Dispenser.Dispense) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private int id_ ;
- /**
- * <code>int32 Id = 1;</code>
- */
- public int getId() {
- return id_;
- }
- /**
- * <code>int32 Id = 1;</code>
- */
- public Builder setId(int value) {
-
- id_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>int32 Id = 1;</code>
- */
- public Builder clearId() {
-
- id_ = 0;
- onChanged();
- return this;
- }
-
- private double startFlow_ ;
- /**
- * <code>double startFlow = 2;</code>
- */
- public double getStartFlow() {
- return startFlow_;
- }
- /**
- * <code>double startFlow = 2;</code>
- */
- public Builder setStartFlow(double value) {
-
- startFlow_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>double startFlow = 2;</code>
- */
- public Builder clearStartFlow() {
-
- startFlow_ = 0D;
- onChanged();
- return this;
- }
-
- private java.util.List<com.twine.tango.pmr.jobs.Dispenser.gradientFlow> gradient_ =
- java.util.Collections.emptyList();
- private void ensureGradientIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- gradient_ = new java.util.ArrayList<com.twine.tango.pmr.jobs.Dispenser.gradientFlow>(gradient_);
- bitField0_ |= 0x00000004;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.twine.tango.pmr.jobs.Dispenser.gradientFlow, com.twine.tango.pmr.jobs.Dispenser.gradientFlow.Builder, com.twine.tango.pmr.jobs.Dispenser.gradientFlowOrBuilder> gradientBuilder_;
-
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public java.util.List<com.twine.tango.pmr.jobs.Dispenser.gradientFlow> getGradientList() {
- if (gradientBuilder_ == null) {
- return java.util.Collections.unmodifiableList(gradient_);
- } else {
- return gradientBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public int getGradientCount() {
- if (gradientBuilder_ == null) {
- return gradient_.size();
- } else {
- return gradientBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public com.twine.tango.pmr.jobs.Dispenser.gradientFlow getGradient(int index) {
- if (gradientBuilder_ == null) {
- return gradient_.get(index);
- } else {
- return gradientBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public Builder setGradient(
- int index, com.twine.tango.pmr.jobs.Dispenser.gradientFlow value) {
- if (gradientBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGradientIsMutable();
- gradient_.set(index, value);
- onChanged();
- } else {
- gradientBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public Builder setGradient(
- int index, com.twine.tango.pmr.jobs.Dispenser.gradientFlow.Builder builderForValue) {
- if (gradientBuilder_ == null) {
- ensureGradientIsMutable();
- gradient_.set(index, builderForValue.build());
- onChanged();
- } else {
- gradientBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public Builder addGradient(com.twine.tango.pmr.jobs.Dispenser.gradientFlow value) {
- if (gradientBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGradientIsMutable();
- gradient_.add(value);
- onChanged();
- } else {
- gradientBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public Builder addGradient(
- int index, com.twine.tango.pmr.jobs.Dispenser.gradientFlow value) {
- if (gradientBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGradientIsMutable();
- gradient_.add(index, value);
- onChanged();
- } else {
- gradientBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public Builder addGradient(
- com.twine.tango.pmr.jobs.Dispenser.gradientFlow.Builder builderForValue) {
- if (gradientBuilder_ == null) {
- ensureGradientIsMutable();
- gradient_.add(builderForValue.build());
- onChanged();
- } else {
- gradientBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public Builder addGradient(
- int index, com.twine.tango.pmr.jobs.Dispenser.gradientFlow.Builder builderForValue) {
- if (gradientBuilder_ == null) {
- ensureGradientIsMutable();
- gradient_.add(index, builderForValue.build());
- onChanged();
- } else {
- gradientBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public Builder addAllGradient(
- java.lang.Iterable<? extends com.twine.tango.pmr.jobs.Dispenser.gradientFlow> values) {
- if (gradientBuilder_ == null) {
- ensureGradientIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, gradient_);
- onChanged();
- } else {
- gradientBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public Builder clearGradient() {
- if (gradientBuilder_ == null) {
- gradient_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- gradientBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public Builder removeGradient(int index) {
- if (gradientBuilder_ == null) {
- ensureGradientIsMutable();
- gradient_.remove(index);
- onChanged();
- } else {
- gradientBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public com.twine.tango.pmr.jobs.Dispenser.gradientFlow.Builder getGradientBuilder(
- int index) {
- return getGradientFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public com.twine.tango.pmr.jobs.Dispenser.gradientFlowOrBuilder getGradientOrBuilder(
- int index) {
- if (gradientBuilder_ == null) {
- return gradient_.get(index); } else {
- return gradientBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public java.util.List<? extends com.twine.tango.pmr.jobs.Dispenser.gradientFlowOrBuilder>
- getGradientOrBuilderList() {
- if (gradientBuilder_ != null) {
- return gradientBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(gradient_);
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public com.twine.tango.pmr.jobs.Dispenser.gradientFlow.Builder addGradientBuilder() {
- return getGradientFieldBuilder().addBuilder(
- com.twine.tango.pmr.jobs.Dispenser.gradientFlow.getDefaultInstance());
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public com.twine.tango.pmr.jobs.Dispenser.gradientFlow.Builder addGradientBuilder(
- int index) {
- return getGradientFieldBuilder().addBuilder(
- index, com.twine.tango.pmr.jobs.Dispenser.gradientFlow.getDefaultInstance());
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.gradientFlow gradient = 3;</code>
- */
- public java.util.List<com.twine.tango.pmr.jobs.Dispenser.gradientFlow.Builder>
- getGradientBuilderList() {
- return getGradientFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.twine.tango.pmr.jobs.Dispenser.gradientFlow, com.twine.tango.pmr.jobs.Dispenser.gradientFlow.Builder, com.twine.tango.pmr.jobs.Dispenser.gradientFlowOrBuilder>
- getGradientFieldBuilder() {
- if (gradientBuilder_ == null) {
- gradientBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
- com.twine.tango.pmr.jobs.Dispenser.gradientFlow, com.twine.tango.pmr.jobs.Dispenser.gradientFlow.Builder, com.twine.tango.pmr.jobs.Dispenser.gradientFlowOrBuilder>(
- gradient_,
- ((bitField0_ & 0x00000004) == 0x00000004),
- getParentForChildren(),
- isClean());
- gradient_ = null;
- }
- return gradientBuilder_;
- }
- 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.Jobs.Dispense)
- }
-
- // @@protoc_insertion_point(class_scope:Tango.PMR.Jobs.Dispense)
- private static final com.twine.tango.pmr.jobs.Dispenser.Dispense DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.twine.tango.pmr.jobs.Dispenser.Dispense();
- }
-
- public static com.twine.tango.pmr.jobs.Dispenser.Dispense getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<Dispense>
- PARSER = new com.google.protobuf.AbstractParser<Dispense>() {
- public Dispense parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Dispense(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser<Dispense> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<Dispense> getParserForType() {
- return PARSER;
- }
-
- public com.twine.tango.pmr.jobs.Dispenser.Dispense getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_Tango_PMR_Jobs_gradientFlow_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_Tango_PMR_Jobs_gradientFlow_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_Tango_PMR_Jobs_Dispense_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_Tango_PMR_Jobs_Dispense_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\017dispenser.proto\022\016Tango.PMR.Jobs\"\036\n\014gra" +
- "dientFlow\022\016\n\006NLflow\030\001 \001(\001\"Y\n\010Dispense\022\n\n" +
- "\002Id\030\001 \001(\005\022\021\n\tstartFlow\030\002 \001(\001\022.\n\010gradient" +
- "\030\003 \003(\0132\034.Tango.PMR.Jobs.gradientFlowB\032\n\030" +
- "com.twine.tango.pmr.jobsb\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_Jobs_gradientFlow_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_Tango_PMR_Jobs_gradientFlow_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_Tango_PMR_Jobs_gradientFlow_descriptor,
- new java.lang.String[] { "NLflow", });
- internal_static_Tango_PMR_Jobs_Dispense_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_Tango_PMR_Jobs_Dispense_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_Tango_PMR_Jobs_Dispense_descriptor,
- new java.lang.String[] { "Id", "StartFlow", "Gradient", });
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/JobOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/JobOuterClass.java
deleted file mode 100644
index 08cd603b0..000000000
--- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/JobOuterClass.java
+++ /dev/null
@@ -1,1856 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: Job.proto
-
-package com.twine.tango.pmr.jobs;
-
-public final class JobOuterClass {
- private JobOuterClass() {}
- 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 JobOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Tango.PMR.Jobs.Job)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>string Name = 1;</code>
- */
- java.lang.String getName();
- /**
- * <code>string Name = 1;</code>
- */
- com.google.protobuf.ByteString
- getNameBytes();
-
- /**
- * <pre>
- *does user have chosen inter segment enable option
- * </pre>
- *
- * <code>bool interSegEnable = 2;</code>
- */
- boolean getInterSegEnable();
-
- /**
- * <pre>
- *does user have chosen distanse to spool enable option
- * </pre>
- *
- * <code>bool distanseToSpoolEnable = 3;</code>
- */
- boolean getDistanseToSpoolEnable();
-
- /**
- * <pre>
- *had distance to spool finished?
- * </pre>
- *
- * <code>uint32 distanceToSpoolLength = 4;</code>
- */
- int getDistanceToSpoolLength();
-
- /**
- * <pre>
- *repeated temperatureSensorsSetting[Dryer,Head, Mixer]; //temp sensor wanted temperaure in celzius
- *SCREW:
- * </pre>
- *
- * <code>uint32 startOffsetPulses = 5;</code>
- */
- int getStartOffsetPulses();
-
- /**
- * <code>uint32 spoolBackingRate = 6;</code>
- */
- int getSpoolBackingRate();
-
- /**
- * <code>uint32 segmentOffsetPulses = 7;</code>
- */
- int getSegmentOffsetPulses();
-
- /**
- * <code>uint32 milimetersPerRotation = 8;</code>
- */
- int getMilimetersPerRotation();
-
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- java.util.List<com.twine.tango.pmr.jobs.SegmentOuterClass.Segment>
- getSegmentsList();
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- com.twine.tango.pmr.jobs.SegmentOuterClass.Segment getSegments(int index);
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- int getSegmentsCount();
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- java.util.List<? extends com.twine.tango.pmr.jobs.SegmentOuterClass.SegmentOrBuilder>
- getSegmentsOrBuilderList();
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- com.twine.tango.pmr.jobs.SegmentOuterClass.SegmentOrBuilder getSegmentsOrBuilder(
- int index);
-
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- java.util.List<com.twine.tango.pmr.jobs.Motor.MotorConfig>
- getMotorsList();
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- com.twine.tango.pmr.jobs.Motor.MotorConfig getMotors(int index);
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- int getMotorsCount();
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- java.util.List<? extends com.twine.tango.pmr.jobs.Motor.MotorConfigOrBuilder>
- getMotorsOrBuilderList();
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- com.twine.tango.pmr.jobs.Motor.MotorConfigOrBuilder getMotorsOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code Tango.PMR.Jobs.Job}
- */
- public static final class Job extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Tango.PMR.Jobs.Job)
- JobOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use Job.newBuilder() to construct.
- private Job(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private Job() {
- name_ = "";
- interSegEnable_ = false;
- distanseToSpoolEnable_ = false;
- distanceToSpoolLength_ = 0;
- startOffsetPulses_ = 0;
- spoolBackingRate_ = 0;
- segmentOffsetPulses_ = 0;
- milimetersPerRotation_ = 0;
- segments_ = java.util.Collections.emptyList();
- motors_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Job(
- 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 10: {
- java.lang.String s = input.readStringRequireUtf8();
-
- name_ = s;
- break;
- }
- case 16: {
-
- interSegEnable_ = input.readBool();
- break;
- }
- case 24: {
-
- distanseToSpoolEnable_ = input.readBool();
- break;
- }
- case 32: {
-
- distanceToSpoolLength_ = input.readUInt32();
- break;
- }
- case 40: {
-
- startOffsetPulses_ = input.readUInt32();
- break;
- }
- case 48: {
-
- spoolBackingRate_ = input.readUInt32();
- break;
- }
- case 56: {
-
- segmentOffsetPulses_ = input.readUInt32();
- break;
- }
- case 64: {
-
- milimetersPerRotation_ = input.readUInt32();
- break;
- }
- case 74: {
- if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
- segments_ = new java.util.ArrayList<com.twine.tango.pmr.jobs.SegmentOuterClass.Segment>();
- mutable_bitField0_ |= 0x00000100;
- }
- segments_.add(
- input.readMessage(com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.parser(), extensionRegistry));
- break;
- }
- case 82: {
- if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
- motors_ = new java.util.ArrayList<com.twine.tango.pmr.jobs.Motor.MotorConfig>();
- mutable_bitField0_ |= 0x00000200;
- }
- motors_.add(
- input.readMessage(com.twine.tango.pmr.jobs.Motor.MotorConfig.parser(), extensionRegistry));
- 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 {
- if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
- segments_ = java.util.Collections.unmodifiableList(segments_);
- }
- if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
- motors_ = java.util.Collections.unmodifiableList(motors_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.twine.tango.pmr.jobs.JobOuterClass.internal_static_Tango_PMR_Jobs_Job_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.jobs.JobOuterClass.internal_static_Tango_PMR_Jobs_Job_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.jobs.JobOuterClass.Job.class, com.twine.tango.pmr.jobs.JobOuterClass.Job.Builder.class);
- }
-
- private int bitField0_;
- public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
- /**
- * <code>string Name = 1;</code>
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- name_ = s;
- return s;
- }
- }
- /**
- * <code>string Name = 1;</code>
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int INTERSEGENABLE_FIELD_NUMBER = 2;
- private boolean interSegEnable_;
- /**
- * <pre>
- *does user have chosen inter segment enable option
- * </pre>
- *
- * <code>bool interSegEnable = 2;</code>
- */
- public boolean getInterSegEnable() {
- return interSegEnable_;
- }
-
- public static final int DISTANSETOSPOOLENABLE_FIELD_NUMBER = 3;
- private boolean distanseToSpoolEnable_;
- /**
- * <pre>
- *does user have chosen distanse to spool enable option
- * </pre>
- *
- * <code>bool distanseToSpoolEnable = 3;</code>
- */
- public boolean getDistanseToSpoolEnable() {
- return distanseToSpoolEnable_;
- }
-
- public static final int DISTANCETOSPOOLLENGTH_FIELD_NUMBER = 4;
- private int distanceToSpoolLength_;
- /**
- * <pre>
- *had distance to spool finished?
- * </pre>
- *
- * <code>uint32 distanceToSpoolLength = 4;</code>
- */
- public int getDistanceToSpoolLength() {
- return distanceToSpoolLength_;
- }
-
- public static final int STARTOFFSETPULSES_FIELD_NUMBER = 5;
- private int startOffsetPulses_;
- /**
- * <pre>
- *repeated temperatureSensorsSetting[Dryer,Head, Mixer]; //temp sensor wanted temperaure in celzius
- *SCREW:
- * </pre>
- *
- * <code>uint32 startOffsetPulses = 5;</code>
- */
- public int getStartOffsetPulses() {
- return startOffsetPulses_;
- }
-
- public static final int SPOOLBACKINGRATE_FIELD_NUMBER = 6;
- private int spoolBackingRate_;
- /**
- * <code>uint32 spoolBackingRate = 6;</code>
- */
- public int getSpoolBackingRate() {
- return spoolBackingRate_;
- }
-
- public static final int SEGMENTOFFSETPULSES_FIELD_NUMBER = 7;
- private int segmentOffsetPulses_;
- /**
- * <code>uint32 segmentOffsetPulses = 7;</code>
- */
- public int getSegmentOffsetPulses() {
- return segmentOffsetPulses_;
- }
-
- public static final int MILIMETERSPERROTATION_FIELD_NUMBER = 8;
- private int milimetersPerRotation_;
- /**
- * <code>uint32 milimetersPerRotation = 8;</code>
- */
- public int getMilimetersPerRotation() {
- return milimetersPerRotation_;
- }
-
- public static final int SEGMENTS_FIELD_NUMBER = 9;
- private java.util.List<com.twine.tango.pmr.jobs.SegmentOuterClass.Segment> segments_;
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public java.util.List<com.twine.tango.pmr.jobs.SegmentOuterClass.Segment> getSegmentsList() {
- return segments_;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public java.util.List<? extends com.twine.tango.pmr.jobs.SegmentOuterClass.SegmentOrBuilder>
- getSegmentsOrBuilderList() {
- return segments_;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public int getSegmentsCount() {
- return segments_.size();
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public com.twine.tango.pmr.jobs.SegmentOuterClass.Segment getSegments(int index) {
- return segments_.get(index);
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public com.twine.tango.pmr.jobs.SegmentOuterClass.SegmentOrBuilder getSegmentsOrBuilder(
- int index) {
- return segments_.get(index);
- }
-
- public static final int MOTORS_FIELD_NUMBER = 10;
- private java.util.List<com.twine.tango.pmr.jobs.Motor.MotorConfig> motors_;
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public java.util.List<com.twine.tango.pmr.jobs.Motor.MotorConfig> getMotorsList() {
- return motors_;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public java.util.List<? extends com.twine.tango.pmr.jobs.Motor.MotorConfigOrBuilder>
- getMotorsOrBuilderList() {
- return motors_;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public int getMotorsCount() {
- return motors_.size();
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public com.twine.tango.pmr.jobs.Motor.MotorConfig getMotors(int index) {
- return motors_.get(index);
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public com.twine.tango.pmr.jobs.Motor.MotorConfigOrBuilder getMotorsOrBuilder(
- int index) {
- return motors_.get(index);
- }
-
- 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 (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
- }
- if (interSegEnable_ != false) {
- output.writeBool(2, interSegEnable_);
- }
- if (distanseToSpoolEnable_ != false) {
- output.writeBool(3, distanseToSpoolEnable_);
- }
- if (distanceToSpoolLength_ != 0) {
- output.writeUInt32(4, distanceToSpoolLength_);
- }
- if (startOffsetPulses_ != 0) {
- output.writeUInt32(5, startOffsetPulses_);
- }
- if (spoolBackingRate_ != 0) {
- output.writeUInt32(6, spoolBackingRate_);
- }
- if (segmentOffsetPulses_ != 0) {
- output.writeUInt32(7, segmentOffsetPulses_);
- }
- if (milimetersPerRotation_ != 0) {
- output.writeUInt32(8, milimetersPerRotation_);
- }
- for (int i = 0; i < segments_.size(); i++) {
- output.writeMessage(9, segments_.get(i));
- }
- for (int i = 0; i < motors_.size(); i++) {
- output.writeMessage(10, motors_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
- }
- if (interSegEnable_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(2, interSegEnable_);
- }
- if (distanseToSpoolEnable_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(3, distanseToSpoolEnable_);
- }
- if (distanceToSpoolLength_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(4, distanceToSpoolLength_);
- }
- if (startOffsetPulses_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(5, startOffsetPulses_);
- }
- if (spoolBackingRate_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(6, spoolBackingRate_);
- }
- if (segmentOffsetPulses_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(7, segmentOffsetPulses_);
- }
- if (milimetersPerRotation_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(8, milimetersPerRotation_);
- }
- for (int i = 0; i < segments_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(9, segments_.get(i));
- }
- for (int i = 0; i < motors_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(10, motors_.get(i));
- }
- 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.jobs.JobOuterClass.Job)) {
- return super.equals(obj);
- }
- com.twine.tango.pmr.jobs.JobOuterClass.Job other = (com.twine.tango.pmr.jobs.JobOuterClass.Job) obj;
-
- boolean result = true;
- result = result && getName()
- .equals(other.getName());
- result = result && (getInterSegEnable()
- == other.getInterSegEnable());
- result = result && (getDistanseToSpoolEnable()
- == other.getDistanseToSpoolEnable());
- result = result && (getDistanceToSpoolLength()
- == other.getDistanceToSpoolLength());
- result = result && (getStartOffsetPulses()
- == other.getStartOffsetPulses());
- result = result && (getSpoolBackingRate()
- == other.getSpoolBackingRate());
- result = result && (getSegmentOffsetPulses()
- == other.getSegmentOffsetPulses());
- result = result && (getMilimetersPerRotation()
- == other.getMilimetersPerRotation());
- result = result && getSegmentsList()
- .equals(other.getSegmentsList());
- result = result && getMotorsList()
- .equals(other.getMotorsList());
- 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) + NAME_FIELD_NUMBER;
- hash = (53 * hash) + getName().hashCode();
- hash = (37 * hash) + INTERSEGENABLE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getInterSegEnable());
- hash = (37 * hash) + DISTANSETOSPOOLENABLE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getDistanseToSpoolEnable());
- hash = (37 * hash) + DISTANCETOSPOOLLENGTH_FIELD_NUMBER;
- hash = (53 * hash) + getDistanceToSpoolLength();
- hash = (37 * hash) + STARTOFFSETPULSES_FIELD_NUMBER;
- hash = (53 * hash) + getStartOffsetPulses();
- hash = (37 * hash) + SPOOLBACKINGRATE_FIELD_NUMBER;
- hash = (53 * hash) + getSpoolBackingRate();
- hash = (37 * hash) + SEGMENTOFFSETPULSES_FIELD_NUMBER;
- hash = (53 * hash) + getSegmentOffsetPulses();
- hash = (37 * hash) + MILIMETERSPERROTATION_FIELD_NUMBER;
- hash = (53 * hash) + getMilimetersPerRotation();
- if (getSegmentsCount() > 0) {
- hash = (37 * hash) + SEGMENTS_FIELD_NUMBER;
- hash = (53 * hash) + getSegmentsList().hashCode();
- }
- if (getMotorsCount() > 0) {
- hash = (37 * hash) + MOTORS_FIELD_NUMBER;
- hash = (53 * hash) + getMotorsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.twine.tango.pmr.jobs.JobOuterClass.Job parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.JobOuterClass.Job 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.jobs.JobOuterClass.Job parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.JobOuterClass.Job 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.jobs.JobOuterClass.Job parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.JobOuterClass.Job parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.twine.tango.pmr.jobs.JobOuterClass.Job parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.JobOuterClass.Job 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.jobs.JobOuterClass.Job parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.JobOuterClass.Job 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.jobs.JobOuterClass.Job parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.JobOuterClass.Job 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.jobs.JobOuterClass.Job 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.Jobs.Job}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:Tango.PMR.Jobs.Job)
- com.twine.tango.pmr.jobs.JobOuterClass.JobOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.twine.tango.pmr.jobs.JobOuterClass.internal_static_Tango_PMR_Jobs_Job_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.jobs.JobOuterClass.internal_static_Tango_PMR_Jobs_Job_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.jobs.JobOuterClass.Job.class, com.twine.tango.pmr.jobs.JobOuterClass.Job.Builder.class);
- }
-
- // Construct using com.twine.tango.pmr.jobs.JobOuterClass.Job.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- getSegmentsFieldBuilder();
- getMotorsFieldBuilder();
- }
- }
- public Builder clear() {
- super.clear();
- name_ = "";
-
- interSegEnable_ = false;
-
- distanseToSpoolEnable_ = false;
-
- distanceToSpoolLength_ = 0;
-
- startOffsetPulses_ = 0;
-
- spoolBackingRate_ = 0;
-
- segmentOffsetPulses_ = 0;
-
- milimetersPerRotation_ = 0;
-
- if (segmentsBuilder_ == null) {
- segments_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
- } else {
- segmentsBuilder_.clear();
- }
- if (motorsBuilder_ == null) {
- motors_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000200);
- } else {
- motorsBuilder_.clear();
- }
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.twine.tango.pmr.jobs.JobOuterClass.internal_static_Tango_PMR_Jobs_Job_descriptor;
- }
-
- public com.twine.tango.pmr.jobs.JobOuterClass.Job getDefaultInstanceForType() {
- return com.twine.tango.pmr.jobs.JobOuterClass.Job.getDefaultInstance();
- }
-
- public com.twine.tango.pmr.jobs.JobOuterClass.Job build() {
- com.twine.tango.pmr.jobs.JobOuterClass.Job result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.twine.tango.pmr.jobs.JobOuterClass.Job buildPartial() {
- com.twine.tango.pmr.jobs.JobOuterClass.Job result = new com.twine.tango.pmr.jobs.JobOuterClass.Job(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- result.name_ = name_;
- result.interSegEnable_ = interSegEnable_;
- result.distanseToSpoolEnable_ = distanseToSpoolEnable_;
- result.distanceToSpoolLength_ = distanceToSpoolLength_;
- result.startOffsetPulses_ = startOffsetPulses_;
- result.spoolBackingRate_ = spoolBackingRate_;
- result.segmentOffsetPulses_ = segmentOffsetPulses_;
- result.milimetersPerRotation_ = milimetersPerRotation_;
- if (segmentsBuilder_ == null) {
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- segments_ = java.util.Collections.unmodifiableList(segments_);
- bitField0_ = (bitField0_ & ~0x00000100);
- }
- result.segments_ = segments_;
- } else {
- result.segments_ = segmentsBuilder_.build();
- }
- if (motorsBuilder_ == null) {
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- motors_ = java.util.Collections.unmodifiableList(motors_);
- bitField0_ = (bitField0_ & ~0x00000200);
- }
- result.motors_ = motors_;
- } else {
- result.motors_ = motorsBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- 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.jobs.JobOuterClass.Job) {
- return mergeFrom((com.twine.tango.pmr.jobs.JobOuterClass.Job)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.twine.tango.pmr.jobs.JobOuterClass.Job other) {
- if (other == com.twine.tango.pmr.jobs.JobOuterClass.Job.getDefaultInstance()) return this;
- if (!other.getName().isEmpty()) {
- name_ = other.name_;
- onChanged();
- }
- if (other.getInterSegEnable() != false) {
- setInterSegEnable(other.getInterSegEnable());
- }
- if (other.getDistanseToSpoolEnable() != false) {
- setDistanseToSpoolEnable(other.getDistanseToSpoolEnable());
- }
- if (other.getDistanceToSpoolLength() != 0) {
- setDistanceToSpoolLength(other.getDistanceToSpoolLength());
- }
- if (other.getStartOffsetPulses() != 0) {
- setStartOffsetPulses(other.getStartOffsetPulses());
- }
- if (other.getSpoolBackingRate() != 0) {
- setSpoolBackingRate(other.getSpoolBackingRate());
- }
- if (other.getSegmentOffsetPulses() != 0) {
- setSegmentOffsetPulses(other.getSegmentOffsetPulses());
- }
- if (other.getMilimetersPerRotation() != 0) {
- setMilimetersPerRotation(other.getMilimetersPerRotation());
- }
- if (segmentsBuilder_ == null) {
- if (!other.segments_.isEmpty()) {
- if (segments_.isEmpty()) {
- segments_ = other.segments_;
- bitField0_ = (bitField0_ & ~0x00000100);
- } else {
- ensureSegmentsIsMutable();
- segments_.addAll(other.segments_);
- }
- onChanged();
- }
- } else {
- if (!other.segments_.isEmpty()) {
- if (segmentsBuilder_.isEmpty()) {
- segmentsBuilder_.dispose();
- segmentsBuilder_ = null;
- segments_ = other.segments_;
- bitField0_ = (bitField0_ & ~0x00000100);
- segmentsBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getSegmentsFieldBuilder() : null;
- } else {
- segmentsBuilder_.addAllMessages(other.segments_);
- }
- }
- }
- if (motorsBuilder_ == null) {
- if (!other.motors_.isEmpty()) {
- if (motors_.isEmpty()) {
- motors_ = other.motors_;
- bitField0_ = (bitField0_ & ~0x00000200);
- } else {
- ensureMotorsIsMutable();
- motors_.addAll(other.motors_);
- }
- onChanged();
- }
- } else {
- if (!other.motors_.isEmpty()) {
- if (motorsBuilder_.isEmpty()) {
- motorsBuilder_.dispose();
- motorsBuilder_ = null;
- motors_ = other.motors_;
- bitField0_ = (bitField0_ & ~0x00000200);
- motorsBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getMotorsFieldBuilder() : null;
- } else {
- motorsBuilder_.addAllMessages(other.motors_);
- }
- }
- }
- 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.jobs.JobOuterClass.Job parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.twine.tango.pmr.jobs.JobOuterClass.Job) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.lang.Object name_ = "";
- /**
- * <code>string Name = 1;</code>
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- name_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>string Name = 1;</code>
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>string Name = 1;</code>
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- name_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>string Name = 1;</code>
- */
- public Builder clearName() {
-
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- * <code>string Name = 1;</code>
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- name_ = value;
- onChanged();
- return this;
- }
-
- private boolean interSegEnable_ ;
- /**
- * <pre>
- *does user have chosen inter segment enable option
- * </pre>
- *
- * <code>bool interSegEnable = 2;</code>
- */
- public boolean getInterSegEnable() {
- return interSegEnable_;
- }
- /**
- * <pre>
- *does user have chosen inter segment enable option
- * </pre>
- *
- * <code>bool interSegEnable = 2;</code>
- */
- public Builder setInterSegEnable(boolean value) {
-
- interSegEnable_ = value;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *does user have chosen inter segment enable option
- * </pre>
- *
- * <code>bool interSegEnable = 2;</code>
- */
- public Builder clearInterSegEnable() {
-
- interSegEnable_ = false;
- onChanged();
- return this;
- }
-
- private boolean distanseToSpoolEnable_ ;
- /**
- * <pre>
- *does user have chosen distanse to spool enable option
- * </pre>
- *
- * <code>bool distanseToSpoolEnable = 3;</code>
- */
- public boolean getDistanseToSpoolEnable() {
- return distanseToSpoolEnable_;
- }
- /**
- * <pre>
- *does user have chosen distanse to spool enable option
- * </pre>
- *
- * <code>bool distanseToSpoolEnable = 3;</code>
- */
- public Builder setDistanseToSpoolEnable(boolean value) {
-
- distanseToSpoolEnable_ = value;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *does user have chosen distanse to spool enable option
- * </pre>
- *
- * <code>bool distanseToSpoolEnable = 3;</code>
- */
- public Builder clearDistanseToSpoolEnable() {
-
- distanseToSpoolEnable_ = false;
- onChanged();
- return this;
- }
-
- private int distanceToSpoolLength_ ;
- /**
- * <pre>
- *had distance to spool finished?
- * </pre>
- *
- * <code>uint32 distanceToSpoolLength = 4;</code>
- */
- public int getDistanceToSpoolLength() {
- return distanceToSpoolLength_;
- }
- /**
- * <pre>
- *had distance to spool finished?
- * </pre>
- *
- * <code>uint32 distanceToSpoolLength = 4;</code>
- */
- public Builder setDistanceToSpoolLength(int value) {
-
- distanceToSpoolLength_ = value;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *had distance to spool finished?
- * </pre>
- *
- * <code>uint32 distanceToSpoolLength = 4;</code>
- */
- public Builder clearDistanceToSpoolLength() {
-
- distanceToSpoolLength_ = 0;
- onChanged();
- return this;
- }
-
- private int startOffsetPulses_ ;
- /**
- * <pre>
- *repeated temperatureSensorsSetting[Dryer,Head, Mixer]; //temp sensor wanted temperaure in celzius
- *SCREW:
- * </pre>
- *
- * <code>uint32 startOffsetPulses = 5;</code>
- */
- public int getStartOffsetPulses() {
- return startOffsetPulses_;
- }
- /**
- * <pre>
- *repeated temperatureSensorsSetting[Dryer,Head, Mixer]; //temp sensor wanted temperaure in celzius
- *SCREW:
- * </pre>
- *
- * <code>uint32 startOffsetPulses = 5;</code>
- */
- public Builder setStartOffsetPulses(int value) {
-
- startOffsetPulses_ = value;
- onChanged();
- return this;
- }
- /**
- * <pre>
- *repeated temperatureSensorsSetting[Dryer,Head, Mixer]; //temp sensor wanted temperaure in celzius
- *SCREW:
- * </pre>
- *
- * <code>uint32 startOffsetPulses = 5;</code>
- */
- public Builder clearStartOffsetPulses() {
-
- startOffsetPulses_ = 0;
- onChanged();
- return this;
- }
-
- private int spoolBackingRate_ ;
- /**
- * <code>uint32 spoolBackingRate = 6;</code>
- */
- public int getSpoolBackingRate() {
- return spoolBackingRate_;
- }
- /**
- * <code>uint32 spoolBackingRate = 6;</code>
- */
- public Builder setSpoolBackingRate(int value) {
-
- spoolBackingRate_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>uint32 spoolBackingRate = 6;</code>
- */
- public Builder clearSpoolBackingRate() {
-
- spoolBackingRate_ = 0;
- onChanged();
- return this;
- }
-
- private int segmentOffsetPulses_ ;
- /**
- * <code>uint32 segmentOffsetPulses = 7;</code>
- */
- public int getSegmentOffsetPulses() {
- return segmentOffsetPulses_;
- }
- /**
- * <code>uint32 segmentOffsetPulses = 7;</code>
- */
- public Builder setSegmentOffsetPulses(int value) {
-
- segmentOffsetPulses_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>uint32 segmentOffsetPulses = 7;</code>
- */
- public Builder clearSegmentOffsetPulses() {
-
- segmentOffsetPulses_ = 0;
- onChanged();
- return this;
- }
-
- private int milimetersPerRotation_ ;
- /**
- * <code>uint32 milimetersPerRotation = 8;</code>
- */
- public int getMilimetersPerRotation() {
- return milimetersPerRotation_;
- }
- /**
- * <code>uint32 milimetersPerRotation = 8;</code>
- */
- public Builder setMilimetersPerRotation(int value) {
-
- milimetersPerRotation_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>uint32 milimetersPerRotation = 8;</code>
- */
- public Builder clearMilimetersPerRotation() {
-
- milimetersPerRotation_ = 0;
- onChanged();
- return this;
- }
-
- private java.util.List<com.twine.tango.pmr.jobs.SegmentOuterClass.Segment> segments_ =
- java.util.Collections.emptyList();
- private void ensureSegmentsIsMutable() {
- if (!((bitField0_ & 0x00000100) == 0x00000100)) {
- segments_ = new java.util.ArrayList<com.twine.tango.pmr.jobs.SegmentOuterClass.Segment>(segments_);
- bitField0_ |= 0x00000100;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.twine.tango.pmr.jobs.SegmentOuterClass.Segment, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder, com.twine.tango.pmr.jobs.SegmentOuterClass.SegmentOrBuilder> segmentsBuilder_;
-
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public java.util.List<com.twine.tango.pmr.jobs.SegmentOuterClass.Segment> getSegmentsList() {
- if (segmentsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(segments_);
- } else {
- return segmentsBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public int getSegmentsCount() {
- if (segmentsBuilder_ == null) {
- return segments_.size();
- } else {
- return segmentsBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public com.twine.tango.pmr.jobs.SegmentOuterClass.Segment getSegments(int index) {
- if (segmentsBuilder_ == null) {
- return segments_.get(index);
- } else {
- return segmentsBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public Builder setSegments(
- int index, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment value) {
- if (segmentsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSegmentsIsMutable();
- segments_.set(index, value);
- onChanged();
- } else {
- segmentsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public Builder setSegments(
- int index, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder builderForValue) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- segments_.set(index, builderForValue.build());
- onChanged();
- } else {
- segmentsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public Builder addSegments(com.twine.tango.pmr.jobs.SegmentOuterClass.Segment value) {
- if (segmentsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSegmentsIsMutable();
- segments_.add(value);
- onChanged();
- } else {
- segmentsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public Builder addSegments(
- int index, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment value) {
- if (segmentsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureSegmentsIsMutable();
- segments_.add(index, value);
- onChanged();
- } else {
- segmentsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public Builder addSegments(
- com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder builderForValue) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- segments_.add(builderForValue.build());
- onChanged();
- } else {
- segmentsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public Builder addSegments(
- int index, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder builderForValue) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- segments_.add(index, builderForValue.build());
- onChanged();
- } else {
- segmentsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public Builder addAllSegments(
- java.lang.Iterable<? extends com.twine.tango.pmr.jobs.SegmentOuterClass.Segment> values) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, segments_);
- onChanged();
- } else {
- segmentsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public Builder clearSegments() {
- if (segmentsBuilder_ == null) {
- segments_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
- onChanged();
- } else {
- segmentsBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public Builder removeSegments(int index) {
- if (segmentsBuilder_ == null) {
- ensureSegmentsIsMutable();
- segments_.remove(index);
- onChanged();
- } else {
- segmentsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder getSegmentsBuilder(
- int index) {
- return getSegmentsFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public com.twine.tango.pmr.jobs.SegmentOuterClass.SegmentOrBuilder getSegmentsOrBuilder(
- int index) {
- if (segmentsBuilder_ == null) {
- return segments_.get(index); } else {
- return segmentsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public java.util.List<? extends com.twine.tango.pmr.jobs.SegmentOuterClass.SegmentOrBuilder>
- getSegmentsOrBuilderList() {
- if (segmentsBuilder_ != null) {
- return segmentsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(segments_);
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder addSegmentsBuilder() {
- return getSegmentsFieldBuilder().addBuilder(
- com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.getDefaultInstance());
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder addSegmentsBuilder(
- int index) {
- return getSegmentsFieldBuilder().addBuilder(
- index, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.getDefaultInstance());
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code>
- */
- public java.util.List<com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder>
- getSegmentsBuilderList() {
- return getSegmentsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.twine.tango.pmr.jobs.SegmentOuterClass.Segment, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder, com.twine.tango.pmr.jobs.SegmentOuterClass.SegmentOrBuilder>
- getSegmentsFieldBuilder() {
- if (segmentsBuilder_ == null) {
- segmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
- com.twine.tango.pmr.jobs.SegmentOuterClass.Segment, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder, com.twine.tango.pmr.jobs.SegmentOuterClass.SegmentOrBuilder>(
- segments_,
- ((bitField0_ & 0x00000100) == 0x00000100),
- getParentForChildren(),
- isClean());
- segments_ = null;
- }
- return segmentsBuilder_;
- }
-
- private java.util.List<com.twine.tango.pmr.jobs.Motor.MotorConfig> motors_ =
- java.util.Collections.emptyList();
- private void ensureMotorsIsMutable() {
- if (!((bitField0_ & 0x00000200) == 0x00000200)) {
- motors_ = new java.util.ArrayList<com.twine.tango.pmr.jobs.Motor.MotorConfig>(motors_);
- bitField0_ |= 0x00000200;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.twine.tango.pmr.jobs.Motor.MotorConfig, com.twine.tango.pmr.jobs.Motor.MotorConfig.Builder, com.twine.tango.pmr.jobs.Motor.MotorConfigOrBuilder> motorsBuilder_;
-
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public java.util.List<com.twine.tango.pmr.jobs.Motor.MotorConfig> getMotorsList() {
- if (motorsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(motors_);
- } else {
- return motorsBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public int getMotorsCount() {
- if (motorsBuilder_ == null) {
- return motors_.size();
- } else {
- return motorsBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public com.twine.tango.pmr.jobs.Motor.MotorConfig getMotors(int index) {
- if (motorsBuilder_ == null) {
- return motors_.get(index);
- } else {
- return motorsBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public Builder setMotors(
- int index, com.twine.tango.pmr.jobs.Motor.MotorConfig value) {
- if (motorsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMotorsIsMutable();
- motors_.set(index, value);
- onChanged();
- } else {
- motorsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public Builder setMotors(
- int index, com.twine.tango.pmr.jobs.Motor.MotorConfig.Builder builderForValue) {
- if (motorsBuilder_ == null) {
- ensureMotorsIsMutable();
- motors_.set(index, builderForValue.build());
- onChanged();
- } else {
- motorsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public Builder addMotors(com.twine.tango.pmr.jobs.Motor.MotorConfig value) {
- if (motorsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMotorsIsMutable();
- motors_.add(value);
- onChanged();
- } else {
- motorsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public Builder addMotors(
- int index, com.twine.tango.pmr.jobs.Motor.MotorConfig value) {
- if (motorsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMotorsIsMutable();
- motors_.add(index, value);
- onChanged();
- } else {
- motorsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public Builder addMotors(
- com.twine.tango.pmr.jobs.Motor.MotorConfig.Builder builderForValue) {
- if (motorsBuilder_ == null) {
- ensureMotorsIsMutable();
- motors_.add(builderForValue.build());
- onChanged();
- } else {
- motorsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public Builder addMotors(
- int index, com.twine.tango.pmr.jobs.Motor.MotorConfig.Builder builderForValue) {
- if (motorsBuilder_ == null) {
- ensureMotorsIsMutable();
- motors_.add(index, builderForValue.build());
- onChanged();
- } else {
- motorsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public Builder addAllMotors(
- java.lang.Iterable<? extends com.twine.tango.pmr.jobs.Motor.MotorConfig> values) {
- if (motorsBuilder_ == null) {
- ensureMotorsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, motors_);
- onChanged();
- } else {
- motorsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public Builder clearMotors() {
- if (motorsBuilder_ == null) {
- motors_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000200);
- onChanged();
- } else {
- motorsBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public Builder removeMotors(int index) {
- if (motorsBuilder_ == null) {
- ensureMotorsIsMutable();
- motors_.remove(index);
- onChanged();
- } else {
- motorsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public com.twine.tango.pmr.jobs.Motor.MotorConfig.Builder getMotorsBuilder(
- int index) {
- return getMotorsFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public com.twine.tango.pmr.jobs.Motor.MotorConfigOrBuilder getMotorsOrBuilder(
- int index) {
- if (motorsBuilder_ == null) {
- return motors_.get(index); } else {
- return motorsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public java.util.List<? extends com.twine.tango.pmr.jobs.Motor.MotorConfigOrBuilder>
- getMotorsOrBuilderList() {
- if (motorsBuilder_ != null) {
- return motorsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(motors_);
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public com.twine.tango.pmr.jobs.Motor.MotorConfig.Builder addMotorsBuilder() {
- return getMotorsFieldBuilder().addBuilder(
- com.twine.tango.pmr.jobs.Motor.MotorConfig.getDefaultInstance());
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public com.twine.tango.pmr.jobs.Motor.MotorConfig.Builder addMotorsBuilder(
- int index) {
- return getMotorsFieldBuilder().addBuilder(
- index, com.twine.tango.pmr.jobs.Motor.MotorConfig.getDefaultInstance());
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.MotorConfig Motors = 10;</code>
- */
- public java.util.List<com.twine.tango.pmr.jobs.Motor.MotorConfig.Builder>
- getMotorsBuilderList() {
- return getMotorsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.twine.tango.pmr.jobs.Motor.MotorConfig, com.twine.tango.pmr.jobs.Motor.MotorConfig.Builder, com.twine.tango.pmr.jobs.Motor.MotorConfigOrBuilder>
- getMotorsFieldBuilder() {
- if (motorsBuilder_ == null) {
- motorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
- com.twine.tango.pmr.jobs.Motor.MotorConfig, com.twine.tango.pmr.jobs.Motor.MotorConfig.Builder, com.twine.tango.pmr.jobs.Motor.MotorConfigOrBuilder>(
- motors_,
- ((bitField0_ & 0x00000200) == 0x00000200),
- getParentForChildren(),
- isClean());
- motors_ = null;
- }
- return motorsBuilder_;
- }
- 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.Jobs.Job)
- }
-
- // @@protoc_insertion_point(class_scope:Tango.PMR.Jobs.Job)
- private static final com.twine.tango.pmr.jobs.JobOuterClass.Job DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.twine.tango.pmr.jobs.JobOuterClass.Job();
- }
-
- public static com.twine.tango.pmr.jobs.JobOuterClass.Job getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<Job>
- PARSER = new com.google.protobuf.AbstractParser<Job>() {
- public Job parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Job(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser<Job> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<Job> getParserForType() {
- return PARSER;
- }
-
- public com.twine.tango.pmr.jobs.JobOuterClass.Job getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_Tango_PMR_Jobs_Job_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_Tango_PMR_Jobs_Job_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\tJob.proto\022\016Tango.PMR.Jobs\032\rSegment.pro" +
- "to\032\013motor.proto\"\262\002\n\003Job\022\014\n\004Name\030\001 \001(\t\022\026\n" +
- "\016interSegEnable\030\002 \001(\010\022\035\n\025distanseToSpool" +
- "Enable\030\003 \001(\010\022\035\n\025distanceToSpoolLength\030\004 " +
- "\001(\r\022\031\n\021startOffsetPulses\030\005 \001(\r\022\030\n\020spoolB" +
- "ackingRate\030\006 \001(\r\022\033\n\023segmentOffsetPulses\030" +
- "\007 \001(\r\022\035\n\025milimetersPerRotation\030\010 \001(\r\022)\n\010" +
- "Segments\030\t \003(\0132\027.Tango.PMR.Jobs.Segment\022" +
- "+\n\006Motors\030\n \003(\0132\033.Tango.PMR.Jobs.MotorCo" +
- "nfigB\032\n\030com.twine.tango.pmr.jobsb\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[] {
- com.twine.tango.pmr.jobs.SegmentOuterClass.getDescriptor(),
- com.twine.tango.pmr.jobs.Motor.getDescriptor(),
- }, assigner);
- internal_static_Tango_PMR_Jobs_Job_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_Tango_PMR_Jobs_Job_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_Tango_PMR_Jobs_Job_descriptor,
- new java.lang.String[] { "Name", "InterSegEnable", "DistanseToSpoolEnable", "DistanceToSpoolLength", "StartOffsetPulses", "SpoolBackingRate", "SegmentOffsetPulses", "MilimetersPerRotation", "Segments", "Motors", });
- com.twine.tango.pmr.jobs.SegmentOuterClass.getDescriptor();
- com.twine.tango.pmr.jobs.Motor.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/Motor.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/Motor.java
deleted file mode 100644
index 9b099e7d4..000000000
--- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/Motor.java
+++ /dev/null
@@ -1,1500 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: motor.proto
-
-package com.twine.tango.pmr.jobs;
-
-public final class Motor {
- private Motor() {}
- 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.Jobs.MotorId}
- */
- public enum MotorId
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * <code>Feeder = 0;</code>
- */
- Feeder(0),
- /**
- * <code>Dryer = 1;</code>
- */
- Dryer(1),
- /**
- * <code>Pooler = 2;</code>
- */
- Pooler(2),
- /**
- * <code>Winder = 3;</code>
- */
- Winder(3),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * <code>Feeder = 0;</code>
- */
- public static final int Feeder_VALUE = 0;
- /**
- * <code>Dryer = 1;</code>
- */
- public static final int Dryer_VALUE = 1;
- /**
- * <code>Pooler = 2;</code>
- */
- public static final int Pooler_VALUE = 2;
- /**
- * <code>Winder = 3;</code>
- */
- public static final int Winder_VALUE = 3;
-
-
- 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 MotorId valueOf(int value) {
- return forNumber(value);
- }
-
- public static MotorId forNumber(int value) {
- switch (value) {
- case 0: return Feeder;
- case 1: return Dryer;
- case 2: return Pooler;
- case 3: return Winder;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<MotorId>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static final com.google.protobuf.Internal.EnumLiteMap<
- MotorId> internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<MotorId>() {
- public MotorId findValueByNumber(int number) {
- return MotorId.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.jobs.Motor.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final MotorId[] VALUES = values();
-
- public static MotorId 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 MotorId(int value) {
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:Tango.PMR.Jobs.MotorId)
- }
-
- public interface MotorConfigOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Tango.PMR.Jobs.MotorConfig)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>.Tango.PMR.Jobs.MotorId Id = 1;</code>
- */
- int getIdValue();
- /**
- * <code>.Tango.PMR.Jobs.MotorId Id = 1;</code>
- */
- com.twine.tango.pmr.jobs.Motor.MotorId getId();
-
- /**
- * <code>uint32 minfreq = 2;</code>
- */
- int getMinfreq();
-
- /**
- * <code>uint32 maxfreq = 3;</code>
- */
- int getMaxfreq();
-
- /**
- * <code>uint32 minmicrostep = 4;</code>
- */
- int getMinmicrostep();
-
- /**
- * <code>uint32 maxmicrostep = 5;</code>
- */
- int getMaxmicrostep();
-
- /**
- * <code>double linearratio = 6;</code>
- */
- double getLinearratio();
-
- /**
- * <code>uint32 medianposition = 7;</code>
- */
- int getMedianposition();
-
- /**
- * <code>double correctiongain = 8;</code>
- */
- double getCorrectiongain();
-
- /**
- * <code>double ration2dryerspd = 9;</code>
- */
- double getRation2Dryerspd();
-
- /**
- * <code>double Kp = 10;</code>
- */
- double getKp();
-
- /**
- * <code>double Ki = 11;</code>
- */
- double getKi();
-
- /**
- * <code>double Kd = 12;</code>
- */
- double getKd();
-
- /**
- * <code>double changeSlope = 13;</code>
- */
- double getChangeSlope();
-
- /**
- * <code>double hightimeoutmSec = 14;</code>
- */
- double getHightimeoutmSec();
- }
- /**
- * Protobuf type {@code Tango.PMR.Jobs.MotorConfig}
- */
- public static final class MotorConfig extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Tango.PMR.Jobs.MotorConfig)
- MotorConfigOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use MotorConfig.newBuilder() to construct.
- private MotorConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private MotorConfig() {
- id_ = 0;
- minfreq_ = 0;
- maxfreq_ = 0;
- minmicrostep_ = 0;
- maxmicrostep_ = 0;
- linearratio_ = 0D;
- medianposition_ = 0;
- correctiongain_ = 0D;
- ration2Dryerspd_ = 0D;
- kp_ = 0D;
- ki_ = 0D;
- kd_ = 0D;
- changeSlope_ = 0D;
- hightimeoutmSec_ = 0D;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private MotorConfig(
- 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: {
- int rawValue = input.readEnum();
-
- id_ = rawValue;
- break;
- }
- case 16: {
-
- minfreq_ = input.readUInt32();
- break;
- }
- case 24: {
-
- maxfreq_ = input.readUInt32();
- break;
- }
- case 32: {
-
- minmicrostep_ = input.readUInt32();
- break;
- }
- case 40: {
-
- maxmicrostep_ = input.readUInt32();
- break;
- }
- case 49: {
-
- linearratio_ = input.readDouble();
- break;
- }
- case 56: {
-
- medianposition_ = input.readUInt32();
- break;
- }
- case 65: {
-
- correctiongain_ = input.readDouble();
- break;
- }
- case 73: {
-
- ration2Dryerspd_ = input.readDouble();
- break;
- }
- case 81: {
-
- kp_ = input.readDouble();
- break;
- }
- case 89: {
-
- ki_ = input.readDouble();
- break;
- }
- case 97: {
-
- kd_ = input.readDouble();
- break;
- }
- case 105: {
-
- changeSlope_ = input.readDouble();
- break;
- }
- case 113: {
-
- hightimeoutmSec_ = input.readDouble();
- 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.jobs.Motor.internal_static_Tango_PMR_Jobs_MotorConfig_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.jobs.Motor.internal_static_Tango_PMR_Jobs_MotorConfig_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.jobs.Motor.MotorConfig.class, com.twine.tango.pmr.jobs.Motor.MotorConfig.Builder.class);
- }
-
- public static final int ID_FIELD_NUMBER = 1;
- private int id_;
- /**
- * <code>.Tango.PMR.Jobs.MotorId Id = 1;</code>
- */
- public int getIdValue() {
- return id_;
- }
- /**
- * <code>.Tango.PMR.Jobs.MotorId Id = 1;</code>
- */
- public com.twine.tango.pmr.jobs.Motor.MotorId getId() {
- com.twine.tango.pmr.jobs.Motor.MotorId result = com.twine.tango.pmr.jobs.Motor.MotorId.valueOf(id_);
- return result == null ? com.twine.tango.pmr.jobs.Motor.MotorId.UNRECOGNIZED : result;
- }
-
- public static final int MINFREQ_FIELD_NUMBER = 2;
- private int minfreq_;
- /**
- * <code>uint32 minfreq = 2;</code>
- */
- public int getMinfreq() {
- return minfreq_;
- }
-
- public static final int MAXFREQ_FIELD_NUMBER = 3;
- private int maxfreq_;
- /**
- * <code>uint32 maxfreq = 3;</code>
- */
- public int getMaxfreq() {
- return maxfreq_;
- }
-
- public static final int MINMICROSTEP_FIELD_NUMBER = 4;
- private int minmicrostep_;
- /**
- * <code>uint32 minmicrostep = 4;</code>
- */
- public int getMinmicrostep() {
- return minmicrostep_;
- }
-
- public static final int MAXMICROSTEP_FIELD_NUMBER = 5;
- private int maxmicrostep_;
- /**
- * <code>uint32 maxmicrostep = 5;</code>
- */
- public int getMaxmicrostep() {
- return maxmicrostep_;
- }
-
- public static final int LINEARRATIO_FIELD_NUMBER = 6;
- private double linearratio_;
- /**
- * <code>double linearratio = 6;</code>
- */
- public double getLinearratio() {
- return linearratio_;
- }
-
- public static final int MEDIANPOSITION_FIELD_NUMBER = 7;
- private int medianposition_;
- /**
- * <code>uint32 medianposition = 7;</code>
- */
- public int getMedianposition() {
- return medianposition_;
- }
-
- public static final int CORRECTIONGAIN_FIELD_NUMBER = 8;
- private double correctiongain_;
- /**
- * <code>double correctiongain = 8;</code>
- */
- public double getCorrectiongain() {
- return correctiongain_;
- }
-
- public static final int RATION2DRYERSPD_FIELD_NUMBER = 9;
- private double ration2Dryerspd_;
- /**
- * <code>double ration2dryerspd = 9;</code>
- */
- public double getRation2Dryerspd() {
- return ration2Dryerspd_;
- }
-
- public static final int KP_FIELD_NUMBER = 10;
- private double kp_;
- /**
- * <code>double Kp = 10;</code>
- */
- public double getKp() {
- return kp_;
- }
-
- public static final int KI_FIELD_NUMBER = 11;
- private double ki_;
- /**
- * <code>double Ki = 11;</code>
- */
- public double getKi() {
- return ki_;
- }
-
- public static final int KD_FIELD_NUMBER = 12;
- private double kd_;
- /**
- * <code>double Kd = 12;</code>
- */
- public double getKd() {
- return kd_;
- }
-
- public static final int CHANGESLOPE_FIELD_NUMBER = 13;
- private double changeSlope_;
- /**
- * <code>double changeSlope = 13;</code>
- */
- public double getChangeSlope() {
- return changeSlope_;
- }
-
- public static final int HIGHTIMEOUTMSEC_FIELD_NUMBER = 14;
- private double hightimeoutmSec_;
- /**
- * <code>double hightimeoutmSec = 14;</code>
- */
- public double getHightimeoutmSec() {
- return hightimeoutmSec_;
- }
-
- 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 (id_ != com.twine.tango.pmr.jobs.Motor.MotorId.Feeder.getNumber()) {
- output.writeEnum(1, id_);
- }
- if (minfreq_ != 0) {
- output.writeUInt32(2, minfreq_);
- }
- if (maxfreq_ != 0) {
- output.writeUInt32(3, maxfreq_);
- }
- if (minmicrostep_ != 0) {
- output.writeUInt32(4, minmicrostep_);
- }
- if (maxmicrostep_ != 0) {
- output.writeUInt32(5, maxmicrostep_);
- }
- if (linearratio_ != 0D) {
- output.writeDouble(6, linearratio_);
- }
- if (medianposition_ != 0) {
- output.writeUInt32(7, medianposition_);
- }
- if (correctiongain_ != 0D) {
- output.writeDouble(8, correctiongain_);
- }
- if (ration2Dryerspd_ != 0D) {
- output.writeDouble(9, ration2Dryerspd_);
- }
- if (kp_ != 0D) {
- output.writeDouble(10, kp_);
- }
- if (ki_ != 0D) {
- output.writeDouble(11, ki_);
- }
- if (kd_ != 0D) {
- output.writeDouble(12, kd_);
- }
- if (changeSlope_ != 0D) {
- output.writeDouble(13, changeSlope_);
- }
- if (hightimeoutmSec_ != 0D) {
- output.writeDouble(14, hightimeoutmSec_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (id_ != com.twine.tango.pmr.jobs.Motor.MotorId.Feeder.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, id_);
- }
- if (minfreq_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(2, minfreq_);
- }
- if (maxfreq_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(3, maxfreq_);
- }
- if (minmicrostep_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(4, minmicrostep_);
- }
- if (maxmicrostep_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(5, maxmicrostep_);
- }
- if (linearratio_ != 0D) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(6, linearratio_);
- }
- if (medianposition_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(7, medianposition_);
- }
- if (correctiongain_ != 0D) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(8, correctiongain_);
- }
- if (ration2Dryerspd_ != 0D) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(9, ration2Dryerspd_);
- }
- if (kp_ != 0D) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(10, kp_);
- }
- if (ki_ != 0D) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(11, ki_);
- }
- if (kd_ != 0D) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(12, kd_);
- }
- if (changeSlope_ != 0D) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(13, changeSlope_);
- }
- if (hightimeoutmSec_ != 0D) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(14, hightimeoutmSec_);
- }
- 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.jobs.Motor.MotorConfig)) {
- return super.equals(obj);
- }
- com.twine.tango.pmr.jobs.Motor.MotorConfig other = (com.twine.tango.pmr.jobs.Motor.MotorConfig) obj;
-
- boolean result = true;
- result = result && id_ == other.id_;
- result = result && (getMinfreq()
- == other.getMinfreq());
- result = result && (getMaxfreq()
- == other.getMaxfreq());
- result = result && (getMinmicrostep()
- == other.getMinmicrostep());
- result = result && (getMaxmicrostep()
- == other.getMaxmicrostep());
- result = result && (
- java.lang.Double.doubleToLongBits(getLinearratio())
- == java.lang.Double.doubleToLongBits(
- other.getLinearratio()));
- result = result && (getMedianposition()
- == other.getMedianposition());
- result = result && (
- java.lang.Double.doubleToLongBits(getCorrectiongain())
- == java.lang.Double.doubleToLongBits(
- other.getCorrectiongain()));
- result = result && (
- java.lang.Double.doubleToLongBits(getRation2Dryerspd())
- == java.lang.Double.doubleToLongBits(
- other.getRation2Dryerspd()));
- result = result && (
- java.lang.Double.doubleToLongBits(getKp())
- == java.lang.Double.doubleToLongBits(
- other.getKp()));
- result = result && (
- java.lang.Double.doubleToLongBits(getKi())
- == java.lang.Double.doubleToLongBits(
- other.getKi()));
- result = result && (
- java.lang.Double.doubleToLongBits(getKd())
- == java.lang.Double.doubleToLongBits(
- other.getKd()));
- result = result && (
- java.lang.Double.doubleToLongBits(getChangeSlope())
- == java.lang.Double.doubleToLongBits(
- other.getChangeSlope()));
- result = result && (
- java.lang.Double.doubleToLongBits(getHightimeoutmSec())
- == java.lang.Double.doubleToLongBits(
- other.getHightimeoutmSec()));
- 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) + ID_FIELD_NUMBER;
- hash = (53 * hash) + id_;
- hash = (37 * hash) + MINFREQ_FIELD_NUMBER;
- hash = (53 * hash) + getMinfreq();
- hash = (37 * hash) + MAXFREQ_FIELD_NUMBER;
- hash = (53 * hash) + getMaxfreq();
- hash = (37 * hash) + MINMICROSTEP_FIELD_NUMBER;
- hash = (53 * hash) + getMinmicrostep();
- hash = (37 * hash) + MAXMICROSTEP_FIELD_NUMBER;
- hash = (53 * hash) + getMaxmicrostep();
- hash = (37 * hash) + LINEARRATIO_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getLinearratio()));
- hash = (37 * hash) + MEDIANPOSITION_FIELD_NUMBER;
- hash = (53 * hash) + getMedianposition();
- hash = (37 * hash) + CORRECTIONGAIN_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getCorrectiongain()));
- hash = (37 * hash) + RATION2DRYERSPD_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getRation2Dryerspd()));
- hash = (37 * hash) + KP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getKp()));
- hash = (37 * hash) + KI_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getKi()));
- hash = (37 * hash) + KD_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getKd()));
- hash = (37 * hash) + CHANGESLOPE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getChangeSlope()));
- hash = (37 * hash) + HIGHTIMEOUTMSEC_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getHightimeoutmSec()));
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.twine.tango.pmr.jobs.Motor.MotorConfig parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.Motor.MotorConfig 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.jobs.Motor.MotorConfig parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.Motor.MotorConfig 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.jobs.Motor.MotorConfig parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.Motor.MotorConfig parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.twine.tango.pmr.jobs.Motor.MotorConfig parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.Motor.MotorConfig 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.jobs.Motor.MotorConfig parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.Motor.MotorConfig 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.jobs.Motor.MotorConfig parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.Motor.MotorConfig 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.jobs.Motor.MotorConfig 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.Jobs.MotorConfig}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:Tango.PMR.Jobs.MotorConfig)
- com.twine.tango.pmr.jobs.Motor.MotorConfigOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.twine.tango.pmr.jobs.Motor.internal_static_Tango_PMR_Jobs_MotorConfig_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.jobs.Motor.internal_static_Tango_PMR_Jobs_MotorConfig_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.jobs.Motor.MotorConfig.class, com.twine.tango.pmr.jobs.Motor.MotorConfig.Builder.class);
- }
-
- // Construct using com.twine.tango.pmr.jobs.Motor.MotorConfig.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();
- id_ = 0;
-
- minfreq_ = 0;
-
- maxfreq_ = 0;
-
- minmicrostep_ = 0;
-
- maxmicrostep_ = 0;
-
- linearratio_ = 0D;
-
- medianposition_ = 0;
-
- correctiongain_ = 0D;
-
- ration2Dryerspd_ = 0D;
-
- kp_ = 0D;
-
- ki_ = 0D;
-
- kd_ = 0D;
-
- changeSlope_ = 0D;
-
- hightimeoutmSec_ = 0D;
-
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.twine.tango.pmr.jobs.Motor.internal_static_Tango_PMR_Jobs_MotorConfig_descriptor;
- }
-
- public com.twine.tango.pmr.jobs.Motor.MotorConfig getDefaultInstanceForType() {
- return com.twine.tango.pmr.jobs.Motor.MotorConfig.getDefaultInstance();
- }
-
- public com.twine.tango.pmr.jobs.Motor.MotorConfig build() {
- com.twine.tango.pmr.jobs.Motor.MotorConfig result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.twine.tango.pmr.jobs.Motor.MotorConfig buildPartial() {
- com.twine.tango.pmr.jobs.Motor.MotorConfig result = new com.twine.tango.pmr.jobs.Motor.MotorConfig(this);
- result.id_ = id_;
- result.minfreq_ = minfreq_;
- result.maxfreq_ = maxfreq_;
- result.minmicrostep_ = minmicrostep_;
- result.maxmicrostep_ = maxmicrostep_;
- result.linearratio_ = linearratio_;
- result.medianposition_ = medianposition_;
- result.correctiongain_ = correctiongain_;
- result.ration2Dryerspd_ = ration2Dryerspd_;
- result.kp_ = kp_;
- result.ki_ = ki_;
- result.kd_ = kd_;
- result.changeSlope_ = changeSlope_;
- result.hightimeoutmSec_ = hightimeoutmSec_;
- 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.jobs.Motor.MotorConfig) {
- return mergeFrom((com.twine.tango.pmr.jobs.Motor.MotorConfig)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.twine.tango.pmr.jobs.Motor.MotorConfig other) {
- if (other == com.twine.tango.pmr.jobs.Motor.MotorConfig.getDefaultInstance()) return this;
- if (other.id_ != 0) {
- setIdValue(other.getIdValue());
- }
- if (other.getMinfreq() != 0) {
- setMinfreq(other.getMinfreq());
- }
- if (other.getMaxfreq() != 0) {
- setMaxfreq(other.getMaxfreq());
- }
- if (other.getMinmicrostep() != 0) {
- setMinmicrostep(other.getMinmicrostep());
- }
- if (other.getMaxmicrostep() != 0) {
- setMaxmicrostep(other.getMaxmicrostep());
- }
- if (other.getLinearratio() != 0D) {
- setLinearratio(other.getLinearratio());
- }
- if (other.getMedianposition() != 0) {
- setMedianposition(other.getMedianposition());
- }
- if (other.getCorrectiongain() != 0D) {
- setCorrectiongain(other.getCorrectiongain());
- }
- if (other.getRation2Dryerspd() != 0D) {
- setRation2Dryerspd(other.getRation2Dryerspd());
- }
- if (other.getKp() != 0D) {
- setKp(other.getKp());
- }
- if (other.getKi() != 0D) {
- setKi(other.getKi());
- }
- if (other.getKd() != 0D) {
- setKd(other.getKd());
- }
- if (other.getChangeSlope() != 0D) {
- setChangeSlope(other.getChangeSlope());
- }
- if (other.getHightimeoutmSec() != 0D) {
- setHightimeoutmSec(other.getHightimeoutmSec());
- }
- 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.jobs.Motor.MotorConfig parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.twine.tango.pmr.jobs.Motor.MotorConfig) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int id_ = 0;
- /**
- * <code>.Tango.PMR.Jobs.MotorId Id = 1;</code>
- */
- public int getIdValue() {
- return id_;
- }
- /**
- * <code>.Tango.PMR.Jobs.MotorId Id = 1;</code>
- */
- public Builder setIdValue(int value) {
- id_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>.Tango.PMR.Jobs.MotorId Id = 1;</code>
- */
- public com.twine.tango.pmr.jobs.Motor.MotorId getId() {
- com.twine.tango.pmr.jobs.Motor.MotorId result = com.twine.tango.pmr.jobs.Motor.MotorId.valueOf(id_);
- return result == null ? com.twine.tango.pmr.jobs.Motor.MotorId.UNRECOGNIZED : result;
- }
- /**
- * <code>.Tango.PMR.Jobs.MotorId Id = 1;</code>
- */
- public Builder setId(com.twine.tango.pmr.jobs.Motor.MotorId value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- id_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * <code>.Tango.PMR.Jobs.MotorId Id = 1;</code>
- */
- public Builder clearId() {
-
- id_ = 0;
- onChanged();
- return this;
- }
-
- private int minfreq_ ;
- /**
- * <code>uint32 minfreq = 2;</code>
- */
- public int getMinfreq() {
- return minfreq_;
- }
- /**
- * <code>uint32 minfreq = 2;</code>
- */
- public Builder setMinfreq(int value) {
-
- minfreq_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>uint32 minfreq = 2;</code>
- */
- public Builder clearMinfreq() {
-
- minfreq_ = 0;
- onChanged();
- return this;
- }
-
- private int maxfreq_ ;
- /**
- * <code>uint32 maxfreq = 3;</code>
- */
- public int getMaxfreq() {
- return maxfreq_;
- }
- /**
- * <code>uint32 maxfreq = 3;</code>
- */
- public Builder setMaxfreq(int value) {
-
- maxfreq_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>uint32 maxfreq = 3;</code>
- */
- public Builder clearMaxfreq() {
-
- maxfreq_ = 0;
- onChanged();
- return this;
- }
-
- private int minmicrostep_ ;
- /**
- * <code>uint32 minmicrostep = 4;</code>
- */
- public int getMinmicrostep() {
- return minmicrostep_;
- }
- /**
- * <code>uint32 minmicrostep = 4;</code>
- */
- public Builder setMinmicrostep(int value) {
-
- minmicrostep_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>uint32 minmicrostep = 4;</code>
- */
- public Builder clearMinmicrostep() {
-
- minmicrostep_ = 0;
- onChanged();
- return this;
- }
-
- private int maxmicrostep_ ;
- /**
- * <code>uint32 maxmicrostep = 5;</code>
- */
- public int getMaxmicrostep() {
- return maxmicrostep_;
- }
- /**
- * <code>uint32 maxmicrostep = 5;</code>
- */
- public Builder setMaxmicrostep(int value) {
-
- maxmicrostep_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>uint32 maxmicrostep = 5;</code>
- */
- public Builder clearMaxmicrostep() {
-
- maxmicrostep_ = 0;
- onChanged();
- return this;
- }
-
- private double linearratio_ ;
- /**
- * <code>double linearratio = 6;</code>
- */
- public double getLinearratio() {
- return linearratio_;
- }
- /**
- * <code>double linearratio = 6;</code>
- */
- public Builder setLinearratio(double value) {
-
- linearratio_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>double linearratio = 6;</code>
- */
- public Builder clearLinearratio() {
-
- linearratio_ = 0D;
- onChanged();
- return this;
- }
-
- private int medianposition_ ;
- /**
- * <code>uint32 medianposition = 7;</code>
- */
- public int getMedianposition() {
- return medianposition_;
- }
- /**
- * <code>uint32 medianposition = 7;</code>
- */
- public Builder setMedianposition(int value) {
-
- medianposition_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>uint32 medianposition = 7;</code>
- */
- public Builder clearMedianposition() {
-
- medianposition_ = 0;
- onChanged();
- return this;
- }
-
- private double correctiongain_ ;
- /**
- * <code>double correctiongain = 8;</code>
- */
- public double getCorrectiongain() {
- return correctiongain_;
- }
- /**
- * <code>double correctiongain = 8;</code>
- */
- public Builder setCorrectiongain(double value) {
-
- correctiongain_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>double correctiongain = 8;</code>
- */
- public Builder clearCorrectiongain() {
-
- correctiongain_ = 0D;
- onChanged();
- return this;
- }
-
- private double ration2Dryerspd_ ;
- /**
- * <code>double ration2dryerspd = 9;</code>
- */
- public double getRation2Dryerspd() {
- return ration2Dryerspd_;
- }
- /**
- * <code>double ration2dryerspd = 9;</code>
- */
- public Builder setRation2Dryerspd(double value) {
-
- ration2Dryerspd_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>double ration2dryerspd = 9;</code>
- */
- public Builder clearRation2Dryerspd() {
-
- ration2Dryerspd_ = 0D;
- onChanged();
- return this;
- }
-
- private double kp_ ;
- /**
- * <code>double Kp = 10;</code>
- */
- public double getKp() {
- return kp_;
- }
- /**
- * <code>double Kp = 10;</code>
- */
- public Builder setKp(double value) {
-
- kp_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>double Kp = 10;</code>
- */
- public Builder clearKp() {
-
- kp_ = 0D;
- onChanged();
- return this;
- }
-
- private double ki_ ;
- /**
- * <code>double Ki = 11;</code>
- */
- public double getKi() {
- return ki_;
- }
- /**
- * <code>double Ki = 11;</code>
- */
- public Builder setKi(double value) {
-
- ki_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>double Ki = 11;</code>
- */
- public Builder clearKi() {
-
- ki_ = 0D;
- onChanged();
- return this;
- }
-
- private double kd_ ;
- /**
- * <code>double Kd = 12;</code>
- */
- public double getKd() {
- return kd_;
- }
- /**
- * <code>double Kd = 12;</code>
- */
- public Builder setKd(double value) {
-
- kd_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>double Kd = 12;</code>
- */
- public Builder clearKd() {
-
- kd_ = 0D;
- onChanged();
- return this;
- }
-
- private double changeSlope_ ;
- /**
- * <code>double changeSlope = 13;</code>
- */
- public double getChangeSlope() {
- return changeSlope_;
- }
- /**
- * <code>double changeSlope = 13;</code>
- */
- public Builder setChangeSlope(double value) {
-
- changeSlope_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>double changeSlope = 13;</code>
- */
- public Builder clearChangeSlope() {
-
- changeSlope_ = 0D;
- onChanged();
- return this;
- }
-
- private double hightimeoutmSec_ ;
- /**
- * <code>double hightimeoutmSec = 14;</code>
- */
- public double getHightimeoutmSec() {
- return hightimeoutmSec_;
- }
- /**
- * <code>double hightimeoutmSec = 14;</code>
- */
- public Builder setHightimeoutmSec(double value) {
-
- hightimeoutmSec_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>double hightimeoutmSec = 14;</code>
- */
- public Builder clearHightimeoutmSec() {
-
- hightimeoutmSec_ = 0D;
- 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.Jobs.MotorConfig)
- }
-
- // @@protoc_insertion_point(class_scope:Tango.PMR.Jobs.MotorConfig)
- private static final com.twine.tango.pmr.jobs.Motor.MotorConfig DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.twine.tango.pmr.jobs.Motor.MotorConfig();
- }
-
- public static com.twine.tango.pmr.jobs.Motor.MotorConfig getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<MotorConfig>
- PARSER = new com.google.protobuf.AbstractParser<MotorConfig>() {
- public MotorConfig parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new MotorConfig(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser<MotorConfig> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<MotorConfig> getParserForType() {
- return PARSER;
- }
-
- public com.twine.tango.pmr.jobs.Motor.MotorConfig getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_Tango_PMR_Jobs_MotorConfig_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_Tango_PMR_Jobs_MotorConfig_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\013motor.proto\022\016Tango.PMR.Jobs\"\260\002\n\013MotorC" +
- "onfig\022#\n\002Id\030\001 \001(\0162\027.Tango.PMR.Jobs.Motor" +
- "Id\022\017\n\007minfreq\030\002 \001(\r\022\017\n\007maxfreq\030\003 \001(\r\022\024\n\014" +
- "minmicrostep\030\004 \001(\r\022\024\n\014maxmicrostep\030\005 \001(\r" +
- "\022\023\n\013linearratio\030\006 \001(\001\022\026\n\016medianposition\030" +
- "\007 \001(\r\022\026\n\016correctiongain\030\010 \001(\001\022\027\n\017ration2" +
- "dryerspd\030\t \001(\001\022\n\n\002Kp\030\n \001(\001\022\n\n\002Ki\030\013 \001(\001\022\n" +
- "\n\002Kd\030\014 \001(\001\022\023\n\013changeSlope\030\r \001(\001\022\027\n\017hight" +
- "imeoutmSec\030\016 \001(\001*8\n\007MotorId\022\n\n\006Feeder\020\000\022" +
- "\t\n\005Dryer\020\001\022\n\n\006Pooler\020\002\022\n\n\006Winder\020\003B\032\n\030co",
- "m.twine.tango.pmr.jobsb\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_Jobs_MotorConfig_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_Tango_PMR_Jobs_MotorConfig_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_Tango_PMR_Jobs_MotorConfig_descriptor,
- new java.lang.String[] { "Id", "Minfreq", "Maxfreq", "Minmicrostep", "Maxmicrostep", "Linearratio", "Medianposition", "Correctiongain", "Ration2Dryerspd", "Kp", "Ki", "Kd", "ChangeSlope", "HightimeoutmSec", });
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/SegmentOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/SegmentOuterClass.java
deleted file mode 100644
index 629204d61..000000000
--- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/SegmentOuterClass.java
+++ /dev/null
@@ -1,1214 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: Segment.proto
-
-package com.twine.tango.pmr.jobs;
-
-public final class SegmentOuterClass {
- private SegmentOuterClass() {}
- 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 SegmentOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Tango.PMR.Jobs.Segment)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>string Name = 1;</code>
- */
- java.lang.String getName();
- /**
- * <code>string Name = 1;</code>
- */
- com.google.protobuf.ByteString
- getNameBytes();
-
- /**
- * <code>int32 Length = 2;</code>
- */
- int getLength();
-
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- boolean hasColor();
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- com.twine.tango.pmr.common.RGBOuterClass.RGB getColor();
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- com.twine.tango.pmr.common.RGBOuterClass.RGBOrBuilder getColorOrBuilder();
-
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- java.util.List<com.twine.tango.pmr.jobs.Dispenser.Dispense>
- getDispenserList();
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- com.twine.tango.pmr.jobs.Dispenser.Dispense getDispenser(int index);
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- int getDispenserCount();
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- java.util.List<? extends com.twine.tango.pmr.jobs.Dispenser.DispenseOrBuilder>
- getDispenserOrBuilderList();
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- com.twine.tango.pmr.jobs.Dispenser.DispenseOrBuilder getDispenserOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code Tango.PMR.Jobs.Segment}
- */
- public static final class Segment extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Tango.PMR.Jobs.Segment)
- SegmentOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use Segment.newBuilder() to construct.
- private Segment(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
- super(builder);
- }
- private Segment() {
- name_ = "";
- length_ = 0;
- dispenser_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Segment(
- 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 10: {
- java.lang.String s = input.readStringRequireUtf8();
-
- name_ = s;
- break;
- }
- case 16: {
-
- length_ = input.readInt32();
- break;
- }
- case 26: {
- com.twine.tango.pmr.common.RGBOuterClass.RGB.Builder subBuilder = null;
- if (color_ != null) {
- subBuilder = color_.toBuilder();
- }
- color_ = input.readMessage(com.twine.tango.pmr.common.RGBOuterClass.RGB.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(color_);
- color_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 34: {
- if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- dispenser_ = new java.util.ArrayList<com.twine.tango.pmr.jobs.Dispenser.Dispense>();
- mutable_bitField0_ |= 0x00000008;
- }
- dispenser_.add(
- input.readMessage(com.twine.tango.pmr.jobs.Dispenser.Dispense.parser(), extensionRegistry));
- 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 {
- if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- dispenser_ = java.util.Collections.unmodifiableList(dispenser_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.twine.tango.pmr.jobs.SegmentOuterClass.internal_static_Tango_PMR_Jobs_Segment_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.jobs.SegmentOuterClass.internal_static_Tango_PMR_Jobs_Segment_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.class, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder.class);
- }
-
- private int bitField0_;
- public static final int NAME_FIELD_NUMBER = 1;
- private volatile java.lang.Object name_;
- /**
- * <code>string Name = 1;</code>
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- name_ = s;
- return s;
- }
- }
- /**
- * <code>string Name = 1;</code>
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int LENGTH_FIELD_NUMBER = 2;
- private int length_;
- /**
- * <code>int32 Length = 2;</code>
- */
- public int getLength() {
- return length_;
- }
-
- public static final int COLOR_FIELD_NUMBER = 3;
- private com.twine.tango.pmr.common.RGBOuterClass.RGB color_;
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- public boolean hasColor() {
- return color_ != null;
- }
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- public com.twine.tango.pmr.common.RGBOuterClass.RGB getColor() {
- return color_ == null ? com.twine.tango.pmr.common.RGBOuterClass.RGB.getDefaultInstance() : color_;
- }
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- public com.twine.tango.pmr.common.RGBOuterClass.RGBOrBuilder getColorOrBuilder() {
- return getColor();
- }
-
- public static final int DISPENSER_FIELD_NUMBER = 4;
- private java.util.List<com.twine.tango.pmr.jobs.Dispenser.Dispense> dispenser_;
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public java.util.List<com.twine.tango.pmr.jobs.Dispenser.Dispense> getDispenserList() {
- return dispenser_;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public java.util.List<? extends com.twine.tango.pmr.jobs.Dispenser.DispenseOrBuilder>
- getDispenserOrBuilderList() {
- return dispenser_;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public int getDispenserCount() {
- return dispenser_.size();
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public com.twine.tango.pmr.jobs.Dispenser.Dispense getDispenser(int index) {
- return dispenser_.get(index);
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public com.twine.tango.pmr.jobs.Dispenser.DispenseOrBuilder getDispenserOrBuilder(
- int index) {
- return dispenser_.get(index);
- }
-
- 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 (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
- }
- if (length_ != 0) {
- output.writeInt32(2, length_);
- }
- if (color_ != null) {
- output.writeMessage(3, getColor());
- }
- for (int i = 0; i < dispenser_.size(); i++) {
- output.writeMessage(4, dispenser_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
- }
- if (length_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(2, length_);
- }
- if (color_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, getColor());
- }
- for (int i = 0; i < dispenser_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, dispenser_.get(i));
- }
- 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.jobs.SegmentOuterClass.Segment)) {
- return super.equals(obj);
- }
- com.twine.tango.pmr.jobs.SegmentOuterClass.Segment other = (com.twine.tango.pmr.jobs.SegmentOuterClass.Segment) obj;
-
- boolean result = true;
- result = result && getName()
- .equals(other.getName());
- result = result && (getLength()
- == other.getLength());
- result = result && (hasColor() == other.hasColor());
- if (hasColor()) {
- result = result && getColor()
- .equals(other.getColor());
- }
- result = result && getDispenserList()
- .equals(other.getDispenserList());
- 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) + NAME_FIELD_NUMBER;
- hash = (53 * hash) + getName().hashCode();
- hash = (37 * hash) + LENGTH_FIELD_NUMBER;
- hash = (53 * hash) + getLength();
- if (hasColor()) {
- hash = (37 * hash) + COLOR_FIELD_NUMBER;
- hash = (53 * hash) + getColor().hashCode();
- }
- if (getDispenserCount() > 0) {
- hash = (37 * hash) + DISPENSER_FIELD_NUMBER;
- hash = (53 * hash) + getDispenserList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.twine.tango.pmr.jobs.SegmentOuterClass.Segment parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.SegmentOuterClass.Segment 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.jobs.SegmentOuterClass.Segment parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.SegmentOuterClass.Segment 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.jobs.SegmentOuterClass.Segment parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.twine.tango.pmr.jobs.SegmentOuterClass.Segment parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.twine.tango.pmr.jobs.SegmentOuterClass.Segment parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.SegmentOuterClass.Segment 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.jobs.SegmentOuterClass.Segment parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.SegmentOuterClass.Segment 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.jobs.SegmentOuterClass.Segment parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.twine.tango.pmr.jobs.SegmentOuterClass.Segment 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.jobs.SegmentOuterClass.Segment 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.Jobs.Segment}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:Tango.PMR.Jobs.Segment)
- com.twine.tango.pmr.jobs.SegmentOuterClass.SegmentOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.twine.tango.pmr.jobs.SegmentOuterClass.internal_static_Tango_PMR_Jobs_Segment_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.twine.tango.pmr.jobs.SegmentOuterClass.internal_static_Tango_PMR_Jobs_Segment_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.class, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder.class);
- }
-
- // Construct using com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- getDispenserFieldBuilder();
- }
- }
- public Builder clear() {
- super.clear();
- name_ = "";
-
- length_ = 0;
-
- if (colorBuilder_ == null) {
- color_ = null;
- } else {
- color_ = null;
- colorBuilder_ = null;
- }
- if (dispenserBuilder_ == null) {
- dispenser_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- dispenserBuilder_.clear();
- }
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.twine.tango.pmr.jobs.SegmentOuterClass.internal_static_Tango_PMR_Jobs_Segment_descriptor;
- }
-
- public com.twine.tango.pmr.jobs.SegmentOuterClass.Segment getDefaultInstanceForType() {
- return com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.getDefaultInstance();
- }
-
- public com.twine.tango.pmr.jobs.SegmentOuterClass.Segment build() {
- com.twine.tango.pmr.jobs.SegmentOuterClass.Segment result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.twine.tango.pmr.jobs.SegmentOuterClass.Segment buildPartial() {
- com.twine.tango.pmr.jobs.SegmentOuterClass.Segment result = new com.twine.tango.pmr.jobs.SegmentOuterClass.Segment(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- result.name_ = name_;
- result.length_ = length_;
- if (colorBuilder_ == null) {
- result.color_ = color_;
- } else {
- result.color_ = colorBuilder_.build();
- }
- if (dispenserBuilder_ == null) {
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- dispenser_ = java.util.Collections.unmodifiableList(dispenser_);
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.dispenser_ = dispenser_;
- } else {
- result.dispenser_ = dispenserBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- 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.jobs.SegmentOuterClass.Segment) {
- return mergeFrom((com.twine.tango.pmr.jobs.SegmentOuterClass.Segment)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.twine.tango.pmr.jobs.SegmentOuterClass.Segment other) {
- if (other == com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.getDefaultInstance()) return this;
- if (!other.getName().isEmpty()) {
- name_ = other.name_;
- onChanged();
- }
- if (other.getLength() != 0) {
- setLength(other.getLength());
- }
- if (other.hasColor()) {
- mergeColor(other.getColor());
- }
- if (dispenserBuilder_ == null) {
- if (!other.dispenser_.isEmpty()) {
- if (dispenser_.isEmpty()) {
- dispenser_ = other.dispenser_;
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- ensureDispenserIsMutable();
- dispenser_.addAll(other.dispenser_);
- }
- onChanged();
- }
- } else {
- if (!other.dispenser_.isEmpty()) {
- if (dispenserBuilder_.isEmpty()) {
- dispenserBuilder_.dispose();
- dispenserBuilder_ = null;
- dispenser_ = other.dispenser_;
- bitField0_ = (bitField0_ & ~0x00000008);
- dispenserBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getDispenserFieldBuilder() : null;
- } else {
- dispenserBuilder_.addAllMessages(other.dispenser_);
- }
- }
- }
- 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.jobs.SegmentOuterClass.Segment parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.twine.tango.pmr.jobs.SegmentOuterClass.Segment) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.lang.Object name_ = "";
- /**
- * <code>string Name = 1;</code>
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- name_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>string Name = 1;</code>
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>string Name = 1;</code>
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- name_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>string Name = 1;</code>
- */
- public Builder clearName() {
-
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- * <code>string Name = 1;</code>
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- name_ = value;
- onChanged();
- return this;
- }
-
- private int length_ ;
- /**
- * <code>int32 Length = 2;</code>
- */
- public int getLength() {
- return length_;
- }
- /**
- * <code>int32 Length = 2;</code>
- */
- public Builder setLength(int value) {
-
- length_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>int32 Length = 2;</code>
- */
- public Builder clearLength() {
-
- length_ = 0;
- onChanged();
- return this;
- }
-
- private com.twine.tango.pmr.common.RGBOuterClass.RGB color_ = null;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.twine.tango.pmr.common.RGBOuterClass.RGB, com.twine.tango.pmr.common.RGBOuterClass.RGB.Builder, com.twine.tango.pmr.common.RGBOuterClass.RGBOrBuilder> colorBuilder_;
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- public boolean hasColor() {
- return colorBuilder_ != null || color_ != null;
- }
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- public com.twine.tango.pmr.common.RGBOuterClass.RGB getColor() {
- if (colorBuilder_ == null) {
- return color_ == null ? com.twine.tango.pmr.common.RGBOuterClass.RGB.getDefaultInstance() : color_;
- } else {
- return colorBuilder_.getMessage();
- }
- }
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- public Builder setColor(com.twine.tango.pmr.common.RGBOuterClass.RGB value) {
- if (colorBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- color_ = value;
- onChanged();
- } else {
- colorBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- public Builder setColor(
- com.twine.tango.pmr.common.RGBOuterClass.RGB.Builder builderForValue) {
- if (colorBuilder_ == null) {
- color_ = builderForValue.build();
- onChanged();
- } else {
- colorBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- public Builder mergeColor(com.twine.tango.pmr.common.RGBOuterClass.RGB value) {
- if (colorBuilder_ == null) {
- if (color_ != null) {
- color_ =
- com.twine.tango.pmr.common.RGBOuterClass.RGB.newBuilder(color_).mergeFrom(value).buildPartial();
- } else {
- color_ = value;
- }
- onChanged();
- } else {
- colorBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- public Builder clearColor() {
- if (colorBuilder_ == null) {
- color_ = null;
- onChanged();
- } else {
- color_ = null;
- colorBuilder_ = null;
- }
-
- return this;
- }
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- public com.twine.tango.pmr.common.RGBOuterClass.RGB.Builder getColorBuilder() {
-
- onChanged();
- return getColorFieldBuilder().getBuilder();
- }
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- public com.twine.tango.pmr.common.RGBOuterClass.RGBOrBuilder getColorOrBuilder() {
- if (colorBuilder_ != null) {
- return colorBuilder_.getMessageOrBuilder();
- } else {
- return color_ == null ?
- com.twine.tango.pmr.common.RGBOuterClass.RGB.getDefaultInstance() : color_;
- }
- }
- /**
- * <code>.Tango.PMR.Common.RGB Color = 3;</code>
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.twine.tango.pmr.common.RGBOuterClass.RGB, com.twine.tango.pmr.common.RGBOuterClass.RGB.Builder, com.twine.tango.pmr.common.RGBOuterClass.RGBOrBuilder>
- getColorFieldBuilder() {
- if (colorBuilder_ == null) {
- colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.twine.tango.pmr.common.RGBOuterClass.RGB, com.twine.tango.pmr.common.RGBOuterClass.RGB.Builder, com.twine.tango.pmr.common.RGBOuterClass.RGBOrBuilder>(
- getColor(),
- getParentForChildren(),
- isClean());
- color_ = null;
- }
- return colorBuilder_;
- }
-
- private java.util.List<com.twine.tango.pmr.jobs.Dispenser.Dispense> dispenser_ =
- java.util.Collections.emptyList();
- private void ensureDispenserIsMutable() {
- if (!((bitField0_ & 0x00000008) == 0x00000008)) {
- dispenser_ = new java.util.ArrayList<com.twine.tango.pmr.jobs.Dispenser.Dispense>(dispenser_);
- bitField0_ |= 0x00000008;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.twine.tango.pmr.jobs.Dispenser.Dispense, com.twine.tango.pmr.jobs.Dispenser.Dispense.Builder, com.twine.tango.pmr.jobs.Dispenser.DispenseOrBuilder> dispenserBuilder_;
-
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public java.util.List<com.twine.tango.pmr.jobs.Dispenser.Dispense> getDispenserList() {
- if (dispenserBuilder_ == null) {
- return java.util.Collections.unmodifiableList(dispenser_);
- } else {
- return dispenserBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public int getDispenserCount() {
- if (dispenserBuilder_ == null) {
- return dispenser_.size();
- } else {
- return dispenserBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public com.twine.tango.pmr.jobs.Dispenser.Dispense getDispenser(int index) {
- if (dispenserBuilder_ == null) {
- return dispenser_.get(index);
- } else {
- return dispenserBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public Builder setDispenser(
- int index, com.twine.tango.pmr.jobs.Dispenser.Dispense value) {
- if (dispenserBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDispenserIsMutable();
- dispenser_.set(index, value);
- onChanged();
- } else {
- dispenserBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public Builder setDispenser(
- int index, com.twine.tango.pmr.jobs.Dispenser.Dispense.Builder builderForValue) {
- if (dispenserBuilder_ == null) {
- ensureDispenserIsMutable();
- dispenser_.set(index, builderForValue.build());
- onChanged();
- } else {
- dispenserBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public Builder addDispenser(com.twine.tango.pmr.jobs.Dispenser.Dispense value) {
- if (dispenserBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDispenserIsMutable();
- dispenser_.add(value);
- onChanged();
- } else {
- dispenserBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public Builder addDispenser(
- int index, com.twine.tango.pmr.jobs.Dispenser.Dispense value) {
- if (dispenserBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDispenserIsMutable();
- dispenser_.add(index, value);
- onChanged();
- } else {
- dispenserBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public Builder addDispenser(
- com.twine.tango.pmr.jobs.Dispenser.Dispense.Builder builderForValue) {
- if (dispenserBuilder_ == null) {
- ensureDispenserIsMutable();
- dispenser_.add(builderForValue.build());
- onChanged();
- } else {
- dispenserBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public Builder addDispenser(
- int index, com.twine.tango.pmr.jobs.Dispenser.Dispense.Builder builderForValue) {
- if (dispenserBuilder_ == null) {
- ensureDispenserIsMutable();
- dispenser_.add(index, builderForValue.build());
- onChanged();
- } else {
- dispenserBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public Builder addAllDispenser(
- java.lang.Iterable<? extends com.twine.tango.pmr.jobs.Dispenser.Dispense> values) {
- if (dispenserBuilder_ == null) {
- ensureDispenserIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, dispenser_);
- onChanged();
- } else {
- dispenserBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public Builder clearDispenser() {
- if (dispenserBuilder_ == null) {
- dispenser_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- } else {
- dispenserBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public Builder removeDispenser(int index) {
- if (dispenserBuilder_ == null) {
- ensureDispenserIsMutable();
- dispenser_.remove(index);
- onChanged();
- } else {
- dispenserBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public com.twine.tango.pmr.jobs.Dispenser.Dispense.Builder getDispenserBuilder(
- int index) {
- return getDispenserFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public com.twine.tango.pmr.jobs.Dispenser.DispenseOrBuilder getDispenserOrBuilder(
- int index) {
- if (dispenserBuilder_ == null) {
- return dispenser_.get(index); } else {
- return dispenserBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public java.util.List<? extends com.twine.tango.pmr.jobs.Dispenser.DispenseOrBuilder>
- getDispenserOrBuilderList() {
- if (dispenserBuilder_ != null) {
- return dispenserBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(dispenser_);
- }
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public com.twine.tango.pmr.jobs.Dispenser.Dispense.Builder addDispenserBuilder() {
- return getDispenserFieldBuilder().addBuilder(
- com.twine.tango.pmr.jobs.Dispenser.Dispense.getDefaultInstance());
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public com.twine.tango.pmr.jobs.Dispenser.Dispense.Builder addDispenserBuilder(
- int index) {
- return getDispenserFieldBuilder().addBuilder(
- index, com.twine.tango.pmr.jobs.Dispenser.Dispense.getDefaultInstance());
- }
- /**
- * <code>repeated .Tango.PMR.Jobs.Dispense dispenser = 4;</code>
- */
- public java.util.List<com.twine.tango.pmr.jobs.Dispenser.Dispense.Builder>
- getDispenserBuilderList() {
- return getDispenserFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.twine.tango.pmr.jobs.Dispenser.Dispense, com.twine.tango.pmr.jobs.Dispenser.Dispense.Builder, com.twine.tango.pmr.jobs.Dispenser.DispenseOrBuilder>
- getDispenserFieldBuilder() {
- if (dispenserBuilder_ == null) {
- dispenserBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
- com.twine.tango.pmr.jobs.Dispenser.Dispense, com.twine.tango.pmr.jobs.Dispenser.Dispense.Builder, com.twine.tango.pmr.jobs.Dispenser.DispenseOrBuilder>(
- dispenser_,
- ((bitField0_ & 0x00000008) == 0x00000008),
- getParentForChildren(),
- isClean());
- dispenser_ = null;
- }
- return dispenserBuilder_;
- }
- 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.Jobs.Segment)
- }
-
- // @@protoc_insertion_point(class_scope:Tango.PMR.Jobs.Segment)
- private static final com.twine.tango.pmr.jobs.SegmentOuterClass.Segment DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.twine.tango.pmr.jobs.SegmentOuterClass.Segment();
- }
-
- public static com.twine.tango.pmr.jobs.SegmentOuterClass.Segment getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser<Segment>
- PARSER = new com.google.protobuf.AbstractParser<Segment>() {
- public Segment parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Segment(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser<Segment> parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser<Segment> getParserForType() {
- return PARSER;
- }
-
- public com.twine.tango.pmr.jobs.SegmentOuterClass.Segment getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_Tango_PMR_Jobs_Segment_descriptor;
- private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_Tango_PMR_Jobs_Segment_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\rSegment.proto\022\016Tango.PMR.Jobs\032\tRGB.pro" +
- "to\032\017dispenser.proto\"z\n\007Segment\022\014\n\004Name\030\001" +
- " \001(\t\022\016\n\006Length\030\002 \001(\005\022$\n\005Color\030\003 \001(\0132\025.Ta" +
- "ngo.PMR.Common.RGB\022+\n\tdispenser\030\004 \003(\0132\030." +
- "Tango.PMR.Jobs.DispenseB\032\n\030com.twine.tan" +
- "go.pmr.jobsb\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[] {
- com.twine.tango.pmr.common.RGBOuterClass.getDescriptor(),
- com.twine.tango.pmr.jobs.Dispenser.getDescriptor(),
- }, assigner);
- internal_static_Tango_PMR_Jobs_Segment_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_Tango_PMR_Jobs_Segment_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_Tango_PMR_Jobs_Segment_descriptor,
- new java.lang.String[] { "Name", "Length", "Color", "Dispenser", });
- com.twine.tango.pmr.common.RGBOuterClass.getDescriptor();
- com.twine.tango.pmr.jobs.Dispenser.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}