pub struct GroundingMetadataBuilder(/* private fields */);Expand description
Builder for GroundingMetadata.
Implementations§
Source§impl GroundingMetadataBuilder
impl GroundingMetadataBuilder
pub fn grounding_chunks(self, value: impl Into<Vec<GroundingChunk>>) -> Self
pub fn grounding_supports(self, value: impl Into<Vec<GroundingSupport>>) -> Self
pub fn web_search_queries(self, value: impl Into<Vec<String>>) -> Self
pub fn image_search_queries(self, value: impl Into<Vec<String>>) -> Self
pub fn search_entry_point(self, value: impl Into<SearchEntryPoint>) -> Self
pub fn retrieval_metadata(self, value: impl Into<RetrievalMetadata>) -> Self
pub fn google_maps_widget_context_token(self, value: impl Into<String>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> GroundingMetadata
pub fn build(self) -> GroundingMetadata
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for GroundingMetadataBuilder
impl RefUnwindSafe for GroundingMetadataBuilder
impl Send for GroundingMetadataBuilder
impl Sync for GroundingMetadataBuilder
impl Unpin for GroundingMetadataBuilder
impl UnsafeUnpin for GroundingMetadataBuilder
impl UnwindSafe for GroundingMetadataBuilder
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