public final class ProtobufPath
extends java.lang.Object
Constructor and Description |
---|
ProtobufPath() |
Modifier and Type | Method and Description |
---|---|
static java.util.function.Function<com.google.protobuf.Message,?> |
protobufPath(com.google.protobuf.Descriptors.Descriptor messageDescriptor,
java.lang.String pathString)
Compile a (limited)
ProtocolBuffer 's path expression. |
public static java.util.function.Function<com.google.protobuf.Message,?> protobufPath(com.google.protobuf.Descriptors.Descriptor messageDescriptor, java.lang.String pathString)
ProtocolBuffer
's path expression.
A ProtocolBuffer
's path expression applied to a Message
and can be one of the following:
.field
expression.
.field[index]
expression.
Each path expression starts with a $
symbol to donate the root message. For example,
with this message type:
message Foo {
string baz = 1;
}
The following expression can select the field baz
: $.baz
.pathString
- an ProtocolBuffer
's path expression.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.