Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo

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

Word-level info for words in a transcript.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo

Returns a new instance of GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo.



4477
4478
4479
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4477

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

Instance Attribute Details

#confidenceFloat

A confidence estimate between 0.0 and 1.0 of the fidelity of this word. A default value of 0.0 indicates that the value is unset. Corresponds to the JSON property confidence

Returns:

  • (Float)


4458
4459
4460
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4458

def confidence
  @confidence
end

#end_offsetString

Time offset of the end of this word relative to the beginning of the total conversation. Corresponds to the JSON property endOffset

Returns:

  • (String)


4464
4465
4466
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4464

def end_offset
  @end_offset
end

#start_offsetString

Time offset of the start of this word relative to the beginning of the total conversation. Corresponds to the JSON property startOffset

Returns:

  • (String)


4470
4471
4472
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4470

def start_offset
  @start_offset
end

#wordString

The word itself. Includes punctuation marks that surround the word. Corresponds to the JSON property word

Returns:

  • (String)


4475
4476
4477
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4475

def word
  @word
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4482
4483
4484
4485
4486
4487
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4482

def update!(**args)
  @confidence = args[:confidence] if args.key?(:confidence)
  @end_offset = args[:end_offset] if args.key?(:end_offset)
  @start_offset = args[:start_offset] if args.key?(:start_offset)
  @word = args[:word] if args.key?(:word)
end