Struct google_api_proto::google::cloud::discoveryengine::v1::GcsSource
source · pub struct GcsSource {
pub input_uris: Vec<String>,
pub data_schema: String,
}
Expand description
Cloud Storage location for input content.
Fields§
§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: String
The schema to use when parsing the data from the source.
Supported values for document imports:
document
(default): One JSON [Document][google.cloud.discoveryengine.v1.Document] per line. Each document must have a valid [Document.id][google.cloud.discoveryengine.v1.Document.id].content
: Unstructured data (e.g. PDF, HTML). Each file matched byinput_uris
becomes 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][google.cloud.discoveryengine.v1.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][google.cloud.discoveryengine.v1.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][google.cloud.discoveryengine.v1.UserEvent] per line.
Trait Implementations§
source§impl Message for GcsSource
impl Message for GcsSource
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for GcsSource
impl PartialEq for GcsSource
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
§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>
Wrap the input message
T
in a tonic::Request