net.dongliu.prettypb.rpc.protocol.OobMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of prettypb-rpc Show documentation
Show all versions of prettypb-rpc Show documentation
proto rpc libs, compatible with proto-rpc-pro
//Generated by pretty java compiler, DO NOT MODIFY!
package net.dongliu.prettypb.rpc.protocol;
import net.dongliu.prettypb.runtime.include.*;
@ProtoBean(name = "OobMessage", protoPackage = "")
public class OobMessage {
@ProtoField(idx=1, type=ProtoType.Bytes, name="messageBytes", required=true)
private byte[] messageBytes;
private boolean _messageBytes;
public byte[] getMessageBytes () {
return messageBytes;
}
public void setMessageBytes (byte[] messageBytes) {
if (!this._messageBytes) this._messageBytes = true;
this.messageBytes = messageBytes;
}
public boolean hasMessageBytes () {
return _messageBytes && messageBytes != null;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("OobMessage{\n");
if (_messageBytes)
sb.append("messageBytes: ").append(messageBytes).append("\n");
sb.append("}");
return sb.toString();
}
}