zaber.motion.exceptions.BinaryCommandFailedExceptionData 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 BinaryCommandFailedException.
*/
public final class BinaryCommandFailedExceptionData {
private int responseData;
/**
* The response data.
*/
public void setResponseData(int responseData) {
this.responseData = responseData;
}
/**
* @return The response data.
*/
public int getResponseData() {
return this.responseData;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("BinaryCommandFailedExceptionData { ");
sb.append("responseData: ");
sb.append(this.responseData);
sb.append(" }");
return sb.toString();
}
public static BinaryCommandFailedExceptionData fromProtobuf(Main.BinaryCommandFailedExceptionData pbData) {
BinaryCommandFailedExceptionData obj = new BinaryCommandFailedExceptionData();
obj.setResponseData(pbData.getResponseData());
return obj;
}
}