Class DatastoreFirestoreMigrationMetadata.Builder (2.20.1)

public static final class DatastoreFirestoreMigrationMetadata.Builder extends GeneratedMessageV3.Builder<DatastoreFirestoreMigrationMetadata.Builder> implements DatastoreFirestoreMigrationMetadataOrBuilder

Metadata for Datastore to Firestore migration operations.

The DatastoreFirestoreMigration operation is not started by the end-user via an explicit "creation" method. This is an intentional deviation from the LRO design pattern.

This singleton resource can be accessed at: "projects/{project_id}/operations/datastore-firestore-migration"

Protobuf type google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DatastoreFirestoreMigrationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder
Overrides

build()

public DatastoreFirestoreMigrationMetadata build()
Returns
Type Description
DatastoreFirestoreMigrationMetadata

buildPartial()

public DatastoreFirestoreMigrationMetadata buildPartial()
Returns
Type Description
DatastoreFirestoreMigrationMetadata

clear()

public DatastoreFirestoreMigrationMetadata.Builder clear()
Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DatastoreFirestoreMigrationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder
Overrides

clearMigrationState()

public DatastoreFirestoreMigrationMetadata.Builder clearMigrationState()

The current state of migration from Cloud Datastore to Cloud Firestore in Datastore mode.

.google.datastore.admin.v1.MigrationState migration_state = 1;

Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder

This builder for chaining.

clearMigrationStep()

public DatastoreFirestoreMigrationMetadata.Builder clearMigrationStep()

The current step of migration from Cloud Datastore to Cloud Firestore in Datastore mode.

.google.datastore.admin.v1.MigrationStep migration_step = 2;

Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DatastoreFirestoreMigrationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder
Overrides

clone()

public DatastoreFirestoreMigrationMetadata.Builder clone()
Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder
Overrides

getDefaultInstanceForType()

public DatastoreFirestoreMigrationMetadata getDefaultInstanceForType()
Returns
Type Description
DatastoreFirestoreMigrationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMigrationState()

public MigrationState getMigrationState()

The current state of migration from Cloud Datastore to Cloud Firestore in Datastore mode.

.google.datastore.admin.v1.MigrationState migration_state = 1;

Returns
Type Description
MigrationState

The migrationState.

getMigrationStateValue()

public int getMigrationStateValue()

The current state of migration from Cloud Datastore to Cloud Firestore in Datastore mode.

.google.datastore.admin.v1.MigrationState migration_state = 1;

Returns
Type Description
int

The enum numeric value on the wire for migrationState.

getMigrationStep()

public MigrationStep getMigrationStep()

The current step of migration from Cloud Datastore to Cloud Firestore in Datastore mode.

.google.datastore.admin.v1.MigrationStep migration_step = 2;

Returns
Type Description
MigrationStep

The migrationStep.

getMigrationStepValue()

public int getMigrationStepValue()

The current step of migration from Cloud Datastore to Cloud Firestore in Datastore mode.

.google.datastore.admin.v1.MigrationStep migration_step = 2;

Returns
Type Description
int

The enum numeric value on the wire for migrationStep.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DatastoreFirestoreMigrationMetadata other)

public DatastoreFirestoreMigrationMetadata.Builder mergeFrom(DatastoreFirestoreMigrationMetadata other)
Parameter
Name Description
other DatastoreFirestoreMigrationMetadata
Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DatastoreFirestoreMigrationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DatastoreFirestoreMigrationMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DatastoreFirestoreMigrationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DatastoreFirestoreMigrationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder
Overrides

setMigrationState(MigrationState value)

public DatastoreFirestoreMigrationMetadata.Builder setMigrationState(MigrationState value)

The current state of migration from Cloud Datastore to Cloud Firestore in Datastore mode.

.google.datastore.admin.v1.MigrationState migration_state = 1;

Parameter
Name Description
value MigrationState

The migrationState to set.

Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder

This builder for chaining.

setMigrationStateValue(int value)

public DatastoreFirestoreMigrationMetadata.Builder setMigrationStateValue(int value)

The current state of migration from Cloud Datastore to Cloud Firestore in Datastore mode.

.google.datastore.admin.v1.MigrationState migration_state = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for migrationState to set.

Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder

This builder for chaining.

setMigrationStep(MigrationStep value)

public DatastoreFirestoreMigrationMetadata.Builder setMigrationStep(MigrationStep value)

The current step of migration from Cloud Datastore to Cloud Firestore in Datastore mode.

.google.datastore.admin.v1.MigrationStep migration_step = 2;

Parameter
Name Description
value MigrationStep

The migrationStep to set.

Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder

This builder for chaining.

setMigrationStepValue(int value)

public DatastoreFirestoreMigrationMetadata.Builder setMigrationStepValue(int value)

The current step of migration from Cloud Datastore to Cloud Firestore in Datastore mode.

.google.datastore.admin.v1.MigrationStep migration_step = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for migrationStep to set.

Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DatastoreFirestoreMigrationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DatastoreFirestoreMigrationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DatastoreFirestoreMigrationMetadata.Builder
Overrides