#[non_exhaustive]pub struct BigtableSource {
pub project_id: String,
pub instance_id: String,
pub table_id: String,
pub bigtable_options: Option<BigtableOptions>,
/* private fields */
}Available on crate feature
document-service only.Expand description
The Cloud Bigtable source for importing data.
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.project_id: StringThe project ID that contains the Bigtable source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
instance_id: StringRequired. The instance ID of the Cloud Bigtable that needs to be imported.
table_id: StringRequired. The table ID of the Cloud Bigtable that needs to be imported.
bigtable_options: Option<BigtableOptions>Required. Bigtable options that contains information needed when parsing data into typed structures. For example, column type annotations.
Implementations§
Source§impl BigtableSource
impl BigtableSource
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_instance_id<T: Into<String>>(self, v: T) -> Self
pub fn set_instance_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_table_id<T: Into<String>>(self, v: T) -> Self
pub fn set_table_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_bigtable_options<T>(self, v: T) -> Selfwhere
T: Into<BigtableOptions>,
pub fn set_bigtable_options<T>(self, v: T) -> Selfwhere
T: Into<BigtableOptions>,
Sets the value of bigtable_options.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::BigtableOptions;
let x = BigtableSource::new().set_bigtable_options(BigtableOptions::default()/* use setters */);Sourcepub fn set_or_clear_bigtable_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<BigtableOptions>,
pub fn set_or_clear_bigtable_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<BigtableOptions>,
Sets or clears the value of bigtable_options.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::BigtableOptions;
let x = BigtableSource::new().set_or_clear_bigtable_options(Some(BigtableOptions::default()/* use setters */));
let x = BigtableSource::new().set_or_clear_bigtable_options(None::<BigtableOptions>);Trait Implementations§
Source§impl Clone for BigtableSource
impl Clone for BigtableSource
Source§fn clone(&self) -> BigtableSource
fn clone(&self) -> BigtableSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BigtableSource
impl Debug for BigtableSource
Source§impl Default for BigtableSource
impl Default for BigtableSource
Source§fn default() -> BigtableSource
fn default() -> BigtableSource
Returns the “default value” for a type. Read more
Source§impl Message for BigtableSource
impl Message for BigtableSource
Source§impl PartialEq for BigtableSource
impl PartialEq for BigtableSource
impl StructuralPartialEq for BigtableSource
Auto Trait Implementations§
impl Freeze for BigtableSource
impl RefUnwindSafe for BigtableSource
impl Send for BigtableSource
impl Sync for BigtableSource
impl Unpin for BigtableSource
impl UnwindSafe for BigtableSource
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