Package com.elide.model
Enum Class FieldType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<FieldType>,Constable
Enumerates field handling special-cases. Fields may be annotated with these special types to change the way they are handled by the model mapping layer.Protobuf enum
elide.model.FieldType-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStore this object as a special flags-style mapping.This is an ID field that should be used as the final name of this document.This is a key field (a primary key sub-message) for a GROUP or COLLECTION-mode message.This field represents a key for this item's parent.This field represents a full key path in hierarchical storage.This key is a foreign reference.This is a standard field (default value).This is a tags-style field.This item is a timestamp. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intStore this object as a special flags-style mapping.static final intThis is an ID field that should be used as the final name of this document.static final intThis is a key field (a primary key sub-message) for a GROUP or COLLECTION-mode message.static final intThis field represents a key for this item's parent.static final intThis field represents a full key path in hierarchical storage.static final intThis key is a foreign reference.static final intThis is a standard field (default value).static final intThis is a tags-style field.static final intThis item is a timestamp. -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldTypeforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<FieldType>static FieldTypevalueOf(int value) Deprecated.static FieldTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static FieldTypeReturns the enum constant of this class with the specified name.static FieldType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STANDARD
This is a standard field (default value).
STANDARD = 0; -
KEY
This is a key field (a primary key sub-message) for a GROUP or COLLECTION-mode message.
KEY = 1; -
ID
This is an ID field that should be used as the final name of this document.
ID = 2; -
TAGS
This is a tags-style field.
TAGS = 3; -
FLAGS
Store this object as a special flags-style mapping.
FLAGS = 4; -
REFERENCE
This key is a foreign reference.
REFERENCE = 5; -
TIMESTAMP
This item is a timestamp.
TIMESTAMP = 6; -
PARENT
This field represents a key for this item's parent.
PARENT = 7; -
PATH
This field represents a full key path in hierarchical storage.
PATH = 8; -
UNRECOGNIZED
-
-
Field Details
-
STANDARD_VALUE
public static final int STANDARD_VALUEThis is a standard field (default value).
STANDARD = 0;- See Also:
-
KEY_VALUE
public static final int KEY_VALUEThis is a key field (a primary key sub-message) for a GROUP or COLLECTION-mode message.
KEY = 1;- See Also:
-
ID_VALUE
public static final int ID_VALUEThis is an ID field that should be used as the final name of this document.
ID = 2;- See Also:
-
TAGS_VALUE
public static final int TAGS_VALUEThis is a tags-style field.
TAGS = 3;- See Also:
-
FLAGS_VALUE
public static final int FLAGS_VALUEStore this object as a special flags-style mapping.
FLAGS = 4;- See Also:
-
REFERENCE_VALUE
public static final int REFERENCE_VALUEThis key is a foreign reference.
REFERENCE = 5;- See Also:
-
TIMESTAMP_VALUE
public static final int TIMESTAMP_VALUEThis item is a timestamp.
TIMESTAMP = 6;- See Also:
-
PARENT_VALUE
public static final int PARENT_VALUEThis field represents a key for this item's parent.
PARENT = 7;- See Also:
-
PATH_VALUE
public static final int PATH_VALUEThis field represents a full key path in hierarchical storage.
PATH = 8;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-