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

quark.mock.BinaryMessage Maven / Gradle / Ivy

There is a newer version: 2.0.37
Show newest version
/* Quark 1.0.452 run at 2016-11-10 18:39:58.222591 */
package quark.mock;

/**
 * A binary message.
 */
public class BinaryMessage extends MockMessage implements io.datawire.quark.runtime.QObject {
    public static quark.reflect.Class quark_mock_BinaryMessage_ref = datawire_mdk_md.Root.quark_mock_BinaryMessage_md;
    /**
     * The message content.
     */
    public io.datawire.quark.runtime.Buffer bytes;
    public BinaryMessage(io.datawire.quark.runtime.Buffer message) {
        super();
        this.bytes = message;
    }
    public Boolean isText() {
        return false;
    }
    public String _getClass() {
        return "quark.mock.BinaryMessage";
    }
    public Object _getField(String name) {
        if ((name)==("bytes") || ((Object)(name) != null && ((Object) (name)).equals("bytes"))) {
            return (this).bytes;
        }
        return null;
    }
    public void _setField(String name, Object value) {
        if ((name)==("bytes") || ((Object)(name) != null && ((Object) (name)).equals("bytes"))) {
            (this).bytes = (io.datawire.quark.runtime.Buffer) (value);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy