Skip to main content

CloudConversationDebuggingInfo

Struct CloudConversationDebuggingInfo 

Source
#[non_exhaustive]
pub struct CloudConversationDebuggingInfo {
Show 18 fields pub audio_data_chunks: i32, pub result_end_time_offset: Option<Duration>, pub first_audio_duration: Option<Duration>, pub single_utterance: bool, pub speech_partial_results_end_times: Vec<Duration>, pub speech_final_results_end_times: Vec<Duration>, pub partial_responses: i32, pub speaker_id_passive_latency_ms_offset: i32, pub bargein_event_triggered: bool, pub speech_single_utterance: bool, pub dtmf_partial_results_times: Vec<Duration>, pub dtmf_final_results_times: Vec<Duration>, pub single_utterance_end_time_offset: Option<Duration>, pub no_speech_timeout: Option<Duration>, pub endpointing_timeout: Option<Duration>, pub is_input_text: bool, pub client_half_close_time_offset: Option<Duration>, pub client_half_close_streaming_time_offset: Option<Duration>, /* private fields */
}
Available on crate features participants or sessions only.
Expand description

Cloud conversation info for easier debugging. It will get populated in StreamingDetectIntentResponse or StreamingAnalyzeContentResponse when the flag enable_debugging_info is set to true in corresponding requests.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§audio_data_chunks: i32

Number of input audio data chunks in streaming requests.

§result_end_time_offset: Option<Duration>

Time offset of the end of speech utterance relative to the beginning of the first audio chunk.

§first_audio_duration: Option<Duration>

Duration of first audio chunk.

§single_utterance: bool

Whether client used single utterance mode.

§speech_partial_results_end_times: Vec<Duration>

Time offsets of the speech partial results relative to the beginning of the stream.

§speech_final_results_end_times: Vec<Duration>

Time offsets of the speech final results (is_final=true) relative to the beginning of the stream.

§partial_responses: i32

Total number of partial responses.

§speaker_id_passive_latency_ms_offset: i32

Time offset of Speaker ID stream close time relative to the Speech stream close time in milliseconds. Only meaningful for conversations involving passive verification.

§bargein_event_triggered: bool

Whether a barge-in event is triggered in this request.

§speech_single_utterance: bool

Whether speech uses single utterance mode.

§dtmf_partial_results_times: Vec<Duration>

Time offsets of the DTMF partial results relative to the beginning of the stream.

§dtmf_final_results_times: Vec<Duration>

Time offsets of the DTMF final results relative to the beginning of the stream.

§single_utterance_end_time_offset: Option<Duration>

Time offset of the end-of-single-utterance signal relative to the beginning of the stream.

§no_speech_timeout: Option<Duration>

No speech timeout settings for the stream.

§endpointing_timeout: Option<Duration>

Speech endpointing timeout settings for the stream.

§is_input_text: bool

Whether the streaming terminates with an injected text query.

§client_half_close_time_offset: Option<Duration>

Client half close time in terms of input audio duration.

§client_half_close_streaming_time_offset: Option<Duration>

Client half close time in terms of API streaming duration.

Implementations§

Source§

impl CloudConversationDebuggingInfo

Source

pub fn new() -> Self

Source

pub fn set_audio_data_chunks<T: Into<i32>>(self, v: T) -> Self

Sets the value of audio_data_chunks.

§Example
let x = CloudConversationDebuggingInfo::new().set_audio_data_chunks(42);
Source

pub fn set_result_end_time_offset<T>(self, v: T) -> Self
where T: Into<Duration>,

Sets the value of result_end_time_offset.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new().set_result_end_time_offset(Duration::default()/* use setters */);
Source

pub fn set_or_clear_result_end_time_offset<T>(self, v: Option<T>) -> Self
where T: Into<Duration>,

Sets or clears the value of result_end_time_offset.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new().set_or_clear_result_end_time_offset(Some(Duration::default()/* use setters */));
let x = CloudConversationDebuggingInfo::new().set_or_clear_result_end_time_offset(None::<Duration>);
Source

pub fn set_first_audio_duration<T>(self, v: T) -> Self
where T: Into<Duration>,

Sets the value of first_audio_duration.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new().set_first_audio_duration(Duration::default()/* use setters */);
Source

pub fn set_or_clear_first_audio_duration<T>(self, v: Option<T>) -> Self
where T: Into<Duration>,

Sets or clears the value of first_audio_duration.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new().set_or_clear_first_audio_duration(Some(Duration::default()/* use setters */));
let x = CloudConversationDebuggingInfo::new().set_or_clear_first_audio_duration(None::<Duration>);
Source

pub fn set_single_utterance<T: Into<bool>>(self, v: T) -> Self

Sets the value of single_utterance.

§Example
let x = CloudConversationDebuggingInfo::new().set_single_utterance(true);
Source

pub fn set_speech_partial_results_end_times<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<Duration>,

Sets the value of speech_partial_results_end_times.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new()
    .set_speech_partial_results_end_times([
        Duration::default()/* use setters */,
        Duration::default()/* use (different) setters */,
    ]);
Source

pub fn set_speech_final_results_end_times<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<Duration>,

Sets the value of speech_final_results_end_times.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new()
    .set_speech_final_results_end_times([
        Duration::default()/* use setters */,
        Duration::default()/* use (different) setters */,
    ]);
Source

pub fn set_partial_responses<T: Into<i32>>(self, v: T) -> Self

Sets the value of partial_responses.

§Example
let x = CloudConversationDebuggingInfo::new().set_partial_responses(42);
Source

pub fn set_speaker_id_passive_latency_ms_offset<T: Into<i32>>( self, v: T, ) -> Self

Sets the value of speaker_id_passive_latency_ms_offset.

§Example
let x = CloudConversationDebuggingInfo::new().set_speaker_id_passive_latency_ms_offset(42);
Source

pub fn set_bargein_event_triggered<T: Into<bool>>(self, v: T) -> Self

Sets the value of bargein_event_triggered.

§Example
let x = CloudConversationDebuggingInfo::new().set_bargein_event_triggered(true);
Source

pub fn set_speech_single_utterance<T: Into<bool>>(self, v: T) -> Self

Sets the value of speech_single_utterance.

§Example
let x = CloudConversationDebuggingInfo::new().set_speech_single_utterance(true);
Source

pub fn set_dtmf_partial_results_times<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<Duration>,

Sets the value of dtmf_partial_results_times.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new()
    .set_dtmf_partial_results_times([
        Duration::default()/* use setters */,
        Duration::default()/* use (different) setters */,
    ]);
Source

pub fn set_dtmf_final_results_times<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<Duration>,

Sets the value of dtmf_final_results_times.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new()
    .set_dtmf_final_results_times([
        Duration::default()/* use setters */,
        Duration::default()/* use (different) setters */,
    ]);
Source

pub fn set_single_utterance_end_time_offset<T>(self, v: T) -> Self
where T: Into<Duration>,

Sets the value of single_utterance_end_time_offset.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new().set_single_utterance_end_time_offset(Duration::default()/* use setters */);
Source

pub fn set_or_clear_single_utterance_end_time_offset<T>( self, v: Option<T>, ) -> Self
where T: Into<Duration>,

Sets or clears the value of single_utterance_end_time_offset.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new().set_or_clear_single_utterance_end_time_offset(Some(Duration::default()/* use setters */));
let x = CloudConversationDebuggingInfo::new().set_or_clear_single_utterance_end_time_offset(None::<Duration>);
Source

pub fn set_no_speech_timeout<T>(self, v: T) -> Self
where T: Into<Duration>,

Sets the value of no_speech_timeout.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new().set_no_speech_timeout(Duration::default()/* use setters */);
Source

pub fn set_or_clear_no_speech_timeout<T>(self, v: Option<T>) -> Self
where T: Into<Duration>,

Sets or clears the value of no_speech_timeout.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new().set_or_clear_no_speech_timeout(Some(Duration::default()/* use setters */));
let x = CloudConversationDebuggingInfo::new().set_or_clear_no_speech_timeout(None::<Duration>);
Source

pub fn set_endpointing_timeout<T>(self, v: T) -> Self
where T: Into<Duration>,

Sets the value of endpointing_timeout.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new().set_endpointing_timeout(Duration::default()/* use setters */);
Source

pub fn set_or_clear_endpointing_timeout<T>(self, v: Option<T>) -> Self
where T: Into<Duration>,

Sets or clears the value of endpointing_timeout.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new().set_or_clear_endpointing_timeout(Some(Duration::default()/* use setters */));
let x = CloudConversationDebuggingInfo::new().set_or_clear_endpointing_timeout(None::<Duration>);
Source

pub fn set_is_input_text<T: Into<bool>>(self, v: T) -> Self

Sets the value of is_input_text.

§Example
let x = CloudConversationDebuggingInfo::new().set_is_input_text(true);
Source

pub fn set_client_half_close_time_offset<T>(self, v: T) -> Self
where T: Into<Duration>,

Sets the value of client_half_close_time_offset.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new().set_client_half_close_time_offset(Duration::default()/* use setters */);
Source

pub fn set_or_clear_client_half_close_time_offset<T>(self, v: Option<T>) -> Self
where T: Into<Duration>,

Sets or clears the value of client_half_close_time_offset.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new().set_or_clear_client_half_close_time_offset(Some(Duration::default()/* use setters */));
let x = CloudConversationDebuggingInfo::new().set_or_clear_client_half_close_time_offset(None::<Duration>);
Source

pub fn set_client_half_close_streaming_time_offset<T>(self, v: T) -> Self
where T: Into<Duration>,

Sets the value of client_half_close_streaming_time_offset.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new().set_client_half_close_streaming_time_offset(Duration::default()/* use setters */);
Source

pub fn set_or_clear_client_half_close_streaming_time_offset<T>( self, v: Option<T>, ) -> Self
where T: Into<Duration>,

Sets or clears the value of client_half_close_streaming_time_offset.

§Example
use wkt::Duration;
let x = CloudConversationDebuggingInfo::new().set_or_clear_client_half_close_streaming_time_offset(Some(Duration::default()/* use setters */));
let x = CloudConversationDebuggingInfo::new().set_or_clear_client_half_close_streaming_time_offset(None::<Duration>);

Trait Implementations§

Source§

impl Clone for CloudConversationDebuggingInfo

Source§

fn clone(&self) -> CloudConversationDebuggingInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CloudConversationDebuggingInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CloudConversationDebuggingInfo

Source§

fn default() -> CloudConversationDebuggingInfo

Returns the “default value” for a type. Read more
Source§

impl Message for CloudConversationDebuggingInfo

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for CloudConversationDebuggingInfo

Source§

fn eq(&self, other: &CloudConversationDebuggingInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for CloudConversationDebuggingInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,