Struct google_api_proto::google::cloud::discoveryengine::v1::DataStore
source · pub struct DataStore {
pub name: String,
pub display_name: String,
pub industry_vertical: i32,
pub solution_types: Vec<i32>,
pub default_schema_id: String,
pub content_config: i32,
pub create_time: Option<Timestamp>,
pub document_processing_config: Option<DocumentProcessingConfig>,
pub starting_schema: Option<Schema>,
}
Expand description
DataStore captures global settings and configs at the DataStore level.
Fields§
§name: String
Immutable. The full resource name of the data store.
Format:
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}
.
This field must be a UTF-8 encoded string with a length limit of 1024 characters.
display_name: String
Required. The data store display name.
This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
industry_vertical: i32
Immutable. The industry vertical that the data store registers.
solution_types: Vec<i32>
The solutions that the data store enrolls. Available solutions for each [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]:
MEDIA
:SOLUTION_TYPE_RECOMMENDATION
andSOLUTION_TYPE_SEARCH
.SITE_SEARCH
:SOLUTION_TYPE_SEARCH
is automatically enrolled. Other solutions cannot be enrolled.
default_schema_id: String
Output only. The id of the default [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data store.
content_config: i32
Immutable. The content config of the data store. If this field is unset, the server behavior defaults to [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT].
create_time: Option<Timestamp>
Output only. Timestamp the [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at.
document_processing_config: Option<DocumentProcessingConfig>
Configuration for Document understanding and enrichment.
starting_schema: Option<Schema>
The start schema to use for this [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning it. If unset, a default vertical specialized schema will be used.
This field is only used by [CreateDataStore][] API, and will be ignored if used in other APIs. This field will be omitted from all API responses including [CreateDataStore][] API. To retrieve a schema of a [DataStore][google.cloud.discoveryengine.v1.DataStore], use [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema] API instead.
The provided schema will be validated against certain rules on schema. Learn more from this doc.
Implementations§
source§impl DataStore
impl DataStore
sourcepub fn industry_vertical(&self) -> IndustryVertical
pub fn industry_vertical(&self) -> IndustryVertical
Returns the enum value of industry_vertical
, or the default if the field is set to an invalid enum value.
sourcepub fn set_industry_vertical(&mut self, value: IndustryVertical)
pub fn set_industry_vertical(&mut self, value: IndustryVertical)
Sets industry_vertical
to the provided enum value.
sourcepub fn solution_types(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<SolutionType>>
pub fn solution_types( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<SolutionType>>
Returns an iterator which yields the valid enum values contained in solution_types
.
sourcepub fn push_solution_types(&mut self, value: SolutionType)
pub fn push_solution_types(&mut self, value: SolutionType)
Appends the provided enum value to solution_types
.
sourcepub fn content_config(&self) -> ContentConfig
pub fn content_config(&self) -> ContentConfig
Returns the enum value of content_config
, or the default if the field is set to an invalid enum value.
sourcepub fn set_content_config(&mut self, value: ContentConfig)
pub fn set_content_config(&mut self, value: ContentConfig)
Sets content_config
to the provided enum value.
Trait Implementations§
source§impl Message for DataStore
impl Message for DataStore
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for DataStore
impl PartialEq for DataStore
impl StructuralPartialEq for DataStore
Auto Trait Implementations§
impl Freeze for DataStore
impl RefUnwindSafe for DataStore
impl Send for DataStore
impl Sync for DataStore
impl Unpin for DataStore
impl UnwindSafe for DataStore
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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