pub struct LiveServerMessageBuilder(/* private fields */);Expand description
Builder for LiveServerMessage.
Implementations§
Source§impl LiveServerMessageBuilder
impl LiveServerMessageBuilder
pub fn setup_complete( self, value: impl Into<BidiGenerateContentSetupComplete>, ) -> Self
pub fn server_content( self, value: impl Into<BidiGenerateContentServerContent>, ) -> Self
pub fn tool_call(self, value: impl Into<BidiGenerateContentToolCall>) -> Self
pub fn tool_call_cancellation( self, value: impl Into<BidiGenerateContentToolCallCancellation>, ) -> Self
pub fn go_away(self, value: impl Into<GoAway>) -> Self
pub fn session_resumption_update( self, value: impl Into<SessionResumptionUpdate>, ) -> Self
pub fn usage_metadata(self, value: impl Into<LiveUsageMetadata>) -> Self
pub fn voice_activity_detection_signal( self, value: impl Into<VoiceActivityDetectionSignal>, ) -> Self
pub fn voice_activity(self, value: impl Into<VoiceActivity>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> LiveServerMessage
pub fn build(self) -> LiveServerMessage
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for LiveServerMessageBuilder
impl RefUnwindSafe for LiveServerMessageBuilder
impl Send for LiveServerMessageBuilder
impl Sync for LiveServerMessageBuilder
impl Unpin for LiveServerMessageBuilder
impl UnsafeUnpin for LiveServerMessageBuilder
impl UnwindSafe for LiveServerMessageBuilder
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
Mutably borrows from an owned value. Read more