#[non_exhaustive]pub struct DatasetVersion {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub etag: String,
pub big_query_dataset_name: String,
pub display_name: String,
pub metadata: Option<Value>,
pub model_reference: String,
pub satisfies_pzs: bool,
pub satisfies_pzi: bool,
/* private fields */
}dataset-service only.Expand description
Describes the dataset version.
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.name: StringOutput only. Identifier. The resource name of the DatasetVersion.
Format:
projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}
create_time: Option<Timestamp>Output only. Timestamp when this DatasetVersion was created.
update_time: Option<Timestamp>Output only. Timestamp when this DatasetVersion was last updated.
etag: StringUsed to perform consistent read-modify-write updates. If not set, a blind “overwrite” update happens.
big_query_dataset_name: StringOutput only. Name of the associated BigQuery dataset.
display_name: StringThe user-defined name of the DatasetVersion. The name can be up to 128 characters long and can consist of any UTF-8 characters.
metadata: Option<Value>Required. Output only. Additional information about the DatasetVersion.
model_reference: StringOutput only. Reference to the public base model last used by the dataset version. Only set for prompt dataset versions.
satisfies_pzs: boolOutput only. Reserved for future use.
satisfies_pzi: boolOutput only. Reserved for future use.
Implementations§
Source§impl DatasetVersion
impl DatasetVersion
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = DatasetVersion::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = DatasetVersion::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = DatasetVersion::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = DatasetVersion::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = DatasetVersion::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = DatasetVersion::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_big_query_dataset_name<T: Into<String>>(self, v: T) -> Self
pub fn set_big_query_dataset_name<T: Into<String>>(self, v: T) -> Self
Sets the value of big_query_dataset_name.
§Example
let x = DatasetVersion::new().set_big_query_dataset_name("example");Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
§Example
let x = DatasetVersion::new().set_display_name("example");Sourcepub fn set_metadata<T>(self, v: T) -> Self
pub fn set_metadata<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Self
Sourcepub fn set_model_reference<T: Into<String>>(self, v: T) -> Self
pub fn set_model_reference<T: Into<String>>(self, v: T) -> Self
Sets the value of model_reference.
§Example
let x = DatasetVersion::new().set_model_reference("example");Sourcepub fn set_satisfies_pzs<T: Into<bool>>(self, v: T) -> Self
pub fn set_satisfies_pzs<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_satisfies_pzi<T: Into<bool>>(self, v: T) -> Self
pub fn set_satisfies_pzi<T: Into<bool>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for DatasetVersion
impl Clone for DatasetVersion
Source§fn clone(&self) -> DatasetVersion
fn clone(&self) -> DatasetVersion
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 DatasetVersion
impl Debug for DatasetVersion
Source§impl Default for DatasetVersion
impl Default for DatasetVersion
Source§fn default() -> DatasetVersion
fn default() -> DatasetVersion
Source§impl Message for DatasetVersion
impl Message for DatasetVersion
Source§impl PartialEq for DatasetVersion
impl PartialEq for DatasetVersion
impl StructuralPartialEq for DatasetVersion
Auto Trait Implementations§
impl Freeze for DatasetVersion
impl RefUnwindSafe for DatasetVersion
impl Send for DatasetVersion
impl Sync for DatasetVersion
impl Unpin for DatasetVersion
impl UnsafeUnpin for DatasetVersion
impl UnwindSafe for DatasetVersion
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