Skip navigation links
A B C D E F G I J M N O P R S T U V Z 

A

add(Duration, Duration) - Static method in class com.google.protobuf.util.Durations
Add two durations.
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(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.
add(Timestamp, Duration) - Static method in class com.google.protobuf.util.Timestamps
Add a duration to a timestamp.
appendTo(MessageOrBuilder, Appendable) - Method in class com.google.protobuf.util.JsonFormat.Printer
Converts a protobuf message to the proto3 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

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 given Duration 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 given Timestamp 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 for Durations which sorts in increasing chronological order.
comparator() - Static method in class com.google.protobuf.util.Timestamps
Returns a Comparator for Timestamps 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.

D

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.
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.

G

getEmptyTypeRegistry() - Static method in class com.google.protobuf.util.JsonFormat.TypeRegistry
 

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.
isPositive(Duration) - Static method in class com.google.protobuf.util.Durations
Returns whether the given Duration is positive or not.
isValid(Duration) - Static method in class com.google.protobuf.util.Durations
Returns true if the given Duration is valid.
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(Class<? extends Message>, FieldMask) - Static method in class com.google.protobuf.util.FieldMaskUtil
Checks whether paths in a given fields mask are valid.
isValid(Descriptors.Descriptor, 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.
isValid(Descriptors.Descriptor, String) - Static method in class com.google.protobuf.util.FieldMaskUtil
Checks whether paths in a given fields mask are valid.
isValid(Timestamp) - Static method in class com.google.protobuf.util.Timestamps
Returns true if the given Timestamp is valid.
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.

J

JsonFormat - Class in com.google.protobuf.util
Utility class to convert protobuf messages to/from the Proto3 JSON format. Only proto3 features are supported.
JsonFormat.Parser - Class in com.google.protobuf.util
A Parser parses the proto3 JSON format into a protobuf message.
JsonFormat.Printer - Class in com.google.protobuf.util
A Printer converts a protobuf message to the proto3 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, 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(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(String, Message.Builder) - Method in class com.google.protobuf.util.JsonFormat.Parser
Parses from the proto3 JSON format into a protobuf message.
merge(Reader, Message.Builder) - Method in class com.google.protobuf.util.JsonFormat.Parser
Parses from the proto3 JSON encoding 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.

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(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.
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(String) - Static method in class com.google.protobuf.util.Values
Returns a Value object with string set to value.
of(Struct) - Static method in class com.google.protobuf.util.Values
Returns a Value object with struct set to value.
of(ListValue) - Static method in class com.google.protobuf.util.Values
Returns a Value with ListValue 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.
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 omits insignificant whitespace in the JSON output.

P

parse(String) - Static method in class com.google.protobuf.util.Durations
Parse 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.
parser() - Static method in class com.google.protobuf.util.JsonFormat
Creates a JsonFormat.Parser with default configuration.
parseUnchecked(String) - Static method in class com.google.protobuf.util.Durations
Parses a string in RFC 3339 format into a Duration.
parseUnchecked(String) - Static method in class com.google.protobuf.util.Timestamps
Parses a string in RFC 3339 format into a Timestamp.
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 the proto3 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 prints enum field values as integers instead of as string.

R

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(FieldMask, FieldMask, FieldMask...) - Static method in class com.google.protobuf.util.FieldMaskUtil
Subtracts secondMask and otherMasks from firstMask.
subtract(Timestamp, Duration) - Static method in class com.google.protobuf.util.Timestamps
Subtract a duration from a timestamp.

T

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.

U

union(FieldMask, FieldMask, FieldMask...) - Static method in class com.google.protobuf.util.FieldMaskUtil
Creates a union of two or more FieldMasks.
usingTypeRegistry(JsonFormat.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.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.
usingTypeRegistry(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.
A B C D E F G I J M N O P R S T U V Z 
Skip navigation links

Copyright © 2008–2022. All rights reserved.