Class MigrationStateEvent.Builder (2.13.2)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MigrationStateEvent build()
Returns
TypeDescription
MigrationStateEvent

buildPartial()

public MigrationStateEvent buildPartial()
Returns
TypeDescription
MigrationStateEvent

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public MigrationStateEvent.Builder clearState()

The new state of the migration.

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

Returns
TypeDescription
MigrationStateEvent.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MigrationStateEvent getDefaultInstanceForType()
Returns
TypeDescription
MigrationStateEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getState()

public MigrationState getState()

The new state of the migration.

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

Returns
TypeDescription
MigrationState

The state.

getStateValue()

public int getStateValue()

The new state of the migration.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MigrationStateEvent other)

public MigrationStateEvent.Builder mergeFrom(MigrationStateEvent other)
Parameter
NameDescription
otherMigrationStateEvent
Returns
TypeDescription
MigrationStateEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public MigrationStateEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueMigrationState

The state to set.

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

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

Returns
TypeDescription
MigrationStateEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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