#[non_exhaustive]pub struct Index {Show 15 fields
pub name: String,
pub display_name: String,
pub description: String,
pub metadata_schema_uri: String,
pub metadata: Option<Value>,
pub deployed_indexes: Vec<DeployedIndexRef>,
pub etag: String,
pub labels: HashMap<String, String>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub index_stats: Option<IndexStats>,
pub index_update_method: IndexUpdateMethod,
pub encryption_spec: Option<EncryptionSpec>,
pub satisfies_pzs: bool,
pub satisfies_pzi: bool,
/* private fields */
}index-service only.Expand description
A representation of a collection of database items organized in a way that allows for approximate nearest neighbor (a.k.a ANN) algorithms search.
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. The resource name of the Index.
display_name: StringRequired. The display name of the Index. The name can be up to 128 characters long and can consist of any UTF-8 characters.
description: StringThe description of the Index.
metadata_schema_uri: StringImmutable. Points to a YAML file stored on Google Cloud Storage describing additional information about the Index, that is specific to it. Unset if the Index does not have any additional information. The schema is defined as an OpenAPI 3.0.2 Schema Object. Note: The URI given on output will be immutable and probably different, including the URI scheme, than the one given on input. The output URI will point to a location where the user only has a read access.
metadata: Option<Value>An additional information about the Index; the schema of the metadata can be found in metadata_schema.
deployed_indexes: Vec<DeployedIndexRef>Output only. The pointers to DeployedIndexes created from this Index. An Index can be only deleted if all its DeployedIndexes had been undeployed first.
etag: StringUsed to perform consistent read-modify-write updates. If not set, a blind “overwrite” update happens.
labels: HashMap<String, String>The labels with user-defined metadata to organize your Indexes.
Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed.
See https://goo.gl/xmQnxf for more information and examples of labels.
create_time: Option<Timestamp>Output only. Timestamp when this Index was created.
update_time: Option<Timestamp>Output only. Timestamp when this Index was most recently updated. This also includes any update to the contents of the Index. Note that Operations working on this Index may have their [Operations.metadata.generic_metadata.update_time] [google.cloud.aiplatform.v1.GenericOperationMetadata.update_time] a little after the value of this timestamp, yet that does not mean their results are not already reflected in the Index. Result of any successfully completed Operation on the Index is reflected in it.
index_stats: Option<IndexStats>Output only. Stats of the index resource.
index_update_method: IndexUpdateMethodImmutable. The update method to use with this Index. If not set, BATCH_UPDATE will be used by default.
encryption_spec: Option<EncryptionSpec>Immutable. Customer-managed encryption key spec for an Index. If set, this Index and all sub-resources of this Index will be secured by this key.
satisfies_pzs: boolOutput only. Reserved for future use.
satisfies_pzi: boolOutput only. Reserved for future use.
Implementations§
Source§impl Index
impl Index
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_metadata_schema_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_metadata_schema_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of metadata_schema_uri.
§Example
let x = Index::new().set_metadata_schema_uri("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_deployed_indexes<T, V>(self, v: T) -> Self
pub fn set_deployed_indexes<T, V>(self, v: T) -> Self
Sets the value of deployed_indexes.
§Example
use google_cloud_aiplatform_v1::model::DeployedIndexRef;
let x = Index::new()
.set_deployed_indexes([
DeployedIndexRef::default()/* use setters */,
DeployedIndexRef::default()/* use (different) setters */,
]);Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
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 = Index::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 = Index::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Index::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 = Index::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 = Index::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = Index::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_index_stats<T>(self, v: T) -> Selfwhere
T: Into<IndexStats>,
pub fn set_index_stats<T>(self, v: T) -> Selfwhere
T: Into<IndexStats>,
Sets the value of index_stats.
§Example
use google_cloud_aiplatform_v1::model::IndexStats;
let x = Index::new().set_index_stats(IndexStats::default()/* use setters */);Sourcepub fn set_or_clear_index_stats<T>(self, v: Option<T>) -> Selfwhere
T: Into<IndexStats>,
pub fn set_or_clear_index_stats<T>(self, v: Option<T>) -> Selfwhere
T: Into<IndexStats>,
Sets or clears the value of index_stats.
§Example
use google_cloud_aiplatform_v1::model::IndexStats;
let x = Index::new().set_or_clear_index_stats(Some(IndexStats::default()/* use setters */));
let x = Index::new().set_or_clear_index_stats(None::<IndexStats>);Sourcepub fn set_index_update_method<T: Into<IndexUpdateMethod>>(self, v: T) -> Self
pub fn set_index_update_method<T: Into<IndexUpdateMethod>>(self, v: T) -> Self
Sets the value of index_update_method.
§Example
use google_cloud_aiplatform_v1::model::index::IndexUpdateMethod;
let x0 = Index::new().set_index_update_method(IndexUpdateMethod::BatchUpdate);
let x1 = Index::new().set_index_update_method(IndexUpdateMethod::StreamUpdate);Sourcepub fn set_encryption_spec<T>(self, v: T) -> Selfwhere
T: Into<EncryptionSpec>,
pub fn set_encryption_spec<T>(self, v: T) -> Selfwhere
T: Into<EncryptionSpec>,
Sets the value of encryption_spec.
§Example
use google_cloud_aiplatform_v1::model::EncryptionSpec;
let x = Index::new().set_encryption_spec(EncryptionSpec::default()/* use setters */);Sourcepub fn set_or_clear_encryption_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionSpec>,
pub fn set_or_clear_encryption_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionSpec>,
Sets or clears the value of encryption_spec.
§Example
use google_cloud_aiplatform_v1::model::EncryptionSpec;
let x = Index::new().set_or_clear_encryption_spec(Some(EncryptionSpec::default()/* use setters */));
let x = Index::new().set_or_clear_encryption_spec(None::<EncryptionSpec>);