webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Static Public Member Functions | List of all members
com.google.protobuf.util.FieldMaskUtil Class Reference

Classes

class  MergeOptions
 

Static Public Member Functions

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)
 

Detailed Description

Utility helper functions to work with com.google.protobuf.FieldMask.

Member Function Documentation

◆ 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
IllegalArgumentExceptionif 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
IllegalArgumentExceptionif 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
IllegalArgumentExceptionif 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
IllegalArgumentExceptionif 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]

static void com.google.protobuf.util.FieldMaskUtil.merge ( FieldMask  mask,
Message  source,
Message.Builder  destination 
)
inlinestatic

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: