Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue

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

Overview

Message for holding the value of the answer. QaQuestion.AnswerChoice defines the possible answer values for a question.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue

Returns a new instance of GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue.



8816
8817
8818
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 8816

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

Instance Attribute Details

#bool_valueBoolean Also known as: bool_value?

Boolean value. Corresponds to the JSON property boolValue

Returns:

  • (Boolean)


8775
8776
8777
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 8775

def bool_value
  @bool_value
end

#keyString

A short string used as an identifier. Matches the value used in QaQuestion. AnswerChoice.key. Corresponds to the JSON property key

Returns:

  • (String)


8782
8783
8784
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 8782

def key
  @key
end

#na_valueBoolean Also known as: na_value?

A value of "Not Applicable (N/A)". Corresponds to the JSON property naValue

Returns:

  • (Boolean)


8787
8788
8789
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 8787

def na_value
  @na_value
end

#normalized_scoreFloat

Output only. Normalized score of the questions. Calculated as score / potential_score iff potential_score != 0 else 0 Corresponds to the JSON property normalizedScore

Returns:

  • (Float)


8794
8795
8796
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 8794

def normalized_score
  @normalized_score
end

#num_valueFloat

Numerical value. Corresponds to the JSON property numValue

Returns:

  • (Float)


8799
8800
8801
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 8799

def num_value
  @num_value
end

#potential_scoreFloat

Output only. The maximum potential score of the question. Corresponds to the JSON property potentialScore

Returns:

  • (Float)


8804
8805
8806
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 8804

def potential_score
  @potential_score
end

#scoreFloat

Output only. Numerical score of the answer. Corresponds to the JSON property score

Returns:

  • (Float)


8809
8810
8811
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 8809

def score
  @score
end

#str_valueString

String value. Corresponds to the JSON property strValue

Returns:

  • (String)


8814
8815
8816
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 8814

def str_value
  @str_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 8821

def update!(**args)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @key = args[:key] if args.key?(:key)
  @na_value = args[:na_value] if args.key?(:na_value)
  @normalized_score = args[:normalized_score] if args.key?(:normalized_score)
  @num_value = args[:num_value] if args.key?(:num_value)
  @potential_score = args[:potential_score] if args.key?(:potential_score)
  @score = args[:score] if args.key?(:score)
  @str_value = args[:str_value] if args.key?(:str_value)
end