Enum google_api_proto::google::cloud::discoveryengine::v1beta::document_info::DocumentDescriptor
source · pub enum DocumentDescriptor {
Id(String),
Name(String),
Uri(String),
}
Expand description
A required descriptor of the associated [Document][google.cloud.discoveryengine.v1beta.Document].
-
If [id][google.cloud.discoveryengine.v1beta.DocumentInfo.id] is specified, then the default values for
{location}
,{collection_id}
,{data_store_id}
, and{branch_id}
are used when annotating with the stored Document. -
If [name][google.cloud.discoveryengine.v1beta.DocumentInfo.name] is specified, then the provided values (default values allowed) for
{location}
,{collection_id}
,{data_store_id}
, and{branch_id}
are used when annotating with the stored Document.
Variants§
Id(String)
The [Document][google.cloud.discoveryengine.v1beta.Document] resource ID.
Name(String)
The [Document][google.cloud.discoveryengine.v1beta.Document] resource
full name, of the form:
projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}
Uri(String)
The [Document][google.cloud.discoveryengine.v1beta.Document] URI - only allowed for website data stores.
Implementations§
source§impl DocumentDescriptor
impl DocumentDescriptor
sourcepub fn merge(
field: &mut Option<DocumentDescriptor>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<DocumentDescriptor>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for DocumentDescriptor
impl Clone for DocumentDescriptor
source§fn clone(&self) -> DocumentDescriptor
fn clone(&self) -> DocumentDescriptor
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DocumentDescriptor
impl Debug for DocumentDescriptor
source§impl PartialEq for DocumentDescriptor
impl PartialEq for DocumentDescriptor
source§fn eq(&self, other: &DocumentDescriptor) -> bool
fn eq(&self, other: &DocumentDescriptor) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DocumentDescriptor
Auto Trait Implementations§
impl Freeze for DocumentDescriptor
impl RefUnwindSafe for DocumentDescriptor
impl Send for DocumentDescriptor
impl Sync for DocumentDescriptor
impl Unpin for DocumentDescriptor
impl UnwindSafe for DocumentDescriptor
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