Class FinishMigrationRequest.Builder (0.41.0)

public static final class FinishMigrationRequest.Builder extends GeneratedMessage.Builder<FinishMigrationRequest.Builder> implements FinishMigrationRequestOrBuilder

Request for FinishMigration.

Protobuf type google.cloud.memorystore.v1.FinishMigrationRequest

Static Methods

getDescriptor()

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

Methods

build()

public FinishMigrationRequest build()
Returns
Type Description
FinishMigrationRequest

buildPartial()

public FinishMigrationRequest buildPartial()
Returns
Type Description
FinishMigrationRequest

clear()

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

clearForce()

public FinishMigrationRequest.Builder clearForce()

Optional. By default, the FinishMigration operation ensures the target replication offset to catch up to the source offset as of the time of the call. Set this field to true to bypass this offset verification check.

bool force = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FinishMigrationRequest.Builder

This builder for chaining.

clearName()

public FinishMigrationRequest.Builder clearName()

Required. The resource name of the instance to finalize migration on. Format: projects/{project}/locations/{location}/instances/{instance}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
FinishMigrationRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public FinishMigrationRequest getDefaultInstanceForType()
Returns
Type Description
FinishMigrationRequest

getDescriptorForType()

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

getForce()

public boolean getForce()

Optional. By default, the FinishMigration operation ensures the target replication offset to catch up to the source offset as of the time of the call. Set this field to true to bypass this offset verification check.

bool force = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The force.

getName()

public String getName()

Required. The resource name of the instance to finalize migration on. Format: projects/{project}/locations/{location}/instances/{instance}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the instance to finalize migration on. Format: projects/{project}/locations/{location}/instances/{instance}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FinishMigrationRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setForce(boolean value)

public FinishMigrationRequest.Builder setForce(boolean value)

Optional. By default, the FinishMigration operation ensures the target replication offset to catch up to the source offset as of the time of the call. Set this field to true to bypass this offset verification check.

bool force = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The force to set.

Returns
Type Description
FinishMigrationRequest.Builder

This builder for chaining.

setName(String value)

public FinishMigrationRequest.Builder setName(String value)

Required. The resource name of the instance to finalize migration on. Format: projects/{project}/locations/{location}/instances/{instance}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
FinishMigrationRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public FinishMigrationRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the instance to finalize migration on. Format: projects/{project}/locations/{location}/instances/{instance}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
FinishMigrationRequest.Builder

This builder for chaining.