public enum MigrationStep extends Enum<MigrationStep> implements com.google.protobuf.ProtocolMessageEnum
Steps in a migration.Protobuf enum
google.datastore.admin.v1.MigrationStep
Enum Constant and 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 |
Modifier and Type | Field and 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.
|
Modifier and Type | Method and 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(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static MigrationStep |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
public static final MigrationStep MIGRATION_STEP_UNSPECIFIED
Unspecified.
MIGRATION_STEP_UNSPECIFIED = 0;
public static final MigrationStep PREPARE
Pre-migration: the database is prepared for migration.
PREPARE = 6;
public static final MigrationStep START
Start of migration.
START = 1;
public static final MigrationStep APPLY_WRITES_SYNCHRONOUSLY
Writes are applied synchronously to at least one replica.
APPLY_WRITES_SYNCHRONOUSLY = 7;
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;
public static final MigrationStep REDIRECT_EVENTUALLY_CONSISTENT_READS
Eventually-consistent reads are redirected to Cloud Firestore.
REDIRECT_EVENTUALLY_CONSISTENT_READS = 3;
public static final MigrationStep REDIRECT_STRONGLY_CONSISTENT_READS
Strongly-consistent reads are redirected to Cloud Firestore.
REDIRECT_STRONGLY_CONSISTENT_READS = 4;
public static final MigrationStep REDIRECT_WRITES
Writes are redirected to Cloud Firestore.
REDIRECT_WRITES = 5;
public static final MigrationStep UNRECOGNIZED
public static final int MIGRATION_STEP_UNSPECIFIED_VALUE
Unspecified.
MIGRATION_STEP_UNSPECIFIED = 0;
public static final int PREPARE_VALUE
Pre-migration: the database is prepared for migration.
PREPARE = 6;
public static final int START_VALUE
Start of migration.
START = 1;
public static final int APPLY_WRITES_SYNCHRONOUSLY_VALUE
Writes are applied synchronously to at least one replica.
APPLY_WRITES_SYNCHRONOUSLY = 7;
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;
public static final int REDIRECT_EVENTUALLY_CONSISTENT_READS_VALUE
Eventually-consistent reads are redirected to Cloud Firestore.
REDIRECT_EVENTUALLY_CONSISTENT_READS = 3;
public static final int REDIRECT_STRONGLY_CONSISTENT_READS_VALUE
Strongly-consistent reads are redirected to Cloud Firestore.
REDIRECT_STRONGLY_CONSISTENT_READS = 4;
public static final int REDIRECT_WRITES_VALUE
Writes are redirected to Cloud Firestore.
REDIRECT_WRITES = 5;
public static MigrationStep[] values()
for (MigrationStep c : MigrationStep.values()) System.out.println(c);
public static MigrationStep valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static MigrationStep valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static MigrationStep forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<MigrationStep> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static MigrationStep valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.