Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding
- 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
-
#description ⇒ String
Description of this sample binding.
-
#sample_filter ⇒ String
The filter string used for samples query.
-
#variable_id ⇒ String
The variable id to be referenced in
condition
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#description ⇒ String
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
14280 14281 14282 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14280 def description @description end |
#sample_filter ⇒ String
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
14286 14287 14288 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14286 def sample_filter @sample_filter end |
#variable_id ⇒ String
The variable id to be referenced in condition
.
Corresponds to the JSON property variableId
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 |