#[non_exhaustive]pub struct CreateMetadataSchemaRequest {
pub parent: String,
pub metadata_schema: Option<MetadataSchema>,
pub metadata_schema_id: String,
/* private fields */
}metadata-service only.Expand description
Request message for MetadataService.CreateMetadataSchema.
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 resource name of the MetadataStore where the MetadataSchema
should be created. Format:
projects/{project}/locations/{location}/metadataStores/{metadatastore}
metadata_schema: Option<MetadataSchema>Required. The MetadataSchema to create.
metadata_schema_id: StringThe {metadata_schema} portion of the resource name with the format:
projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}
If not provided, the MetadataStore’s ID will be a UUID generated by the
service.
Must be 4-128 characters in length. Valid characters are /[a-z][0-9]-/.
Must be unique across all MetadataSchemas in the parent Location.
(Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED
if the caller can’t view the preexisting MetadataSchema.)
Implementations§
Source§impl CreateMetadataSchemaRequest
impl CreateMetadataSchemaRequest
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_metadata_schema<T>(self, v: T) -> Selfwhere
T: Into<MetadataSchema>,
pub fn set_metadata_schema<T>(self, v: T) -> Selfwhere
T: Into<MetadataSchema>,
Sets the value of metadata_schema.
§Example
use google_cloud_aiplatform_v1::model::MetadataSchema;
let x = CreateMetadataSchemaRequest::new().set_metadata_schema(MetadataSchema::default()/* use setters */);Sourcepub fn set_or_clear_metadata_schema<T>(self, v: Option<T>) -> Selfwhere
T: Into<MetadataSchema>,
pub fn set_or_clear_metadata_schema<T>(self, v: Option<T>) -> Selfwhere
T: Into<MetadataSchema>,
Sets or clears the value of metadata_schema.
§Example
use google_cloud_aiplatform_v1::model::MetadataSchema;
let x = CreateMetadataSchemaRequest::new().set_or_clear_metadata_schema(Some(MetadataSchema::default()/* use setters */));
let x = CreateMetadataSchemaRequest::new().set_or_clear_metadata_schema(None::<MetadataSchema>);Sourcepub fn set_metadata_schema_id<T: Into<String>>(self, v: T) -> Self
pub fn set_metadata_schema_id<T: Into<String>>(self, v: T) -> Self
Sets the value of metadata_schema_id.
§Example
let x = CreateMetadataSchemaRequest::new().set_metadata_schema_id("example");Trait Implementations§
Source§impl Clone for CreateMetadataSchemaRequest
impl Clone for CreateMetadataSchemaRequest
Source§fn clone(&self) -> CreateMetadataSchemaRequest
fn clone(&self) -> CreateMetadataSchemaRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateMetadataSchemaRequest
impl Debug for CreateMetadataSchemaRequest
Source§impl Default for CreateMetadataSchemaRequest
impl Default for CreateMetadataSchemaRequest
Source§fn default() -> CreateMetadataSchemaRequest
fn default() -> CreateMetadataSchemaRequest
impl StructuralPartialEq for CreateMetadataSchemaRequest
Auto Trait Implementations§
impl Freeze for CreateMetadataSchemaRequest
impl RefUnwindSafe for CreateMetadataSchemaRequest
impl Send for CreateMetadataSchemaRequest
impl Sync for CreateMetadataSchemaRequest
impl Unpin for CreateMetadataSchemaRequest
impl UnsafeUnpin for CreateMetadataSchemaRequest
impl UnwindSafe for CreateMetadataSchemaRequest
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