Package com.google.datastore.admin.v1
Enum MigrationStep
- java.lang.Object
-
- java.lang.Enum<MigrationStep>
-
- com.google.datastore.admin.v1.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 enumgoogle.datastore.admin.v1.MigrationStep
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLY_WRITES_SYNCHRONOUSLY
Writes are applied synchronously to at least one replica.COPY_AND_VERIFY
Data is copied to Cloud Firestore and then verified to match the data in Cloud Datastore.MIGRATION_STEP_UNSPECIFIED
Unspecified.PREPARE
Pre-migration: the database is prepared for migration.REDIRECT_EVENTUALLY_CONSISTENT_READS
Eventually-consistent reads are redirected to Cloud Firestore.REDIRECT_STRONGLY_CONSISTENT_READS
Strongly-consistent reads are redirected to Cloud Firestore.REDIRECT_WRITES
Writes are redirected to Cloud Firestore.START
Start of migration.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
APPLY_WRITES_SYNCHRONOUSLY_VALUE
Writes are applied synchronously to at least one replica.static int
COPY_AND_VERIFY_VALUE
Data is copied to Cloud Firestore and then verified to match the data in Cloud Datastore.static int
MIGRATION_STEP_UNSPECIFIED_VALUE
Unspecified.static int
PREPARE_VALUE
Pre-migration: the database is prepared for migration.static int
REDIRECT_EVENTUALLY_CONSISTENT_READS_VALUE
Eventually-consistent reads are redirected to Cloud Firestore.static int
REDIRECT_STRONGLY_CONSISTENT_READS_VALUE
Strongly-consistent reads are redirected to Cloud Firestore.static int
REDIRECT_WRITES_VALUE
Writes are redirected to Cloud Firestore.static int
START_VALUE
Start of migration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MigrationStep
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<MigrationStep>
internalGetValueMap()
static MigrationStep
valueOf(int value)
Deprecated.static MigrationStep
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static MigrationStep
valueOf(String name)
Returns the enum constant of this type with the specified name.static MigrationStep[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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;
-
UNRECOGNIZED
public static final MigrationStep UNRECOGNIZED
-
-
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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.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 nameNullPointerException
- 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 interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.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 nameNullPointerException
- if the argument is null
-
-