Class MigrationProgressEvent.Builder (2.25.1)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MigrationProgressEvent build()
Returns
Type Description
MigrationProgressEvent

buildPartial()

public MigrationProgressEvent buildPartial()
Returns
Type Description
MigrationProgressEvent

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrepareStepDetails()

public MigrationProgressEvent.Builder clearPrepareStepDetails()

Details for the PREPARE step.

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

Returns
Type Description
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
Type Description
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
Type Description
MigrationProgressEvent.Builder

This builder for chaining.

clearStepDetails()

public MigrationProgressEvent.Builder clearStepDetails()
Returns
Type Description
MigrationProgressEvent.Builder

clone()

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

getDefaultInstanceForType()

public MigrationProgressEvent getDefaultInstanceForType()
Returns
Type Description
MigrationProgressEvent

getDescriptorForType()

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

getPrepareStepDetails()

public MigrationProgressEvent.PrepareStepDetails getPrepareStepDetails()

Details for the PREPARE step.

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

Returns
Type Description
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
Type Description
MigrationProgressEvent.PrepareStepDetails.Builder

getPrepareStepDetailsOrBuilder()

public MigrationProgressEvent.PrepareStepDetailsOrBuilder getPrepareStepDetailsOrBuilder()

Details for the PREPARE step.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
MigrationStep

The step.

getStepDetailsCase()

public MigrationProgressEvent.StepDetailsCase getStepDetailsCase()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the redirectWritesStepDetails field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MigrationProgressEvent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public MigrationProgressEvent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value MigrationProgressEvent.PrepareStepDetails
Returns
Type Description
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
Name Description
value MigrationProgressEvent.RedirectWritesStepDetails
Returns
Type Description
MigrationProgressEvent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public MigrationProgressEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value MigrationProgressEvent.PrepareStepDetails
Returns
Type Description
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
Name Description
builderForValue MigrationProgressEvent.PrepareStepDetails.Builder
Returns
Type Description
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
Name Description
value MigrationProgressEvent.RedirectWritesStepDetails
Returns
Type Description
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
Name Description
builderForValue MigrationProgressEvent.RedirectWritesStepDetails.Builder
Returns
Type Description
MigrationProgressEvent.Builder

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

public MigrationProgressEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value MigrationStep

The step to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
MigrationProgressEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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