Enum MigrationStep

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<MigrationStep>

    public enum MigrationStep
    extends Enum<MigrationStep>
    implements com.google.protobuf.ProtocolMessageEnum
     Steps in a migration.
     
    Protobuf enum google.datastore.admin.v1.MigrationStep
    • Enum Constant Detail

      • MIGRATION_STEP_UNSPECIFIED

        public static final MigrationStep MIGRATION_STEP_UNSPECIFIED
         Unspecified.
         
        MIGRATION_STEP_UNSPECIFIED = 0;
      • PREPARE

        public static final MigrationStep PREPARE
         Pre-migration: the database is prepared for migration.
         
        PREPARE = 6;
      • START

        public static final MigrationStep START
         Start of migration.
         
        START = 1;
      • APPLY_WRITES_SYNCHRONOUSLY

        public static final MigrationStep APPLY_WRITES_SYNCHRONOUSLY
         Writes are applied synchronously to at least one replica.
         
        APPLY_WRITES_SYNCHRONOUSLY = 7;
      • COPY_AND_VERIFY

        public static final MigrationStep COPY_AND_VERIFY
         Data is copied to Cloud Firestore and then verified to match the data in
         Cloud Datastore.
         
        COPY_AND_VERIFY = 2;
      • REDIRECT_EVENTUALLY_CONSISTENT_READS

        public static final MigrationStep REDIRECT_EVENTUALLY_CONSISTENT_READS
         Eventually-consistent reads are redirected to Cloud Firestore.
         
        REDIRECT_EVENTUALLY_CONSISTENT_READS = 3;
      • REDIRECT_STRONGLY_CONSISTENT_READS

        public static final MigrationStep REDIRECT_STRONGLY_CONSISTENT_READS
         Strongly-consistent reads are redirected to Cloud Firestore.
         
        REDIRECT_STRONGLY_CONSISTENT_READS = 4;
      • REDIRECT_WRITES

        public static final MigrationStep REDIRECT_WRITES
         Writes are redirected to Cloud Firestore.
         
        REDIRECT_WRITES = 5;
    • Field Detail

      • MIGRATION_STEP_UNSPECIFIED_VALUE

        public static final int MIGRATION_STEP_UNSPECIFIED_VALUE
         Unspecified.
         
        MIGRATION_STEP_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • PREPARE_VALUE

        public static final int PREPARE_VALUE
         Pre-migration: the database is prepared for migration.
         
        PREPARE = 6;
        See Also:
        Constant Field Values
      • START_VALUE

        public static final int START_VALUE
         Start of migration.
         
        START = 1;
        See Also:
        Constant Field Values
      • APPLY_WRITES_SYNCHRONOUSLY_VALUE

        public static final int APPLY_WRITES_SYNCHRONOUSLY_VALUE
         Writes are applied synchronously to at least one replica.
         
        APPLY_WRITES_SYNCHRONOUSLY = 7;
        See Also:
        Constant Field Values
      • COPY_AND_VERIFY_VALUE

        public static final int COPY_AND_VERIFY_VALUE
         Data is copied to Cloud Firestore and then verified to match the data in
         Cloud Datastore.
         
        COPY_AND_VERIFY = 2;
        See Also:
        Constant Field Values
      • REDIRECT_EVENTUALLY_CONSISTENT_READS_VALUE

        public static final int REDIRECT_EVENTUALLY_CONSISTENT_READS_VALUE
         Eventually-consistent reads are redirected to Cloud Firestore.
         
        REDIRECT_EVENTUALLY_CONSISTENT_READS = 3;
        See Also:
        Constant Field Values
      • REDIRECT_STRONGLY_CONSISTENT_READS_VALUE

        public static final int REDIRECT_STRONGLY_CONSISTENT_READS_VALUE
         Strongly-consistent reads are redirected to Cloud Firestore.
         
        REDIRECT_STRONGLY_CONSISTENT_READS = 4;
        See Also:
        Constant Field Values
      • REDIRECT_WRITES_VALUE

        public static final int REDIRECT_WRITES_VALUE
         Writes are redirected to Cloud Firestore.
         
        REDIRECT_WRITES = 5;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static MigrationStep[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MigrationStep c : MigrationStep.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MigrationStep valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static MigrationStep valueOf​(int value)
        Deprecated.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • forNumber

        public static MigrationStep forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • internalGetValueMap

        public static com.google.protobuf.Internal.EnumLiteMap<MigrationStep> internalGetValueMap()
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static MigrationStep valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null