A B C D E F G H I J K L M N O P R S T U V W 
All Classes All Packages

A

add(int, T) - Method in class net.morimekta.proto.ProtoListBuilder
 
addAll(int, Collection<? extends T>) - Method in class net.morimekta.proto.ProtoListBuilder
 
allValues() - Method in class net.morimekta.proto.ProtoEnum
 
ANY_TYPE_FIELDS - Static variable in class net.morimekta.proto.utils.JsonNameUtil
A set of field names for the type on serialized unwrapped any types.
asString() - Method in class net.morimekta.proto.ProtoMessageOrBuilder
 
asString(Object) - Static method in class net.morimekta.proto.utils.ValueUtil
Get a java like toString() value, but that is meant to be used in displaying the value in a safe manner.

B

build() - Method in class net.morimekta.proto.utils.ProtoTypeRegistry.Builder
 
ByteStringUtil - Class in net.morimekta.proto.utils
Most of these are pretty trivial methods, but here to vastly simplify generated code when making builder, mutable values or build a message.

C

clear() - Method in class net.morimekta.proto.ProtoListBuilder
 
clear() - Method in class net.morimekta.proto.ProtoMap
 
clear() - Method in class net.morimekta.proto.ProtoMapBuilder
 
clear(Descriptors.FieldDescriptor) - Method in class net.morimekta.proto.ProtoMessageBuilder
 
containsKey(Object) - Method in class net.morimekta.proto.ProtoMap
 
containsKey(Object) - Method in class net.morimekta.proto.ProtoMapBuilder
 
containsValue(Object) - Method in class net.morimekta.proto.ProtoMap
 
containsValue(Object) - Method in class net.morimekta.proto.ProtoMapBuilder
 

D

defaultToNull(T) - Static method in class net.morimekta.proto.utils.ValueUtil
 
displayableDuration(Duration) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 
displayableTimestamp(Timestamp) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 

E

entrySet() - Method in class net.morimekta.proto.ProtoMap
 
entrySet() - Method in class net.morimekta.proto.ProtoMapBuilder
 
enumTypeByName(String) - Method in class net.morimekta.proto.utils.ProtoTypeRegistry
 
enumValueByQualifiedIdentifier(String) - Method in class net.morimekta.proto.utils.ProtoTypeRegistry
 
equals(Object) - Method in class net.morimekta.proto.ProtoEnum
 
equals(Object) - Method in class net.morimekta.proto.ProtoMap
 
equals(Object) - Method in class net.morimekta.proto.ProtoMapBuilder
 
equals(Object) - Method in class net.morimekta.proto.ProtoMessageOrBuilder
 
extensionByScopeAndName(Descriptors.Descriptor, String) - Method in class net.morimekta.proto.utils.ProtoTypeRegistry
 
extensionByScopeAndNumber(Descriptors.Descriptor, int) - Method in class net.morimekta.proto.utils.ProtoTypeRegistry
 

F

fieldPath(List<Descriptors.FieldDescriptor>) - Static method in class net.morimekta.proto.utils.FieldUtil
Append field to the given path.
fieldPathAppend(String, Descriptors.FieldDescriptor) - Static method in class net.morimekta.proto.utils.FieldUtil
Append field to the given path.
fieldPathToFields(Descriptors.Descriptor, String) - Static method in class net.morimekta.proto.utils.FieldUtil
Convert a key path to a list of consecutive fields for recursive lookup.
FieldUtil - Class in net.morimekta.proto.utils
Utilities regarding handling fields and field types.
FieldUtil() - Constructor for class net.morimekta.proto.utils.FieldUtil
 
filterFields(Set<String>, Descriptors.FieldDescriptor) - Static method in class net.morimekta.proto.utils.FieldUtil
Filter a set of field descriptor paths to only contain the continuations of paths starting with the given field.
findByName(String) - Method in class net.morimekta.proto.ProtoEnum
 
findByNumber(Integer) - Method in class net.morimekta.proto.ProtoEnum
 
findByValue(Descriptors.EnumValueDescriptor) - Method in class net.morimekta.proto.ProtoEnum
 
fromBase64(String) - Static method in class net.morimekta.proto.utils.ByteStringUtil
 
fromHexString(CharSequence) - Static method in class net.morimekta.proto.utils.ByteStringUtil
 

G

get(int) - Method in class net.morimekta.proto.ProtoList
 
get(int) - Method in class net.morimekta.proto.ProtoListBuilder
 
get(Descriptors.FieldDescriptor) - Method in class net.morimekta.proto.ProtoMessage
 
get(Descriptors.FieldDescriptor) - Method in class net.morimekta.proto.ProtoMessageBuilder
 
get(Descriptors.FieldDescriptor) - Method in class net.morimekta.proto.ProtoMessageOrBuilder
Get the field value as if calling the getMyField() method, or the getMyFieldList() method for repeated fields.
get(Object) - Method in class net.morimekta.proto.ProtoMap
 
get(Object) - Method in class net.morimekta.proto.ProtoMapBuilder
 
getDefaultFieldValue(Descriptors.FieldDescriptor) - Static method in class net.morimekta.proto.utils.FieldUtil
 
getDefaultInstance(Descriptors.Descriptor) - Static method in class net.morimekta.proto.ProtoMessage
 
getDefaultInstance(Class<?>) - Static method in class net.morimekta.proto.ProtoMessage
 
getDefaultTypeValue(Descriptors.FieldDescriptor) - Static method in class net.morimekta.proto.utils.FieldUtil
 
getDefaultValue() - Method in class net.morimekta.proto.ProtoEnum
 
getDescriptor() - Method in class net.morimekta.proto.ProtoMessageOrBuilder
 
getEnumClass() - Method in class net.morimekta.proto.ProtoEnum
 
getEnumDescriptor(Descriptors.EnumDescriptor) - Static method in class net.morimekta.proto.ProtoEnum
 
getEnumDescriptor(E) - Static method in class net.morimekta.proto.ProtoEnum
 
getEnumDescriptor(Class<E>) - Static method in class net.morimekta.proto.ProtoEnum
 
getEnumDescriptorUnchecked(Class<?>) - Static method in class net.morimekta.proto.ProtoEnum
 
getInMessage(MessageOrBuilder, String) - Static method in class net.morimekta.proto.utils.MessageUtil
Look up a key in the message structure.
getInMessage(MessageOrBuilder, List<Descriptors.FieldDescriptor>) - Static method in class net.morimekta.proto.utils.MessageUtil
Look up a key in the message structure.
getInstanceClass(Descriptors.Descriptor) - Static method in class net.morimekta.proto.utils.ReflectionUtil
Get the class of the instance for the generic proto descriptor.
getInstanceClass(Descriptors.EnumDescriptor) - Static method in class net.morimekta.proto.utils.ReflectionUtil
Get the class of the instance for the generic proto descriptor.
getInternal(Descriptors.FieldDescriptor) - Method in class net.morimekta.proto.ProtoMessageOrBuilder
 
getJsonEnumMap(Class<E>) - Static method in class net.morimekta.proto.utils.JsonNameUtil
 
getJsonEnumMap(ProtoEnum<E>) - Static method in class net.morimekta.proto.utils.JsonNameUtil
 
getJsonEnumName(ProtocolMessageEnum) - Static method in class net.morimekta.proto.utils.JsonNameUtil
 
getJsonEnumNames(ProtocolMessageEnum) - Static method in class net.morimekta.proto.utils.JsonNameUtil
 
getJsonFieldMap(Descriptors.Descriptor) - Static method in class net.morimekta.proto.utils.JsonNameUtil
 
getJsonFieldMap(Class<M>) - Static method in class net.morimekta.proto.utils.JsonNameUtil
 
getJsonFieldName(Descriptors.FieldDescriptor) - Static method in class net.morimekta.proto.utils.JsonNameUtil
 
getJsonFieldNames(Descriptors.FieldDescriptor) - Static method in class net.morimekta.proto.utils.JsonNameUtil
 
getMapKeyDescriptor(Descriptors.FieldDescriptor) - Static method in class net.morimekta.proto.utils.FieldUtil
 
getMapValueDescriptor(Descriptors.FieldDescriptor) - Static method in class net.morimekta.proto.utils.FieldUtil
 
getMessage() - Method in class net.morimekta.proto.ProtoMessage
 
getMessage() - Method in class net.morimekta.proto.ProtoMessageBuilder
 
getMessage() - Method in class net.morimekta.proto.ProtoMessageOrBuilder
 
getMessageClass(Descriptors.Descriptor) - Static method in class net.morimekta.proto.ProtoMessage
 
getMessageDescriptor(Class<?>) - Static method in class net.morimekta.proto.ProtoMessage
 
getProtoDescriptor() - Method in class net.morimekta.proto.ProtoEnum
 
getSingleton(Class<?>, Class<T>, String) - Static method in class net.morimekta.proto.utils.ReflectionUtil
Get a singleton value using a static getter method on the type.
getTypeName() - Method in class net.morimekta.proto.ProtoEnum
 
getTypeNameFromTypeUrl(String) - Static method in class net.morimekta.proto.utils.ProtoTypeRegistry
 
getTypeUrl(Descriptors.Descriptor) - Static method in class net.morimekta.proto.utils.ProtoTypeRegistry
 
getTypeUrl(String, Descriptors.Descriptor) - Static method in class net.morimekta.proto.utils.ProtoTypeRegistry
 
getUnrecognized() - Method in class net.morimekta.proto.ProtoEnum
 
GoogleTypesUtil - Class in net.morimekta.proto.utils
Utility for converting between core google types and the most used java equivalents.

H

has(Descriptors.FieldDescriptor) - Method in class net.morimekta.proto.ProtoMessageOrBuilder
 
hashCode() - Method in class net.morimekta.proto.ProtoEnum
 
hashCode() - Method in class net.morimekta.proto.ProtoMap
 
hashCode() - Method in class net.morimekta.proto.ProtoMapBuilder
 
hashCode() - Method in class net.morimekta.proto.ProtoMessageOrBuilder
 
hasInternal(Descriptors.FieldDescriptor) - Method in class net.morimekta.proto.ProtoMessageOrBuilder
 

I

isDefault(Message) - Static method in class net.morimekta.proto.utils.ValueUtil
 
isEmpty() - Method in class net.morimekta.proto.ProtoMap
 
isEmpty() - Method in class net.morimekta.proto.ProtoMapBuilder
 
isNotDefault(Message) - Static method in class net.morimekta.proto.utils.ValueUtil
 
isNullOrDefault(Message) - Static method in class net.morimekta.proto.utils.ValueUtil
 
isProtoEnumClass(Class<?>) - Static method in class net.morimekta.proto.ProtoEnum
 
iterator() - Method in class net.morimekta.proto.ProtoListBuilder
 

J

JsonNameUtil - Class in net.morimekta.proto.utils
Utilities for handling JSON names.

K

keySet() - Method in class net.morimekta.proto.ProtoMap
 
keySet() - Method in class net.morimekta.proto.ProtoMapBuilder
 

L

listIterator() - Method in class net.morimekta.proto.ProtoListBuilder
 
listIterator(int) - Method in class net.morimekta.proto.ProtoListBuilder
 

M

makeProtoDuration(long, TimeUnit) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 
makeProtoTimestamp(long, TimeUnit) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
Make a proto timestamp from a time value.
MessageReader - Interface in net.morimekta.proto.sio
Simple reader interface for reading messages.
messageTypeByName(String) - Method in class net.morimekta.proto.utils.ProtoTypeRegistry
 
messageTypeByTypeUrl(String) - Method in class net.morimekta.proto.utils.ProtoTypeRegistry
 
MessageUtil - Class in net.morimekta.proto.utils
Utility for handing the content of messages.
MessageUtil() - Constructor for class net.morimekta.proto.utils.MessageUtil
 
MessageWriter - Interface in net.morimekta.proto.sio
Simple writer interface for writing messages.
mutable(Descriptors.FieldDescriptor) - Method in class net.morimekta.proto.ProtoMessageBuilder
Get the mutable instance for the field.

N

net.morimekta.proto - module net.morimekta.proto
Core library for providence.
net.morimekta.proto - package net.morimekta.proto
 
net.morimekta.proto.sio - package net.morimekta.proto.sio
 
net.morimekta.proto.utils - package net.morimekta.proto.utils
 
newBuilder() - Static method in class net.morimekta.proto.utils.ProtoTypeRegistry
 
newBuilder(Descriptors.Descriptor) - Static method in class net.morimekta.proto.ProtoMessage
 
newBuilder(Class<?>) - Static method in class net.morimekta.proto.ProtoMessage
 
NUMERIC_FIELD_ID - Static variable in class net.morimekta.proto.utils.JsonNameUtil
Pattern used to detect numeric field ID string.

O

optional(Descriptors.FieldDescriptor) - Method in class net.morimekta.proto.ProtoMessage
 
optional(Descriptors.FieldDescriptor) - Method in class net.morimekta.proto.ProtoMessageBuilder
 
optional(Descriptors.FieldDescriptor) - Method in class net.morimekta.proto.ProtoMessageOrBuilder
Get the value of a field if present, and an empty optional if it is not.
optionalInMessage(MessageOrBuilder, String) - Static method in class net.morimekta.proto.utils.MessageUtil
Get a field value from a message with optional chaining.
optionalInMessage(MessageOrBuilder, List<Descriptors.FieldDescriptor>) - Static method in class net.morimekta.proto.utils.MessageUtil
Get a field value from a message with optional chaining.
optionalInternal(Descriptors.FieldDescriptor) - Method in class net.morimekta.proto.ProtoMessageOrBuilder
 

P

parseDurationString(String) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 
parseJavaDurationString(String) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 
parseJavaTimestampString(String) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 
parseTimestampString(String) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 
ProtoEnum<E extends Enum<E> & com.google.protobuf.ProtocolMessageEnum> - Class in net.morimekta.proto
The definition of a serializable enum.
ProtoEnum(Class<E>, Descriptors.EnumDescriptor) - Constructor for class net.morimekta.proto.ProtoEnum
 
ProtoList<T> - Class in net.morimekta.proto
A list wrapping a repeated proto field.
ProtoList(MessageOrBuilder, Descriptors.FieldDescriptor) - Constructor for class net.morimekta.proto.ProtoList
 
ProtoListBuilder<T> - Class in net.morimekta.proto
A list wrapping a proro message repeated field for a builder.
ProtoListBuilder(Message.Builder, Descriptors.FieldDescriptor) - Constructor for class net.morimekta.proto.ProtoListBuilder
 
ProtoMap<K,​V> - Class in net.morimekta.proto
A map wrapping a proto message map field.
ProtoMap(MessageOrBuilder, Descriptors.FieldDescriptor) - Constructor for class net.morimekta.proto.ProtoMap
 
ProtoMapBuilder<K,​V> - Class in net.morimekta.proto
A map wrapping a map field on a message builder.
ProtoMapBuilder(Message.Builder, Descriptors.FieldDescriptor) - Constructor for class net.morimekta.proto.ProtoMapBuilder
 
ProtoMessage - Class in net.morimekta.proto
A wrapper around a proto message for emulating java conveniences.
ProtoMessage(MessageOrBuilder) - Constructor for class net.morimekta.proto.ProtoMessage
 
ProtoMessageBuilder - Class in net.morimekta.proto
A wrapper around a proto message builder to behave more like it's actual builder with methods reflecting both getters and setters.
ProtoMessageBuilder(Descriptors.Descriptor) - Constructor for class net.morimekta.proto.ProtoMessageBuilder
 
ProtoMessageBuilder(Message.Builder) - Constructor for class net.morimekta.proto.ProtoMessageBuilder
 
ProtoMessageBuilder(Class<?>) - Constructor for class net.morimekta.proto.ProtoMessageBuilder
 
ProtoMessageOrBuilder - Class in net.morimekta.proto
Base class for proto message or its builder.
ProtoMessageOrBuilder(MessageOrBuilder) - Constructor for class net.morimekta.proto.ProtoMessageOrBuilder
 
ProtoMessageReader - Class in net.morimekta.proto.sio
Reader implementation for reading messages from input stream using the default proto binary format.
ProtoMessageReader(InputStream) - Constructor for class net.morimekta.proto.sio.ProtoMessageReader
 
ProtoMessageWriter - Class in net.morimekta.proto.sio
Writer implementation for writing messages using the default proto binary format.
ProtoMessageWriter(OutputStream) - Constructor for class net.morimekta.proto.sio.ProtoMessageWriter
 
ProtoTextMessageReader - Class in net.morimekta.proto.sio
Reader for reading files using the proto text format.
ProtoTextMessageReader(Reader) - Constructor for class net.morimekta.proto.sio.ProtoTextMessageReader
 
ProtoTextMessageReader(Reader, boolean) - Constructor for class net.morimekta.proto.sio.ProtoTextMessageReader
 
ProtoTextMessageWriter - Class in net.morimekta.proto.sio
Writer for writing messages using the proto text format.
ProtoTextMessageWriter(Writer) - Constructor for class net.morimekta.proto.sio.ProtoTextMessageWriter
 
ProtoTypeRegistry - Class in net.morimekta.proto.utils
A type registry that can look up various types, extensions and values.
ProtoTypeRegistry.Builder - Class in net.morimekta.proto.utils
The proto type registry builder.
put(K, V) - Method in class net.morimekta.proto.ProtoMap
 
put(K, V) - Method in class net.morimekta.proto.ProtoMapBuilder
 
putAll(Map<? extends K, ? extends V>) - Method in class net.morimekta.proto.ProtoMap
 
putAll(Map<? extends K, ? extends V>) - Method in class net.morimekta.proto.ProtoMapBuilder
 

R

read(Descriptors.Descriptor) - Method in interface net.morimekta.proto.sio.MessageReader
Read a message from the message source using the provided descriptor as type.
read(Descriptors.Descriptor) - Method in class net.morimekta.proto.sio.ProtoMessageReader
 
read(Descriptors.Descriptor) - Method in class net.morimekta.proto.sio.ProtoTextMessageReader
 
ReflectionUtil - Class in net.morimekta.proto.utils
Utilities regarding reflection.
register(Descriptors.Descriptor) - Method in class net.morimekta.proto.utils.ProtoTypeRegistry.Builder
Register a message type, and all nested types, to the registry.
register(Descriptors.EnumDescriptor) - Method in class net.morimekta.proto.utils.ProtoTypeRegistry.Builder
Register a enum type to the registry.
register(Descriptors.FieldDescriptor) - Method in class net.morimekta.proto.utils.ProtoTypeRegistry.Builder
Register an extension to the registry.
register(Descriptors.FileDescriptor) - Method in class net.morimekta.proto.utils.ProtoTypeRegistry.Builder
Register a file and all containing types to the registry.
remove(int) - Method in class net.morimekta.proto.ProtoListBuilder
 
remove(Object) - Method in class net.morimekta.proto.ProtoMap
 
remove(Object) - Method in class net.morimekta.proto.ProtoMapBuilder
 
requireProtoEnum(Object) - Static method in class net.morimekta.proto.ProtoEnum
 
requireProtoEnumClass(Class<?>) - Static method in class net.morimekta.proto.ProtoEnum
 

S

set(int, T) - Method in class net.morimekta.proto.ProtoListBuilder
 
set(Descriptors.FieldDescriptor, Object) - Method in class net.morimekta.proto.ProtoMessageBuilder
Set the field value.
simpleDurationString(Duration) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
Make a simple duration string from a proto duration instance.
simpleDurationString(Duration) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
Make a simple duration string from a proto duration instance.
size() - Method in class net.morimekta.proto.ProtoList
 
size() - Method in class net.morimekta.proto.ProtoListBuilder
 
size() - Method in class net.morimekta.proto.ProtoMap
 
size() - Method in class net.morimekta.proto.ProtoMapBuilder
 
sort(Comparator<? super T>) - Method in class net.morimekta.proto.ProtoListBuilder
 

T

toBase64(ByteString) - Static method in class net.morimekta.proto.utils.ByteStringUtil
 
toDebugString(Message) - Static method in class net.morimekta.proto.utils.ValueUtil
Make an easily readable debug string from the message.
toEpochMillis(Timestamp) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 
toEpochSeconds(Timestamp) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 
toHexString(ByteString) - Static method in class net.morimekta.proto.utils.ByteStringUtil
 
toInstant(Timestamp) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 
toInstantOrNull(Timestamp) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 
toJavaDuration(Duration) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 
toJavaDurationOrNull(Duration) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 
toJavaValue(Descriptors.FieldDescriptor, Object) - Static method in class net.morimekta.proto.utils.ValueUtil
Convert a proto value to a java value.
toProtoDuration(Duration) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 
toProtoTimestamp(Instant) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 
toProtoValue(Descriptors.FieldDescriptor, Object) - Static method in class net.morimekta.proto.utils.ValueUtil
Convert a java value to a proto value.
toString() - Method in class net.morimekta.proto.ProtoEnum
 
toString() - Method in class net.morimekta.proto.ProtoMap
 
toString() - Method in class net.morimekta.proto.ProtoMapBuilder
 
toString() - Method in class net.morimekta.proto.ProtoMessageOrBuilder
 
truncateTimestamp(Timestamp, ChronoUnit) - Static method in class net.morimekta.proto.utils.GoogleTypesUtil
 

U

UNRECOGNIZED - Static variable in class net.morimekta.proto.ProtoEnum
The name of the UNRECOGNIZED enum entry.

V

valueFor(Descriptors.EnumValueDescriptor) - Method in class net.morimekta.proto.ProtoEnum
 
valueForName(String) - Method in class net.morimekta.proto.ProtoEnum
 
valueForNumber(int) - Method in class net.morimekta.proto.ProtoEnum
 
values() - Method in class net.morimekta.proto.ProtoMap
 
values() - Method in class net.morimekta.proto.ProtoMapBuilder
 
ValueUtil - Class in net.morimekta.proto.utils
Most of these are pretty trivial methods, but here to vastly simplify generated code when making builder, mutable values or build a message.

W

write(Message) - Method in interface net.morimekta.proto.sio.MessageWriter
Write a message to some output.
write(Message) - Method in class net.morimekta.proto.sio.ProtoMessageWriter
 
write(Message) - Method in class net.morimekta.proto.sio.ProtoTextMessageWriter
 
A B C D E F G H I J K L M N O P R S T U V W 
All Classes All Packages