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.DescriptorThe 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.messagetypefunctiontypeTimestampInstantDurationDurationBoolValuebooleanInt32ValueintUInt32ValueintInt64ValuelongUInt64ValuelongFloatValuefloatDoubleValuedoubleStringValueStringBytesValuebyte[](orByteString, seeFieldOptions.bytes())AnyAnyFieldMaskFieldMask- 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
-