Class: Google::Cloud::Dlp::V2::Value

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/privacy/dlp/v2/dlp.rb

Overview

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.

Instance Attribute Summary collapse

Instance Attribute Details

#boolean_value::Boolean

Returns 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.



2212
2213
2214
2215
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2212

class Value
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#date_value::Google::Type::Date

Returns 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)

    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.



2212
2213
2214
2215
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2212

class Value
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#day_of_week_value::Google::Type::DayOfWeek

Returns 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)

    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.



2212
2213
2214
2215
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2212

class Value
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#float_value::Float

Returns 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.



2212
2213
2214
2215
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2212

class Value
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#integer_value::Integer

Returns 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.



2212
2213
2214
2215
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2212

class Value
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#string_value::String

Returns 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.



2212
2213
2214
2215
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2212

class Value
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#time_value::Google::Type::TimeOfDay

Returns 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)

    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.



2212
2213
2214
2215
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2212

class Value
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#timestamp_value::Google::Protobuf::Timestamp

Returns 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)

    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.



2212
2213
2214
2215
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2212

class Value
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end