Package com.elide.model
Class FieldPersistenceOptions
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.elide.model.FieldPersistenceOptions
- All Implemented Interfaces:
FieldPersistenceOptionsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class FieldPersistenceOptions
extends com.google.protobuf.GeneratedMessageV3
implements FieldPersistenceOptionsOrBuilder
Persistence/data engine options specific to an individual message field.Protobuf type
elide.model.FieldPersistenceOptions- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classPersistence/data engine options specific to an individual message field.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic FieldPersistenceOptionsDeprecated.elide.model.FieldPersistenceOptions.description is deprecated.com.google.protobuf.ByteStringDeprecated.elide.model.FieldPersistenceOptions.description is deprecated.static final com.google.protobuf.Descriptors.DescriptorbooleanThis field should always be explicitly listed with a value, even if it is set to the default value.booleanThis field should allow writes when the model that contains it is written, but then, henceforth, the model should not allow this field to be mutated.com.google.protobuf.Parser<FieldPersistenceOptions>booleanThis field should not allow writes, but rather produce its value dynamically.intbooleanThis item is a timestamp, and we would like it to be automatically set when the model is created.booleanThis item is a timestamp, and we would like it to be automatically updated each time the model that contains it is modified in underlying storage.Summary for this field, which provides a narrative description.com.google.protobuf.ByteStringSummary for this field, which provides a narrative description.getType()Field type, for special-case fields.intField type, for special-case fields.Describes the visibility level of a given field in a tree of fields.intDescribes the visibility level of a given field in a tree of fields.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(FieldPersistenceOptions prototype) protected FieldPersistenceOptions.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static FieldPersistenceOptionsparseDelimitedFrom(InputStream input) static FieldPersistenceOptionsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FieldPersistenceOptionsparseFrom(byte[] data) static FieldPersistenceOptionsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FieldPersistenceOptionsparseFrom(com.google.protobuf.ByteString data) static FieldPersistenceOptionsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FieldPersistenceOptionsparseFrom(com.google.protobuf.CodedInputStream input) static FieldPersistenceOptionsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FieldPersistenceOptionsparseFrom(InputStream input) static FieldPersistenceOptionsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FieldPersistenceOptionsparseFrom(ByteBuffer data) static FieldPersistenceOptionsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FieldPersistenceOptions>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
SUMMARY_FIELD_NUMBER
public static final int SUMMARY_FIELD_NUMBER- See Also:
-
STAMP_UPDATE_FIELD_NUMBER
public static final int STAMP_UPDATE_FIELD_NUMBER- See Also:
-
STAMP_CREATE_FIELD_NUMBER
public static final int STAMP_CREATE_FIELD_NUMBER- See Also:
-
READ_ONLY_FIELD_NUMBER
public static final int READ_ONLY_FIELD_NUMBER- See Also:
-
IMMUTABLE_FIELD_NUMBER
public static final int IMMUTABLE_FIELD_NUMBER- See Also:
-
EXPLICIT_FIELD_NUMBER
public static final int EXPLICIT_FIELD_NUMBER- See Also:
-
VISIBILITY_FIELD_NUMBER
public static final int VISIBILITY_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTypeValue
public int getTypeValue()Field type, for special-case fields.
.elide.model.FieldType type = 1 [json_name = "type"];- Specified by:
getTypeValuein interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
Field type, for special-case fields.
.elide.model.FieldType type = 1 [json_name = "type"];- Specified by:
getTypein interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The type.
-
getSummary
Summary for this field, which provides a narrative description. It should be suitable for use in external circumstances, like documentation.
string summary = 2 [json_name = "summary"];- Specified by:
getSummaryin interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The summary.
-
getSummaryBytes
public com.google.protobuf.ByteString getSummaryBytes()Summary for this field, which provides a narrative description. It should be suitable for use in external circumstances, like documentation.
string summary = 2 [json_name = "summary"];- Specified by:
getSummaryBytesin interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The bytes for summary.
-
getStampUpdate
public boolean getStampUpdate()This item is a timestamp, and we would like it to be automatically updated each time the model that contains it is modified in underlying storage. The field should be read-only.
bool stamp_update = 3 [json_name = "stampUpdate"];- Specified by:
getStampUpdatein interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The stampUpdate.
-
getStampCreate
public boolean getStampCreate()This item is a timestamp, and we would like it to be automatically set when the model is created. After that point, we would like this field to be read-only.
bool stamp_create = 4 [json_name = "stampCreate"];- Specified by:
getStampCreatein interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The stampCreate.
-
getReadOnly
public boolean getReadOnly()This field should not allow writes, but rather produce its value dynamically. Fields marked in this manner cannot be set by external code at any point in time.
bool read_only = 5 [json_name = "readOnly"];- Specified by:
getReadOnlyin interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The readOnly.
-
getImmutable
public boolean getImmutable()This field should allow writes when the model that contains it is written, but then, henceforth, the model should not allow this field to be mutated.
bool immutable = 6 [json_name = "immutable"];- Specified by:
getImmutablein interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The immutable.
-
getExplicit
public boolean getExplicit()This field should always be explicitly listed with a value, even if it is set to the default value. This function is especially useful for enums with default values, when there is a desire to have consistent indexes.
bool explicit = 7 [json_name = "explicit"];- Specified by:
getExplicitin interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The explicit.
-
getVisibilityValue
public int getVisibilityValue()Describes the visibility level of a given field in a tree of fields. This value applies recursively under message fields on which it is applied. Depending on the visibility level active when data is deserialized or serialized, certain data may be withheld corresponding to the invoking user or system's access level.
.elide.model.FieldVisibility visibility = 8 [json_name = "visibility"];- Specified by:
getVisibilityValuein interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The enum numeric value on the wire for visibility.
-
getVisibility
Describes the visibility level of a given field in a tree of fields. This value applies recursively under message fields on which it is applied. Depending on the visibility level active when data is deserialized or serialized, certain data may be withheld corresponding to the invoking user or system's access level.
.elide.model.FieldVisibility visibility = 8 [json_name = "visibility"];- Specified by:
getVisibilityin interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The visibility.
-
getDescription
Deprecated.elide.model.FieldPersistenceOptions.description is deprecated. See elide/model/model.proto;l=254Provided for backwards compatibility. Do not use.
string description = 9 [json_name = "description", deprecated = true];- Specified by:
getDescriptionin interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The description.
-
getDescriptionBytes
Deprecated.elide.model.FieldPersistenceOptions.description is deprecated. See elide/model/model.proto;l=254Provided for backwards compatibility. Do not use.
string description = 9 [json_name = "description", deprecated = true];- Specified by:
getDescriptionBytesin interfaceFieldPersistenceOptionsOrBuilder- Returns:
- The bytes for description.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static FieldPersistenceOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldPersistenceOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldPersistenceOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldPersistenceOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldPersistenceOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FieldPersistenceOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FieldPersistenceOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static FieldPersistenceOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static FieldPersistenceOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static FieldPersistenceOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FieldPersistenceOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-