Class MigrationProgressEvent.Builder (2.17.6)

public static final class MigrationProgressEvent.Builder extends GeneratedMessageV3.Builder<MigrationProgressEvent.Builder> implements MigrationProgressEventOrBuilder

An event signifying the start of a new step in a migration from Cloud Datastore to Cloud Firestore in Datastore mode.

Protobuf type google.datastore.admin.v1.MigrationProgressEvent

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MigrationProgressEvent build()
Returns
TypeDescription
MigrationProgressEvent

buildPartial()

public MigrationProgressEvent buildPartial()
Returns
TypeDescription
MigrationProgressEvent

clear()

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

clearField(Descriptors.FieldDescriptor field)

public MigrationProgressEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MigrationProgressEvent.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrepareStepDetails()

public MigrationProgressEvent.Builder clearPrepareStepDetails()

Details for the PREPARE step.

.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2;

Returns
TypeDescription
MigrationProgressEvent.Builder

clearRedirectWritesStepDetails()

public MigrationProgressEvent.Builder clearRedirectWritesStepDetails()

Details for the REDIRECT_WRITES step.

.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3;

Returns
TypeDescription
MigrationProgressEvent.Builder

clearStep()

public MigrationProgressEvent.Builder clearStep()

The step that is starting.

An event with step set to START indicates that the migration has been reverted back to the initial pre-migration state.

.google.datastore.admin.v1.MigrationStep step = 1;

Returns
TypeDescription
MigrationProgressEvent.Builder

This builder for chaining.

clearStepDetails()

public MigrationProgressEvent.Builder clearStepDetails()
Returns
TypeDescription
MigrationProgressEvent.Builder

clone()

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

getDefaultInstanceForType()

public MigrationProgressEvent getDefaultInstanceForType()
Returns
TypeDescription
MigrationProgressEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPrepareStepDetails()

public MigrationProgressEvent.PrepareStepDetails getPrepareStepDetails()

Details for the PREPARE step.

.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2;

Returns
TypeDescription
MigrationProgressEvent.PrepareStepDetails

The prepareStepDetails.

getPrepareStepDetailsBuilder()

public MigrationProgressEvent.PrepareStepDetails.Builder getPrepareStepDetailsBuilder()

Details for the PREPARE step.

.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2;

Returns
TypeDescription
MigrationProgressEvent.PrepareStepDetails.Builder

getPrepareStepDetailsOrBuilder()

public MigrationProgressEvent.PrepareStepDetailsOrBuilder getPrepareStepDetailsOrBuilder()

Details for the PREPARE step.

.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2;

Returns
TypeDescription
MigrationProgressEvent.PrepareStepDetailsOrBuilder

getRedirectWritesStepDetails()

public MigrationProgressEvent.RedirectWritesStepDetails getRedirectWritesStepDetails()

Details for the REDIRECT_WRITES step.

.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3;

Returns
TypeDescription
MigrationProgressEvent.RedirectWritesStepDetails

The redirectWritesStepDetails.

getRedirectWritesStepDetailsBuilder()

public MigrationProgressEvent.RedirectWritesStepDetails.Builder getRedirectWritesStepDetailsBuilder()

Details for the REDIRECT_WRITES step.

.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3;

Returns
TypeDescription
MigrationProgressEvent.RedirectWritesStepDetails.Builder

getRedirectWritesStepDetailsOrBuilder()

public MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder getRedirectWritesStepDetailsOrBuilder()

Details for the REDIRECT_WRITES step.

.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3;

Returns
TypeDescription
MigrationProgressEvent.RedirectWritesStepDetailsOrBuilder

getStep()

public MigrationStep getStep()

The step that is starting.

An event with step set to START indicates that the migration has been reverted back to the initial pre-migration state.

.google.datastore.admin.v1.MigrationStep step = 1;

Returns
TypeDescription
MigrationStep

The step.

getStepDetailsCase()

public MigrationProgressEvent.StepDetailsCase getStepDetailsCase()
Returns
TypeDescription
MigrationProgressEvent.StepDetailsCase

getStepValue()

public int getStepValue()

The step that is starting.

An event with step set to START indicates that the migration has been reverted back to the initial pre-migration state.

.google.datastore.admin.v1.MigrationStep step = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for step.

hasPrepareStepDetails()

public boolean hasPrepareStepDetails()

Details for the PREPARE step.

.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2;

Returns
TypeDescription
boolean

Whether the prepareStepDetails field is set.

hasRedirectWritesStepDetails()

public boolean hasRedirectWritesStepDetails()

Details for the REDIRECT_WRITES step.

.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3;

Returns
TypeDescription
boolean

Whether the redirectWritesStepDetails field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MigrationProgressEvent other)

public MigrationProgressEvent.Builder mergeFrom(MigrationProgressEvent other)
Parameter
NameDescription
otherMigrationProgressEvent
Returns
TypeDescription
MigrationProgressEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePrepareStepDetails(MigrationProgressEvent.PrepareStepDetails value)

public MigrationProgressEvent.Builder mergePrepareStepDetails(MigrationProgressEvent.PrepareStepDetails value)

Details for the PREPARE step.

.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2;

Parameter
NameDescription
valueMigrationProgressEvent.PrepareStepDetails
Returns
TypeDescription
MigrationProgressEvent.Builder

mergeRedirectWritesStepDetails(MigrationProgressEvent.RedirectWritesStepDetails value)

public MigrationProgressEvent.Builder mergeRedirectWritesStepDetails(MigrationProgressEvent.RedirectWritesStepDetails value)

Details for the REDIRECT_WRITES step.

.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3;

Parameter
NameDescription
valueMigrationProgressEvent.RedirectWritesStepDetails
Returns
TypeDescription
MigrationProgressEvent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrepareStepDetails(MigrationProgressEvent.PrepareStepDetails value)

public MigrationProgressEvent.Builder setPrepareStepDetails(MigrationProgressEvent.PrepareStepDetails value)

Details for the PREPARE step.

.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2;

Parameter
NameDescription
valueMigrationProgressEvent.PrepareStepDetails
Returns
TypeDescription
MigrationProgressEvent.Builder

setPrepareStepDetails(MigrationProgressEvent.PrepareStepDetails.Builder builderForValue)

public MigrationProgressEvent.Builder setPrepareStepDetails(MigrationProgressEvent.PrepareStepDetails.Builder builderForValue)

Details for the PREPARE step.

.google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2;

Parameter
NameDescription
builderForValueMigrationProgressEvent.PrepareStepDetails.Builder
Returns
TypeDescription
MigrationProgressEvent.Builder

setRedirectWritesStepDetails(MigrationProgressEvent.RedirectWritesStepDetails value)

public MigrationProgressEvent.Builder setRedirectWritesStepDetails(MigrationProgressEvent.RedirectWritesStepDetails value)

Details for the REDIRECT_WRITES step.

.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3;

Parameter
NameDescription
valueMigrationProgressEvent.RedirectWritesStepDetails
Returns
TypeDescription
MigrationProgressEvent.Builder

setRedirectWritesStepDetails(MigrationProgressEvent.RedirectWritesStepDetails.Builder builderForValue)

public MigrationProgressEvent.Builder setRedirectWritesStepDetails(MigrationProgressEvent.RedirectWritesStepDetails.Builder builderForValue)

Details for the REDIRECT_WRITES step.

.google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3;

Parameter
NameDescription
builderForValueMigrationProgressEvent.RedirectWritesStepDetails.Builder
Returns
TypeDescription
MigrationProgressEvent.Builder

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

public MigrationProgressEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MigrationProgressEvent.Builder
Overrides

setStep(MigrationStep value)

public MigrationProgressEvent.Builder setStep(MigrationStep value)

The step that is starting.

An event with step set to START indicates that the migration has been reverted back to the initial pre-migration state.

.google.datastore.admin.v1.MigrationStep step = 1;

Parameter
NameDescription
valueMigrationStep

The step to set.

Returns
TypeDescription
MigrationProgressEvent.Builder

This builder for chaining.

setStepValue(int value)

public MigrationProgressEvent.Builder setStepValue(int value)

The step that is starting.

An event with step set to START indicates that the migration has been reverted back to the initial pre-migration state.

.google.datastore.admin.v1.MigrationStep step = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
MigrationProgressEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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