Struct google_api_proto::google::ai::generativelanguage::v1beta::Document
source · pub struct Document {
pub name: String,
pub display_name: String,
pub custom_metadata: Vec<CustomMetadata>,
pub update_time: Option<Timestamp>,
pub create_time: Option<Timestamp>,
}
Expand description
A Document
is a collection of Chunk
s.
A Corpus
can have a maximum of 10,000 Document
s.
Fields§
§name: String
Immutable. Identifier. The Document
resource name. The ID (name excluding
the “corpora/*/documents/” prefix) can contain up to 40 characters that are
lowercase alphanumeric or dashes (-). The ID cannot start or end with a
dash. If the name is empty on create, a unique name will be derived from
display_name
along with a 12 character random suffix.
Example: corpora/{corpus_id}/documents/my-awesome-doc-123a456b789c
display_name: String
Optional. The human-readable display name for the Document
. The display
name must be no more than 512 characters in length, including spaces.
Example: “Semantic Retriever Documentation”
custom_metadata: Vec<CustomMetadata>
Optional. User provided custom metadata stored as key-value pairs used for
querying. A Document
can have a maximum of 20 CustomMetadata
.
update_time: Option<Timestamp>
Output only. The Timestamp of when the Document
was last updated.
create_time: Option<Timestamp>
Output only. The Timestamp of when the Document
was created.
Trait Implementations§
source§impl Message for Document
impl Message for Document
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 Document
impl PartialEq for Document
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
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