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.



14293
14294
14295
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14293

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)


14280
14281
14282
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14280

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)


14286
14287
14288
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14286

def sample_filter
  @sample_filter
end

#variable_idString

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

Returns:

  • (String)


14291
14292
14293
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14291

def variable_id
  @variable_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14298
14299
14300
14301
14302
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14298

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