Database Center V1BETA API - Class Google::Cloud::DatabaseCenter::V1beta::TypedValue (v0.1.0)

Reference documentation and code samples for the Database Center V1BETA API class Google::Cloud::DatabaseCenter::V1beta::TypedValue.

TypedValue represents the value of the metric based on data type.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#double_value

def double_value() -> ::Float
Returns
  • (::Float) — The value of the metric as double.

    Note: The following fields are mutually exclusive: double_value, int64_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

#double_value=

def double_value=(value) -> ::Float
Parameter
  • value (::Float) — The value of the metric as double.

    Note: The following fields are mutually exclusive: double_value, int64_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Float) — The value of the metric as double.

    Note: The following fields are mutually exclusive: double_value, int64_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

#int64_value

def int64_value() -> ::Integer
Returns
  • (::Integer) — The value of the metric as int.

    Note: The following fields are mutually exclusive: int64_value, double_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

#int64_value=

def int64_value=(value) -> ::Integer
Parameter
  • value (::Integer) — The value of the metric as int.

    Note: The following fields are mutually exclusive: int64_value, double_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Integer) — The value of the metric as int.

    Note: The following fields are mutually exclusive: int64_value, double_value. If a field in that set is populated, all other fields in the set will automatically be cleared.