Class: Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment

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

Overview

A segment of a full transcript.

Defined Under Namespace

Classes: DialogflowSegmentMetadata, WordInfo

Instance Attribute Summary collapse

Instance Attribute Details

#channel_tag::Integer

Returns For conversations derived from multi-channel audio, this is the channel number corresponding to the audio from that channel. For audioChannelCount = N, its output values can range from '1' to 'N'. A channel tag of 0 indicates that the audio is mono.

Returns:

  • (::Integer)

    For conversations derived from multi-channel audio, this is the channel number corresponding to the audio from that channel. For audioChannelCount = N, its output values can range from '1' to 'N'. A channel tag of 0 indicates that the audio is mono.



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 153

class TranscriptSegment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Word-level info for words in a transcript.
  # @!attribute [rw] start_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the start of this word relative to the beginning of
  #     the total conversation.
  # @!attribute [rw] end_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the end of this word relative to the beginning of the
  #     total conversation.
  # @!attribute [rw] word
  #   @return [::String]
  #     The word itself. Includes punctuation marks that surround the word.
  # @!attribute [rw] confidence
  #   @return [::Float]
  #     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.
  class WordInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata from Dialogflow relating to the current transcript segment.
  # @!attribute [rw] smart_reply_allowlist_covered
  #   @return [::Boolean]
  #     Whether the transcript segment was covered under the configured smart
  #     reply allowlist in Agent Assist.
  class DialogflowSegmentMetadata
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#confidence::Float

Returns A confidence estimate between 0.0 and 1.0 of the fidelity of this segment. A default value of 0.0 indicates that the value is unset.

Returns:

  • (::Float)

    A confidence estimate between 0.0 and 1.0 of the fidelity of this segment. A default value of 0.0 indicates that the value is unset.



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 153

class TranscriptSegment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Word-level info for words in a transcript.
  # @!attribute [rw] start_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the start of this word relative to the beginning of
  #     the total conversation.
  # @!attribute [rw] end_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the end of this word relative to the beginning of the
  #     total conversation.
  # @!attribute [rw] word
  #   @return [::String]
  #     The word itself. Includes punctuation marks that surround the word.
  # @!attribute [rw] confidence
  #   @return [::Float]
  #     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.
  class WordInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata from Dialogflow relating to the current transcript segment.
  # @!attribute [rw] smart_reply_allowlist_covered
  #   @return [::Boolean]
  #     Whether the transcript segment was covered under the configured smart
  #     reply allowlist in Agent Assist.
  class DialogflowSegmentMetadata
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#dialogflow_segment_metadata::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::DialogflowSegmentMetadata

Returns CCAI metadata relating to the current transcript segment.



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 153

class TranscriptSegment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Word-level info for words in a transcript.
  # @!attribute [rw] start_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the start of this word relative to the beginning of
  #     the total conversation.
  # @!attribute [rw] end_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the end of this word relative to the beginning of the
  #     total conversation.
  # @!attribute [rw] word
  #   @return [::String]
  #     The word itself. Includes punctuation marks that surround the word.
  # @!attribute [rw] confidence
  #   @return [::Float]
  #     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.
  class WordInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata from Dialogflow relating to the current transcript segment.
  # @!attribute [rw] smart_reply_allowlist_covered
  #   @return [::Boolean]
  #     Whether the transcript segment was covered under the configured smart
  #     reply allowlist in Agent Assist.
  class DialogflowSegmentMetadata
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#language_code::String

Returns The language code of this segment as a BCP-47 language tag. Example: "en-US".

Returns:

  • (::String)

    The language code of this segment as a BCP-47 language tag. Example: "en-US".



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 153

class TranscriptSegment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Word-level info for words in a transcript.
  # @!attribute [rw] start_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the start of this word relative to the beginning of
  #     the total conversation.
  # @!attribute [rw] end_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the end of this word relative to the beginning of the
  #     total conversation.
  # @!attribute [rw] word
  #   @return [::String]
  #     The word itself. Includes punctuation marks that surround the word.
  # @!attribute [rw] confidence
  #   @return [::Float]
  #     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.
  class WordInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata from Dialogflow relating to the current transcript segment.
  # @!attribute [rw] smart_reply_allowlist_covered
  #   @return [::Boolean]
  #     Whether the transcript segment was covered under the configured smart
  #     reply allowlist in Agent Assist.
  class DialogflowSegmentMetadata
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#message_time::Google::Protobuf::Timestamp

Returns The time that the message occurred, if provided.

Returns:



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 153

class TranscriptSegment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Word-level info for words in a transcript.
  # @!attribute [rw] start_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the start of this word relative to the beginning of
  #     the total conversation.
  # @!attribute [rw] end_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the end of this word relative to the beginning of the
  #     total conversation.
  # @!attribute [rw] word
  #   @return [::String]
  #     The word itself. Includes punctuation marks that surround the word.
  # @!attribute [rw] confidence
  #   @return [::Float]
  #     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.
  class WordInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata from Dialogflow relating to the current transcript segment.
  # @!attribute [rw] smart_reply_allowlist_covered
  #   @return [::Boolean]
  #     Whether the transcript segment was covered under the configured smart
  #     reply allowlist in Agent Assist.
  class DialogflowSegmentMetadata
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#segment_participant::Google::Cloud::ContactCenterInsights::V1::ConversationParticipant

Returns The participant of this segment.

Returns:



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 153

class TranscriptSegment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Word-level info for words in a transcript.
  # @!attribute [rw] start_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the start of this word relative to the beginning of
  #     the total conversation.
  # @!attribute [rw] end_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the end of this word relative to the beginning of the
  #     total conversation.
  # @!attribute [rw] word
  #   @return [::String]
  #     The word itself. Includes punctuation marks that surround the word.
  # @!attribute [rw] confidence
  #   @return [::Float]
  #     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.
  class WordInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata from Dialogflow relating to the current transcript segment.
  # @!attribute [rw] smart_reply_allowlist_covered
  #   @return [::Boolean]
  #     Whether the transcript segment was covered under the configured smart
  #     reply allowlist in Agent Assist.
  class DialogflowSegmentMetadata
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#sentiment::Google::Cloud::ContactCenterInsights::V1::SentimentData

Returns The sentiment for this transcript segment.

Returns:



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 153

class TranscriptSegment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Word-level info for words in a transcript.
  # @!attribute [rw] start_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the start of this word relative to the beginning of
  #     the total conversation.
  # @!attribute [rw] end_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the end of this word relative to the beginning of the
  #     total conversation.
  # @!attribute [rw] word
  #   @return [::String]
  #     The word itself. Includes punctuation marks that surround the word.
  # @!attribute [rw] confidence
  #   @return [::Float]
  #     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.
  class WordInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata from Dialogflow relating to the current transcript segment.
  # @!attribute [rw] smart_reply_allowlist_covered
  #   @return [::Boolean]
  #     Whether the transcript segment was covered under the configured smart
  #     reply allowlist in Agent Assist.
  class DialogflowSegmentMetadata
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#text::String

Returns The text of this segment.

Returns:

  • (::String)

    The text of this segment.



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 153

class TranscriptSegment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Word-level info for words in a transcript.
  # @!attribute [rw] start_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the start of this word relative to the beginning of
  #     the total conversation.
  # @!attribute [rw] end_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the end of this word relative to the beginning of the
  #     total conversation.
  # @!attribute [rw] word
  #   @return [::String]
  #     The word itself. Includes punctuation marks that surround the word.
  # @!attribute [rw] confidence
  #   @return [::Float]
  #     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.
  class WordInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata from Dialogflow relating to the current transcript segment.
  # @!attribute [rw] smart_reply_allowlist_covered
  #   @return [::Boolean]
  #     Whether the transcript segment was covered under the configured smart
  #     reply allowlist in Agent Assist.
  class DialogflowSegmentMetadata
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#words::Array<::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::WordInfo>

Returns A list of the word-specific information for each word in the segment.

Returns:



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 153

class TranscriptSegment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Word-level info for words in a transcript.
  # @!attribute [rw] start_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the start of this word relative to the beginning of
  #     the total conversation.
  # @!attribute [rw] end_offset
  #   @return [::Google::Protobuf::Duration]
  #     Time offset of the end of this word relative to the beginning of the
  #     total conversation.
  # @!attribute [rw] word
  #   @return [::String]
  #     The word itself. Includes punctuation marks that surround the word.
  # @!attribute [rw] confidence
  #   @return [::Float]
  #     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.
  class WordInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Metadata from Dialogflow relating to the current transcript segment.
  # @!attribute [rw] smart_reply_allowlist_covered
  #   @return [::Boolean]
  #     Whether the transcript segment was covered under the configured smart
  #     reply allowlist in Agent Assist.
  class DialogflowSegmentMetadata
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end