Package io.deephaven.protobuf
Class FieldOptions
java.lang.Object
io.deephaven.protobuf.FieldOptions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceThe behavior when handling a protobufbytesfield.static interfaceThe behavior when handling a protobufmapfield.static interfaceThe behavior when handling a protobufmessagetype. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldOptions.Builderbuilder()bytes()Thebytestype behavior.static FieldOptionsdefaults()The defaults options.static FieldOptionsexclude()Creates the options to exclude a field.booleaninclude()If the field should be included for parsing.static Function<FieldPath,FieldOptions> Creates a field options function that maps theincludepredicate toinclude().map()Themaptype behavior.The well-known message behavior.
-
Constructor Details
-
FieldOptions
public FieldOptions()
-
-
Method Details
-
builder
-
defaults
The defaults options. Equivalent tobuilder().build().- Returns:
- the default options
-
exclude
Creates the options to exclude a field. Equivalent tobuilder().include(false).build().- Returns:
- the options to exclude a field
-
includeIf
Creates a field options function that maps theincludepredicate toinclude(). Equivalent tofp -> builder().include(include.test(fp)).build().- Parameters:
include- the include function- Returns:
- the field path functions
-
include
@Default public boolean include()If the field should be included for parsing. By default, istrue.- Returns:
- if the field should be included
-
wellKnown
The well-known message behavior. By default, isFieldOptions.WellKnownBehavior.asWellKnown().- Returns:
- the well-known message behavior
-
bytes
Thebytestype behavior. By default, isFieldOptions.BytesBehavior.asByteArray().- Returns:
- the bytes field behavior
-
map
Themaptype behavior. By default, isFieldOptions.MapBehavior.asMap().- Returns:
- the map field behavior.
-