All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zaber.motion.exceptions.InvalidResponseExceptionData Maven / Gradle / Ivy

Go to download

A library that aims to provide easy-to-use API for communication with Zaber devices using Zaber ASCII Protocol.

There is a newer version: 6.7.0
Show newest version
// ===== 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy