Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec

Returns a new instance of GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec.



19408
19409
19410
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19408

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

Instance Attribute Details

#boostFloat

Corresponds to the JSON property boost

Returns:

  • (Float)


19396
19397
19398
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19396

def boost
  @boost
end

#boost_control_specGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpec

Corresponds to the JSON property boostControlSpec



19401
19402
19403
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19401

def boost_control_spec
  @boost_control_spec
end

#conditionString

Corresponds to the JSON property condition

Returns:

  • (String)


19406
19407
19408
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19406

def condition
  @condition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19413
19414
19415
19416
19417
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19413

def update!(**args)
  @boost = args[:boost] if args.key?(:boost)
  @boost_control_spec = args[:boost_control_spec] if args.key?(:boost_control_spec)
  @condition = args[:condition] if args.key?(:condition)
end