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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MultiColumnDatatypeChange build()
Returns
TypeDescription
MultiColumnDatatypeChange

buildPartial()

public MultiColumnDatatypeChange buildPartial()
Returns
TypeDescription
MultiColumnDatatypeChange

clear()

public MultiColumnDatatypeChange.Builder clear()
Returns
TypeDescription
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
TypeDescription
MultiColumnDatatypeChange.Builder

clearField(Descriptors.FieldDescriptor field)

public MultiColumnDatatypeChange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MultiColumnDatatypeChange.Builder
Overrides

clearNewDataType()

public MultiColumnDatatypeChange.Builder clearNewDataType()

Required. New data type.

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

Returns
TypeDescription
MultiColumnDatatypeChange.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clearSourceFilter()

public MultiColumnDatatypeChange.Builder clearSourceFilter()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
MultiColumnDatatypeChange.Builder

clone()

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

getCustomFeatures()

public Struct getCustomFeatures()

Optional. Custom engine specific features.

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

Returns
TypeDescription
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
TypeDescription
Builder

getCustomFeaturesOrBuilder()

public StructOrBuilder getCustomFeaturesOrBuilder()

Optional. Custom engine specific features.

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

Returns
TypeDescription
StructOrBuilder

getDefaultInstanceForType()

public MultiColumnDatatypeChange getDefaultInstanceForType()
Returns
TypeDescription
MultiColumnDatatypeChange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNewDataType()

public String getNewDataType()

Required. New data type.

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

Returns
TypeDescription
String

The newDataType.

getNewDataTypeBytes()

public ByteString getNewDataTypeBytes()

Required. New data type.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for sourceDataTypeFilter.

getSourceFilterCase()

public MultiColumnDatatypeChange.SourceFilterCase getSourceFilterCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SourceTextFilterOrBuilder

hasCustomFeatures()

public boolean hasCustomFeatures()

Optional. Custom engine specific features.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the sourceTextFilter field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
MultiColumnDatatypeChange.Builder

mergeFrom(MultiColumnDatatypeChange other)

public MultiColumnDatatypeChange.Builder mergeFrom(MultiColumnDatatypeChange other)
Parameter
NameDescription
otherMultiColumnDatatypeChange
Returns
TypeDescription
MultiColumnDatatypeChange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public MultiColumnDatatypeChange.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSourceNumericFilter
Returns
TypeDescription
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
NameDescription
valueSourceTextFilter
Returns
TypeDescription
MultiColumnDatatypeChange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MultiColumnDatatypeChange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
MultiColumnDatatypeChange.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The newDataType to set.

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

The bytes for newDataType to set.

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

The overrideFractionalSecondsPrecision to set.

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

The overrideLength to set.

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

The overridePrecision to set.

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

The overrideScale to set.

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

The sourceDataTypeFilter to set.

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

The bytes for sourceDataTypeFilter to set.

Returns
TypeDescription
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
NameDescription
valueSourceNumericFilter
Returns
TypeDescription
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
NameDescription
builderForValueSourceNumericFilter.Builder
Returns
TypeDescription
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
NameDescription
valueSourceTextFilter
Returns
TypeDescription
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
NameDescription
builderForValueSourceTextFilter.Builder
Returns
TypeDescription
MultiColumnDatatypeChange.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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