#[non_exhaustive]pub struct GcsSource {
pub input_uris: Vec<String>,
pub data_schema: String,
/* private fields */
}Available on crate features
completion-service or document-service or user-event-service only.Expand description
Cloud Storage location for input content.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.input_uris: Vec<String>Required. Cloud Storage URIs to input files. Each URI can be up to
2000 characters long. URIs can match the full object path (for example,
gs://bucket/directory/object.json) or a pattern matching one or more
files, such as gs://bucket/directory/*.json.
A request can contain at most 100 files (or 100,000 files if data_schema
is content). Each file can be up to 2 GB (or 100 MB if data_schema is
content).
data_schema: StringThe schema to use when parsing the data from the source.
Supported values for document imports:
document(default): One JSON Document per line. Each document must have a valid Document.id.content: Unstructured data (e.g. PDF, HTML). Each file matched byinput_urisbecomes a document, with the ID set to the first 128 bits of SHA256(URI) encoded as a hex string.custom: One custom data JSON per row in arbitrary format that conforms to the defined Schema of the data store. This can only be used by the GENERIC Data Store vertical.csv: A CSV file with header conforming to the defined Schema of the data store. Each entry after the header is imported as a Document. This can only be used by the GENERIC Data Store vertical.
Supported values for user event imports:
user_event(default): One JSON UserEvent per line.
Implementations§
Trait Implementations§
impl StructuralPartialEq for GcsSource
Auto Trait Implementations§
impl Freeze for GcsSource
impl RefUnwindSafe for GcsSource
impl Send for GcsSource
impl Sync for GcsSource
impl Unpin for GcsSource
impl UnwindSafe for GcsSource
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