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.



10313
10314
10315
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10313

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)


10300
10301
10302
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10300

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)


10306
10307
10308
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10306

def sample_filter
  @sample_filter
end

#variable_idString

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

Returns:

  • (String)


10311
10312
10313
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10311

def variable_id
  @variable_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10318
10319
10320
10321
10322
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10318

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