Enum WireFormat
- All Implemented Interfaces:
Serializable, Comparable<WireFormat>
The serialization format of gRPC messages on the wire.
Concrete instances are produced via the
and invalid reference
ProtobufWireFormatJsonReaderConfig
subtypes. Instances are compared by
, so subtypes carrying additional
configuration (e.g. a customized invalid reference
#canonicalName()JsonReaderConfig) match the canonical constants
for dispatch purposes while still threading their configuration through encode/decode.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic WireFormatReturns the enum constant of this type with the specified name.static WireFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PROTOBUF
Canonical Protobuf wire format. -
JSON
Canonical JSON wire format.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-