#[non_exhaustive]pub struct DiscoverConnectionProfileRequest {
pub parent: String,
pub target: Option<Target>,
pub hierarchy: Option<Hierarchy>,
pub data_object: Option<DataObject>,
/* private fields */
}Expand description
Request message for ‘discover’ ConnectionProfile request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The parent resource of the connection profile type. Must be in
the format projects/*/locations/*.
target: Option<Target>The connection profile on which to run discover.
hierarchy: Option<Hierarchy>The depth of the retrieved hierarchy of data objects.
data_object: Option<DataObject>The data object to populate with child data objects and metadata.
Implementations§
Source§impl DiscoverConnectionProfileRequest
impl DiscoverConnectionProfileRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_target<T: Into<Option<Target>>>(self, v: T) -> Self
pub fn set_target<T: Into<Option<Target>>>(self, v: T) -> Self
Sets the value of target.
Note that all the setters affecting target are mutually
exclusive.
§Example
use google_cloud_datastream_v1::model::discover_connection_profile_request::Target;
let x = DiscoverConnectionProfileRequest::new().set_target(Some(Target::ConnectionProfileName("example".to_string())));Sourcepub fn connection_profile(&self) -> Option<&Box<ConnectionProfile>>
pub fn connection_profile(&self) -> Option<&Box<ConnectionProfile>>
The value of target
if it holds a ConnectionProfile, None if the field is not set or
holds a different branch.
Sourcepub fn set_connection_profile<T: Into<Box<ConnectionProfile>>>(
self,
v: T,
) -> Self
pub fn set_connection_profile<T: Into<Box<ConnectionProfile>>>( self, v: T, ) -> Self
Sets the value of target
to hold a ConnectionProfile.
Note that all the setters affecting target are
mutually exclusive.
§Example
use google_cloud_datastream_v1::model::ConnectionProfile;
let x = DiscoverConnectionProfileRequest::new().set_connection_profile(ConnectionProfile::default()/* use setters */);
assert!(x.connection_profile().is_some());
assert!(x.connection_profile_name().is_none());Sourcepub fn connection_profile_name(&self) -> Option<&String>
pub fn connection_profile_name(&self) -> Option<&String>
The value of target
if it holds a ConnectionProfileName, None if the field is not set or
holds a different branch.
Sourcepub fn set_connection_profile_name<T: Into<String>>(self, v: T) -> Self
pub fn set_connection_profile_name<T: Into<String>>(self, v: T) -> Self
Sets the value of target
to hold a ConnectionProfileName.
Note that all the setters affecting target are
mutually exclusive.
§Example
let x = DiscoverConnectionProfileRequest::new().set_connection_profile_name("example");
assert!(x.connection_profile_name().is_some());
assert!(x.connection_profile().is_none());Sourcepub fn set_hierarchy<T: Into<Option<Hierarchy>>>(self, v: T) -> Self
pub fn set_hierarchy<T: Into<Option<Hierarchy>>>(self, v: T) -> Self
Sourcepub fn full_hierarchy(&self) -> Option<&bool>
pub fn full_hierarchy(&self) -> Option<&bool>
The value of hierarchy
if it holds a FullHierarchy, None if the field is not set or
holds a different branch.
Sourcepub fn set_full_hierarchy<T: Into<bool>>(self, v: T) -> Self
pub fn set_full_hierarchy<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn hierarchy_depth(&self) -> Option<&i32>
pub fn hierarchy_depth(&self) -> Option<&i32>
The value of hierarchy
if it holds a HierarchyDepth, None if the field is not set or
holds a different branch.
Sourcepub fn set_hierarchy_depth<T: Into<i32>>(self, v: T) -> Self
pub fn set_hierarchy_depth<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_data_object<T: Into<Option<DataObject>>>(self, v: T) -> Self
pub fn set_data_object<T: Into<Option<DataObject>>>(self, v: T) -> Self
Sets the value of data_object.
Note that all the setters affecting data_object are mutually
exclusive.
§Example
use google_cloud_datastream_v1::model::OracleRdbms;
let x = DiscoverConnectionProfileRequest::new().set_data_object(Some(
google_cloud_datastream_v1::model::discover_connection_profile_request::DataObject::OracleRdbms(OracleRdbms::default().into())));Sourcepub fn oracle_rdbms(&self) -> Option<&Box<OracleRdbms>>
pub fn oracle_rdbms(&self) -> Option<&Box<OracleRdbms>>
The value of data_object
if it holds a OracleRdbms, None if the field is not set or
holds a different branch.
Sourcepub fn set_oracle_rdbms<T: Into<Box<OracleRdbms>>>(self, v: T) -> Self
pub fn set_oracle_rdbms<T: Into<Box<OracleRdbms>>>(self, v: T) -> Self
Sets the value of data_object
to hold a OracleRdbms.
Note that all the setters affecting data_object are
mutually exclusive.
§Example
use google_cloud_datastream_v1::model::OracleRdbms;
let x = DiscoverConnectionProfileRequest::new().set_oracle_rdbms(OracleRdbms::default()/* use setters */);
assert!(x.oracle_rdbms().is_some());
assert!(x.mysql_rdbms().is_none());
assert!(x.postgresql_rdbms().is_none());
assert!(x.sql_server_rdbms().is_none());
assert!(x.salesforce_org().is_none());
assert!(x.mongodb_cluster().is_none());Sourcepub fn mysql_rdbms(&self) -> Option<&Box<MysqlRdbms>>
pub fn mysql_rdbms(&self) -> Option<&Box<MysqlRdbms>>
The value of data_object
if it holds a MysqlRdbms, None if the field is not set or
holds a different branch.
Sourcepub fn set_mysql_rdbms<T: Into<Box<MysqlRdbms>>>(self, v: T) -> Self
pub fn set_mysql_rdbms<T: Into<Box<MysqlRdbms>>>(self, v: T) -> Self
Sets the value of data_object
to hold a MysqlRdbms.
Note that all the setters affecting data_object are
mutually exclusive.
§Example
use google_cloud_datastream_v1::model::MysqlRdbms;
let x = DiscoverConnectionProfileRequest::new().set_mysql_rdbms(MysqlRdbms::default()/* use setters */);
assert!(x.mysql_rdbms().is_some());
assert!(x.oracle_rdbms().is_none());
assert!(x.postgresql_rdbms().is_none());
assert!(x.sql_server_rdbms().is_none());
assert!(x.salesforce_org().is_none());
assert!(x.mongodb_cluster().is_none());Sourcepub fn postgresql_rdbms(&self) -> Option<&Box<PostgresqlRdbms>>
pub fn postgresql_rdbms(&self) -> Option<&Box<PostgresqlRdbms>>
The value of data_object
if it holds a PostgresqlRdbms, None if the field is not set or
holds a different branch.
Sourcepub fn set_postgresql_rdbms<T: Into<Box<PostgresqlRdbms>>>(self, v: T) -> Self
pub fn set_postgresql_rdbms<T: Into<Box<PostgresqlRdbms>>>(self, v: T) -> Self
Sets the value of data_object
to hold a PostgresqlRdbms.
Note that all the setters affecting data_object are
mutually exclusive.
§Example
use google_cloud_datastream_v1::model::PostgresqlRdbms;
let x = DiscoverConnectionProfileRequest::new().set_postgresql_rdbms(PostgresqlRdbms::default()/* use setters */);
assert!(x.postgresql_rdbms().is_some());
assert!(x.oracle_rdbms().is_none());
assert!(x.mysql_rdbms().is_none());
assert!(x.sql_server_rdbms().is_none());
assert!(x.salesforce_org().is_none());
assert!(x.mongodb_cluster().is_none());Sourcepub fn sql_server_rdbms(&self) -> Option<&Box<SqlServerRdbms>>
pub fn sql_server_rdbms(&self) -> Option<&Box<SqlServerRdbms>>
The value of data_object
if it holds a SqlServerRdbms, None if the field is not set or
holds a different branch.
Sourcepub fn set_sql_server_rdbms<T: Into<Box<SqlServerRdbms>>>(self, v: T) -> Self
pub fn set_sql_server_rdbms<T: Into<Box<SqlServerRdbms>>>(self, v: T) -> Self
Sets the value of data_object
to hold a SqlServerRdbms.
Note that all the setters affecting data_object are
mutually exclusive.
§Example
use google_cloud_datastream_v1::model::SqlServerRdbms;
let x = DiscoverConnectionProfileRequest::new().set_sql_server_rdbms(SqlServerRdbms::default()/* use setters */);
assert!(x.sql_server_rdbms().is_some());
assert!(x.oracle_rdbms().is_none());
assert!(x.mysql_rdbms().is_none());
assert!(x.postgresql_rdbms().is_none());
assert!(x.salesforce_org().is_none());
assert!(x.mongodb_cluster().is_none());Sourcepub fn salesforce_org(&self) -> Option<&Box<SalesforceOrg>>
pub fn salesforce_org(&self) -> Option<&Box<SalesforceOrg>>
The value of data_object
if it holds a SalesforceOrg, None if the field is not set or
holds a different branch.
Sourcepub fn set_salesforce_org<T: Into<Box<SalesforceOrg>>>(self, v: T) -> Self
pub fn set_salesforce_org<T: Into<Box<SalesforceOrg>>>(self, v: T) -> Self
Sets the value of data_object
to hold a SalesforceOrg.
Note that all the setters affecting data_object are
mutually exclusive.
§Example
use google_cloud_datastream_v1::model::SalesforceOrg;
let x = DiscoverConnectionProfileRequest::new().set_salesforce_org(SalesforceOrg::default()/* use setters */);
assert!(x.salesforce_org().is_some());
assert!(x.oracle_rdbms().is_none());
assert!(x.mysql_rdbms().is_none());
assert!(x.postgresql_rdbms().is_none());
assert!(x.sql_server_rdbms().is_none());
assert!(x.mongodb_cluster().is_none());Sourcepub fn mongodb_cluster(&self) -> Option<&Box<MongodbCluster>>
pub fn mongodb_cluster(&self) -> Option<&Box<MongodbCluster>>
The value of data_object
if it holds a MongodbCluster, None if the field is not set or
holds a different branch.
Sourcepub fn set_mongodb_cluster<T: Into<Box<MongodbCluster>>>(self, v: T) -> Self
pub fn set_mongodb_cluster<T: Into<Box<MongodbCluster>>>(self, v: T) -> Self
Sets the value of data_object
to hold a MongodbCluster.
Note that all the setters affecting data_object are
mutually exclusive.
§Example
use google_cloud_datastream_v1::model::MongodbCluster;
let x = DiscoverConnectionProfileRequest::new().set_mongodb_cluster(MongodbCluster::default()/* use setters */);
assert!(x.mongodb_cluster().is_some());
assert!(x.oracle_rdbms().is_none());
assert!(x.mysql_rdbms().is_none());
assert!(x.postgresql_rdbms().is_none());
assert!(x.sql_server_rdbms().is_none());
assert!(x.salesforce_org().is_none());Trait Implementations§
Source§impl Clone for DiscoverConnectionProfileRequest
impl Clone for DiscoverConnectionProfileRequest
Source§fn clone(&self) -> DiscoverConnectionProfileRequest
fn clone(&self) -> DiscoverConnectionProfileRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for DiscoverConnectionProfileRequest
impl Default for DiscoverConnectionProfileRequest
Source§fn default() -> DiscoverConnectionProfileRequest
fn default() -> DiscoverConnectionProfileRequest
impl StructuralPartialEq for DiscoverConnectionProfileRequest
Auto Trait Implementations§
impl Freeze for DiscoverConnectionProfileRequest
impl RefUnwindSafe for DiscoverConnectionProfileRequest
impl Send for DiscoverConnectionProfileRequest
impl Sync for DiscoverConnectionProfileRequest
impl Unpin for DiscoverConnectionProfileRequest
impl UnsafeUnpin for DiscoverConnectionProfileRequest
impl UnwindSafe for DiscoverConnectionProfileRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request