Skip to main content

BidiGenerateContentServerContentBuilder

Struct BidiGenerateContentServerContentBuilder 

Source
pub struct BidiGenerateContentServerContentBuilder(/* private fields */);
Expand description

Implementations§

Source§

impl BidiGenerateContentServerContentBuilder

Source

pub fn model_turn(self, value: impl Into<LiveContent>) -> Self

Source

pub fn generation_complete(self, value: impl Into<bool>) -> Self

Source

pub fn turn_complete(self, value: impl Into<bool>) -> Self

Source

pub fn interrupted(self, value: impl Into<bool>) -> Self

Source

pub fn grounding_metadata(self, value: impl Into<LiveGroundingMetadata>) -> Self

Source

pub fn input_transcription( self, value: impl Into<BidiGenerateContentTranscription>, ) -> Self

Source

pub fn output_transcription( self, value: impl Into<BidiGenerateContentTranscription>, ) -> Self

Source

pub fn interim_input_transcription( self, value: impl Into<BidiGenerateContentTranscription>, ) -> Self

Source

pub fn url_context_metadata( self, value: impl Into<LiveUrlContextMetadata>, ) -> Self

Source

pub fn waiting_for_input(self, value: impl Into<bool>) -> Self

Source

pub fn turn_complete_reason(self, value: impl Into<TurnCompleteReason>) -> Self

Source

pub fn interaction_status(self, value: impl Into<InteractionStatus>) -> Self

Source

pub fn speech_state(self, value: impl Into<SpeechState>) -> Self

Source

pub fn rest(self, value: Rest) -> Self

Source

pub fn build(self) -> BidiGenerateContentServerContent

Return the completed wire value.

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ResourceSend for T
where T: Send + ?Sized,

Source§

impl<T> ResourceSync for T
where T: Sync + ?Sized,

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.