Package com.google.datastore.admin.v1
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 Summary
Enum ConstantsEnum ConstantDescriptionWrites are applied synchronously to at least one replica.Data is copied to Cloud Firestore and then verified to match the data in Cloud Datastore.Unspecified.Pre-migration: the database is prepared for migration.Eventually-consistent reads are redirected to Cloud Firestore.Strongly-consistent reads are redirected to Cloud Firestore.Writes are redirected to Cloud Firestore.Start of migration. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intWrites are applied synchronously to at least one replica.static final intData is copied to Cloud Firestore and then verified to match the data in Cloud Datastore.static final intUnspecified.static final intPre-migration: the database is prepared for migration.static final intEventually-consistent reads are redirected to Cloud Firestore.static final intStrongly-consistent reads are redirected to Cloud Firestore.static final intWrites are redirected to Cloud Firestore.static final intStart of migration. -
Method Summary
Modifier and TypeMethodDescriptionstatic MigrationStepforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<MigrationStep>static MigrationStepvalueOf(int value) Deprecated.static MigrationStepvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static MigrationStepReturns 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 Details
-
MIGRATION_STEP_UNSPECIFIED
Unspecified.
MIGRATION_STEP_UNSPECIFIED = 0; -
PREPARE
Pre-migration: the database is prepared for migration.
PREPARE = 6; -
START
Start of migration.
START = 1; -
APPLY_WRITES_SYNCHRONOUSLY
Writes are applied synchronously to at least one replica.
APPLY_WRITES_SYNCHRONOUSLY = 7; -
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
Eventually-consistent reads are redirected to Cloud Firestore.
REDIRECT_EVENTUALLY_CONSISTENT_READS = 3; -
REDIRECT_STRONGLY_CONSISTENT_READS
Strongly-consistent reads are redirected to Cloud Firestore.
REDIRECT_STRONGLY_CONSISTENT_READS = 4; -
REDIRECT_WRITES
Writes are redirected to Cloud Firestore.
REDIRECT_WRITES = 5; -
UNRECOGNIZED
-
-
Field Details
-
MIGRATION_STEP_UNSPECIFIED_VALUE
public static final int MIGRATION_STEP_UNSPECIFIED_VALUEUnspecified.
MIGRATION_STEP_UNSPECIFIED = 0;- See Also:
-
PREPARE_VALUE
public static final int PREPARE_VALUEPre-migration: the database is prepared for migration.
PREPARE = 6;- See Also:
-
START_VALUE
public static final int START_VALUEStart of migration.
START = 1;- See Also:
-
APPLY_WRITES_SYNCHRONOUSLY_VALUE
public static final int APPLY_WRITES_SYNCHRONOUSLY_VALUEWrites are applied synchronously to at least one replica.
APPLY_WRITES_SYNCHRONOUSLY = 7;- See Also:
-
COPY_AND_VERIFY_VALUE
public static final int COPY_AND_VERIFY_VALUEData is copied to Cloud Firestore and then verified to match the data in Cloud Datastore.
COPY_AND_VERIFY = 2;- See Also:
-
REDIRECT_EVENTUALLY_CONSISTENT_READS_VALUE
public static final int REDIRECT_EVENTUALLY_CONSISTENT_READS_VALUEEventually-consistent reads are redirected to Cloud Firestore.
REDIRECT_EVENTUALLY_CONSISTENT_READS = 3;- See Also:
-
REDIRECT_STRONGLY_CONSISTENT_READS_VALUE
public static final int REDIRECT_STRONGLY_CONSISTENT_READS_VALUEStrongly-consistent reads are redirected to Cloud Firestore.
REDIRECT_STRONGLY_CONSISTENT_READS = 4;- See Also:
-
REDIRECT_WRITES_VALUE
public static final int REDIRECT_WRITES_VALUEWrites are redirected to Cloud Firestore.
REDIRECT_WRITES = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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
-