A B C D E F G I J M N O P R S T U V Z
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- add(Descriptors.Descriptor) - Method in class com.google.protobuf.util.JsonFormat.TypeRegistry.Builder
-
Adds a message type and all types defined in the same .proto file as well as all transitively imported .proto files to this
JsonFormat.TypeRegistry.Builder
. - add(Duration, Duration) - Static method in class com.google.protobuf.util.Durations
-
Add two durations.
- add(Duration, Duration) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.
- add(Timestamp, Duration) - Static method in class com.google.protobuf.util.Timestamps
-
Add a duration to a timestamp.
- add(Timestamp, Duration) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.
- add(Iterable<Descriptors.Descriptor>) - Method in class com.google.protobuf.util.JsonFormat.TypeRegistry.Builder
-
Adds message types and all types defined in the same .proto file as well as all transitively imported .proto files to this
JsonFormat.TypeRegistry.Builder
. - appendTo(MessageOrBuilder, Appendable) - Method in class com.google.protobuf.util.JsonFormat.Printer
-
Converts a protobuf message to JSON format.
B
- between(Timestamp, Timestamp) - Static method in class com.google.protobuf.util.Timestamps
-
Calculate the difference between two timestamps.
- build() - Method in class com.google.protobuf.util.JsonFormat.TypeRegistry.Builder
-
Builds a
JsonFormat.TypeRegistry
.
C
- checkNotNegative(Duration) - Static method in class com.google.protobuf.util.Durations
-
Ensures that the given
Duration
is not negative. - checkPositive(Duration) - Static method in class com.google.protobuf.util.Durations
-
Ensures that the given
Duration
is positive. - checkValid(Duration) - Static method in class com.google.protobuf.util.Durations
-
Throws an
IllegalArgumentException
if the givenDuration
is not valid. - checkValid(Duration.Builder) - Static method in class com.google.protobuf.util.Durations
-
Builds the given builder and throws an
IllegalArgumentException
if it is not valid. - checkValid(Timestamp) - Static method in class com.google.protobuf.util.Timestamps
-
Throws an
IllegalArgumentException
if the givenTimestamp
is not valid. - checkValid(Timestamp.Builder) - Static method in class com.google.protobuf.util.Timestamps
-
Builds the given builder and throws an
IllegalArgumentException
if it is not valid. - com.google.protobuf.util - package com.google.protobuf.util
- comparator() - Static method in class com.google.protobuf.util.Durations
-
Returns a
Comparator
forDuration
s which sorts in increasing chronological order. - comparator() - Static method in class com.google.protobuf.util.Timestamps
-
Returns a
Comparator
forTimestamps
which sorts in increasing chronological order. - compare(Duration, Duration) - Static method in class com.google.protobuf.util.Durations
-
Compares two durations.
- compare(Timestamp, Timestamp) - Static method in class com.google.protobuf.util.Timestamps
-
Compares two timestamps.
- createDurationFromMicros(long) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
Durations.fromMicros(long)
instead. - createDurationFromMillis(long) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
Durations.fromMillis(long)
instead. - createDurationFromNanos(long) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
Durations.fromNanos(long)
instead. - createTimestampFromMicros(long) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
fromMicros(long)
instead. - createTimestampFromMillis(long) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
fromMillis(long)
instead. - createTimestampFromNanos(long) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
fromNanos(long)
instead.
D
- distance(Timestamp, Timestamp) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.
- divide(Duration, double) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.
- divide(Duration, long) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.
- divide(Duration, Duration) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.
- DURATION_SECONDS_MAX - Static variable in class com.google.protobuf.util.TimeUtil
-
Deprecated.
- DURATION_SECONDS_MIN - Static variable in class com.google.protobuf.util.TimeUtil
-
Deprecated.
- Durations - Class in com.google.protobuf.util
-
Utilities to help create/manipulate
protobuf/duration.proto
.
E
- EPOCH - Static variable in class com.google.protobuf.util.Timestamps
-
A constant holding the
Timestamp
of epoch time,1970-01-01T00:00:00.000000000Z
.
F
- 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.
- 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(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.
- fromString(String) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Parses from a string to a FieldMask.
- 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(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(Iterable<String>) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Constructs a FieldMask for a list of field paths in a certain type.
G
- getCurrentTime() - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
Timestamps.fromMillis(System.currentTimeMillis())
instead. - getEmptyTypeRegistry() - Static method in class com.google.protobuf.util.JsonFormat.TypeRegistry
- getEpoch() - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
Timestamps.fromMillis(0)
instead.
I
- ignoringUnknownFields() - Method in class com.google.protobuf.util.JsonFormat.Parser
-
Creates a new
JsonFormat.Parser
configured to not throw an exception when an unknown field is encountered. - includingDefaultValueFields() - Method in class com.google.protobuf.util.JsonFormat.Printer
-
Creates a new
JsonFormat.Printer
that will also print fields set to their defaults. - includingDefaultValueFields(Set<Descriptors.FieldDescriptor>) - Method in class com.google.protobuf.util.JsonFormat.Printer
-
Creates a new
JsonFormat.Printer
that will also print default-valued fields if their FieldDescriptors are found in the supplied set. - intersection(FieldMask, FieldMask) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Calculates the intersection of two FieldMasks.
- isNegative(Duration) - Static method in class com.google.protobuf.util.Durations
-
Returns whether the given
Duration
is negative or not. - isValid(long, int) - Static method in class com.google.protobuf.util.Durations
-
Returns true if the given number of seconds and nanos is a valid
Duration
. - isValid(long, int) - Static method in class com.google.protobuf.util.Timestamps
-
Returns true if the given number of seconds and nanos is a valid
Timestamp
. - isValid(Descriptors.Descriptor, FieldMask) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Checks whether paths in a given fields mask are valid.
- isValid(Descriptors.Descriptor, String) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Checks whether paths in a given fields mask are valid.
- isValid(Duration) - Static method in class com.google.protobuf.util.Durations
-
Returns true if the given
Duration
is valid. - isValid(Timestamp) - Static method in class com.google.protobuf.util.Timestamps
-
Returns true if the given
Timestamp
is valid. - isValid(Class<? extends Message>, FieldMask) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Checks whether paths in a given fields mask are valid.
- isValid(Class<? extends Message>, String) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Checks whether a given field path is valid.
J
- JsonFormat - Class in com.google.protobuf.util
-
Utility classes to convert protobuf messages to/from JSON format.
- JsonFormat.Parser - Class in com.google.protobuf.util
-
A Parser parses JSON to protobuf message.
- JsonFormat.Printer - Class in com.google.protobuf.util
-
A Printer converts protobuf message to JSON format.
- JsonFormat.TypeRegistry - Class in com.google.protobuf.util
-
A TypeRegistry is used to resolve Any messages in the JSON conversion.
- JsonFormat.TypeRegistry.Builder - Class in com.google.protobuf.util
-
A Builder is used to build
JsonFormat.TypeRegistry
.
M
- MAX_VALUE - Static variable in class com.google.protobuf.util.Durations
-
A constant holding the maximum valid
Duration
, approximately+10,000
years. - MAX_VALUE - Static variable in class com.google.protobuf.util.Timestamps
-
A constant holding the maximum valid
Timestamp
,9999-12-31T23:59:59.999999999Z
. - merge(FieldMask, Message, Message.Builder) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Merges fields specified by a FieldMask from one message to another.
- merge(FieldMask, Message, Message.Builder, FieldMaskUtil.MergeOptions) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Merges fields specified by a FieldMask from one message to another with the specified merge options.
- merge(Reader, Message.Builder) - Method in class com.google.protobuf.util.JsonFormat.Parser
-
Parses from JSON into a protobuf message.
- merge(String, Message.Builder) - Method in class com.google.protobuf.util.JsonFormat.Parser
-
Parses from JSON into a protobuf message.
- MergeOptions() - Constructor for class com.google.protobuf.util.FieldMaskUtil.MergeOptions
- MIN_VALUE - Static variable in class com.google.protobuf.util.Durations
-
A constant holding the minimum valid
Duration
, approximately-10,000
years. - MIN_VALUE - Static variable in class com.google.protobuf.util.Timestamps
-
A constant holding the minimum valid
Timestamp
,0001-01-01T00:00:00Z
. - multiply(Duration, double) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.
- multiply(Duration, long) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.
N
- newBuilder() - Static method in class com.google.protobuf.util.JsonFormat.TypeRegistry
- normalize(FieldMask) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Converts a FieldMask to its canonical form.
O
- of(boolean) - Static method in class com.google.protobuf.util.Values
-
Returns a Value object with number set to value.
- of(double) - Static method in class com.google.protobuf.util.Values
-
Returns a Value object with number set to value.
- of(ListValue) - Static method in class com.google.protobuf.util.Values
-
Returns a Value with ListValue set to value.
- of(Struct) - Static method in class com.google.protobuf.util.Values
-
Returns a Value object with struct set to value.
- of(Iterable<Value>) - Static method in class com.google.protobuf.util.Values
-
Returns a Value with ListValue set to the appending the result of calling
Values.of(boolean)
on each element in the iterable. - of(String) - Static method in class com.google.protobuf.util.Values
-
Returns a Value object with string set to value.
- of(String, Value) - Static method in class com.google.protobuf.util.Structs
-
Returns a struct containing the key-value pair.
- of(String, Value, String, Value) - Static method in class com.google.protobuf.util.Structs
-
Returns a struct containing each of the key-value pairs.
- of(String, Value, String, Value, String, Value) - Static method in class com.google.protobuf.util.Structs
-
Returns a struct containing each of the key-value pairs.
- ofNull() - Static method in class com.google.protobuf.util.Values
- omittingInsignificantWhitespace() - Method in class com.google.protobuf.util.JsonFormat.Printer
-
Create a new
JsonFormat.Printer
that will omit all insignificant whitespace in the JSON output.
P
- parse(String) - Static method in class com.google.protobuf.util.Durations
-
Parse from a string to produce a duration.
- parse(String) - Static method in class com.google.protobuf.util.Timestamps
-
Parse from RFC 3339 date string to Timestamp.
- parseDuration(String) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
Durations.parse(java.lang.String)
instead. - parser() - Static method in class com.google.protobuf.util.JsonFormat
-
Creates a
JsonFormat.Parser
with default configuration. - parseTimestamp(String) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
parse(java.lang.String)
instead. - preservingProtoFieldNames() - Method in class com.google.protobuf.util.JsonFormat.Printer
-
Creates a new
JsonFormat.Printer
that is configured to use the original proto field names as defined in the .proto file rather than converting them to lowerCamelCase. - print(MessageOrBuilder) - Method in class com.google.protobuf.util.JsonFormat.Printer
-
Converts a protobuf message to JSON format.
- printer() - Static method in class com.google.protobuf.util.JsonFormat
-
Creates a
JsonFormat.Printer
with default configurations. - printingEnumsAsInts() - Method in class com.google.protobuf.util.JsonFormat.Printer
-
Creates a new
JsonFormat.Printer
that will print enum field values as integers instead of as string.
R
- remainder(Duration, Duration) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.
- replaceMessageFields() - Method in class com.google.protobuf.util.FieldMaskUtil.MergeOptions
-
Whether to replace message fields (i.e., discard existing content in destination message fields).
- replacePrimitiveFields() - Method in class com.google.protobuf.util.FieldMaskUtil.MergeOptions
-
Whether to replace primitive (non-repeated and non-message) fields in destination message fields with the source primitive fields (i.e., clear destination field if source field is not set).
- replaceRepeatedFields() - Method in class com.google.protobuf.util.FieldMaskUtil.MergeOptions
-
Whether to replace repeated fields (i.e., discard existing content in destination repeated fields).
S
- setReplaceMessageFields(boolean) - Method in class com.google.protobuf.util.FieldMaskUtil.MergeOptions
-
Specify whether to replace message fields.
- setReplacePrimitiveFields(boolean) - Method in class com.google.protobuf.util.FieldMaskUtil.MergeOptions
-
Specify whether to replace primitive (non-repeated and non-message) fields in destination message fields with the source primitive fields.
- setReplaceRepeatedFields(boolean) - Method in class com.google.protobuf.util.FieldMaskUtil.MergeOptions
-
Specify whether to replace repeated fields.
- sortingMapKeys() - Method in class com.google.protobuf.util.JsonFormat.Printer
-
Create a new
JsonFormat.Printer
that will sort the map keys in the JSON output. - Structs - Class in com.google.protobuf.util
-
Utilities to help create
google.protobuf.Struct
messages. - subtract(Duration, Duration) - Static method in class com.google.protobuf.util.Durations
-
Subtract a duration from another.
- subtract(Duration, Duration) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.
- subtract(FieldMask, FieldMask, FieldMask...) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Subtracts
secondMask
andotherMasks
fromfirstMask
. - subtract(Timestamp, Duration) - Static method in class com.google.protobuf.util.Timestamps
-
Subtract a duration from a timestamp.
- subtract(Timestamp, Duration) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.
T
- TIMESTAMP_SECONDS_MAX - Static variable in class com.google.protobuf.util.TimeUtil
-
Deprecated.
- TIMESTAMP_SECONDS_MIN - Static variable in class com.google.protobuf.util.TimeUtil
-
Deprecated.
- Timestamps - Class in com.google.protobuf.util
-
Utilities to help create/manipulate
protobuf/timestamp.proto
. - TimeUtil - Class in com.google.protobuf.util
-
Deprecated.Use
Durations
andTimestamps
instead. - 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(Duration) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
Durations.toMicros(com.google.protobuf.Duration)
instead. - toMicros(Timestamp) - Static method in class com.google.protobuf.util.Timestamps
-
Convert a Timestamp to the number of microseconds elapsed from the epoch.
- toMicros(Timestamp) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
toMicros(com.google.protobuf.Timestamp)
instead. - toMillis(Duration) - Static method in class com.google.protobuf.util.Durations
-
Convert a Duration to the number of milliseconds.
- toMillis(Duration) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
Durations.toMillis(com.google.protobuf.Duration)
instead. - toMillis(Timestamp) - Static method in class com.google.protobuf.util.Timestamps
-
Convert a Timestamp to the number of milliseconds elapsed from the epoch.
- toMillis(Timestamp) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
toMillis(com.google.protobuf.Timestamp)
instead. - 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(Duration) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
Durations.toNanos(com.google.protobuf.Duration)
instead. - toNanos(Timestamp) - Static method in class com.google.protobuf.util.Timestamps
-
Convert a Timestamp to the number of nanoseconds elapsed from the epoch.
- toNanos(Timestamp) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
toNanos(com.google.protobuf.Timestamp)
instead. - 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(Duration) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
Durations.toString(com.google.protobuf.Duration)
instead. - 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.
- toString(Timestamp) - Static method in class com.google.protobuf.util.TimeUtil
-
Deprecated.Use
toString(com.google.protobuf.Timestamp)
instead.
U
- union(FieldMask, FieldMask, FieldMask...) - Static method in class com.google.protobuf.util.FieldMaskUtil
-
Creates a union of two or more FieldMasks.
- usingTypeRegistry(TypeRegistry) - Method in class com.google.protobuf.util.JsonFormat.Parser
-
Creates a new
JsonFormat.Parser
using the given registry. - usingTypeRegistry(TypeRegistry) - Method in class com.google.protobuf.util.JsonFormat.Printer
-
Creates a new
JsonFormat.Printer
using the given registry. - usingTypeRegistry(JsonFormat.TypeRegistry) - Method in class com.google.protobuf.util.JsonFormat.Parser
-
Creates a new
JsonFormat.Parser
using the given registry. - usingTypeRegistry(JsonFormat.TypeRegistry) - Method in class com.google.protobuf.util.JsonFormat.Printer
-
Creates a new
JsonFormat.Printer
using the given registry.
V
- Values - Class in com.google.protobuf.util
-
Utilities to help create
google.protobuf.Value
messages.
Z
- ZERO - Static variable in class com.google.protobuf.util.Durations
-
A constant holding the duration of zero.
All Classes All Packages