# Cloud Data Loss Prevention (DLP) V2 API - Class Google::Cloud::Dlp::V2::Value (v1.17.0)

1.17.0 (latest) 1.16.1 1.15.2 1.14.0 1.13.0 1.12.1 1.11.0 1.10.0 1.9.1 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.2 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.1 0.12.0 0.11.0 0.10.0 0.9.0 0.8.1 Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::Value.

Set of primitive values supported by the system.
Note that for the purposes of inspection or transformation, the number
of bytes considered to comprise a 'Value' is based on its representation
as a UTF-8 encoded string. For example, if 'integer_value' is set to
123456789, the number of bytes would be counted as 9, even though an
int64 only holds up to 8 bytes of data.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #boolean_value

    def boolean_value() -> ::Boolean

**Returns**

- (::Boolean) --- boolean

  Note: The following fields are mutually exclusive: `boolean_value`, `integer_value`, `float_value`, `string_value`, `timestamp_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #boolean_value=

    def boolean_value=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- boolean


  Note: The following fields are mutually exclusive: `boolean_value`, `integer_value`, `float_value`, `string_value`, `timestamp_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Boolean) --- boolean

  Note: The following fields are mutually exclusive: `boolean_value`, `integer_value`, `float_value`, `string_value`, `timestamp_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #date_value

    def date_value() -> ::Google::Type::Date

**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Type-Date)) --- date


  Note: The following fields are mutually exclusive: `date_value`, `integer_value`, `float_value`, `string_value`, `boolean_value`, `timestamp_value`, `time_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #date_value=

    def date_value=(value) -> ::Google::Type::Date

**Parameter**

- **value** ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Type-Date)) --- date


  Note: The following fields are mutually exclusive: `date_value`, `integer_value`, `float_value`, `string_value`, `boolean_value`, `timestamp_value`, `time_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Type-Date)) --- date


  Note: The following fields are mutually exclusive: `date_value`, `integer_value`, `float_value`, `string_value`, `boolean_value`, `timestamp_value`, `time_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #day_of_week_value

    def day_of_week_value() -> ::Google::Type::DayOfWeek

**Returns**

- ([::Google::Type::DayOfWeek](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Type-DayOfWeek)) --- day of week


  Note: The following fields are mutually exclusive: `day_of_week_value`, `integer_value`, `float_value`, `string_value`, `boolean_value`, `timestamp_value`, `time_value`, `date_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #day_of_week_value=

    def day_of_week_value=(value) -> ::Google::Type::DayOfWeek

**Parameter**

- **value** ([::Google::Type::DayOfWeek](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Type-DayOfWeek)) --- day of week


  Note: The following fields are mutually exclusive: `day_of_week_value`, `integer_value`, `float_value`, `string_value`, `boolean_value`, `timestamp_value`, `time_value`, `date_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Type::DayOfWeek](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Type-DayOfWeek)) --- day of week


  Note: The following fields are mutually exclusive: `day_of_week_value`, `integer_value`, `float_value`, `string_value`, `boolean_value`, `timestamp_value`, `time_value`, `date_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #float_value

    def float_value() -> ::Float

**Returns**

- (::Float) --- float

  Note: The following fields are mutually exclusive: `float_value`, `integer_value`, `string_value`, `boolean_value`, `timestamp_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #float_value=

    def float_value=(value) -> ::Float

**Parameter**

- **value** (::Float) --- float


  Note: The following fields are mutually exclusive: `float_value`, `integer_value`, `string_value`, `boolean_value`, `timestamp_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Float) --- float

  Note: The following fields are mutually exclusive: `float_value`, `integer_value`, `string_value`, `boolean_value`, `timestamp_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #integer_value

    def integer_value() -> ::Integer

**Returns**

- (::Integer) --- integer

  Note: The following fields are mutually exclusive: `integer_value`, `float_value`, `string_value`, `boolean_value`, `timestamp_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #integer_value=

    def integer_value=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- integer


  Note: The following fields are mutually exclusive: `integer_value`, `float_value`, `string_value`, `boolean_value`, `timestamp_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Integer) --- integer

  Note: The following fields are mutually exclusive: `integer_value`, `float_value`, `string_value`, `boolean_value`, `timestamp_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #string_value

    def string_value() -> ::String

**Returns**

- (::String) --- string

  Note: The following fields are mutually exclusive: `string_value`, `integer_value`, `float_value`, `boolean_value`, `timestamp_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #string_value=

    def string_value=(value) -> ::String

**Parameter**

- **value** (::String) --- string


  Note: The following fields are mutually exclusive: `string_value`, `integer_value`, `float_value`, `boolean_value`, `timestamp_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- string

  Note: The following fields are mutually exclusive: `string_value`, `integer_value`, `float_value`, `boolean_value`, `timestamp_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #time_value

    def time_value() -> ::Google::Type::TimeOfDay

**Returns**

- ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Type-TimeOfDay)) --- time of day


  Note: The following fields are mutually exclusive: `time_value`, `integer_value`, `float_value`, `string_value`, `boolean_value`, `timestamp_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #time_value=

    def time_value=(value) -> ::Google::Type::TimeOfDay

**Parameter**

- **value** ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Type-TimeOfDay)) --- time of day


  Note: The following fields are mutually exclusive: `time_value`, `integer_value`, `float_value`, `string_value`, `boolean_value`, `timestamp_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Type-TimeOfDay)) --- time of day


  Note: The following fields are mutually exclusive: `time_value`, `integer_value`, `float_value`, `string_value`, `boolean_value`, `timestamp_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #timestamp_value

    def timestamp_value() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- timestamp


  Note: The following fields are mutually exclusive: `timestamp_value`, `integer_value`, `float_value`, `string_value`, `boolean_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #timestamp_value=

    def timestamp_value=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- timestamp


  Note: The following fields are mutually exclusive: `timestamp_value`, `integer_value`, `float_value`, `string_value`, `boolean_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dlp-v2/latest/Google-Protobuf-Timestamp)) --- timestamp


  Note: The following fields are mutually exclusive: `timestamp_value`, `integer_value`, `float_value`, `string_value`, `boolean_value`, `time_value`, `date_value`, `day_of_week_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.