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