diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-01-18 16:20:02 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-01-18 16:20:02 +0200 |
| commit | 5e68543fd93e441e1e76acc3f439594f66c4412a (patch) | |
| tree | d64d3d48f1e91723c70a16b484be4cb456584ac1 /Software/Android_Studio | |
| parent | 448632f4057e9a81b8bc80701296dcd4ec622877 (diff) | |
| download | Tango-5e68543fd93e441e1e76acc3f439594f66c4412a.tar.gz Tango-5e68543fd93e441e1e76acc3f439594f66c4412a.zip | |
Removed Deleted from most of DB Tables !!!!!!!!!!!
Diffstat (limited to 'Software/Android_Studio')
36 files changed, 6684 insertions, 325 deletions
diff --git a/Software/Android_Studio/Tango.DAL/build.gradle b/Software/Android_Studio/Tango.DAL/build.gradle index cf010e8ba..86c71c619 100644 --- a/Software/Android_Studio/Tango.DAL/build.gradle +++ b/Software/Android_Studio/Tango.DAL/build.gradle @@ -73,4 +73,4 @@ task generateEntities(type: Exec, description: 'Generate DAL Entities') { preBuild.dependsOn(copyFiles) -//preBuild.dependsOn(generateEntities)
\ No newline at end of file +preBuild.dependsOn(generateEntities)
\ No newline at end of file diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/Entity.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/Entity.java index 6cf88e85e..84b88535a 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/Entity.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/Entity.java @@ -28,9 +28,6 @@ public class Entity extends BaseRXModel @Column(name = "LAST_UPDATED",typeConverter = DateConverter.class) private DateTime last_updated; - @Column(name = "DELETED") - private boolean deleted; - /** * Gets id. * @@ -92,26 +89,6 @@ public class Entity extends BaseRXModel } /** - * Is deleted boolean. - * - * @return the boolean - */ - public boolean isDeleted() - { - return deleted; - } - - /** - * Sets deleted. - * - * @param deleted the deleted - */ - public void setDeleted(boolean deleted) - { - this.deleted = deleted; - } - - /** * Instantiates a new Entity. */ public Entity() diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/dao/TangoDAO.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/dao/TangoDAO.java index e60d6e134..6b0c83a16 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/dao/TangoDAO.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/dao/TangoDAO.java @@ -8,11 +8,11 @@ import com.twine.tango.dal.entities.ApplicationFirmwareVersion; import com.twine.tango.dal.entities.ApplicationOsVersion; import com.twine.tango.dal.entities.ApplicationVersion; import com.twine.tango.dal.entities.CartridgeType; -import com.twine.tango.dal.entities.Cartridge; +import com.twine.tango.dal.entities.Cat; +import com.twine.tango.dal.entities.Cct; import com.twine.tango.dal.entities.Configuration; import com.twine.tango.dal.entities.Contact; import com.twine.tango.dal.entities.DispenserType; -import com.twine.tango.dal.entities.Dispenser; import com.twine.tango.dal.entities.EmbeddedFirmwareVersion; import com.twine.tango.dal.entities.EmbeddedSoftwareVersion; import com.twine.tango.dal.entities.EventType; @@ -32,6 +32,7 @@ import com.twine.tango.dal.entities.MediaColor; import com.twine.tango.dal.entities.MediaCondition; import com.twine.tango.dal.entities.MediaMaterial; import com.twine.tango.dal.entities.MediaPurpose; +import com.twine.tango.dal.entities.MidTankType; import com.twine.tango.dal.entities.Organization; import com.twine.tango.dal.entities.Permission; import com.twine.tango.dal.entities.Rml; @@ -116,13 +117,23 @@ public class TangoDAO } /** - * Gets all the Cartridges from database. + * Gets all the Cats from database. * - * @return all Cartridges + * @return all Cats */ - public static List<Cartridge> getAllCartridges() + public static List<Cat> getAllCats() { - return SQLite.select().from(Cartridge.class).queryList(); + return SQLite.select().from(Cat.class).queryList(); + } + + /** + * Gets all the Ccts from database. + * + * @return all Ccts + */ + public static List<Cct> getAllCcts() + { + return SQLite.select().from(Cct.class).queryList(); } /** @@ -156,16 +167,6 @@ public class TangoDAO } /** - * Gets all the Dispensers from database. - * - * @return all Dispensers - */ - public static List<Dispenser> getAllDispensers() - { - return SQLite.select().from(Dispenser.class).queryList(); - } - - /** * Gets all the EmbeddedFirmwareVersions from database. * * @return all EmbeddedFirmwareVersions @@ -356,6 +357,16 @@ public class TangoDAO } /** + * Gets all the MidTankTypes from database. + * + * @return all MidTankTypes + */ + public static List<MidTankType> getAllMidTankTypes() + { + return SQLite.select().from(MidTankType.class).queryList(); + } + + /** * Gets all the Organizations from database. * * @return all Organizations diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Address.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Address.java index 199d8f923..7a2a9242f 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Address.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Address.java @@ -13,6 +13,11 @@ import com.twine.tango.dal.TangoDB; public class Address extends Entity { + @Column(name = "DELETED") + private Boolean deleted; + + + @Column(name = "ADDRESS_STRING") private String addressString; @@ -50,6 +55,27 @@ import com.twine.tango.dal.TangoDB; /** + * Gets the Deleted. + * + * return the Deleted + */ + public Boolean isDeleted() + { + return deleted; + } + + /** + * Sets the Deleted. + * + * @param deleted the Deleted + */ + public void setDeleted(Boolean deleted) + { + this.deleted = deleted; + } + + + /** * Gets the AddressString. * * return the AddressString diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Cat.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Cat.java new file mode 100644 index 000000000..026927dd7 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Cat.java @@ -0,0 +1,94 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "CATS", database = TangoDB.class) + public class Cat extends Entity + { + + @Column(name = "DATA") + private byte[] data; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "LIQUID_TYPES_GUID", foreignKeyColumnName = "GUID")}) + private LiquidType liquidTypes; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "MACHINE_GUID", foreignKeyColumnName = "GUID")}) + private Machine machine; + + + + + /** + * Gets the Data. + * + * return the Data + */ + public byte[] getData() + { + return data; + } + + /** + * Sets the Data. + * + * @param data the Data + */ + public void setData(byte[] data) + { + this.data = data; + } + + + /** + * Gets the LiquidTypes. + * + * return the LiquidTypes + */ + public LiquidType getLiquidTypes() + { + return liquidTypes; + } + + /** + * Sets the LiquidTypes. + * + * @param liquidTypes the LiquidTypes + */ + public void setLiquidTypes(LiquidType liquidTypes) + { + this.liquidTypes = liquidTypes; + } + + + /** + * Gets the Machine. + * + * return the Machine + */ + public Machine getMachine() + { + return machine; + } + + /** + * Sets the Machine. + * + * @param machine the Machine + */ + public void setMachine(Machine machine) + { + this.machine = machine; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Cct.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Cct.java new file mode 100644 index 000000000..398eba866 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Cct.java @@ -0,0 +1,224 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "CCTS", database = TangoDB.class) + public class Cct extends Entity + { + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + @Column(name = "FORWARD_FILE_NAME") + private String forwardFileName; + + + + @Column(name = "INVERSE_FILE_NAME") + private String inverseFileName; + + + + @Column(name = "FORWARD_DATA") + private byte[] forwardData; + + + + @Column(name = "INVERSE_DATA") + private byte[] inverseData; + + + + @Column(name = "VERSION") + private Double version; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "RML_GUID", foreignKeyColumnName = "GUID")}) + private Rml rml; + + + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + + /** + * Gets the ForwardFileName. + * + * return the ForwardFileName + */ + public String getForwardFileName() + { + return forwardFileName; + } + + /** + * Sets the ForwardFileName. + * + * @param forwardFileName the ForwardFileName + */ + public void setForwardFileName(String forwardFileName) + { + this.forwardFileName = forwardFileName; + } + + + /** + * Gets the InverseFileName. + * + * return the InverseFileName + */ + public String getInverseFileName() + { + return inverseFileName; + } + + /** + * Sets the InverseFileName. + * + * @param inverseFileName the InverseFileName + */ + public void setInverseFileName(String inverseFileName) + { + this.inverseFileName = inverseFileName; + } + + + /** + * Gets the ForwardData. + * + * return the ForwardData + */ + public byte[] getForwardData() + { + return forwardData; + } + + /** + * Sets the ForwardData. + * + * @param forwardData the ForwardData + */ + public void setForwardData(byte[] forwardData) + { + this.forwardData = forwardData; + } + + + /** + * Gets the InverseData. + * + * return the InverseData + */ + public byte[] getInverseData() + { + return inverseData; + } + + /** + * Sets the InverseData. + * + * @param inverseData the InverseData + */ + public void setInverseData(byte[] inverseData) + { + this.inverseData = inverseData; + } + + + /** + * Gets the Version. + * + * return the Version + */ + public Double getVersion() + { + return version; + } + + /** + * Sets the Version. + * + * @param version the Version + */ + public void setVersion(Double version) + { + this.version = version; + } + + + /** + * Gets the Rml. + * + * return the Rml + */ + public Rml getRml() + { + return rml; + } + + /** + * Sets the Rml. + * + * @param rml the Rml + */ + public void setRml(Rml rml) + { + this.rml = rml; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Configuration.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Configuration.java index 13aeec266..6eaa78902 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Configuration.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Configuration.java @@ -23,38 +23,38 @@ import com.twine.tango.dal.TangoDB; - @ForeignKey(references = { @ForeignKeyReference(columnName = "APPLICATION_DISPLAY_PANEL_VERSION_GUID", foreignKeyColumnName = "GUID")}) - private ApplicationDisplayPanelVersion applicationDisplayPanelVersion; + @ForeignKey(references = { @ForeignKeyReference(columnName = "APPLICATION_DISPLAY_PANEL_VERSIONS_GUID", foreignKeyColumnName = "GUID")}) + private ApplicationDisplayPanelVersion applicationDisplayPanelVersions; - @ForeignKey(references = { @ForeignKeyReference(columnName = "APPLICATION_FIRMWARE_VERSION_GUID", foreignKeyColumnName = "GUID")}) - private ApplicationFirmwareVersion applicationFirmwareVersion; + @ForeignKey(references = { @ForeignKeyReference(columnName = "APPLICATION_FIRMWARE_VERSIONS_GUID", foreignKeyColumnName = "GUID")}) + private ApplicationFirmwareVersion applicationFirmwareVersions; - @ForeignKey(references = { @ForeignKeyReference(columnName = "APPLICATION_OS_VERSION_GUID", foreignKeyColumnName = "GUID")}) - private ApplicationOsVersion applicationOsVersion; + @ForeignKey(references = { @ForeignKeyReference(columnName = "APPLICATION_OS_VERSIONS_GUID", foreignKeyColumnName = "GUID")}) + private ApplicationOsVersion applicationOsVersions; - @ForeignKey(references = { @ForeignKeyReference(columnName = "APPLICATION_VERSION_GUID", foreignKeyColumnName = "GUID")}) - private ApplicationVersion applicationVersion; + @ForeignKey(references = { @ForeignKeyReference(columnName = "APPLICATION_VERSIONS_GUID", foreignKeyColumnName = "GUID")}) + private ApplicationVersion applicationVersions; - @ForeignKey(references = { @ForeignKeyReference(columnName = "EMBEDDED_FIRMWARE_VERSION_GUID", foreignKeyColumnName = "GUID")}) - private EmbeddedFirmwareVersion embeddedFirmwareVersion; + @ForeignKey(references = { @ForeignKeyReference(columnName = "EMBEDDED_FIRMWARE_VERSIONS_GUID", foreignKeyColumnName = "GUID")}) + private EmbeddedFirmwareVersion embeddedFirmwareVersions; - @ForeignKey(references = { @ForeignKeyReference(columnName = "EMBEDDED_SOFTWARE_VERSION_GUID", foreignKeyColumnName = "GUID")}) - private EmbeddedSoftwareVersion embeddedSoftwareVersion; + @ForeignKey(references = { @ForeignKeyReference(columnName = "EMBEDDED_SOFTWARE_VERSIONS_GUID", foreignKeyColumnName = "GUID")}) + private EmbeddedSoftwareVersion embeddedSoftwareVersions; - @ForeignKey(references = { @ForeignKeyReference(columnName = "HARDWARE_VERSION_GUID", foreignKeyColumnName = "GUID")}) - private HardwareVersion hardwareVersion; + @ForeignKey(references = { @ForeignKeyReference(columnName = "HARDWARE_VERSIONS_GUID", foreignKeyColumnName = "GUID")}) + private HardwareVersion hardwareVersions; @@ -102,149 +102,149 @@ import com.twine.tango.dal.TangoDB; /** - * Gets the ApplicationDisplayPanelVersion. + * Gets the ApplicationDisplayPanelVersions. * - * return the ApplicationDisplayPanelVersion + * return the ApplicationDisplayPanelVersions */ - public ApplicationDisplayPanelVersion getApplicationDisplayPanelVersion() + public ApplicationDisplayPanelVersion getApplicationDisplayPanelVersions() { - return applicationDisplayPanelVersion; + return applicationDisplayPanelVersions; } /** - * Sets the ApplicationDisplayPanelVersion. + * Sets the ApplicationDisplayPanelVersions. * - * @param applicationDisplayPanelVersion the ApplicationDisplayPanelVersion + * @param applicationDisplayPanelVersions the ApplicationDisplayPanelVersions */ - public void setApplicationDisplayPanelVersion(ApplicationDisplayPanelVersion applicationDisplayPanelVersion) + public void setApplicationDisplayPanelVersions(ApplicationDisplayPanelVersion applicationDisplayPanelVersions) { - this.applicationDisplayPanelVersion = applicationDisplayPanelVersion; + this.applicationDisplayPanelVersions = applicationDisplayPanelVersions; } /** - * Gets the ApplicationFirmwareVersion. + * Gets the ApplicationFirmwareVersions. * - * return the ApplicationFirmwareVersion + * return the ApplicationFirmwareVersions */ - public ApplicationFirmwareVersion getApplicationFirmwareVersion() + public ApplicationFirmwareVersion getApplicationFirmwareVersions() { - return applicationFirmwareVersion; + return applicationFirmwareVersions; } /** - * Sets the ApplicationFirmwareVersion. + * Sets the ApplicationFirmwareVersions. * - * @param applicationFirmwareVersion the ApplicationFirmwareVersion + * @param applicationFirmwareVersions the ApplicationFirmwareVersions */ - public void setApplicationFirmwareVersion(ApplicationFirmwareVersion applicationFirmwareVersion) + public void setApplicationFirmwareVersions(ApplicationFirmwareVersion applicationFirmwareVersions) { - this.applicationFirmwareVersion = applicationFirmwareVersion; + this.applicationFirmwareVersions = applicationFirmwareVersions; } /** - * Gets the ApplicationOsVersion. + * Gets the ApplicationOsVersions. * - * return the ApplicationOsVersion + * return the ApplicationOsVersions */ - public ApplicationOsVersion getApplicationOsVersion() + public ApplicationOsVersion getApplicationOsVersions() { - return applicationOsVersion; + return applicationOsVersions; } /** - * Sets the ApplicationOsVersion. + * Sets the ApplicationOsVersions. * - * @param applicationOsVersion the ApplicationOsVersion + * @param applicationOsVersions the ApplicationOsVersions */ - public void setApplicationOsVersion(ApplicationOsVersion applicationOsVersion) + public void setApplicationOsVersions(ApplicationOsVersion applicationOsVersions) { - this.applicationOsVersion = applicationOsVersion; + this.applicationOsVersions = applicationOsVersions; } /** - * Gets the ApplicationVersion. + * Gets the ApplicationVersions. * - * return the ApplicationVersion + * return the ApplicationVersions */ - public ApplicationVersion getApplicationVersion() + public ApplicationVersion getApplicationVersions() { - return applicationVersion; + return applicationVersions; } /** - * Sets the ApplicationVersion. + * Sets the ApplicationVersions. * - * @param applicationVersion the ApplicationVersion + * @param applicationVersions the ApplicationVersions */ - public void setApplicationVersion(ApplicationVersion applicationVersion) + public void setApplicationVersions(ApplicationVersion applicationVersions) { - this.applicationVersion = applicationVersion; + this.applicationVersions = applicationVersions; } /** - * Gets the EmbeddedFirmwareVersion. + * Gets the EmbeddedFirmwareVersions. * - * return the EmbeddedFirmwareVersion + * return the EmbeddedFirmwareVersions */ - public EmbeddedFirmwareVersion getEmbeddedFirmwareVersion() + public EmbeddedFirmwareVersion getEmbeddedFirmwareVersions() { - return embeddedFirmwareVersion; + return embeddedFirmwareVersions; } /** - * Sets the EmbeddedFirmwareVersion. + * Sets the EmbeddedFirmwareVersions. * - * @param embeddedFirmwareVersion the EmbeddedFirmwareVersion + * @param embeddedFirmwareVersions the EmbeddedFirmwareVersions */ - public void setEmbeddedFirmwareVersion(EmbeddedFirmwareVersion embeddedFirmwareVersion) + public void setEmbeddedFirmwareVersions(EmbeddedFirmwareVersion embeddedFirmwareVersions) { - this.embeddedFirmwareVersion = embeddedFirmwareVersion; + this.embeddedFirmwareVersions = embeddedFirmwareVersions; } /** - * Gets the EmbeddedSoftwareVersion. + * Gets the EmbeddedSoftwareVersions. * - * return the EmbeddedSoftwareVersion + * return the EmbeddedSoftwareVersions */ - public EmbeddedSoftwareVersion getEmbeddedSoftwareVersion() + public EmbeddedSoftwareVersion getEmbeddedSoftwareVersions() { - return embeddedSoftwareVersion; + return embeddedSoftwareVersions; } /** - * Sets the EmbeddedSoftwareVersion. + * Sets the EmbeddedSoftwareVersions. * - * @param embeddedSoftwareVersion the EmbeddedSoftwareVersion + * @param embeddedSoftwareVersions the EmbeddedSoftwareVersions */ - public void setEmbeddedSoftwareVersion(EmbeddedSoftwareVersion embeddedSoftwareVersion) + public void setEmbeddedSoftwareVersions(EmbeddedSoftwareVersion embeddedSoftwareVersions) { - this.embeddedSoftwareVersion = embeddedSoftwareVersion; + this.embeddedSoftwareVersions = embeddedSoftwareVersions; } /** - * Gets the HardwareVersion. + * Gets the HardwareVersions. * - * return the HardwareVersion + * return the HardwareVersions */ - public HardwareVersion getHardwareVersion() + public HardwareVersion getHardwareVersions() { - return hardwareVersion; + return hardwareVersions; } /** - * Sets the HardwareVersion. + * Sets the HardwareVersions. * - * @param hardwareVersion the HardwareVersion + * @param hardwareVersions the HardwareVersions */ - public void setHardwareVersion(HardwareVersion hardwareVersion) + public void setHardwareVersions(HardwareVersion hardwareVersions) { - this.hardwareVersion = hardwareVersion; + this.hardwareVersions = hardwareVersions; } } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Contact.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Contact.java index d4bc21b34..9f84e1038 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Contact.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Contact.java @@ -13,6 +13,11 @@ import com.twine.tango.dal.TangoDB; public class Contact extends Entity { + @Column(name = "DELETED") + private Boolean deleted; + + + @Column(name = "FIRST_NAME") private String firstName; @@ -45,6 +50,27 @@ import com.twine.tango.dal.TangoDB; /** + * Gets the Deleted. + * + * return the Deleted + */ + public Boolean isDeleted() + { + return deleted; + } + + /** + * Sets the Deleted. + * + * @param deleted the Deleted + */ + public void setDeleted(Boolean deleted) + { + this.deleted = deleted; + } + + + /** * Gets the FirstName. * * return the FirstName diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/DispenserType.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/DispenserType.java index 321ba241b..6739b3e89 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/DispenserType.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/DispenserType.java @@ -22,6 +22,16 @@ import com.twine.tango.dal.TangoDB; private String name; + + @Column(name = "NL_PER_PULSE") + private Double nlPerPulse; + + + + @Column(name = "CAPACITY") + private Double capacity; + + /** @@ -65,4 +75,46 @@ import com.twine.tango.dal.TangoDB; this.name = name; } + + /** + * Gets the NlPerPulse. + * + * return the NlPerPulse + */ + public Double getNlPerPulse() + { + return nlPerPulse; + } + + /** + * Sets the NlPerPulse. + * + * @param nlPerPulse the NlPerPulse + */ + public void setNlPerPulse(Double nlPerPulse) + { + this.nlPerPulse = nlPerPulse; + } + + + /** + * Gets the Capacity. + * + * return the Capacity + */ + public Double getCapacity() + { + return capacity; + } + + /** + * Sets the Capacity. + * + * @param capacity the Capacity + */ + public void setCapacity(Double capacity) + { + this.capacity = capacity; + } + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventTypesAction.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventTypesAction.java index 9f69b2592..7189d6066 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventTypesAction.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventTypesAction.java @@ -13,56 +13,56 @@ import com.twine.tango.dal.TangoDB; public class EventTypesAction extends Entity { - @ForeignKey(references = { @ForeignKeyReference(columnName = "ACTION_TYPE_GUID", foreignKeyColumnName = "GUID")}) - private ActionType actionType; + @ForeignKey(references = { @ForeignKeyReference(columnName = "ACTION_TYPES_GUID", foreignKeyColumnName = "GUID")}) + private ActionType actionTypes; - @ForeignKey(references = { @ForeignKeyReference(columnName = "EVENT_TYPE_GUID", foreignKeyColumnName = "GUID")}) - private EventType eventType; + @ForeignKey(references = { @ForeignKeyReference(columnName = "EVENT_TYPES_GUID", foreignKeyColumnName = "GUID")}) + private EventType eventTypes; /** - * Gets the ActionType. + * Gets the ActionTypes. * - * return the ActionType + * return the ActionTypes */ - public ActionType getActionType() + public ActionType getActionTypes() { - return actionType; + return actionTypes; } /** - * Sets the ActionType. + * Sets the ActionTypes. * - * @param actionType the ActionType + * @param actionTypes the ActionTypes */ - public void setActionType(ActionType actionType) + public void setActionTypes(ActionType actionTypes) { - this.actionType = actionType; + this.actionTypes = actionTypes; } /** - * Gets the EventType. + * Gets the EventTypes. * - * return the EventType + * return the EventTypes */ - public EventType getEventType() + public EventType getEventTypes() { - return eventType; + return eventTypes; } /** - * Sets the EventType. + * Sets the EventTypes. * - * @param eventType the EventType + * @param eventTypes the EventTypes */ - public void setEventType(EventType eventType) + public void setEventTypes(EventType eventTypes) { - this.eventType = eventType; + this.eventTypes = eventTypes; } } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/IdsPack.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/IdsPack.java index 3fb61d0a1..75699cfd7 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/IdsPack.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/IdsPack.java @@ -18,8 +18,13 @@ import com.twine.tango.dal.TangoDB; - @ForeignKey(references = { @ForeignKeyReference(columnName = "CARTRIDGE_GUID", foreignKeyColumnName = "GUID")}) - private Cartridge cartridge; + @Column(name = "PACK_INDEX") + private int packIndex; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "CARTRIDGE_TYPES_GUID", foreignKeyColumnName = "GUID")}) + private CartridgeType cartridgeTypes; @@ -28,13 +33,18 @@ import com.twine.tango.dal.TangoDB; - @ForeignKey(references = { @ForeignKeyReference(columnName = "DISPENSER_GUID", foreignKeyColumnName = "GUID")}) - private Dispenser dispenser; + @ForeignKey(references = { @ForeignKeyReference(columnName = "DISPENSER_TYPES_GUID", foreignKeyColumnName = "GUID")}) + private DispenserType dispenserTypes; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "LIQUID_TYPES_GUID", foreignKeyColumnName = "GUID")}) + private LiquidType liquidTypes; - @ForeignKey(references = { @ForeignKeyReference(columnName = "LIQUID_TYPE_GUID", foreignKeyColumnName = "GUID")}) - private LiquidType liquidType; + @ForeignKey(references = { @ForeignKeyReference(columnName = "MID_TANK_TYPES_GUID", foreignKeyColumnName = "GUID")}) + private MidTankType midTankTypes; @@ -61,23 +71,44 @@ import com.twine.tango.dal.TangoDB; /** - * Gets the Cartridge. + * Gets the PackIndex. + * + * return the PackIndex + */ + public int getPackIndex() + { + return packIndex; + } + + /** + * Sets the PackIndex. + * + * @param packIndex the PackIndex + */ + public void setPackIndex(int packIndex) + { + this.packIndex = packIndex; + } + + + /** + * Gets the CartridgeTypes. * - * return the Cartridge + * return the CartridgeTypes */ - public Cartridge getCartridge() + public CartridgeType getCartridgeTypes() { - return cartridge; + return cartridgeTypes; } /** - * Sets the Cartridge. + * Sets the CartridgeTypes. * - * @param cartridge the Cartridge + * @param cartridgeTypes the CartridgeTypes */ - public void setCartridge(Cartridge cartridge) + public void setCartridgeTypes(CartridgeType cartridgeTypes) { - this.cartridge = cartridge; + this.cartridgeTypes = cartridgeTypes; } @@ -103,44 +134,65 @@ import com.twine.tango.dal.TangoDB; /** - * Gets the Dispenser. + * Gets the DispenserTypes. + * + * return the DispenserTypes + */ + public DispenserType getDispenserTypes() + { + return dispenserTypes; + } + + /** + * Sets the DispenserTypes. + * + * @param dispenserTypes the DispenserTypes + */ + public void setDispenserTypes(DispenserType dispenserTypes) + { + this.dispenserTypes = dispenserTypes; + } + + + /** + * Gets the LiquidTypes. * - * return the Dispenser + * return the LiquidTypes */ - public Dispenser getDispenser() + public LiquidType getLiquidTypes() { - return dispenser; + return liquidTypes; } /** - * Sets the Dispenser. + * Sets the LiquidTypes. * - * @param dispenser the Dispenser + * @param liquidTypes the LiquidTypes */ - public void setDispenser(Dispenser dispenser) + public void setLiquidTypes(LiquidType liquidTypes) { - this.dispenser = dispenser; + this.liquidTypes = liquidTypes; } /** - * Gets the LiquidType. + * Gets the MidTankTypes. * - * return the LiquidType + * return the MidTankTypes */ - public LiquidType getLiquidType() + public MidTankType getMidTankTypes() { - return liquidType; + return midTankTypes; } /** - * Sets the LiquidType. + * Sets the MidTankTypes. * - * @param liquidType the LiquidType + * @param midTankTypes the MidTankTypes */ - public void setLiquidType(LiquidType liquidType) + public void setMidTankTypes(MidTankType midTankTypes) { - this.liquidType = liquidType; + this.midTankTypes = midTankTypes; } } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/LiquidTypesRml.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/LiquidTypesRml.java index db5f43933..b708557fb 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/LiquidTypesRml.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/LiquidTypesRml.java @@ -13,8 +13,13 @@ import com.twine.tango.dal.TangoDB; public class LiquidTypesRml extends Entity { - @ForeignKey(references = { @ForeignKeyReference(columnName = "LIQUID_TYPE_GUID", foreignKeyColumnName = "GUID")}) - private LiquidType liquidType; + @Column(name = "MAX_NL_PER_CM") + private Double maxNlPerCm; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "LIQUID_TYPES_GUID", foreignKeyColumnName = "GUID")}) + private LiquidType liquidTypes; @@ -25,23 +30,44 @@ import com.twine.tango.dal.TangoDB; /** - * Gets the LiquidType. + * Gets the MaxNlPerCm. + * + * return the MaxNlPerCm + */ + public Double getMaxNlPerCm() + { + return maxNlPerCm; + } + + /** + * Sets the MaxNlPerCm. + * + * @param maxNlPerCm the MaxNlPerCm + */ + public void setMaxNlPerCm(Double maxNlPerCm) + { + this.maxNlPerCm = maxNlPerCm; + } + + + /** + * Gets the LiquidTypes. * - * return the LiquidType + * return the LiquidTypes */ - public LiquidType getLiquidType() + public LiquidType getLiquidTypes() { - return liquidType; + return liquidTypes; } /** - * Sets the LiquidType. + * Sets the LiquidTypes. * - * @param liquidType the LiquidType + * @param liquidTypes the LiquidTypes */ - public void setLiquidType(LiquidType liquidType) + public void setLiquidTypes(LiquidType liquidTypes) { - this.liquidType = liquidType; + this.liquidTypes = liquidTypes; } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Machine.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Machine.java index 778974f2c..660e1e188 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Machine.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Machine.java @@ -33,8 +33,8 @@ import com.twine.tango.dal.TangoDB; - @ForeignKey(references = { @ForeignKeyReference(columnName = "MACHINE_VERSION_GUID", foreignKeyColumnName = "GUID")}) - private MachineVersion machineVersion; + @ForeignKey(references = { @ForeignKeyReference(columnName = "MACHINE_VERSIONS_GUID", foreignKeyColumnName = "GUID")}) + private MachineVersion machineVersions; @@ -129,23 +129,23 @@ import com.twine.tango.dal.TangoDB; /** - * Gets the MachineVersion. + * Gets the MachineVersions. * - * return the MachineVersion + * return the MachineVersions */ - public MachineVersion getMachineVersion() + public MachineVersion getMachineVersions() { - return machineVersion; + return machineVersions; } /** - * Sets the MachineVersion. + * Sets the MachineVersions. * - * @param machineVersion the MachineVersion + * @param machineVersions the MachineVersions */ - public void setMachineVersion(MachineVersion machineVersion) + public void setMachineVersions(MachineVersion machineVersions) { - this.machineVersion = machineVersion; + this.machineVersions = machineVersions; } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MachinesEvent.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MachinesEvent.java index 85cde559a..c60a46ef2 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MachinesEvent.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MachinesEvent.java @@ -23,8 +23,8 @@ import com.twine.tango.dal.TangoDB; - @ForeignKey(references = { @ForeignKeyReference(columnName = "EVENT_TYPE_GUID", foreignKeyColumnName = "GUID")}) - private EventType eventType; + @ForeignKey(references = { @ForeignKeyReference(columnName = "EVENT_TYPES_GUID", foreignKeyColumnName = "GUID")}) + private EventType eventTypes; @@ -82,23 +82,23 @@ import com.twine.tango.dal.TangoDB; /** - * Gets the EventType. + * Gets the EventTypes. * - * return the EventType + * return the EventTypes */ - public EventType getEventType() + public EventType getEventTypes() { - return eventType; + return eventTypes; } /** - * Sets the EventType. + * Sets the EventTypes. * - * @param eventType the EventType + * @param eventTypes the EventTypes */ - public void setEventType(EventType eventType) + public void setEventTypes(EventType eventTypes) { - this.eventType = eventType; + this.eventTypes = eventTypes; } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MidTankType.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MidTankType.java new file mode 100644 index 000000000..a934ee8f6 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MidTankType.java @@ -0,0 +1,94 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "MID_TANK_TYPES", database = TangoDB.class) + public class MidTankType extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "LITER_CAPACITY") + private Double literCapacity; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the LiterCapacity. + * + * return the LiterCapacity + */ + public Double getLiterCapacity() + { + return literCapacity; + } + + /** + * Sets the LiterCapacity. + * + * @param literCapacity the LiterCapacity + */ + public void setLiterCapacity(Double literCapacity) + { + this.literCapacity = literCapacity; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Rml.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Rml.java index 5f7fe528d..d796ee690 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Rml.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Rml.java @@ -13,6 +13,11 @@ import com.twine.tango.dal.TangoDB; public class Rml extends Entity { + @Column(name = "NAME") + private String name; + + + @Column(name = "MANUFACTURER") private String manufacturer; @@ -23,8 +28,8 @@ import com.twine.tango.dal.TangoDB; - @Column(name = "NUMBER_OF_FIBER") - private int numberOfFiber; + @Column(name = "NUMBER_OF_FIBERS") + private int numberOfFibers; @@ -68,43 +73,64 @@ import com.twine.tango.dal.TangoDB; - @ForeignKey(references = { @ForeignKeyReference(columnName = "FIBER_SHAPE_GUID", foreignKeyColumnName = "GUID")}) - private FiberShape fiberShape; + @ForeignKey(references = { @ForeignKeyReference(columnName = "FIBER_SHAPES_GUID", foreignKeyColumnName = "GUID")}) + private FiberShape fiberShapes; - @ForeignKey(references = { @ForeignKeyReference(columnName = "FIBER_SYNTH_GUID", foreignKeyColumnName = "GUID")}) - private FiberSynth fiberSynth; + @ForeignKey(references = { @ForeignKeyReference(columnName = "FIBER_SYNTHS_GUID", foreignKeyColumnName = "GUID")}) + private FiberSynth fiberSynths; - @ForeignKey(references = { @ForeignKeyReference(columnName = "LINEAR_MASS_DENSITY_UNIT_GUID", foreignKeyColumnName = "GUID")}) - private LinearMassDensityUnit linearMassDensityUnit; + @ForeignKey(references = { @ForeignKeyReference(columnName = "LINEAR_MASS_DENSITY_UNITS_GUID", foreignKeyColumnName = "GUID")}) + private LinearMassDensityUnit linearMassDensityUnits; - @ForeignKey(references = { @ForeignKeyReference(columnName = "MEDIA_COLOR_GUID", foreignKeyColumnName = "GUID")}) - private MediaColor mediaColor; + @ForeignKey(references = { @ForeignKeyReference(columnName = "MEDIA_COLORS_GUID", foreignKeyColumnName = "GUID")}) + private MediaColor mediaColors; - @ForeignKey(references = { @ForeignKeyReference(columnName = "MEDIA_CONDITION_GUID", foreignKeyColumnName = "GUID")}) - private MediaCondition mediaCondition; + @ForeignKey(references = { @ForeignKeyReference(columnName = "MEDIA_CONDITIONS_GUID", foreignKeyColumnName = "GUID")}) + private MediaCondition mediaConditions; - @ForeignKey(references = { @ForeignKeyReference(columnName = "MEDIA_MATERIAL_GUID", foreignKeyColumnName = "GUID")}) - private MediaMaterial mediaMaterial; + @ForeignKey(references = { @ForeignKeyReference(columnName = "MEDIA_MATERIALS_GUID", foreignKeyColumnName = "GUID")}) + private MediaMaterial mediaMaterials; - @ForeignKey(references = { @ForeignKeyReference(columnName = "MEDIA_PURPOSE_GUID", foreignKeyColumnName = "GUID")}) - private MediaPurpose mediaPurpose; + @ForeignKey(references = { @ForeignKeyReference(columnName = "MEDIA_PURPOSES_GUID", foreignKeyColumnName = "GUID")}) + private MediaPurpose mediaPurposes; /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** * Gets the Manufacturer. * * return the Manufacturer @@ -147,23 +173,23 @@ import com.twine.tango.dal.TangoDB; /** - * Gets the NumberOfFiber. + * Gets the NumberOfFibers. * - * return the NumberOfFiber + * return the NumberOfFibers */ - public int getNumberOfFiber() + public int getNumberOfFibers() { - return numberOfFiber; + return numberOfFibers; } /** - * Sets the NumberOfFiber. + * Sets the NumberOfFibers. * - * @param numberOfFiber the NumberOfFiber + * @param numberOfFibers the NumberOfFibers */ - public void setNumberOfFiber(int numberOfFiber) + public void setNumberOfFibers(int numberOfFibers) { - this.numberOfFiber = numberOfFiber; + this.numberOfFibers = numberOfFibers; } @@ -336,149 +362,149 @@ import com.twine.tango.dal.TangoDB; /** - * Gets the FiberShape. + * Gets the FiberShapes. * - * return the FiberShape + * return the FiberShapes */ - public FiberShape getFiberShape() + public FiberShape getFiberShapes() { - return fiberShape; + return fiberShapes; } /** - * Sets the FiberShape. + * Sets the FiberShapes. * - * @param fiberShape the FiberShape + * @param fiberShapes the FiberShapes */ - public void setFiberShape(FiberShape fiberShape) + public void setFiberShapes(FiberShape fiberShapes) { - this.fiberShape = fiberShape; + this.fiberShapes = fiberShapes; } /** - * Gets the FiberSynth. + * Gets the FiberSynths. * - * return the FiberSynth + * return the FiberSynths */ - public FiberSynth getFiberSynth() + public FiberSynth getFiberSynths() { - return fiberSynth; + return fiberSynths; } /** - * Sets the FiberSynth. + * Sets the FiberSynths. * - * @param fiberSynth the FiberSynth + * @param fiberSynths the FiberSynths */ - public void setFiberSynth(FiberSynth fiberSynth) + public void setFiberSynths(FiberSynth fiberSynths) { - this.fiberSynth = fiberSynth; + this.fiberSynths = fiberSynths; } /** - * Gets the LinearMassDensityUnit. + * Gets the LinearMassDensityUnits. * - * return the LinearMassDensityUnit + * return the LinearMassDensityUnits */ - public LinearMassDensityUnit getLinearMassDensityUnit() + public LinearMassDensityUnit getLinearMassDensityUnits() { - return linearMassDensityUnit; + return linearMassDensityUnits; } /** - * Sets the LinearMassDensityUnit. + * Sets the LinearMassDensityUnits. * - * @param linearMassDensityUnit the LinearMassDensityUnit + * @param linearMassDensityUnits the LinearMassDensityUnits */ - public void setLinearMassDensityUnit(LinearMassDensityUnit linearMassDensityUnit) + public void setLinearMassDensityUnits(LinearMassDensityUnit linearMassDensityUnits) { - this.linearMassDensityUnit = linearMassDensityUnit; + this.linearMassDensityUnits = linearMassDensityUnits; } /** - * Gets the MediaColor. + * Gets the MediaColors. * - * return the MediaColor + * return the MediaColors */ - public MediaColor getMediaColor() + public MediaColor getMediaColors() { - return mediaColor; + return mediaColors; } /** - * Sets the MediaColor. + * Sets the MediaColors. * - * @param mediaColor the MediaColor + * @param mediaColors the MediaColors */ - public void setMediaColor(MediaColor mediaColor) + public void setMediaColors(MediaColor mediaColors) { - this.mediaColor = mediaColor; + this.mediaColors = mediaColors; } /** - * Gets the MediaCondition. + * Gets the MediaConditions. * - * return the MediaCondition + * return the MediaConditions */ - public MediaCondition getMediaCondition() + public MediaCondition getMediaConditions() { - return mediaCondition; + return mediaConditions; } /** - * Sets the MediaCondition. + * Sets the MediaConditions. * - * @param mediaCondition the MediaCondition + * @param mediaConditions the MediaConditions */ - public void setMediaCondition(MediaCondition mediaCondition) + public void setMediaConditions(MediaCondition mediaConditions) { - this.mediaCondition = mediaCondition; + this.mediaConditions = mediaConditions; } /** - * Gets the MediaMaterial. + * Gets the MediaMaterials. * - * return the MediaMaterial + * return the MediaMaterials */ - public MediaMaterial getMediaMaterial() + public MediaMaterial getMediaMaterials() { - return mediaMaterial; + return mediaMaterials; } /** - * Sets the MediaMaterial. + * Sets the MediaMaterials. * - * @param mediaMaterial the MediaMaterial + * @param mediaMaterials the MediaMaterials */ - public void setMediaMaterial(MediaMaterial mediaMaterial) + public void setMediaMaterials(MediaMaterial mediaMaterials) { - this.mediaMaterial = mediaMaterial; + this.mediaMaterials = mediaMaterials; } /** - * Gets the MediaPurpose. + * Gets the MediaPurposes. * - * return the MediaPurpose + * return the MediaPurposes */ - public MediaPurpose getMediaPurpose() + public MediaPurpose getMediaPurposes() { - return mediaPurpose; + return mediaPurposes; } /** - * Sets the MediaPurpose. + * Sets the MediaPurposes. * - * @param mediaPurpose the MediaPurpose + * @param mediaPurposes the MediaPurposes */ - public void setMediaPurpose(MediaPurpose mediaPurpose) + public void setMediaPurposes(MediaPurpose mediaPurposes) { - this.mediaPurpose = mediaPurpose; + this.mediaPurposes = mediaPurposes; } } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/User.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/User.java index 5a346a620..8694bfefc 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/User.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/User.java @@ -13,6 +13,11 @@ import com.twine.tango.dal.TangoDB; public class User extends Entity { + @Column(name = "DELETED") + private Boolean deleted; + + + @Column(name = "EMAIL") private String email; @@ -40,6 +45,27 @@ import com.twine.tango.dal.TangoDB; /** + * Gets the Deleted. + * + * return the Deleted + */ + public Boolean isDeleted() + { + return deleted; + } + + /** + * Sets the Deleted. + * + * @param deleted the Deleted + */ + public void setDeleted(Boolean deleted) + { + this.deleted = deleted; + } + + + /** * Gets the Email. * * return the Email diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/UsersRole.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/UsersRole.java index ad1c44bd1..c40c669f2 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/UsersRole.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/UsersRole.java @@ -13,6 +13,11 @@ import com.twine.tango.dal.TangoDB; public class UsersRole extends Entity { + @Column(name = "DELETED") + private Boolean deleted; + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "ROLE_GUID", foreignKeyColumnName = "GUID")}) private Role role; @@ -25,6 +30,27 @@ import com.twine.tango.dal.TangoDB; /** + * Gets the Deleted. + * + * return the Deleted + */ + public Boolean isDeleted() + { + return deleted; + } + + /** + * Sets the Deleted. + * + * @param deleted the Deleted + */ + public void setDeleted(Boolean deleted) + { + this.deleted = deleted; + } + + + /** * Gets the Role. * * return the Role diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/FiberShapes.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/FiberShapes.java index d146cd79a..10411d66a 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/FiberShapes.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/FiberShapes.java @@ -4,6 +4,10 @@ import com.twine.tango.core.DescriptionAnnotation; public enum FiberShapes { + + @DescriptionAnnotation(description = "Triangle") + Triangle(1), + ; private int value; diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/FiberSynths.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/FiberSynths.java index 0b8b6384d..03f2f950b 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/FiberSynths.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/FiberSynths.java @@ -4,6 +4,10 @@ import com.twine.tango.core.DescriptionAnnotation; public enum FiberSynths { + + @DescriptionAnnotation(description = "Some syntheses type") + Somesynthesestype(1), + ; private int value; diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/LinearMassDensityUnits.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/LinearMassDensityUnits.java index 495a187f1..1cc561b63 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/LinearMassDensityUnits.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/LinearMassDensityUnits.java @@ -4,6 +4,10 @@ import com.twine.tango.core.DescriptionAnnotation; public enum LinearMassDensityUnits { + + @DescriptionAnnotation(description = "Dex") + Dex(1), + ; private int value; diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/LiquidTypes.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/LiquidTypes.java index d2d480167..5b9d52450 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/LiquidTypes.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/LiquidTypes.java @@ -8,9 +8,24 @@ public enum LiquidTypes @DescriptionAnnotation(description = "Cyan") Cyan(1), + @DescriptionAnnotation(description = "Red") + Red(7), + + @DescriptionAnnotation(description = "Transparent Ink") + TransparentInk(6), + @DescriptionAnnotation(description = "Magenta") Magenta(2), + @DescriptionAnnotation(description = "Lubricant") + Lubricant(5), + + @DescriptionAnnotation(description = "Yellow") + Yellow(2), + + @DescriptionAnnotation(description = "Black") + Black(4), + ; private int value; diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MediaConditions.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MediaConditions.java index 7fc83ad16..b083f111a 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MediaConditions.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MediaConditions.java @@ -4,6 +4,10 @@ import com.twine.tango.core.DescriptionAnnotation; public enum MediaConditions { + + @DescriptionAnnotation(description = "Treated") + Treated(1), + ; private int value; diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MediaMaterials.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MediaMaterials.java index ca2b458af..87c8313a9 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MediaMaterials.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MediaMaterials.java @@ -4,6 +4,10 @@ import com.twine.tango.core.DescriptionAnnotation; public enum MediaMaterials { + + @DescriptionAnnotation(description = "Nylon") + Nylon(1), + ; private int value; diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MediaPurposes.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MediaPurposes.java index 8cf72e8e0..ac68e56df 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MediaPurposes.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MediaPurposes.java @@ -4,6 +4,10 @@ import com.twine.tango.core.DescriptionAnnotation; public enum MediaPurposes { + + @DescriptionAnnotation(description = "Embroidery") + Embroidery(1), + ; private int value; diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MidTankTypes.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MidTankTypes.java new file mode 100644 index 000000000..a1122db40 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/MidTankTypes.java @@ -0,0 +1,19 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum MidTankTypes +{ + + @DescriptionAnnotation(description = "Liter Tank 2") + LiterTank2(1), + + ; + + private int value; + + MidTankTypes(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Permissions.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Permissions.java index b280489a4..b8c324466 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Permissions.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Permissions.java @@ -17,6 +17,9 @@ public enum Permissions @DescriptionAnnotation(description = "Allows loading the synchronization module in machine studio") RunSynchronizationModule(3), + @DescriptionAnnotation(description = "Allows loading the machine designer module in Machine Studio") + RunMachineDesignerModule(4), + ; private int value; diff --git a/Software/Android_Studio/Tango.DAL/src/main/res/raw/tangodb b/Software/Android_Studio/Tango.DAL/src/main/res/raw/tangodb Binary files differindex 12c88039d..147c930c6 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/res/raw/tangodb +++ b/Software/Android_Studio/Tango.DAL/src/main/res/raw/tangodb diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageTypeOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageTypeOuterClass.java index 42b46a576..0b4c2fb97 100644 --- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageTypeOuterClass.java +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageTypeOuterClass.java @@ -20,6 +20,10 @@ public final class MessageTypeOuterClass { public enum MessageType implements com.google.protobuf.ProtocolMessageEnum { /** + * <pre> + *Common + * </pre> + * * <code>RGB = 0;</code> */ RGB(0), @@ -211,10 +215,26 @@ public final class MessageTypeOuterClass { * <code>KeepAliveResponse = 1008;</code> */ KeepAliveResponse(1008), + /** + * <pre> + *Diagnostics + * </pre> + * + * <code>StartDiagnosticsRequest = 2000;</code> + */ + StartDiagnosticsRequest(2000), + /** + * <code>StartDiagnosticsResponse = 2001;</code> + */ + StartDiagnosticsResponse(2001), UNRECOGNIZED(-1), ; /** + * <pre> + *Common + * </pre> + * * <code>RGB = 0;</code> */ public static final int RGB_VALUE = 0; @@ -406,6 +426,18 @@ public final class MessageTypeOuterClass { * <code>KeepAliveResponse = 1008;</code> */ public static final int KeepAliveResponse_VALUE = 1008; + /** + * <pre> + *Diagnostics + * </pre> + * + * <code>StartDiagnosticsRequest = 2000;</code> + */ + public static final int StartDiagnosticsRequest_VALUE = 2000; + /** + * <code>StartDiagnosticsResponse = 2001;</code> + */ + public static final int StartDiagnosticsResponse_VALUE = 2001; public final int getNumber() { @@ -472,6 +504,8 @@ public final class MessageTypeOuterClass { case 1006: return OverrideDataBaseResponse; case 1007: return KeepAliveRequest; case 1008: return KeepAliveResponse; + case 2000: return StartDiagnosticsRequest; + case 2001: return StartDiagnosticsResponse; default: return null; } } @@ -533,7 +567,7 @@ public final class MessageTypeOuterClass { descriptor; static { java.lang.String[] descriptorData = { - "\n\021MessageType.proto\022\020Tango.PMR.Common*\204\n" + + "\n\021MessageType.proto\022\020Tango.PMR.Common*\301\n" + "\n\013MessageType\022\007\n\003RGB\020\000\022\007\n\003Job\020\001\022\013\n\007Segme" + "nt\020\002\022\024\n\020CalculateRequest\020\003\022\025\n\021CalculateR" + "esponse\020\004\022\023\n\017ProgressRequest\020\005\022\024\n\020Progre" + @@ -566,8 +600,9 @@ public final class MessageTypeOuterClass { "ationResponse\020\354\007\022\034\n\027OverrideDataBaseRequ" + "est\020\355\007\022\035\n\030OverrideDataBaseResponse\020\356\007\022\025\n" + "\020KeepAliveRequest\020\357\007\022\026\n\021KeepAliveRespons" + - "e\020\360\007B\034\n\032com.twine.tango.pmr.commonb\006prot" + - "o3" + "e\020\360\007\022\034\n\027StartDiagnosticsRequest\020\320\017\022\035\n\030St" + + "artDiagnosticsResponse\020\321\017B\034\n\032com.twine.t" + + "ango.pmr.commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/StartDiagnosticsRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/StartDiagnosticsRequestOuterClass.java new file mode 100644 index 000000000..f4d31c154 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/StartDiagnosticsRequestOuterClass.java @@ -0,0 +1,635 @@ +// 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 new file mode 100644 index 000000000..fa5b736e1 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/StartDiagnosticsResponseOuterClass.java @@ -0,0 +1,782 @@ +// 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 new file mode 100644 index 000000000..e1193c8d3 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/Dispenser.java @@ -0,0 +1,1406 @@ +// 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 index 79c17d6a8..08cd603b0 100644 --- 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 @@ -29,28 +29,104 @@ public final class JobOuterClass { getNameBytes(); /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <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 = 2;</code> + * <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 = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ int getSegmentsCount(); /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <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 = 2;</code> + * <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} @@ -66,7 +142,15 @@ public final class JobOuterClass { } 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 @@ -103,15 +187,59 @@ public final class JobOuterClass { name_ = s; break; } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + 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_ |= 0x00000002; + 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) { @@ -120,9 +248,12 @@ public final class JobOuterClass { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + 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(); } @@ -174,41 +305,156 @@ public final class JobOuterClass { } } - public static final int SEGMENTS_FIELD_NUMBER = 2; + 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 = 2;</code> + * <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 = 2;</code> + * <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 = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public int getSegmentsCount() { return segments_.size(); } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <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 = 2;</code> + * <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; @@ -224,8 +470,32 @@ public final class JobOuterClass { 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(2, segments_.get(i)); + output.writeMessage(9, segments_.get(i)); + } + for (int i = 0; i < motors_.size(); i++) { + output.writeMessage(10, motors_.get(i)); } unknownFields.writeTo(output); } @@ -238,9 +508,41 @@ public final class JobOuterClass { 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(2, segments_.get(i)); + .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; @@ -260,8 +562,24 @@ public final class JobOuterClass { 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; } @@ -275,10 +593,30 @@ public final class JobOuterClass { 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; @@ -405,18 +743,39 @@ public final class JobOuterClass { 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_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); } else { segmentsBuilder_.clear(); } + if (motorsBuilder_ == null) { + motors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + motorsBuilder_.clear(); + } return this; } @@ -442,15 +801,31 @@ public final class JobOuterClass { 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_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000002); + 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; @@ -497,11 +872,32 @@ public final class JobOuterClass { 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_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); @@ -514,7 +910,7 @@ public final class JobOuterClass { segmentsBuilder_.dispose(); segmentsBuilder_ = null; segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); segmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentsFieldBuilder() : null; @@ -523,6 +919,32 @@ public final class JobOuterClass { } } } + 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; @@ -620,12 +1042,245 @@ public final class JobOuterClass { 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_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { segments_ = new java.util.ArrayList<com.twine.tango.pmr.jobs.SegmentOuterClass.Segment>(segments_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000100; } } @@ -633,7 +1288,7 @@ public final class JobOuterClass { 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 = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public java.util.List<com.twine.tango.pmr.jobs.SegmentOuterClass.Segment> getSegmentsList() { if (segmentsBuilder_ == null) { @@ -643,7 +1298,7 @@ public final class JobOuterClass { } } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public int getSegmentsCount() { if (segmentsBuilder_ == null) { @@ -653,7 +1308,7 @@ public final class JobOuterClass { } } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public com.twine.tango.pmr.jobs.SegmentOuterClass.Segment getSegments(int index) { if (segmentsBuilder_ == null) { @@ -663,7 +1318,7 @@ public final class JobOuterClass { } } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public Builder setSegments( int index, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment value) { @@ -680,7 +1335,7 @@ public final class JobOuterClass { return this; } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public Builder setSegments( int index, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder builderForValue) { @@ -694,7 +1349,7 @@ public final class JobOuterClass { return this; } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public Builder addSegments(com.twine.tango.pmr.jobs.SegmentOuterClass.Segment value) { if (segmentsBuilder_ == null) { @@ -710,7 +1365,7 @@ public final class JobOuterClass { return this; } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public Builder addSegments( int index, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment value) { @@ -727,7 +1382,7 @@ public final class JobOuterClass { return this; } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public Builder addSegments( com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder builderForValue) { @@ -741,7 +1396,7 @@ public final class JobOuterClass { return this; } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public Builder addSegments( int index, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder builderForValue) { @@ -755,7 +1410,7 @@ public final class JobOuterClass { return this; } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public Builder addAllSegments( java.lang.Iterable<? extends com.twine.tango.pmr.jobs.SegmentOuterClass.Segment> values) { @@ -770,12 +1425,12 @@ public final class JobOuterClass { return this; } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public Builder clearSegments() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { segmentsBuilder_.clear(); @@ -783,7 +1438,7 @@ public final class JobOuterClass { return this; } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public Builder removeSegments(int index) { if (segmentsBuilder_ == null) { @@ -796,14 +1451,14 @@ public final class JobOuterClass { return this; } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <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 = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public com.twine.tango.pmr.jobs.SegmentOuterClass.SegmentOrBuilder getSegmentsOrBuilder( int index) { @@ -813,7 +1468,7 @@ public final class JobOuterClass { } } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public java.util.List<? extends com.twine.tango.pmr.jobs.SegmentOuterClass.SegmentOrBuilder> getSegmentsOrBuilderList() { @@ -824,14 +1479,14 @@ public final class JobOuterClass { } } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <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 = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder addSegmentsBuilder( int index) { @@ -839,7 +1494,7 @@ public final class JobOuterClass { index, com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.getDefaultInstance()); } /** - * <code>repeated .Tango.PMR.Jobs.Segment Segments = 2;</code> + * <code>repeated .Tango.PMR.Jobs.Segment Segments = 9;</code> */ public java.util.List<com.twine.tango.pmr.jobs.SegmentOuterClass.Segment.Builder> getSegmentsBuilderList() { @@ -852,13 +1507,253 @@ public final class JobOuterClass { 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_ & 0x00000002) == 0x00000002), + ((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); @@ -923,9 +1818,15 @@ public final class JobOuterClass { static { java.lang.String[] descriptorData = { "\n\tJob.proto\022\016Tango.PMR.Jobs\032\rSegment.pro" + - "to\">\n\003Job\022\014\n\004Name\030\001 \001(\t\022)\n\010Segments\030\002 \003(" + - "\0132\027.Tango.PMR.Jobs.SegmentB\032\n\030com.twine." + - "tango.pmr.jobsb\006proto3" + "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() { @@ -939,14 +1840,16 @@ public final class JobOuterClass { .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", "Segments", }); + 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 new file mode 100644 index 000000000..9b099e7d4 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/jobs/Motor.java @@ -0,0 +1,1500 @@ +// 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 index eb19e884e..629204d61 100644 --- 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 @@ -45,6 +45,30 @@ public final class SegmentOuterClass { * <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} @@ -61,6 +85,7 @@ public final class SegmentOuterClass { private Segment() { name_ = ""; length_ = 0; + dispenser_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -115,6 +140,15 @@ public final class SegmentOuterClass { 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) { @@ -123,6 +157,9 @@ public final class SegmentOuterClass { 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(); } @@ -139,6 +176,7 @@ public final class SegmentOuterClass { 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_; /** @@ -203,6 +241,41 @@ public final class SegmentOuterClass { 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; @@ -224,6 +297,9 @@ public final class SegmentOuterClass { if (color_ != null) { output.writeMessage(3, getColor()); } + for (int i = 0; i < dispenser_.size(); i++) { + output.writeMessage(4, dispenser_.get(i)); + } unknownFields.writeTo(output); } @@ -243,6 +319,10 @@ public final class SegmentOuterClass { 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; @@ -268,6 +348,8 @@ public final class SegmentOuterClass { result = result && getColor() .equals(other.getColor()); } + result = result && getDispenserList() + .equals(other.getDispenserList()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -287,6 +369,10 @@ public final class SegmentOuterClass { 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; @@ -412,6 +498,7 @@ public final class SegmentOuterClass { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getDispenserFieldBuilder(); } } public Builder clear() { @@ -426,6 +513,12 @@ public final class SegmentOuterClass { color_ = null; colorBuilder_ = null; } + if (dispenserBuilder_ == null) { + dispenser_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + dispenserBuilder_.clear(); + } return this; } @@ -448,6 +541,8 @@ public final class SegmentOuterClass { 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) { @@ -455,6 +550,16 @@ public final class SegmentOuterClass { } 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; } @@ -506,6 +611,32 @@ public final class SegmentOuterClass { 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; @@ -532,6 +663,7 @@ public final class SegmentOuterClass { } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** @@ -744,6 +876,246 @@ public final class SegmentOuterClass { } 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); @@ -808,9 +1180,11 @@ public final class SegmentOuterClass { static { java.lang.String[] descriptorData = { "\n\rSegment.proto\022\016Tango.PMR.Jobs\032\tRGB.pro" + - "to\"M\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.Tango.PMR.Common.RG" + - "BB\032\n\030com.twine.tango.pmr.jobsb\006proto3" + "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() { @@ -824,14 +1198,16 @@ public final class SegmentOuterClass { .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", }); + 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) diff --git a/Software/Android_Studio/Tango.PMR/src/main/res/raw/packages.txt b/Software/Android_Studio/Tango.PMR/src/main/res/raw/packages.txt index 7dcb7e0f1..8633ab3c5 100644 --- a/Software/Android_Studio/Tango.PMR/src/main/res/raw/packages.txt +++ b/Software/Android_Studio/Tango.PMR/src/main/res/raw/packages.txt @@ -1,4 +1,5 @@ common +diagnostics integration jobs stubs |
