Struct google_api_proto::google::cloud::contactcenterinsights::v1::conversation::transcript::TranscriptSegment
source · pub struct TranscriptSegment {
pub message_time: Option<Timestamp>,
pub text: String,
pub confidence: f32,
pub words: Vec<WordInfo>,
pub language_code: String,
pub channel_tag: i32,
pub segment_participant: Option<ConversationParticipant>,
pub dialogflow_segment_metadata: Option<DialogflowSegmentMetadata>,
pub sentiment: Option<SentimentData>,
}
Expand description
A segment of a full transcript.
Fields§
§message_time: Option<Timestamp>
The time that the message occurred, if provided.
text: String
The text of this segment.
confidence: f32
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.
words: Vec<WordInfo>
A list of the word-specific information for each word in the segment.
language_code: String
The language code of this segment as a BCP-47 language tag. Example: “en-US”.
channel_tag: i32
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.
segment_participant: Option<ConversationParticipant>
The participant of this segment.
dialogflow_segment_metadata: Option<DialogflowSegmentMetadata>
CCAI metadata relating to the current transcript segment.
sentiment: Option<SentimentData>
The sentiment for this transcript segment.
Trait Implementations§
source§impl Clone for TranscriptSegment
impl Clone for TranscriptSegment
source§fn clone(&self) -> TranscriptSegment
fn clone(&self) -> TranscriptSegment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TranscriptSegment
impl Debug for TranscriptSegment
source§impl Default for TranscriptSegment
impl Default for TranscriptSegment
source§impl Message for TranscriptSegment
impl Message for TranscriptSegment
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for TranscriptSegment
impl PartialEq for TranscriptSegment
source§fn eq(&self, other: &TranscriptSegment) -> bool
fn eq(&self, other: &TranscriptSegment) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TranscriptSegment
Auto Trait Implementations§
impl Freeze for TranscriptSegment
impl RefUnwindSafe for TranscriptSegment
impl Send for TranscriptSegment
impl Sync for TranscriptSegment
impl Unpin for TranscriptSegment
impl UnwindSafe for TranscriptSegment
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request