Package io.vertx.rxjava3.grpc.common
Class GrpcMessage
- java.lang.Object
-
- io.vertx.rxjava3.grpc.common.GrpcMessage
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<GrpcMessage>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description GrpcMessage(GrpcMessage delegate)
GrpcMessage(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
encoding()
boolean
equals(Object o)
WireFormat
format()
GrpcMessage
getDelegate()
int
hashCode()
static GrpcMessage
message(String encoding, Buffer payload)
static GrpcMessage
message(String encoding, WireFormat format, Buffer payload)
static GrpcMessage
newInstance(GrpcMessage arg)
Buffer
payload()
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<GrpcMessage> __TYPE_ARG
-
-
Constructor Detail
-
GrpcMessage
public GrpcMessage(GrpcMessage delegate)
-
GrpcMessage
public GrpcMessage(Object delegate)
-
-
Method Detail
-
getDelegate
public GrpcMessage getDelegate()
-
message
public static GrpcMessage message(String encoding, WireFormat format, Buffer payload)
- Parameters:
encoding
-format
-payload
-- Returns:
- a new message
-
message
public static GrpcMessage message(String encoding, Buffer payload)
- Parameters:
encoding
-payload
-- Returns:
- a new message in proto format
-
encoding
public String encoding()
- Returns:
- the message encoding
-
format
public WireFormat format()
- Returns:
- the message format
-
payload
public Buffer payload()
- Returns:
- the message payload, usually in Protobuf format encoded in the
encoding()
format
-
newInstance
public static GrpcMessage newInstance(GrpcMessage arg)
-
-