# Cloud Database Migration Service V1 API - Class Google::Cloud::CloudDMS::V1::ValueTransformation (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.2 1.1.0 1.0.1 0.8.0 0.7.2 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.5 Reference documentation and code samples for the Cloud Database Migration Service V1 API class Google::Cloud::CloudDMS::V1::ValueTransformation.

Description of data transformation during migration as part of the
ConditionalColumnSetValue.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #apply_hash

    def apply_hash() -> ::Google::Cloud::CloudDMS::V1::ApplyHash

**Returns**

- ([::Google::Cloud::CloudDMS::V1::ApplyHash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-ApplyHash)) --- Optional. Applies a hash function on the data


  Note: The following fields are mutually exclusive: `apply_hash`, `assign_null`, `assign_specific_value`, `assign_min_value`, `assign_max_value`, `round_scale`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #apply_hash=

    def apply_hash=(value) -> ::Google::Cloud::CloudDMS::V1::ApplyHash

**Parameter**

- **value** ([::Google::Cloud::CloudDMS::V1::ApplyHash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-ApplyHash)) --- Optional. Applies a hash function on the data


  Note: The following fields are mutually exclusive: `apply_hash`, `assign_null`, `assign_specific_value`, `assign_min_value`, `assign_max_value`, `round_scale`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::CloudDMS::V1::ApplyHash](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-ApplyHash)) --- Optional. Applies a hash function on the data


  Note: The following fields are mutually exclusive: `apply_hash`, `assign_null`, `assign_specific_value`, `assign_min_value`, `assign_max_value`, `round_scale`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #assign_max_value

    def assign_max_value() -> ::Google::Protobuf::Empty

**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Protobuf-Empty)) --- Optional. Set to max_value - if integer or numeric, will use int.maxvalue, etc


  Note: The following fields are mutually exclusive: `assign_max_value`, `assign_null`, `assign_specific_value`, `assign_min_value`, `round_scale`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #assign_max_value=

    def assign_max_value=(value) -> ::Google::Protobuf::Empty

**Parameter**

- **value** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Protobuf-Empty)) --- Optional. Set to max_value - if integer or numeric, will use int.maxvalue, etc


  Note: The following fields are mutually exclusive: `assign_max_value`, `assign_null`, `assign_specific_value`, `assign_min_value`, `round_scale`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Protobuf-Empty)) --- Optional. Set to max_value - if integer or numeric, will use int.maxvalue, etc


  Note: The following fields are mutually exclusive: `assign_max_value`, `assign_null`, `assign_specific_value`, `assign_min_value`, `round_scale`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #assign_min_value

    def assign_min_value() -> ::Google::Protobuf::Empty

**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Protobuf-Empty)) --- Optional. Set to min_value - if integer or numeric, will use int.minvalue, etc


  Note: The following fields are mutually exclusive: `assign_min_value`, `assign_null`, `assign_specific_value`, `assign_max_value`, `round_scale`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #assign_min_value=

    def assign_min_value=(value) -> ::Google::Protobuf::Empty

**Parameter**

- **value** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Protobuf-Empty)) --- Optional. Set to min_value - if integer or numeric, will use int.minvalue, etc


  Note: The following fields are mutually exclusive: `assign_min_value`, `assign_null`, `assign_specific_value`, `assign_max_value`, `round_scale`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Protobuf-Empty)) --- Optional. Set to min_value - if integer or numeric, will use int.minvalue, etc


  Note: The following fields are mutually exclusive: `assign_min_value`, `assign_null`, `assign_specific_value`, `assign_max_value`, `round_scale`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #assign_null

    def assign_null() -> ::Google::Protobuf::Empty

**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Protobuf-Empty)) --- Optional. Set to null


  Note: The following fields are mutually exclusive: `assign_null`, `assign_specific_value`, `assign_min_value`, `assign_max_value`, `round_scale`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #assign_null=

    def assign_null=(value) -> ::Google::Protobuf::Empty

**Parameter**

- **value** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Protobuf-Empty)) --- Optional. Set to null


  Note: The following fields are mutually exclusive: `assign_null`, `assign_specific_value`, `assign_min_value`, `assign_max_value`, `round_scale`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Protobuf-Empty)) --- Optional. Set to null


  Note: The following fields are mutually exclusive: `assign_null`, `assign_specific_value`, `assign_min_value`, `assign_max_value`, `round_scale`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #assign_specific_value

    def assign_specific_value() -> ::Google::Cloud::CloudDMS::V1::AssignSpecificValue

**Returns**

- ([::Google::Cloud::CloudDMS::V1::AssignSpecificValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-AssignSpecificValue)) --- Optional. Set to a specific value (value is converted to fit the target data type)


  Note: The following fields are mutually exclusive: `assign_specific_value`, `assign_null`, `assign_min_value`, `assign_max_value`, `round_scale`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #assign_specific_value=

    def assign_specific_value=(value) -> ::Google::Cloud::CloudDMS::V1::AssignSpecificValue

**Parameter**

- **value** ([::Google::Cloud::CloudDMS::V1::AssignSpecificValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-AssignSpecificValue)) --- Optional. Set to a specific value (value is converted to fit the target data type)


  Note: The following fields are mutually exclusive: `assign_specific_value`, `assign_null`, `assign_min_value`, `assign_max_value`, `round_scale`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::CloudDMS::V1::AssignSpecificValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-AssignSpecificValue)) --- Optional. Set to a specific value (value is converted to fit the target data type)


  Note: The following fields are mutually exclusive: `assign_specific_value`, `assign_null`, `assign_min_value`, `assign_max_value`, `round_scale`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #double_comparison

    def double_comparison() -> ::Google::Cloud::CloudDMS::V1::DoubleComparisonFilter

**Returns**

- ([::Google::Cloud::CloudDMS::V1::DoubleComparisonFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-DoubleComparisonFilter)) --- Optional. Filter on relation between source value and compare value of type double.


  Note: The following fields are mutually exclusive: `double_comparison`, `is_null`, `value_list`, `int_comparison`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #double_comparison=

    def double_comparison=(value) -> ::Google::Cloud::CloudDMS::V1::DoubleComparisonFilter

**Parameter**

- **value** ([::Google::Cloud::CloudDMS::V1::DoubleComparisonFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-DoubleComparisonFilter)) --- Optional. Filter on relation between source value and compare value of type double.


  Note: The following fields are mutually exclusive: `double_comparison`, `is_null`, `value_list`, `int_comparison`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::CloudDMS::V1::DoubleComparisonFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-DoubleComparisonFilter)) --- Optional. Filter on relation between source value and compare value of type double.


  Note: The following fields are mutually exclusive: `double_comparison`, `is_null`, `value_list`, `int_comparison`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #int_comparison

    def int_comparison() -> ::Google::Cloud::CloudDMS::V1::IntComparisonFilter

**Returns**

- ([::Google::Cloud::CloudDMS::V1::IntComparisonFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-IntComparisonFilter)) --- Optional. Filter on relation between source value and compare value of type integer.


  Note: The following fields are mutually exclusive: `int_comparison`, `is_null`, `value_list`, `double_comparison`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #int_comparison=

    def int_comparison=(value) -> ::Google::Cloud::CloudDMS::V1::IntComparisonFilter

**Parameter**

- **value** ([::Google::Cloud::CloudDMS::V1::IntComparisonFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-IntComparisonFilter)) --- Optional. Filter on relation between source value and compare value of type integer.


  Note: The following fields are mutually exclusive: `int_comparison`, `is_null`, `value_list`, `double_comparison`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::CloudDMS::V1::IntComparisonFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-IntComparisonFilter)) --- Optional. Filter on relation between source value and compare value of type integer.


  Note: The following fields are mutually exclusive: `int_comparison`, `is_null`, `value_list`, `double_comparison`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #is_null

    def is_null() -> ::Google::Protobuf::Empty

**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Protobuf-Empty)) --- Optional. Value is null


  Note: The following fields are mutually exclusive: `is_null`, `value_list`, `int_comparison`, `double_comparison`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #is_null=

    def is_null=(value) -> ::Google::Protobuf::Empty

**Parameter**

- **value** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Protobuf-Empty)) --- Optional. Value is null


  Note: The following fields are mutually exclusive: `is_null`, `value_list`, `int_comparison`, `double_comparison`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Protobuf-Empty)) --- Optional. Value is null


  Note: The following fields are mutually exclusive: `is_null`, `value_list`, `int_comparison`, `double_comparison`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #round_scale

    def round_scale() -> ::Google::Cloud::CloudDMS::V1::RoundToScale

**Returns**

- ([::Google::Cloud::CloudDMS::V1::RoundToScale](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-RoundToScale)) --- Optional. Allows the data to change scale


  Note: The following fields are mutually exclusive: `round_scale`, `assign_null`, `assign_specific_value`, `assign_min_value`, `assign_max_value`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #round_scale=

    def round_scale=(value) -> ::Google::Cloud::CloudDMS::V1::RoundToScale

**Parameter**

- **value** ([::Google::Cloud::CloudDMS::V1::RoundToScale](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-RoundToScale)) --- Optional. Allows the data to change scale


  Note: The following fields are mutually exclusive: `round_scale`, `assign_null`, `assign_specific_value`, `assign_min_value`, `assign_max_value`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::CloudDMS::V1::RoundToScale](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-RoundToScale)) --- Optional. Allows the data to change scale


  Note: The following fields are mutually exclusive: `round_scale`, `assign_null`, `assign_specific_value`, `assign_min_value`, `assign_max_value`, `apply_hash`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #value_list

    def value_list() -> ::Google::Cloud::CloudDMS::V1::ValueListFilter

**Returns**

- ([::Google::Cloud::CloudDMS::V1::ValueListFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-ValueListFilter)) --- Optional. Value is found in the specified list.


  Note: The following fields are mutually exclusive: `value_list`, `is_null`, `int_comparison`, `double_comparison`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #value_list=

    def value_list=(value) -> ::Google::Cloud::CloudDMS::V1::ValueListFilter

**Parameter**

- **value** ([::Google::Cloud::CloudDMS::V1::ValueListFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-ValueListFilter)) --- Optional. Value is found in the specified list.


  Note: The following fields are mutually exclusive: `value_list`, `is_null`, `int_comparison`, `double_comparison`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::CloudDMS::V1::ValueListFilter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-ValueListFilter)) --- Optional. Value is found in the specified list.


  Note: The following fields are mutually exclusive: `value_list`, `is_null`, `int_comparison`, `double_comparison`. If a field in that set is populated, all other fields in the set will automatically be cleared.