Package com.elide.model
Class PersistenceOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
com.elide.model.PersistenceOptions.Builder
- All Implemented Interfaces:
PersistenceOptionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
PersistenceOptions
public static final class PersistenceOptions.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
implements PersistenceOptionsOrBuilder
Specifies options related to persistence of underlying model data associated with this particular message type. This includes settings related to Firestore and other data engines.Protobuf type
elide.model.PersistenceOptions-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Specifies the storage mode for this entity.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Name of this item's parent collection, if applicable.Data path for a given message, with items in the URL corresponding to parameters in the item's key path.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMode()Specifies the storage mode for this entity.intSpecifies the storage mode for this entity.Name of this item's parent collection, if applicable.com.google.protobuf.ByteStringName of this item's parent collection, if applicable.getPath()Data path for a given message, with items in the URL corresponding to parameters in the item's key path.com.google.protobuf.ByteStringData path for a given message, with items in the URL corresponding to parameters in the item's key path.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(PersistenceOptions other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setMode(CollectionMode value) Specifies the storage mode for this entity.setModeValue(int value) Specifies the storage mode for this entity.Name of this item's parent collection, if applicable.setParentBytes(com.google.protobuf.ByteString value) Name of this item's parent collection, if applicable.Data path for a given message, with items in the URL corresponding to parameters in the item's key path.setPathBytes(com.google.protobuf.ByteString value) Data path for a given message, with items in the URL corresponding to parameters in the item's key path.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<PersistenceOptions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
-
setField
public PersistenceOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
-
setRepeatedField
public PersistenceOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
-
addRepeatedField
public PersistenceOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PersistenceOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
-
mergeFrom
public PersistenceOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PersistenceOptions.Builder>- Throws:
IOException
-
getModeValue
public int getModeValue()Specifies the storage mode for this entity.
.elide.model.CollectionMode mode = 1 [json_name = "mode"];- Specified by:
getModeValuein interfacePersistenceOptionsOrBuilder- Returns:
- The enum numeric value on the wire for mode.
-
setModeValue
Specifies the storage mode for this entity.
.elide.model.CollectionMode mode = 1 [json_name = "mode"];- Parameters:
value- The enum numeric value on the wire for mode to set.- Returns:
- This builder for chaining.
-
getMode
Specifies the storage mode for this entity.
.elide.model.CollectionMode mode = 1 [json_name = "mode"];- Specified by:
getModein interfacePersistenceOptionsOrBuilder- Returns:
- The mode.
-
setMode
Specifies the storage mode for this entity.
.elide.model.CollectionMode mode = 1 [json_name = "mode"];- Parameters:
value- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
Specifies the storage mode for this entity.
.elide.model.CollectionMode mode = 1 [json_name = "mode"];- Returns:
- This builder for chaining.
-
getPath
Data path for a given message, with items in the URL corresponding to parameters in the item's key path.
string path = 2 [json_name = "path"];- Specified by:
getPathin interfacePersistenceOptionsOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()Data path for a given message, with items in the URL corresponding to parameters in the item's key path.
string path = 2 [json_name = "path"];- Specified by:
getPathBytesin interfacePersistenceOptionsOrBuilder- Returns:
- The bytes for path.
-
setPath
Data path for a given message, with items in the URL corresponding to parameters in the item's key path.
string path = 2 [json_name = "path"];- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
Data path for a given message, with items in the URL corresponding to parameters in the item's key path.
string path = 2 [json_name = "path"];- Returns:
- This builder for chaining.
-
setPathBytes
Data path for a given message, with items in the URL corresponding to parameters in the item's key path.
string path = 2 [json_name = "path"];- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
getParent
Name of this item's parent collection, if applicable.
string parent = 3 [json_name = "parent"];- Specified by:
getParentin interfacePersistenceOptionsOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Name of this item's parent collection, if applicable.
string parent = 3 [json_name = "parent"];- Specified by:
getParentBytesin interfacePersistenceOptionsOrBuilder- Returns:
- The bytes for parent.
-
setParent
Name of this item's parent collection, if applicable.
string parent = 3 [json_name = "parent"];- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Name of this item's parent collection, if applicable.
string parent = 3 [json_name = "parent"];- Returns:
- This builder for chaining.
-
setParentBytes
Name of this item's parent collection, if applicable.
string parent = 3 [json_name = "parent"];- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final PersistenceOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
-
mergeUnknownFields
public final PersistenceOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
-