com.gnss.common.proto.RpcProto Maven / Gradle / Ivy
package com.gnss.common.proto;
import com.baidu.bjf.remoting.protobuf.FieldType;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import com.gnss.common.constants.RpcEnum;
import lombok.Data;
import java.io.Serializable;
/**
* Description: RPC protobuf定义
* Company: www.gps-pro.cn
*
* @author huangguangbin
* @version 1.0.1
* @date 2018/2/3
*/
@Data
@ProtobufClass
public class RpcProto implements Serializable {
@Protobuf(fieldType = FieldType.ENUM, order = 1, required = true)
private RpcEnum rpcType;
@Protobuf(fieldType = FieldType.STRING, order = 2)
private String content;
public RpcProto() {
}
public RpcProto(RpcEnum rpcType) {
this.rpcType = rpcType;
}
public RpcProto(RpcEnum rpcType, String content) {
this.rpcType = rpcType;
this.content = content;
}
}