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

zaber.motion.exceptions.BinaryCommandFailedExceptionData 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 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy