Cast the untyped value
returned by the PB reflection API and give it a proper type.
Cast the untyped value
returned by the PB reflection API and give it a proper type.
whether the field was present in the PB instance (true) or it is a default value (false).
the value to cast.
a typed version of value
.
Determine if there is an error in creating a ProtoAccessor.
Determine if there is an error in creating a ProtoAccessor. If there is an error, an error message will be returned.
raw string-based path representation
FieldDescriptor
-based path representation
possible used for type checking.
an error message in a Some if there was an error; otherwise, None.
A caster takes the untyped value returned by the PB reflection APIs and provides a typesafe value. It is also responsible for determining whether a path adhere's to the desired stated type in the ProtoAccessor factory methods.
type of
GeneratedMessage
from which data should be extracted.type of data to be extracted from
A
.