Package io.deephaven.protobuf
Interface MessageParser
- All Known Subinterfaces:
MessageParserSingle
public interface MessageParser
The interface for creating
message
protobuf functions
.-
Method Summary
Modifier and TypeMethodDescriptionstatic List<MessageParser>
builtin()
The built-in message parsers.com.google.protobuf.Descriptors.Descriptor
The canonical descriptor for the message.static List<MessageParser>
defaults()
The default single-valued message parsers.messageParsers
(com.google.protobuf.Descriptors.Descriptor descriptor, ProtobufDescriptorParserOptions options, FieldPath fieldPath) The protobuf functions.static Iterable<MessageParser>
Equivalent toServiceLoader.load(MessageParser.class)
.
-
Method Details
-
builtin
The built-in message parsers.message
typefunction
typeTimestamp
Instant
Duration
Duration
BoolValue
boolean
Int32Value
int
UInt32Value
int
Int64Value
long
UInt64Value
long
FloatValue
float
DoubleValue
double
StringValue
String
BytesValue
byte[]
(orByteString
, seeFieldOptions.bytes()
)Any
Any
FieldMask
FieldMask
- Returns:
- the built-in parsers
-
serviceLoaders
Equivalent toServiceLoader.load(MessageParser.class)
.- Returns:
- the service-loader message parsers
- See Also:
-
defaults
The default single-valued message parsers. Is the concatenation ofbuiltin()
andserviceLoaders()
.- Returns:
- the default message parsers
-
canonicalDescriptor
com.google.protobuf.Descriptors.Descriptor canonicalDescriptor()The canonical descriptor for the message.- Returns:
- the descriptor
-
messageParsers
ProtobufFunctions messageParsers(com.google.protobuf.Descriptors.Descriptor descriptor, ProtobufDescriptorParserOptions options, FieldPath fieldPath) The protobuf functions.- Parameters:
descriptor
- the actual descriptoroptions
- the parser optionsfieldPath
- the field path- Returns:
- the protobuf functions
-