Class DatastoreFirestoreMigrationMetadata.Builder (2.18.5)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DatastoreFirestoreMigrationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DatastoreFirestoreMigrationMetadata.Builder
Overrides

build()

public DatastoreFirestoreMigrationMetadata build()
Returns
TypeDescription
DatastoreFirestoreMigrationMetadata

buildPartial()

public DatastoreFirestoreMigrationMetadata buildPartial()
Returns
TypeDescription
DatastoreFirestoreMigrationMetadata

clear()

public DatastoreFirestoreMigrationMetadata.Builder clear()
Returns
TypeDescription
DatastoreFirestoreMigrationMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DatastoreFirestoreMigrationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DatastoreFirestoreMigrationMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DatastoreFirestoreMigrationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DatastoreFirestoreMigrationMetadata.Builder
Overrides

clone()

public DatastoreFirestoreMigrationMetadata.Builder clone()
Returns
TypeDescription
DatastoreFirestoreMigrationMetadata.Builder
Overrides

getDefaultInstanceForType()

public DatastoreFirestoreMigrationMetadata getDefaultInstanceForType()
Returns
TypeDescription
DatastoreFirestoreMigrationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for migrationStep.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DatastoreFirestoreMigrationMetadata other)

public DatastoreFirestoreMigrationMetadata.Builder mergeFrom(DatastoreFirestoreMigrationMetadata other)
Parameter
NameDescription
otherDatastoreFirestoreMigrationMetadata
Returns
TypeDescription
DatastoreFirestoreMigrationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DatastoreFirestoreMigrationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DatastoreFirestoreMigrationMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DatastoreFirestoreMigrationMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DatastoreFirestoreMigrationMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DatastoreFirestoreMigrationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DatastoreFirestoreMigrationMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DatastoreFirestoreMigrationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueMigrationState

The migrationState to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueMigrationStep

The migrationStep to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DatastoreFirestoreMigrationMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DatastoreFirestoreMigrationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DatastoreFirestoreMigrationMetadata.Builder
Overrides