Class MigrationConfig.Builder (0.41.0)

public static final class MigrationConfig.Builder extends GeneratedMessage.Builder<MigrationConfig.Builder> implements MigrationConfigOrBuilder

Configuration for the migration of an instance.

Protobuf type google.cloud.memorystore.v1.MigrationConfig

Static Methods

getDescriptor()

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

Methods

build()

public MigrationConfig build()
Returns
Type Description
MigrationConfig

buildPartial()

public MigrationConfig buildPartial()
Returns
Type Description
MigrationConfig

clear()

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

clearForceFinishMigration()

public MigrationConfig.Builder clearForceFinishMigration()

Output only. Represents a boolean flag to force migration finalization without offset catch up validation between source and target before stopping replication.

bool force_finish_migration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationConfig.Builder

This builder for chaining.

clearSelfManagedSource()

public MigrationConfig.Builder clearSelfManagedSource()

Output only. Configuration for migrating from a self-managed Valkey/Redis instance

.google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationConfig.Builder

clearSource()

public MigrationConfig.Builder clearSource()
Returns
Type Description
MigrationConfig.Builder

clearState()

public MigrationConfig.Builder clearState()

Output only. Migration state of the instance.

.google.cloud.memorystore.v1.MigrationConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public MigrationConfig getDefaultInstanceForType()
Returns
Type Description
MigrationConfig

getDescriptorForType()

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

getForceFinishMigration()

public boolean getForceFinishMigration()

Output only. Represents a boolean flag to force migration finalization without offset catch up validation between source and target before stopping replication.

bool force_finish_migration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The forceFinishMigration.

getSelfManagedSource()

public SelfManagedSource getSelfManagedSource()

Output only. Configuration for migrating from a self-managed Valkey/Redis instance

.google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SelfManagedSource

The selfManagedSource.

getSelfManagedSourceBuilder()

public SelfManagedSource.Builder getSelfManagedSourceBuilder()

Output only. Configuration for migrating from a self-managed Valkey/Redis instance

.google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SelfManagedSource.Builder

getSelfManagedSourceOrBuilder()

public SelfManagedSourceOrBuilder getSelfManagedSourceOrBuilder()

Output only. Configuration for migrating from a self-managed Valkey/Redis instance

.google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SelfManagedSourceOrBuilder

getSourceCase()

public MigrationConfig.SourceCase getSourceCase()
Returns
Type Description
MigrationConfig.SourceCase

getState()

public MigrationConfig.State getState()

Output only. Migration state of the instance.

.google.cloud.memorystore.v1.MigrationConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MigrationConfig.State

The state.

getStateValue()

public int getStateValue()

Output only. Migration state of the instance.

.google.cloud.memorystore.v1.MigrationConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasSelfManagedSource()

public boolean hasSelfManagedSource()

Output only. Configuration for migrating from a self-managed Valkey/Redis instance

.google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the selfManagedSource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MigrationConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSelfManagedSource(SelfManagedSource value)

public MigrationConfig.Builder mergeSelfManagedSource(SelfManagedSource value)

Output only. Configuration for migrating from a self-managed Valkey/Redis instance

.google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value SelfManagedSource
Returns
Type Description
MigrationConfig.Builder

setForceFinishMigration(boolean value)

public MigrationConfig.Builder setForceFinishMigration(boolean value)

Output only. Represents a boolean flag to force migration finalization without offset catch up validation between source and target before stopping replication.

bool force_finish_migration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The forceFinishMigration to set.

Returns
Type Description
MigrationConfig.Builder

This builder for chaining.

setSelfManagedSource(SelfManagedSource value)

public MigrationConfig.Builder setSelfManagedSource(SelfManagedSource value)

Output only. Configuration for migrating from a self-managed Valkey/Redis instance

.google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value SelfManagedSource
Returns
Type Description
MigrationConfig.Builder

setSelfManagedSource(SelfManagedSource.Builder builderForValue)

public MigrationConfig.Builder setSelfManagedSource(SelfManagedSource.Builder builderForValue)

Output only. Configuration for migrating from a self-managed Valkey/Redis instance

.google.cloud.memorystore.v1.SelfManagedSource self_managed_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue SelfManagedSource.Builder
Returns
Type Description
MigrationConfig.Builder

setState(MigrationConfig.State value)

public MigrationConfig.Builder setState(MigrationConfig.State value)

Output only. Migration state of the instance.

.google.cloud.memorystore.v1.MigrationConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MigrationConfig.State

The state to set.

Returns
Type Description
MigrationConfig.Builder

This builder for chaining.

setStateValue(int value)

public MigrationConfig.Builder setStateValue(int value)

Output only. Migration state of the instance.

.google.cloud.memorystore.v1.MigrationConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
MigrationConfig.Builder

This builder for chaining.