Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb

Overview

Specifies a samples query and bind its result to a variable which will be used in the condition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding

Returns a new instance of GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding.



9283
9284
9285
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9283

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

Description of this sample binding. Used by the UI to render user friendly descriptions for each requirement condition. Should be less than 128 characters long. Corresponds to the JSON property description

Returns:

  • (String)


9270
9271
9272
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9270

def description
  @description
end

#sample_filterString

The filter string used for samples query. Example: "sample.type = \"retail. googleapis.com/user_event\" AND " "sample.labels.event_type = \"PURCHASE\" " Corresponds to the JSON property sampleFilter

Returns:

  • (String)


9276
9277
9278
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9276

def sample_filter
  @sample_filter
end

#variable_idString

The variable id to be referenced in condition. Corresponds to the JSON property variableId

Returns:

  • (String)


9281
9282
9283
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9281

def variable_id
  @variable_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9288
9289
9290
9291
9292
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9288

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @sample_filter = args[:sample_filter] if args.key?(:sample_filter)
  @variable_id = args[:variable_id] if args.key?(:variable_id)
end