Classes | |
class | MergeOptions |
Static Public Member Functions | |
static FieldMask | fromFieldNumbers (Class<? extends Message > type, int... fieldNumbers) |
static FieldMask | fromFieldNumbers (Class<? extends Message > type, int... fieldNumbers) |
static FieldMask | fromFieldNumbers (Class<? extends Message > type, Iterable< Integer > fieldNumbers) |
static FieldMask | fromFieldNumbers (Class<? extends Message > type, Iterable< Integer > fieldNumbers) |
static FieldMask | fromJsonString (String value) |
static FieldMask | fromJsonString (String value) |
static FieldMask | fromString (Class<? extends Message > type, String value) |
static FieldMask | fromString (Class<? extends Message > type, String value) |
static FieldMask | fromString (String value) |
static FieldMask | fromString (String value) |
static FieldMask | fromStringList (Class<? extends Message > type, Iterable< String > paths) |
static FieldMask | fromStringList (Class<? extends Message > type, Iterable< String > paths) |
static FieldMask | fromStringList (Descriptor descriptor, Iterable< String > paths) |
static FieldMask | fromStringList (Iterable< String > paths) |
static FieldMask | intersection (FieldMask mask1, FieldMask mask2) |
static FieldMask | intersection (FieldMask mask1, FieldMask mask2) |
static boolean | isValid (@Nullable Descriptor descriptor, String path) |
static boolean | isValid (Class<? extends Message > type, FieldMask fieldMask) |
static boolean | isValid (Class<? extends Message > type, FieldMask fieldMask) |
static boolean | isValid (Class<? extends Message > type, String path) |
static boolean | isValid (Class<? extends Message > type, String path) |
static boolean | isValid (Descriptor descriptor, FieldMask fieldMask) |
static boolean | isValid (Descriptor descriptor, FieldMask fieldMask) |
static boolean | isValid (Descriptor descriptor, String path) |
static void | merge (FieldMask mask, Message source, Message.Builder destination) |
static void | merge (FieldMask mask, Message source, Message.Builder destination) |
static void | merge (FieldMask mask, Message source, Message.Builder destination, MergeOptions options) |
static void | merge (FieldMask mask, Message source, Message.Builder destination, MergeOptions options) |
static FieldMask | normalize (FieldMask mask) |
static FieldMask | normalize (FieldMask mask) |
static FieldMask | subtract (FieldMask firstMask, FieldMask secondMask, FieldMask... otherMasks) |
static String | toJsonString (FieldMask fieldMask) |
static String | toJsonString (FieldMask fieldMask) |
static String | toString (FieldMask fieldMask) |
static String | toString (FieldMask fieldMask) |
static< P extends Message > P | trim (FieldMask mask, P source) |
static FieldMask | union (FieldMask firstMask, FieldMask secondMask, FieldMask... otherMasks) |
static FieldMask | union (FieldMask firstMask, FieldMask secondMask, FieldMask... otherMasks) |
Private Member Functions | |
FieldMaskUtil () | |
FieldMaskUtil () | |
Static Private Member Functions | |
static FieldMask | fromStringList (Optional< Descriptor > descriptor, Iterable< String > paths) |
Static Private Attributes | |
static final String | FIELD_PATH_SEPARATOR = "," |
static final String | FIELD_PATH_SEPARATOR_REGEX = "," |
static final String | FIELD_SEPARATOR_REGEX = "\\." |
Utility helper functions to work with com.google.protobuf.FieldMask.
Definition at line 52 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlineprivate |
Definition at line 57 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlineprivate |
Definition at line 59 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Constructs a FieldMask from the passed field numbers.
IllegalArgumentException | if any of the fields are invalid for the message. |
Definition at line 125 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Constructs a FieldMask from the passed field numbers.
IllegalArgumentException | if any of the fields are invalid for the message. |
Definition at line 149 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Constructs a FieldMask from the passed field numbers.
IllegalArgumentException | if any of the fields are invalid for the message. |
Definition at line 134 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Constructs a FieldMask from the passed field numbers.
IllegalArgumentException | if any of the fields are invalid for the message. |
Definition at line 158 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Converts a field mask from a Proto3 JSON string, that is splitting the paths along commas and converting from camel case to snake case.
Definition at line 168 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Converts a field mask from a Proto3 JSON string, that is splitting the paths along commas and converting from camel case to snake case.
Definition at line 192 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Parses from a string to a FieldMask and validates all field paths.
IllegalArgumentException | if any of the field path is invalid. |
Definition at line 94 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Parses from a string to a FieldMask and validates all field paths.
IllegalArgumentException | if any of the field path is invalid. |
Definition at line 96 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Parses from a string to a FieldMask.
Definition at line 84 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Parses from a string to a FieldMask.
Definition at line 86 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Constructs a FieldMask for a list of field paths in a certain type.
IllegalArgumentException | if any of the field path is not valid. |
Definition at line 105 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Constructs a FieldMask for a list of field paths in a certain type.
IllegalArgumentException | if any of the field path is not valid. |
Definition at line 107 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Constructs a FieldMask for a list of field paths in a certain type.
IllegalArgumentException | if any of the field path is not valid. |
Definition at line 116 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Constructs a FieldMask for a list of field paths in a certain type. Does not validate the given paths.
Definition at line 124 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestaticprivate |
Definition at line 128 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Calculates the intersection of two FieldMasks.
Definition at line 259 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Calculates the intersection of two FieldMasks.
Definition at line 297 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Checks whether paths in a given fields mask are valid.
Definition at line 235 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Checks whether paths in a given fields mask are valid.
Definition at line 183 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Checks whether paths in a given fields mask are valid.
Definition at line 207 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Checks whether a given field path is valid.
Definition at line 204 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Checks whether a given field path is valid.
Definition at line 228 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Checks whether paths in a given fields mask are valid.
Definition at line 192 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Checks whether paths in a given fields mask are valid.
Definition at line 216 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Checks whether paths in a given fields mask are valid.
Definition at line 213 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Merges fields specified by a FieldMask from one message to another.
Definition at line 359 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Merges fields specified by a FieldMask from one message to another.
Definition at line 397 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Merges fields specified by a FieldMask from one message to another with the specified merge options. The destination will remain unchanged if an empty FieldMask is provided.
Definition at line 351 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Merges fields specified by a FieldMask from one message to another with the specified merge options. The destination will remain unchanged if an empty FieldMask is provided.
Definition at line 389 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
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 removed.
Definition at line 240 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
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 removed.
Definition at line 262 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Subtracts
and
from
.
This method disregards proto structure. That is, if
is "foo" and
is "foo.bar", the response will always be "foo" without considering the internal proto structure of message "foo".
Definition at line 285 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Converts a field mask to a Proto3 JSON string, that is converting from snake case to camel case and joining all paths into one string with commas.
Definition at line 153 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Converts a field mask to a Proto3 JSON string, that is converting from snake case to camel case and joining all paths into one string with commas.
Definition at line 177 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Converts a FieldMask to a string.
Definition at line 62 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Converts a FieldMask to a string.
Definition at line 64 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Returns the result of keeping only the masked fields of the given proto.
Definition at line 405 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Creates a union of two or more FieldMasks.
Definition at line 247 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
inlinestatic |
Creates a union of two or more FieldMasks.
Definition at line 269 of file protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
staticprivate |
Definition at line 53 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
staticprivate |
Definition at line 54 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.
|
staticprivate |
Definition at line 55 of file bloaty/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java.