Class ObjectValue
java.lang.Object
build.buf.protovalidate.internal.evaluator.ObjectValue
- All Implemented Interfaces:
Value
The
Value type that contains a field
descriptor and its value.-
Method Summary
Modifier and TypeMethodDescriptionmapValue()Get the underlying value as a map.com.google.protobuf.MessageGet the underlying value as aMessagetype.Get the underlying value as a list.<T> TGet the underlying value and cast it to the class type.
-
Method Details
-
messageValue
@Nullable public com.google.protobuf.Message messageValue()Description copied from interface:ValueGet the underlying value as aMessagetype.- Specified by:
messageValuein interfaceValue- Returns:
- The underlying
Messagevalue. null if the underlying value is not aMessagetype.
-
value
Description copied from interface:ValueGet the underlying value and cast it to the class type. -
repeatedValue
Description copied from interface:ValueGet the underlying value as a list.- Specified by:
repeatedValuein interfaceValue- Returns:
- The underlying value as a list. Empty list is returned if the underlying type is not a list.
-
mapValue
Description copied from interface:ValueGet the underlying value as a map.
-