Struct google_api_proto::google::cloud::discoveryengine::v1alpha::SetUriPatternDocumentDataRequest
source · pub struct SetUriPatternDocumentDataRequest {
pub site_search_engine: String,
pub document_data_map: BTreeMap<String, Struct>,
pub empty_document_data_map: bool,
pub schema: Option<Struct>,
}
Expand description
Request message for [SiteSearchEngineService.SetUriPatternDocumentData][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.SetUriPatternDocumentData] method.
Fields§
§site_search_engine: String
Required. Full resource name of the
[SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine],
such as
projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine
.
document_data_map: BTreeMap<String, Struct>
Document data keyed by URI pattern. Each entry must be consistent with the [Schema][google.cloud.discoveryengine.v1alpha.Schema]. For example: [Schema][google.cloud.discoveryengine.v1alpha.Schema] = { “type”: “object”, “properties”: { “Categories”: { “type”: “array”, “items”: { “retrievable”: true, “type”: “string” } } }
document_data_map = { “www.url1.com/”: { “Categories”: [“category1”, “category2”] }, “www.url2.com/”: { “Categories”: [“category3”] } }
empty_document_data_map: bool
If true, clears the document data map. If true, [SetUriPatternDocumentDataRequest.document_data_map][google.cloud.discoveryengine.v1alpha.SetUriPatternDocumentDataRequest.document_data_map] must be empty.
schema: Option<Struct>
Optional. If not provided, the current [Schema][google.cloud.discoveryengine.v1alpha.Schema] is used. If provided, validates and updates the [Schema][google.cloud.discoveryengine.v1alpha.Schema]. If validation fails, an error is returned.
Trait Implementations§
source§impl Clone for SetUriPatternDocumentDataRequest
impl Clone for SetUriPatternDocumentDataRequest
source§fn clone(&self) -> SetUriPatternDocumentDataRequest
fn clone(&self) -> SetUriPatternDocumentDataRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for SetUriPatternDocumentDataRequest
impl Message for SetUriPatternDocumentDataRequest
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 SetUriPatternDocumentDataRequest
impl PartialEq for SetUriPatternDocumentDataRequest
source§fn eq(&self, other: &SetUriPatternDocumentDataRequest) -> bool
fn eq(&self, other: &SetUriPatternDocumentDataRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SetUriPatternDocumentDataRequest
Auto Trait Implementations§
impl Freeze for SetUriPatternDocumentDataRequest
impl RefUnwindSafe for SetUriPatternDocumentDataRequest
impl Send for SetUriPatternDocumentDataRequest
impl Sync for SetUriPatternDocumentDataRequest
impl Unpin for SetUriPatternDocumentDataRequest
impl UnwindSafe for SetUriPatternDocumentDataRequest
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