Class MultiEntityRename.Builder (2.30.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MultiEntityRename.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MultiEntityRename.Builder
Overrides

build()

public MultiEntityRename build()
Returns
TypeDescription
MultiEntityRename

buildPartial()

public MultiEntityRename buildPartial()
Returns
TypeDescription
MultiEntityRename

clear()

public MultiEntityRename.Builder clear()
Returns
TypeDescription
MultiEntityRename.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MultiEntityRename.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
MultiEntityRename.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MultiEntityRename.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
MultiEntityRename.Builder

This builder for chaining.

clone()

public MultiEntityRename.Builder clone()
Returns
TypeDescription
MultiEntityRename.Builder
Overrides

getDefaultInstanceForType()

public MultiEntityRename getDefaultInstanceForType()
Returns
TypeDescription
MultiEntityRename

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for sourceNameTransformation.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MultiEntityRename other)

public MultiEntityRename.Builder mergeFrom(MultiEntityRename other)
Parameter
NameDescription
otherMultiEntityRename
Returns
TypeDescription
MultiEntityRename.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MultiEntityRename.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MultiEntityRename.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MultiEntityRename.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MultiEntityRename.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MultiEntityRename.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MultiEntityRename.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public MultiEntityRename.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The newNamePattern to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for newNamePattern to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueEntityNameTransformation

The sourceNameTransformation to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
MultiEntityRename.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MultiEntityRename.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MultiEntityRename.Builder
Overrides