#[non_exhaustive]pub enum Content {
RawBytes(Bytes),
Uri(String),
}Available on crate features
conversational-search-service or document-service or recommendation-service or search-service only.Expand description
The content of the unstructured document.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RawBytes(Bytes)
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB).
Note: As with all bytes fields, this field is represented as pure
binary in Protocol Buffers and base64-encoded string in JSON. For
example, abc123!?$*&()'-=@~ should be represented as
YWJjMTIzIT8kKiYoKSctPUB+ in JSON. See
https://developers.google.com/protocol-buffers/docs/proto3#json.
Uri(String)
The URI of the content. Only Cloud Storage URIs (e.g.
gs://bucket-name/path/to/file) are supported. The maximum file size
is 2.5 MB for text-based formats, 200 MB for other formats.
Trait Implementations§
impl StructuralPartialEq for Content
Auto Trait Implementations§
impl !Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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
Mutably borrows from an owned value. Read more