View Source GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1alphaCondition (google_api_discovery_engine v0.27.0)

Defines circumstances to be checked before allowing a behavior

Attributes

  • activeTimeRange (type: list(GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1alphaConditionTimeRange.t), default: nil) - Range of time(s) specifying when condition is active. Maximum of 10 time ranges.
  • queryRegex (type: String.t, default: nil) - Optional. Query regex to match the whole search query. Cannot be set when Condition.query_terms is set. This is currently supporting promotion use case.
  • queryTerms (type: list(GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1alphaConditionQueryTerm.t), default: nil) - Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set. Maximum of 10 query terms.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1alphaCondition{
    activeTimeRange:
      [
        GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1alphaConditionTimeRange.t()
      ]
      | nil,
    queryRegex: String.t() | nil,
    queryTerms:
      [
        GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1alphaConditionQueryTerm.t()
      ]
      | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.