Class: Google::Cloud::ContactCenterInsights::V1::QaAnswer::AnswerValue

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/contactcenterinsights/v1/resources.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#bool_value::Boolean

Returns Boolean value.

Note: The following fields are mutually exclusive: bool_value, str_value, num_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Boolean)

    Boolean value.

    Note: The following fields are mutually exclusive: bool_value, str_value, num_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.



2035
2036
2037
2038
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 2035

class AnswerValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#key::String

Returns A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.

Returns:

  • (::String)

    A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.



2035
2036
2037
2038
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 2035

class AnswerValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#na_value::Boolean

Returns A value of "Not Applicable (N/A)". Should only ever be true.

Note: The following fields are mutually exclusive: na_value, str_value, num_value, bool_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Boolean)

    A value of "Not Applicable (N/A)". Should only ever be true.

    Note: The following fields are mutually exclusive: na_value, str_value, num_value, bool_value. If a field in that set is populated, all other fields in the set will automatically be cleared.



2035
2036
2037
2038
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 2035

class AnswerValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#normalized_score::Float (readonly)

Returns Output only. Normalized score of the questions. Calculated as score / potential_score.

Returns:

  • (::Float)

    Output only. Normalized score of the questions. Calculated as score / potential_score.



2035
2036
2037
2038
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 2035

class AnswerValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#num_value::Float

Returns Numerical value.

Note: The following fields are mutually exclusive: num_value, str_value, bool_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Float)

    Numerical value.

    Note: The following fields are mutually exclusive: num_value, str_value, bool_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.



2035
2036
2037
2038
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 2035

class AnswerValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#potential_score::Float (readonly)

Returns Output only. The maximum potential score of the question.

Returns:

  • (::Float)

    Output only. The maximum potential score of the question.



2035
2036
2037
2038
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 2035

class AnswerValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#score::Float (readonly)

Returns Output only. Numerical score of the answer.

Returns:

  • (::Float)

    Output only. Numerical score of the answer.



2035
2036
2037
2038
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 2035

class AnswerValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#str_value::String

Returns String value.

Note: The following fields are mutually exclusive: str_value, num_value, bool_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::String)

    String value.

    Note: The following fields are mutually exclusive: str_value, num_value, bool_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.



2035
2036
2037
2038
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 2035

class AnswerValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end