Class MultiEntityRename.Builder (2.82.0)

public static final class MultiEntityRename.Builder extends GeneratedMessage.Builder<MultiEntityRename.Builder> implements MultiEntityRenameOrBuilder

Options to configure rule type MultiEntityRename. The rule is used to rename multiple entities.

The rule filter field can refer to one or more entities.

The rule scope can be one of: Database, Schema, Table, Column, Constraint, Index, View, Function, Stored Procedure, Materialized View, Sequence, UDT

Protobuf type google.cloud.clouddms.v1.MultiEntityRename

Static Methods

getDescriptor()

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

Methods

build()

public MultiEntityRename build()
Returns
Type Description
MultiEntityRename

buildPartial()

public MultiEntityRename buildPartial()
Returns
Type Description
MultiEntityRename

clear()

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

clearNewNamePattern()

public MultiEntityRename.Builder clearNewNamePattern()

Optional. The pattern used to generate the new entity's name. This pattern must include the characters '{name}', which will be replaced with the name of the original entity. For example, the pattern 't_{name}' for an entity name jobs would be converted to 't_jobs'.

If unspecified, the default value for this field is '{name}'

string new_name_pattern = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MultiEntityRename.Builder

This builder for chaining.

clearSourceNameTransformation()

public MultiEntityRename.Builder clearSourceNameTransformation()

Optional. Additional transformation that can be done on the source entity name before it is being used by the new_name_pattern, for example lower case. If no transformation is desired, use NO_TRANSFORMATION

.google.cloud.clouddms.v1.EntityNameTransformation source_name_transformation = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MultiEntityRename.Builder

This builder for chaining.

getDefaultInstanceForType()

public MultiEntityRename getDefaultInstanceForType()
Returns
Type Description
MultiEntityRename

getDescriptorForType()

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

getNewNamePattern()

public String getNewNamePattern()

Optional. The pattern used to generate the new entity's name. This pattern must include the characters '{name}', which will be replaced with the name of the original entity. For example, the pattern 't_{name}' for an entity name jobs would be converted to 't_jobs'.

If unspecified, the default value for this field is '{name}'

string new_name_pattern = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The newNamePattern.

getNewNamePatternBytes()

public ByteString getNewNamePatternBytes()

Optional. The pattern used to generate the new entity's name. This pattern must include the characters '{name}', which will be replaced with the name of the original entity. For example, the pattern 't_{name}' for an entity name jobs would be converted to 't_jobs'.

If unspecified, the default value for this field is '{name}'

string new_name_pattern = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for newNamePattern.

getSourceNameTransformation()

public EntityNameTransformation getSourceNameTransformation()

Optional. Additional transformation that can be done on the source entity name before it is being used by the new_name_pattern, for example lower case. If no transformation is desired, use NO_TRANSFORMATION

.google.cloud.clouddms.v1.EntityNameTransformation source_name_transformation = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EntityNameTransformation

The sourceNameTransformation.

getSourceNameTransformationValue()

public int getSourceNameTransformationValue()

Optional. Additional transformation that can be done on the source entity name before it is being used by the new_name_pattern, for example lower case. If no transformation is desired, use NO_TRANSFORMATION

.google.cloud.clouddms.v1.EntityNameTransformation source_name_transformation = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for sourceNameTransformation.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MultiEntityRename other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setNewNamePattern(String value)

public MultiEntityRename.Builder setNewNamePattern(String value)

Optional. The pattern used to generate the new entity's name. This pattern must include the characters '{name}', which will be replaced with the name of the original entity. For example, the pattern 't_{name}' for an entity name jobs would be converted to 't_jobs'.

If unspecified, the default value for this field is '{name}'

string new_name_pattern = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The newNamePattern to set.

Returns
Type Description
MultiEntityRename.Builder

This builder for chaining.

setNewNamePatternBytes(ByteString value)

public MultiEntityRename.Builder setNewNamePatternBytes(ByteString value)

Optional. The pattern used to generate the new entity's name. This pattern must include the characters '{name}', which will be replaced with the name of the original entity. For example, the pattern 't_{name}' for an entity name jobs would be converted to 't_jobs'.

If unspecified, the default value for this field is '{name}'

string new_name_pattern = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for newNamePattern to set.

Returns
Type Description
MultiEntityRename.Builder

This builder for chaining.

setSourceNameTransformation(EntityNameTransformation value)

public MultiEntityRename.Builder setSourceNameTransformation(EntityNameTransformation value)

Optional. Additional transformation that can be done on the source entity name before it is being used by the new_name_pattern, for example lower case. If no transformation is desired, use NO_TRANSFORMATION

.google.cloud.clouddms.v1.EntityNameTransformation source_name_transformation = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EntityNameTransformation

The sourceNameTransformation to set.

Returns
Type Description
MultiEntityRename.Builder

This builder for chaining.

setSourceNameTransformationValue(int value)

public MultiEntityRename.Builder setSourceNameTransformationValue(int value)

Optional. Additional transformation that can be done on the source entity name before it is being used by the new_name_pattern, for example lower case. If no transformation is desired, use NO_TRANSFORMATION

.google.cloud.clouddms.v1.EntityNameTransformation source_name_transformation = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
MultiEntityRename.Builder

This builder for chaining.