Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SentimentData
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SentimentData
 
 
- 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
The data for a sentiment annotation.
Instance Attribute Summary collapse
- 
  
    
      #magnitude  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score.
 - 
  
    
      #score  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The sentiment score between -1.0 (negative) and 1.0 (positive).
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleCloudContactcenterinsightsV1SentimentData 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GoogleCloudContactcenterinsightsV1SentimentData.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1SentimentData
Returns a new instance of GoogleCloudContactcenterinsightsV1SentimentData.
      3415 3416 3417  | 
    
      # File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3415 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#magnitude ⇒ Float
A non-negative number from 0 to infinity which represents the abolute
magnitude of sentiment regardless of score.
Corresponds to the JSON property magnitude
      3408 3409 3410  | 
    
      # File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3408 def magnitude @magnitude end  | 
  
#score ⇒ Float
The sentiment score between -1.0 (negative) and 1.0 (positive).
Corresponds to the JSON property score
      3413 3414 3415  | 
    
      # File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3413 def score @score end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3420 3421 3422 3423  | 
    
      # File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3420 def update!(**args) @magnitude = args[:magnitude] if args.key?(:magnitude) @score = args[:score] if args.key?(:score) end  |