zaber.motion.exceptions.CommandFailedExceptionData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of motion-library Show documentation
Show all versions of motion-library Show documentation
A library that aims to provide easy-to-use API for communication with Zaber devices using Zaber ASCII Protocol.
// ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //
// ============== DO NOT EDIT DIRECTLY ============== //
package zaber.motion.exceptions;
import zaber.motion.protobufs.Main;
/**
* Contains additional data for CommandFailedException.
*/
public final class CommandFailedExceptionData {
private String responseData;
/**
* The response data.
*/
public void setResponseData(String responseData) {
this.responseData = responseData;
}
/**
* @return The response data.
*/
public String getResponseData() {
return this.responseData;
}
private String replyFlag;
/**
* The flags on the reply sent by the device.
*/
public void setReplyFlag(String replyFlag) {
this.replyFlag = replyFlag;
}
/**
* @return The flags on the reply sent by the device.
*/
public String getReplyFlag() {
return this.replyFlag;
}
private String status;
/**
* The current device status.
*/
public void setStatus(String status) {
this.status = status;
}
/**
* @return The current device status.
*/
public String getStatus() {
return this.status;
}
private String warningFlag;
/**
* The current warning flag on the device.
*/
public void setWarningFlag(String warningFlag) {
this.warningFlag = warningFlag;
}
/**
* @return The current warning flag on the device.
*/
public String getWarningFlag() {
return this.warningFlag;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("CommandFailedExceptionData { ");
sb.append("responseData: ");
sb.append(this.responseData);
sb.append(", ");
sb.append("replyFlag: ");
sb.append(this.replyFlag);
sb.append(", ");
sb.append("status: ");
sb.append(this.status);
sb.append(", ");
sb.append("warningFlag: ");
sb.append(this.warningFlag);
sb.append(" }");
return sb.toString();
}
public static CommandFailedExceptionData fromProtobuf(Main.CommandFailedExceptionData pbData) {
CommandFailedExceptionData obj = new CommandFailedExceptionData();
obj.setResponseData(pbData.getResponseData());
obj.setReplyFlag(pbData.getReplyFlag());
obj.setStatus(pbData.getStatus());
obj.setWarningFlag(pbData.getWarningFlag());
return obj;
}
}