View Source GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Value (google_api_content_warehouse v0.4.0)

Value represents a dynamically typed value which can be either be a float, a integer, a string, or a datetime value. A producer of value is expected to set one of these variants. Absence of any variant indicates an error.

Attributes

  • booleanValue (type: boolean(), default: nil) - Represents a boolean value.
  • datetimeValue (type: GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime.t, default: nil) - Represents a datetime value.
  • enumValue (type: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumValue.t, default: nil) - Represents an enum value.
  • floatValue (type: number(), default: nil) - Represents a float value.
  • intValue (type: integer(), default: nil) - Represents a integer value.
  • stringValue (type: String.t, default: nil) - Represents a string value.
  • timestampValue (type: GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampValue.t, default: nil) - Represents a timestamp value.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1Value{
  booleanValue: boolean() | nil,
  datetimeValue:
    GoogleApi.ContentWarehouse.V1.Model.GoogleTypeDateTime.t() | nil,
  enumValue:
    GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1EnumValue.t()
    | nil,
  floatValue: number() | nil,
  intValue: integer() | nil,
  stringValue: String.t() | nil,
  timestampValue:
    GoogleApi.ContentWarehouse.V1.Model.GoogleCloudContentwarehouseV1TimestampValue.t()
    | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.