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

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.
add(Timestamp, Duration) - Static method in class com.google.protobuf.util.TimeUtil
add(Duration, Duration) - Static method in class com.google.protobuf.util.TimeUtil
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

C

com.google.protobuf.util - package com.google.protobuf.util
 
createDurationFromMicros(long) - Static method in class com.google.protobuf.util.TimeUtil
Deprecated.
createDurationFromMillis(long) - Static method in class com.google.protobuf.util.TimeUtil
Deprecated.
createDurationFromNanos(long) - Static method in class com.google.protobuf.util.TimeUtil
Deprecated.
createTimestampFromMicros(long) - Static method in class com.google.protobuf.util.TimeUtil
Deprecated.
createTimestampFromMillis(long) - Static method in class com.google.protobuf.util.TimeUtil
Deprecated.
createTimestampFromNanos(long) - Static method in class com.google.protobuf.util.TimeUtil
Deprecated.

D

distance(Timestamp, Timestamp) - Static method in class com.google.protobuf.util.TimeUtil
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.

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

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

includingDefaultValueFields() - Method in class com.google.protobuf.util.JsonFormat.Printer
Creates a new JsonFormat.Printer that will also print fields set to their defaults.
intersection(FieldMask, FieldMask) - Static method in class com.google.protobuf.util.FieldMaskUtil
Calculates the intersection of two FieldMasks.
isValid(Duration) - Static method in class com.google.protobuf.util.Durations
Returns true if the given Duration is valid.
isValid(long, long) - 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, long) - 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 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

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 JSON into a protobuf message.
merge(Reader, 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
 
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

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

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) when merging.
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., if the field is set in the source, the value is copied to the destination; if the field is unset in the source, the field is cleared from the destination) when merging.
replaceRepeatedFields() - Method in class com.google.protobuf.util.FieldMaskUtil.MergeOptions
Whether to replace repeated fields (i.e., discard existing content in destination repeated fields) when merging.

S

setReplaceMessageFields(boolean) - Method in class com.google.protobuf.util.FieldMaskUtil.MergeOptions
 
setReplacePrimitiveFields(boolean) - Method in class com.google.protobuf.util.FieldMaskUtil.MergeOptions
 
setReplaceRepeatedFields(boolean) - Method in class com.google.protobuf.util.FieldMaskUtil.MergeOptions
 
subtract(Duration, Duration) - Static method in class com.google.protobuf.util.Durations
Subtract a duration from another.
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
subtract(Duration, Duration) - Static method in class com.google.protobuf.util.TimeUtil

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 and Timestamps instead.
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.The result will be rounded towards 0 to the nearest microseconds.
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
toMicros(Duration) - Static method in class com.google.protobuf.util.TimeUtil
toMillis(Duration) - Static method in class com.google.protobuf.util.Durations
Convert a Duration to the number of milliseconds.The result will be rounded towards 0 to the nearest millisecond.
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
toMillis(Duration) - Static method in class com.google.protobuf.util.TimeUtil
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.
toNanos(Timestamp) - Static method in class com.google.protobuf.util.TimeUtil
toNanos(Duration) - Static method in class com.google.protobuf.util.TimeUtil
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.
toString(Timestamp) - Static method in class com.google.protobuf.util.TimeUtil
toString(Duration) - Static method in class com.google.protobuf.util.TimeUtil

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(JsonFormat.TypeRegistry) - Method in class com.google.protobuf.util.JsonFormat.Printer
Creates a new JsonFormat.Printer using the given registry.
A B C D F G I J M N O P R S T U 
Skip navigation links

Copyright © 2008–2016 Google. All rights reserved.