Classes
Durations
Utilities to help create/manipulate protobuf/duration.proto
. All operations throw an
IllegalArgumentException if the input(s) are not valid.
FieldMaskUtil
Utility helper functions to work with com.google.protobuf.FieldMask.
FieldMaskUtil.MergeOptions
Options to customize merging behavior.
JsonFormat
Utility classes to convert protobuf messages to/from JSON format. The JSON format follows Proto3 JSON specification and only proto3 features are supported. Proto2 only features (e.g., extensions and unknown fields) will be discarded in the conversion. That is, when converting proto2 messages to JSON format, extensions and unknown fields will be treated as if they do not exist. This applies to proto2 messages embedded in proto3 messages as well.
JsonFormat.Parser
A Parser parses JSON to protobuf message.
JsonFormat.Printer
A Printer converts protobuf message to JSON format.
JsonFormat.TypeRegistry
A TypeRegistry is used to resolve Any messages in the JSON conversion. You must provide a TypeRegistry containing all message types used in Any message fields, or the JSON conversion will fail because data in Any message fields is unrecognizable. You don't need to supply a TypeRegistry if you don't use Any message fields.
JsonFormat.TypeRegistry.Builder
A Builder is used to build TypeRegistry.
Structs
Utilities to help create google.protobuf.Struct
messages.
Timestamps
Utilities to help create/manipulate protobuf/timestamp.proto
. All operations throw an
IllegalArgumentException if the input(s) are not valid.
Values
Utilities to help create google.protobuf.Value
messages.