|
static String | toString (FieldMask fieldMask) |
|
static FieldMask | fromString (String value) |
|
static FieldMask | fromString (Class<? extends Message > type, String value) |
|
static FieldMask | fromStringList (Class<? extends Message > type, Iterable< String > paths) |
|
static FieldMask | fromFieldNumbers (Class<? extends Message > type, int... fieldNumbers) |
|
static FieldMask | fromFieldNumbers (Class<? extends Message > type, Iterable< Integer > fieldNumbers) |
|
static boolean | isValid (Class<? extends Message > type, FieldMask fieldMask) |
|
static boolean | isValid (Descriptor descriptor, FieldMask fieldMask) |
|
static boolean | isValid (Class<? extends Message > type, String path) |
|
static boolean | isValid (Descriptor descriptor, String path) |
|
static FieldMask | normalize (FieldMask mask) |
|
static FieldMask | union (FieldMask firstMask, FieldMask secondMask, FieldMask... otherMasks) |
|
static FieldMask | intersection (FieldMask mask1, FieldMask mask2) |
|
static void | merge (FieldMask mask, Message source, Message.Builder destination, MergeOptions options) |
|
static void | merge (FieldMask mask, Message source, Message.Builder destination) |
|
Utility helper functions to work with com.google.protobuf.FieldMask.
◆ fromFieldNumbers() [1/2]
static FieldMask com.google.protobuf.util.FieldMaskUtil.fromFieldNumbers |
( |
Class<? extends Message > |
type, |
|
|
int... |
fieldNumbers |
|
) |
| |
|
inlinestatic |
Constructs a FieldMask from the passed field numbers.
- Exceptions
-
IllegalArgumentException | if any of the fields are invalid for the message. |
◆ fromFieldNumbers() [2/2]
static FieldMask com.google.protobuf.util.FieldMaskUtil.fromFieldNumbers |
( |
Class<? extends Message > |
type, |
|
|
Iterable< Integer > |
fieldNumbers |
|
) |
| |
|
inlinestatic |
Constructs a FieldMask from the passed field numbers.
- Exceptions
-
IllegalArgumentException | if any of the fields are invalid for the message. |
◆ fromString() [1/2]
static FieldMask com.google.protobuf.util.FieldMaskUtil.fromString |
( |
String |
value | ) |
|
|
inlinestatic |
Parses from a string to a FieldMask.
◆ fromString() [2/2]
static FieldMask com.google.protobuf.util.FieldMaskUtil.fromString |
( |
Class<? extends Message > |
type, |
|
|
String |
value |
|
) |
| |
|
inlinestatic |
Parses from a string to a FieldMask and validates all field paths.
- Exceptions
-
IllegalArgumentException | if any of the field path is invalid. |
◆ fromStringList()
static FieldMask com.google.protobuf.util.FieldMaskUtil.fromStringList |
( |
Class<? extends Message > |
type, |
|
|
Iterable< String > |
paths |
|
) |
| |
|
inlinestatic |
Constructs a FieldMask for a list of field paths in a certain type.
- Exceptions
-
IllegalArgumentException | if any of the field path is not valid. |
◆ intersection()
static FieldMask com.google.protobuf.util.FieldMaskUtil.intersection |
( |
FieldMask |
mask1, |
|
|
FieldMask |
mask2 |
|
) |
| |
|
inlinestatic |
Calculates the intersection of two FieldMasks.
◆ isValid() [1/4]
static boolean com.google.protobuf.util.FieldMaskUtil.isValid |
( |
Class<? extends Message > |
type, |
|
|
FieldMask |
fieldMask |
|
) |
| |
|
inlinestatic |
Checks whether paths in a given fields mask are valid.
◆ isValid() [2/4]
static boolean com.google.protobuf.util.FieldMaskUtil.isValid |
( |
Descriptor |
descriptor, |
|
|
FieldMask |
fieldMask |
|
) |
| |
|
inlinestatic |
Checks whether paths in a given fields mask are valid.
◆ isValid() [3/4]
static boolean com.google.protobuf.util.FieldMaskUtil.isValid |
( |
Class<? extends Message > |
type, |
|
|
String |
path |
|
) |
| |
|
inlinestatic |
Checks whether a given field path is valid.
◆ isValid() [4/4]
static boolean com.google.protobuf.util.FieldMaskUtil.isValid |
( |
Descriptor |
descriptor, |
|
|
String |
path |
|
) |
| |
|
inlinestatic |
Checks whether paths in a given fields mask are valid.
◆ merge() [1/2]
static void com.google.protobuf.util.FieldMaskUtil.merge |
( |
FieldMask |
mask, |
|
|
Message |
source, |
|
|
Message.Builder |
destination, |
|
|
MergeOptions |
options |
|
) |
| |
|
inlinestatic |
Merges fields specified by a FieldMask from one message to another with the specified merge options.
◆ merge() [2/2]
Merges fields specified by a FieldMask from one message to another.
◆ normalize()
static FieldMask com.google.protobuf.util.FieldMaskUtil.normalize |
( |
FieldMask |
mask | ) |
|
|
inlinestatic |
Converts a FieldMask to its canonical form. In the canonical form of a FieldMask, all field paths are sorted alphabetically and redundant field paths are moved.
◆ toString()
static String com.google.protobuf.util.FieldMaskUtil.toString |
( |
FieldMask |
fieldMask | ) |
|
|
inlinestatic |
Converts a FieldMask to a string.
◆ union()
static FieldMask com.google.protobuf.util.FieldMaskUtil.union |
( |
FieldMask |
firstMask, |
|
|
FieldMask |
secondMask, |
|
|
FieldMask... |
otherMasks |
|
) |
| |
|
inlinestatic |
Creates a union of two or more FieldMasks.
The documentation for this class was generated from the following file:
- Source/ThirdParty/libwebrtc/Source/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java