pub struct GoogleCloudDialogflowV2Document {
pub content_uri: Option<String>,
pub display_name: Option<String>,
pub enable_auto_reload: Option<bool>,
pub knowledge_types: Option<Vec<String>>,
pub latest_reload_status: Option<GoogleCloudDialogflowV2DocumentReloadStatus>,
pub metadata: Option<HashMap<String, String>>,
pub mime_type: Option<String>,
pub name: Option<String>,
pub raw_content: Option<Vec<u8>>,
pub state: Option<String>,
}
Expand description
A knowledge document to be used by a KnowledgeBase. For more information, see the knowledge base guide. Note: The projects.agent.knowledgeBases.documents
resource is deprecated; only use projects.knowledgeBases.documents
.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- agent knowledge bases documents create projects (request)
- agent knowledge bases documents get projects (response)
- agent knowledge bases documents patch projects (request)
- knowledge bases documents create projects (request)
- knowledge bases documents get projects (response)
- knowledge bases documents patch projects (request)
- locations knowledge bases documents create projects (request)
- locations knowledge bases documents get projects (response)
- locations knowledge bases documents patch projects (request)
Fields§
§content_uri: Option<String>
The URI where the file content is located. For documents stored in Google Cloud Storage, these URIs must have the form gs:///
. NOTE: External URLs must correspond to public webpages, i.e., they must be indexed by Google Search. In particular, URLs for showing documents in Google Cloud Storage (i.e. the URL in your browser) are not supported. Instead use the gs://
format URI described above.
display_name: Option<String>
Required. The display name of the document. The name must be 1024 bytes or less; otherwise, the creation request fails.
enable_auto_reload: Option<bool>
Optional. If true, we try to automatically reload the document every day (at a time picked by the system). If false or unspecified, we don’t try to automatically reload the document. Currently you can only enable automatic reload for documents sourced from a public url, see source
field for the source types. Reload status can be tracked in latest_reload_status
. If a reload fails, we will keep the document unchanged. If a reload fails with internal errors, the system will try to reload the document on the next day. If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), the system will not try to reload the document anymore. You need to manually reload the document successfully by calling ReloadDocument
and clear the errors.
knowledge_types: Option<Vec<String>>
Required. The knowledge type of document content.
latest_reload_status: Option<GoogleCloudDialogflowV2DocumentReloadStatus>
Output only. The time and status of the latest reload. This reload may have been triggered automatically or manually and may not have succeeded.
metadata: Option<HashMap<String, String>>
Optional. Metadata for the document. The metadata supports arbitrary key-value pairs. Suggested use cases include storing a document’s title, an external URL distinct from the document’s content_uri, etc. The max size of a key
or a value
of the metadata is 1024 bytes.
mime_type: Option<String>
Required. The MIME type of this document.
name: Option<String>
Optional. The document resource name. The name must be empty when creating a document. Format: projects//locations//knowledgeBases//documents/
.
raw_content: Option<Vec<u8>>
The raw content of the document. This field is only permitted for EXTRACTIVE_QA and FAQ knowledge types.
state: Option<String>
Output only. The current state of the document.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowV2Document
impl Clone for GoogleCloudDialogflowV2Document
Source§fn clone(&self) -> GoogleCloudDialogflowV2Document
fn clone(&self) -> GoogleCloudDialogflowV2Document
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDialogflowV2Document
impl Default for GoogleCloudDialogflowV2Document
Source§fn default() -> GoogleCloudDialogflowV2Document
fn default() -> GoogleCloudDialogflowV2Document
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2Document
impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2Document
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for GoogleCloudDialogflowV2Document
impl ResponseResult for GoogleCloudDialogflowV2Document
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowV2Document
impl RefUnwindSafe for GoogleCloudDialogflowV2Document
impl Send for GoogleCloudDialogflowV2Document
impl Sync for GoogleCloudDialogflowV2Document
impl Unpin for GoogleCloudDialogflowV2Document
impl UnwindSafe for GoogleCloudDialogflowV2Document
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more