A segment of a full transcript.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#channel_tag
def channel_tag() -> ::Integer
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.
#channel_tag=
def channel_tag=(value) -> ::Integer
Parameter
- value (::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.
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.
#confidence
def confidence() -> ::Float
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.
#confidence=
def confidence=(value) -> ::Float
Parameter
- value (::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.
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.
#dialogflow_segment_metadata
def dialogflow_segment_metadata() -> ::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::DialogflowSegmentMetadata
Returns
- (::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::DialogflowSegmentMetadata) — CCAI metadata relating to the current transcript segment.
#dialogflow_segment_metadata=
def dialogflow_segment_metadata=(value) -> ::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::DialogflowSegmentMetadata
Parameter
- value (::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::DialogflowSegmentMetadata) — CCAI metadata relating to the current transcript segment.
Returns
- (::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::DialogflowSegmentMetadata) — CCAI metadata relating to the current transcript segment.
#language_code
def language_code() -> ::String
Returns
- (::String) — The language code of this segment as a BCP-47 language tag. Example: "en-US".
#language_code=
def language_code=(value) -> ::String
Parameter
- value (::String) — 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".
#message_time
def message_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — The time that the message occurred, if provided.
#message_time=
def message_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — The time that the message occurred, if provided.
Returns
- (::Google::Protobuf::Timestamp) — The time that the message occurred, if provided.
#segment_participant
def segment_participant() -> ::Google::Cloud::ContactCenterInsights::V1::ConversationParticipant
Returns
- (::Google::Cloud::ContactCenterInsights::V1::ConversationParticipant) — The participant of this segment.
#segment_participant=
def segment_participant=(value) -> ::Google::Cloud::ContactCenterInsights::V1::ConversationParticipant
Parameter
- value (::Google::Cloud::ContactCenterInsights::V1::ConversationParticipant) — The participant of this segment.
Returns
- (::Google::Cloud::ContactCenterInsights::V1::ConversationParticipant) — The participant of this segment.
#sentiment
def sentiment() -> ::Google::Cloud::ContactCenterInsights::V1::SentimentData
Returns
- (::Google::Cloud::ContactCenterInsights::V1::SentimentData) — The sentiment for this transcript segment.
#sentiment=
def sentiment=(value) -> ::Google::Cloud::ContactCenterInsights::V1::SentimentData
Parameter
- value (::Google::Cloud::ContactCenterInsights::V1::SentimentData) — The sentiment for this transcript segment.
Returns
- (::Google::Cloud::ContactCenterInsights::V1::SentimentData) — The sentiment for this transcript segment.
#text
def text() -> ::String
Returns
- (::String) — The text of this segment.
#text=
def text=(value) -> ::String
Parameter
- value (::String) — The text of this segment.
Returns
- (::String) — The text of this segment.
#words
def words() -> ::Array<::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::WordInfo>
Returns
- (::Array<::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::WordInfo>) — A list of the word-specific information for each word in the segment.
#words=
def words=(value) -> ::Array<::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::WordInfo>
Parameter
- value (::Array<::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::WordInfo>) — A list of the word-specific information for each word in the segment.
Returns
- (::Array<::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::WordInfo>) — A list of the word-specific information for each word in the segment.