- FieldMaskUtil - Class in com.google.protobuf.util
-
Utility helper functions to work with FieldMask
.
- FieldMaskUtil.MergeOptions - Class in com.google.protobuf.util
-
Options to customize merging behavior.
- find(String) - Method in class com.google.protobuf.util.JsonFormat.TypeRegistry
-
Find a type by its full name.
- fromDate(Date) - Static method in class com.google.protobuf.util.Timestamps
-
Create a Timestamp from a java.util.Date.
- fromDays(long) - Static method in class com.google.protobuf.util.Durations
-
Create a Duration from the number of days.
- fromFieldNumbers(Class<? extends Message>, int...) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Constructs a FieldMask from the passed field numbers.
- fromFieldNumbers(Class<? extends Message>, Iterable<Integer>) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Constructs a FieldMask from the passed field numbers.
- fromHours(long) - Static method in class com.google.protobuf.util.Durations
-
Create a Duration from the number of hours.
- fromJsonString(String) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Converts a field mask from a Proto3 JSON string, that is splitting the paths along commas and
converting from camel case to snake case.
- fromMicros(long) - Static method in class com.google.protobuf.util.Durations
-
Create a Duration from the number of microseconds.
- fromMicros(long) - Static method in class com.google.protobuf.util.Timestamps
-
Create a Timestamp from the number of microseconds elapsed from the epoch.
- fromMillis(long) - Static method in class com.google.protobuf.util.Durations
-
Create a Duration from the number of milliseconds.
- fromMillis(long) - Static method in class com.google.protobuf.util.Timestamps
-
Create a Timestamp from the number of milliseconds elapsed from the epoch.
- fromMinutes(long) - Static method in class com.google.protobuf.util.Durations
-
Create a Duration from the number of minutes.
- fromNanos(long) - Static method in class com.google.protobuf.util.Durations
-
Create a Duration from the number of nanoseconds.
- fromNanos(long) - Static method in class com.google.protobuf.util.Timestamps
-
Create a Timestamp from the number of nanoseconds elapsed from the epoch.
- fromSeconds(long) - Static method in class com.google.protobuf.util.Durations
-
Create a Duration from the number of seconds.
- fromSeconds(long) - Static method in class com.google.protobuf.util.Timestamps
-
Create a Timestamp from the number of seconds elapsed from the epoch.
- fromString(String) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Parses from a string to a FieldMask.
- fromString(Class<? extends Message>, String) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Parses from a string to a FieldMask and validates all field paths.
- fromStringList(Class<? extends Message>, Iterable<String>) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Constructs a FieldMask for a list of field paths in a certain type.
- fromStringList(Descriptors.Descriptor, Iterable<String>) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Constructs a FieldMask for a list of field paths in a certain type.
- fromStringList(Iterable<String>) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Constructs a FieldMask for a list of field paths in a certain type.
- Timestamps - Class in com.google.protobuf.util
-
Utilities to help create/manipulate protobuf/timestamp.proto
.
- toDays(Duration) - Static method in class com.google.protobuf.util.Durations
-
Convert a Duration to the number of days.
- toHours(Duration) - Static method in class com.google.protobuf.util.Durations
-
Convert a Duration to the number of hours.
- toJsonString(FieldMask) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
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.
- toMicros(Duration) - Static method in class com.google.protobuf.util.Durations
-
Convert a Duration to the number of microseconds.
- toMicros(Timestamp) - Static method in class com.google.protobuf.util.Timestamps
-
Convert a Timestamp to the number of microseconds elapsed from the epoch.
- toMillis(Duration) - Static method in class com.google.protobuf.util.Durations
-
Convert a Duration to the number of milliseconds.
- toMillis(Timestamp) - Static method in class com.google.protobuf.util.Timestamps
-
Convert a Timestamp to the number of milliseconds elapsed from the epoch.
- toMinutes(Duration) - Static method in class com.google.protobuf.util.Durations
-
Convert a Duration to the number of minutes.
- toNanos(Duration) - Static method in class com.google.protobuf.util.Durations
-
Convert a Duration to the number of nanoseconds.
- toNanos(Timestamp) - Static method in class com.google.protobuf.util.Timestamps
-
Convert a Timestamp to the number of nanoseconds elapsed from the epoch.
- toSeconds(Duration) - Static method in class com.google.protobuf.util.Durations
-
Convert a Duration to the number of seconds.
- toSeconds(Timestamp) - Static method in class com.google.protobuf.util.Timestamps
-
Convert a Timestamp to the number of seconds elapsed from the epoch.
- toSecondsAsDouble(Duration) - Static method in class com.google.protobuf.util.Durations
-
Returns the number of seconds of the given duration as a double
.
- toString(Duration) - Static method in class com.google.protobuf.util.Durations
-
Convert Duration to string format.
- toString(FieldMask) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Converts a FieldMask to a string.
- toString(Timestamp) - Static method in class com.google.protobuf.util.Timestamps
-
Convert Timestamp to RFC 3339 date string format.
- trim(FieldMask, P) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Returns the result of keeping only the masked fields of the given proto.