Class MultiEntityRename.Builder (2.43.0)

public static final class MultiEntityRename.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MultiEntityRename.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MultiEntityRename.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public MultiEntityRename.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public MultiEntityRename.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MultiEntityRename.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MultiEntityRename.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MultiEntityRename.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public MultiEntityRename.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

public MultiEntityRename.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MultiEntityRename.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final MultiEntityRename.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MultiEntityRename.Builder
Overrides