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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
    • getDefaultInstanceForType

      public PersistenceOptions getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PersistenceOptions build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PersistenceOptions buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
    • setField

      public PersistenceOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
    • clearField

      public PersistenceOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
    • clearOneof

      public PersistenceOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
    • setRepeatedField

      public PersistenceOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
    • addRepeatedField

      public PersistenceOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
    • mergeFrom

      public PersistenceOptions.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PersistenceOptions.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getModeValue in interface PersistenceOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for mode.
    • setModeValue

      public PersistenceOptions.Builder setModeValue(int value)
       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

      public CollectionMode getMode()
       Specifies the storage mode for this entity.
       
      .elide.model.CollectionMode mode = 1 [json_name = "mode"];
      Specified by:
      getMode in interface PersistenceOptionsOrBuilder
      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

      public PersistenceOptions.Builder clearMode()
       Specifies the storage mode for this entity.
       
      .elide.model.CollectionMode mode = 1 [json_name = "mode"];
      Returns:
      This builder for chaining.
    • getPath

      public String 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:
      getPath in interface PersistenceOptionsOrBuilder
      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:
      getPathBytes in interface PersistenceOptionsOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public PersistenceOptions.Builder setPath(String value)
       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

      public PersistenceOptions.Builder 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

      public PersistenceOptions.Builder 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.
       
      string path = 2 [json_name = "path"];
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • getParent

      public String getParent()
       Name of this item's parent collection, if applicable.
       
      string parent = 3 [json_name = "parent"];
      Specified by:
      getParent in interface PersistenceOptionsOrBuilder
      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:
      getParentBytes in interface PersistenceOptionsOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public PersistenceOptions.Builder setParent(String value)
       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

      public PersistenceOptions.Builder clearParent()
       Name of this item's parent collection, if applicable.
       
      string parent = 3 [json_name = "parent"];
      Returns:
      This builder for chaining.
    • setParentBytes

      public PersistenceOptions.Builder setParentBytes(com.google.protobuf.ByteString value)
       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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>
    • mergeUnknownFields

      public final PersistenceOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PersistenceOptions.Builder>