Class MultiColumnDatatypeChange.Builder (2.42.0)

public static final class MultiColumnDatatypeChange.Builder extends GeneratedMessageV3.Builder<MultiColumnDatatypeChange.Builder> implements MultiColumnDatatypeChangeOrBuilder

Options to configure rule type MultiColumnDatatypeChange. The rule is used to change the data type and associated properties of multiple columns at once.

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

The rule scope can be one of:Column.

This rule requires additional filters to be specified beyond the basic rule filter field, which is the source data type, but the rule supports additional filtering capabilities such as the minimum and maximum field length. All additional filters which are specified are required to be met in order for the rule to be applied (logical AND between the fields).

Protobuf type google.cloud.clouddms.v1.MultiColumnDatatypeChange

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MultiColumnDatatypeChange build()
Returns
Type Description
MultiColumnDatatypeChange

buildPartial()

public MultiColumnDatatypeChange buildPartial()
Returns
Type Description
MultiColumnDatatypeChange

clear()

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

clearCustomFeatures()

public MultiColumnDatatypeChange.Builder clearCustomFeatures()

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MultiColumnDatatypeChange.Builder

clearField(Descriptors.FieldDescriptor field)

public MultiColumnDatatypeChange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MultiColumnDatatypeChange.Builder
Overrides

clearNewDataType()

public MultiColumnDatatypeChange.Builder clearNewDataType()

Required. New data type.

string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MultiColumnDatatypeChange.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOverrideFractionalSecondsPrecision()

public MultiColumnDatatypeChange.Builder clearOverrideFractionalSecondsPrecision()

Optional. Column fractional seconds precision - used only for timestamp based datatypes - if not specified and relevant uses the source column fractional seconds precision.

int32 override_fractional_seconds_precision = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MultiColumnDatatypeChange.Builder

This builder for chaining.

clearOverrideLength()

public MultiColumnDatatypeChange.Builder clearOverrideLength()

Optional. Column length - e.g. varchar (50) - if not specified and relevant uses the source column length.

int64 override_length = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MultiColumnDatatypeChange.Builder

This builder for chaining.

clearOverridePrecision()

public MultiColumnDatatypeChange.Builder clearOverridePrecision()

Optional. Column precision - when relevant - if not specified and relevant uses the source column precision.

int32 override_precision = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MultiColumnDatatypeChange.Builder

This builder for chaining.

clearOverrideScale()

public MultiColumnDatatypeChange.Builder clearOverrideScale()

Optional. Column scale - when relevant - if not specified and relevant uses the source column scale.

int32 override_scale = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MultiColumnDatatypeChange.Builder

This builder for chaining.

clearSourceDataTypeFilter()

public MultiColumnDatatypeChange.Builder clearSourceDataTypeFilter()

Required. Filter on source data type.

string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MultiColumnDatatypeChange.Builder

This builder for chaining.

clearSourceFilter()

public MultiColumnDatatypeChange.Builder clearSourceFilter()
Returns
Type Description
MultiColumnDatatypeChange.Builder

clearSourceNumericFilter()

public MultiColumnDatatypeChange.Builder clearSourceNumericFilter()

Optional. Filter for fixed point number data types such as NUMERIC/NUMBER.

.google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MultiColumnDatatypeChange.Builder

clearSourceTextFilter()

public MultiColumnDatatypeChange.Builder clearSourceTextFilter()

Optional. Filter for text-based data types like varchar.

.google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MultiColumnDatatypeChange.Builder

clone()

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

getCustomFeatures()

public Struct getCustomFeatures()

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The customFeatures.

getCustomFeaturesBuilder()

public Struct.Builder getCustomFeaturesBuilder()

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getCustomFeaturesOrBuilder()

public StructOrBuilder getCustomFeaturesOrBuilder()

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getDefaultInstanceForType()

public MultiColumnDatatypeChange getDefaultInstanceForType()
Returns
Type Description
MultiColumnDatatypeChange

getDescriptorForType()

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

getNewDataType()

public String getNewDataType()

Required. New data type.

string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The newDataType.

getNewDataTypeBytes()

public ByteString getNewDataTypeBytes()

Required. New data type.

string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for newDataType.

getOverrideFractionalSecondsPrecision()

public int getOverrideFractionalSecondsPrecision()

Optional. Column fractional seconds precision - used only for timestamp based datatypes - if not specified and relevant uses the source column fractional seconds precision.

int32 override_fractional_seconds_precision = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The overrideFractionalSecondsPrecision.

getOverrideLength()

public long getOverrideLength()

Optional. Column length - e.g. varchar (50) - if not specified and relevant uses the source column length.

int64 override_length = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The overrideLength.

getOverridePrecision()

public int getOverridePrecision()

Optional. Column precision - when relevant - if not specified and relevant uses the source column precision.

int32 override_precision = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The overridePrecision.

getOverrideScale()

public int getOverrideScale()

Optional. Column scale - when relevant - if not specified and relevant uses the source column scale.

int32 override_scale = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The overrideScale.

getSourceDataTypeFilter()

public String getSourceDataTypeFilter()

Required. Filter on source data type.

string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The sourceDataTypeFilter.

getSourceDataTypeFilterBytes()

public ByteString getSourceDataTypeFilterBytes()

Required. Filter on source data type.

string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for sourceDataTypeFilter.

getSourceFilterCase()

public MultiColumnDatatypeChange.SourceFilterCase getSourceFilterCase()
Returns
Type Description
MultiColumnDatatypeChange.SourceFilterCase

getSourceNumericFilter()

public SourceNumericFilter getSourceNumericFilter()

Optional. Filter for fixed point number data types such as NUMERIC/NUMBER.

.google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SourceNumericFilter

The sourceNumericFilter.

getSourceNumericFilterBuilder()

public SourceNumericFilter.Builder getSourceNumericFilterBuilder()

Optional. Filter for fixed point number data types such as NUMERIC/NUMBER.

.google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SourceNumericFilter.Builder

getSourceNumericFilterOrBuilder()

public SourceNumericFilterOrBuilder getSourceNumericFilterOrBuilder()

Optional. Filter for fixed point number data types such as NUMERIC/NUMBER.

.google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SourceNumericFilterOrBuilder

getSourceTextFilter()

public SourceTextFilter getSourceTextFilter()

Optional. Filter for text-based data types like varchar.

.google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SourceTextFilter

The sourceTextFilter.

getSourceTextFilterBuilder()

public SourceTextFilter.Builder getSourceTextFilterBuilder()

Optional. Filter for text-based data types like varchar.

.google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SourceTextFilter.Builder

getSourceTextFilterOrBuilder()

public SourceTextFilterOrBuilder getSourceTextFilterOrBuilder()

Optional. Filter for text-based data types like varchar.

.google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SourceTextFilterOrBuilder

hasCustomFeatures()

public boolean hasCustomFeatures()

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the customFeatures field is set.

hasSourceNumericFilter()

public boolean hasSourceNumericFilter()

Optional. Filter for fixed point number data types such as NUMERIC/NUMBER.

.google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sourceNumericFilter field is set.

hasSourceTextFilter()

public boolean hasSourceTextFilter()

Optional. Filter for text-based data types like varchar.

.google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sourceTextFilter field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomFeatures(Struct value)

public MultiColumnDatatypeChange.Builder mergeCustomFeatures(Struct value)

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
MultiColumnDatatypeChange.Builder

mergeFrom(MultiColumnDatatypeChange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSourceNumericFilter(SourceNumericFilter value)

public MultiColumnDatatypeChange.Builder mergeSourceNumericFilter(SourceNumericFilter value)

Optional. Filter for fixed point number data types such as NUMERIC/NUMBER.

.google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SourceNumericFilter
Returns
Type Description
MultiColumnDatatypeChange.Builder

mergeSourceTextFilter(SourceTextFilter value)

public MultiColumnDatatypeChange.Builder mergeSourceTextFilter(SourceTextFilter value)

Optional. Filter for text-based data types like varchar.

.google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SourceTextFilter
Returns
Type Description
MultiColumnDatatypeChange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomFeatures(Struct value)

public MultiColumnDatatypeChange.Builder setCustomFeatures(Struct value)

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
MultiColumnDatatypeChange.Builder

setCustomFeatures(Struct.Builder builderForValue)

public MultiColumnDatatypeChange.Builder setCustomFeatures(Struct.Builder builderForValue)

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MultiColumnDatatypeChange.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNewDataType(String value)

public MultiColumnDatatypeChange.Builder setNewDataType(String value)

Required. New data type.

string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The newDataType to set.

Returns
Type Description
MultiColumnDatatypeChange.Builder

This builder for chaining.

setNewDataTypeBytes(ByteString value)

public MultiColumnDatatypeChange.Builder setNewDataTypeBytes(ByteString value)

Required. New data type.

string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for newDataType to set.

Returns
Type Description
MultiColumnDatatypeChange.Builder

This builder for chaining.

setOverrideFractionalSecondsPrecision(int value)

public MultiColumnDatatypeChange.Builder setOverrideFractionalSecondsPrecision(int value)

Optional. Column fractional seconds precision - used only for timestamp based datatypes - if not specified and relevant uses the source column fractional seconds precision.

int32 override_fractional_seconds_precision = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The overrideFractionalSecondsPrecision to set.

Returns
Type Description
MultiColumnDatatypeChange.Builder

This builder for chaining.

setOverrideLength(long value)

public MultiColumnDatatypeChange.Builder setOverrideLength(long value)

Optional. Column length - e.g. varchar (50) - if not specified and relevant uses the source column length.

int64 override_length = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The overrideLength to set.

Returns
Type Description
MultiColumnDatatypeChange.Builder

This builder for chaining.

setOverridePrecision(int value)

public MultiColumnDatatypeChange.Builder setOverridePrecision(int value)

Optional. Column precision - when relevant - if not specified and relevant uses the source column precision.

int32 override_precision = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The overridePrecision to set.

Returns
Type Description
MultiColumnDatatypeChange.Builder

This builder for chaining.

setOverrideScale(int value)

public MultiColumnDatatypeChange.Builder setOverrideScale(int value)

Optional. Column scale - when relevant - if not specified and relevant uses the source column scale.

int32 override_scale = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The overrideScale to set.

Returns
Type Description
MultiColumnDatatypeChange.Builder

This builder for chaining.

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

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

setSourceDataTypeFilter(String value)

public MultiColumnDatatypeChange.Builder setSourceDataTypeFilter(String value)

Required. Filter on source data type.

string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The sourceDataTypeFilter to set.

Returns
Type Description
MultiColumnDatatypeChange.Builder

This builder for chaining.

setSourceDataTypeFilterBytes(ByteString value)

public MultiColumnDatatypeChange.Builder setSourceDataTypeFilterBytes(ByteString value)

Required. Filter on source data type.

string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for sourceDataTypeFilter to set.

Returns
Type Description
MultiColumnDatatypeChange.Builder

This builder for chaining.

setSourceNumericFilter(SourceNumericFilter value)

public MultiColumnDatatypeChange.Builder setSourceNumericFilter(SourceNumericFilter value)

Optional. Filter for fixed point number data types such as NUMERIC/NUMBER.

.google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SourceNumericFilter
Returns
Type Description
MultiColumnDatatypeChange.Builder

setSourceNumericFilter(SourceNumericFilter.Builder builderForValue)

public MultiColumnDatatypeChange.Builder setSourceNumericFilter(SourceNumericFilter.Builder builderForValue)

Optional. Filter for fixed point number data types such as NUMERIC/NUMBER.

.google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SourceNumericFilter.Builder
Returns
Type Description
MultiColumnDatatypeChange.Builder

setSourceTextFilter(SourceTextFilter value)

public MultiColumnDatatypeChange.Builder setSourceTextFilter(SourceTextFilter value)

Optional. Filter for text-based data types like varchar.

.google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SourceTextFilter
Returns
Type Description
MultiColumnDatatypeChange.Builder

setSourceTextFilter(SourceTextFilter.Builder builderForValue)

public MultiColumnDatatypeChange.Builder setSourceTextFilter(SourceTextFilter.Builder builderForValue)

Optional. Filter for text-based data types like varchar.

.google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SourceTextFilter.Builder
Returns
Type Description
MultiColumnDatatypeChange.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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