Class MigrationStateEvent.Builder (2.25.1)

public static final class MigrationStateEvent.Builder extends GeneratedMessageV3.Builder<MigrationStateEvent.Builder> implements MigrationStateEventOrBuilder

An event signifying a change in state of a migration from Cloud Datastore to Cloud Firestore in Datastore mode.

Protobuf type google.datastore.admin.v1.MigrationStateEvent

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MigrationStateEvent build()
Returns
Type Description
MigrationStateEvent

buildPartial()

public MigrationStateEvent buildPartial()
Returns
Type Description
MigrationStateEvent

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public MigrationStateEvent.Builder clearState()

The new state of the migration.

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

Returns
Type Description
MigrationStateEvent.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MigrationStateEvent getDefaultInstanceForType()
Returns
Type Description
MigrationStateEvent

getDescriptorForType()

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

getState()

public MigrationState getState()

The new state of the migration.

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

Returns
Type Description
MigrationState

The state.

getStateValue()

public int getStateValue()

The new state of the migration.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MigrationStateEvent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setState(MigrationState value)

public MigrationStateEvent.Builder setState(MigrationState value)

The new state of the migration.

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

Parameter
Name Description
value MigrationState

The state to set.

Returns
Type Description
MigrationStateEvent.Builder

This builder for chaining.

setStateValue(int value)

public MigrationStateEvent.Builder setStateValue(int value)

The new state of the migration.

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

Parameter
Name Description
value int

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

Returns
Type Description
MigrationStateEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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