Class AutoMigrationConfig.Builder (0.62.0)

public static final class AutoMigrationConfig.Builder extends GeneratedMessage.Builder<AutoMigrationConfig.Builder> implements AutoMigrationConfigOrBuilder

AutoMigrationConfig contains the automigration configuration for a project.

Protobuf type google.cloud.config.v1.AutoMigrationConfig

Static Methods

getDescriptor()

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

Methods

build()

public AutoMigrationConfig build()
Returns
Type Description
AutoMigrationConfig

buildPartial()

public AutoMigrationConfig buildPartial()
Returns
Type Description
AutoMigrationConfig

clear()

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

clearAutoMigrationEnabled()

public AutoMigrationConfig.Builder clearAutoMigrationEnabled()

Optional. Whether the auto migration is enabled for the project.

bool auto_migration_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AutoMigrationConfig.Builder

This builder for chaining.

clearName()

public AutoMigrationConfig.Builder clearName()

Identifier. The name of the AutoMigrationConfig. Format: 'projects/{project_id}/locations/{location}/AutoMigrationConfig'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
AutoMigrationConfig.Builder

This builder for chaining.

clearUpdateTime()

public AutoMigrationConfig.Builder clearUpdateTime()

Output only. Time the AutoMigrationConfig was last updated.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AutoMigrationConfig.Builder

getAutoMigrationEnabled()

public boolean getAutoMigrationEnabled()

Optional. Whether the auto migration is enabled for the project.

bool auto_migration_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The autoMigrationEnabled.

getDefaultInstanceForType()

public AutoMigrationConfig getDefaultInstanceForType()
Returns
Type Description
AutoMigrationConfig

getDescriptorForType()

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

getName()

public String getName()

Identifier. The name of the AutoMigrationConfig. Format: 'projects/{project_id}/locations/{location}/AutoMigrationConfig'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the AutoMigrationConfig. Format: 'projects/{project_id}/locations/{location}/AutoMigrationConfig'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time the AutoMigrationConfig was last updated.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time the AutoMigrationConfig was last updated.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time the AutoMigrationConfig was last updated.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time the AutoMigrationConfig was last updated.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AutoMigrationConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUpdateTime(Timestamp value)

public AutoMigrationConfig.Builder mergeUpdateTime(Timestamp value)

Output only. Time the AutoMigrationConfig was last updated.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AutoMigrationConfig.Builder

setAutoMigrationEnabled(boolean value)

public AutoMigrationConfig.Builder setAutoMigrationEnabled(boolean value)

Optional. Whether the auto migration is enabled for the project.

bool auto_migration_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The autoMigrationEnabled to set.

Returns
Type Description
AutoMigrationConfig.Builder

This builder for chaining.

setName(String value)

public AutoMigrationConfig.Builder setName(String value)

Identifier. The name of the AutoMigrationConfig. Format: 'projects/{project_id}/locations/{location}/AutoMigrationConfig'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AutoMigrationConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AutoMigrationConfig.Builder setNameBytes(ByteString value)

Identifier. The name of the AutoMigrationConfig. Format: 'projects/{project_id}/locations/{location}/AutoMigrationConfig'.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AutoMigrationConfig.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public AutoMigrationConfig.Builder setUpdateTime(Timestamp value)

Output only. Time the AutoMigrationConfig was last updated.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AutoMigrationConfig.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public AutoMigrationConfig.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time the AutoMigrationConfig was last updated.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AutoMigrationConfig.Builder