Package io.vertx.grpc.common
Interface GrpcMessage
-
public interface GrpcMessage
A generic gRPC message- Author:
- Julien Viet
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description String
encoding()
WireFormat
format()
static GrpcMessage
message(String encoding, Buffer payload)
static GrpcMessage
message(String encoding, WireFormat format, Buffer payload)
Buffer
payload()
-
-
-
Method Detail
-
message
static GrpcMessage message(String encoding, WireFormat format, Buffer payload)
- Returns:
- a new message
-
message
static GrpcMessage message(String encoding, Buffer payload)
- Returns:
- a new message in proto format
-
encoding
String encoding()
- Returns:
- the message encoding
-
format
WireFormat format()
- Returns:
- the message format
-
payload
Buffer payload()
- Returns:
- the message payload, usually in Protobuf format encoded in the
encoding()
format
-
-