Class GoogleCloudDialogflowV2beta1Document
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
.
Implements
Inherited Members
Namespace: Google.Apis.Dialogflow.v2beta1.Data
Assembly: Google.Apis.Dialogflow.v2beta1.dll
Syntax
public class GoogleCloudDialogflowV2beta1Document : IDirectResponseSchema
Properties
Content
The raw content of the document. This field is only permitted for EXTRACTIVE_QA and FAQ knowledge types. Note: This field is in the process of being deprecated, please use raw_content instead.
Declaration
[JsonProperty("content")]
public virtual string Content { get; set; }
Property Value
Type | Description |
---|---|
string |
ContentUri
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.
Declaration
[JsonProperty("contentUri")]
public virtual string ContentUri { get; set; }
Property Value
Type | Description |
---|---|
string |
DisplayName
Required. The display name of the document. The name must be 1024 bytes or less; otherwise, the creation request fails.
Declaration
[JsonProperty("displayName")]
public virtual string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
EnableAutoReload
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.
Declaration
[JsonProperty("enableAutoReload")]
public virtual bool? EnableAutoReload { get; set; }
Property Value
Type | Description |
---|---|
bool? |
KnowledgeTypes
Required. The knowledge type of document content.
Declaration
[JsonProperty("knowledgeTypes")]
public virtual IList<string> KnowledgeTypes { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
LatestReloadStatus
Output only. The time and status of the latest reload. This reload may have been triggered automatically or manually and may not have succeeded.
Declaration
[JsonProperty("latestReloadStatus")]
public virtual GoogleCloudDialogflowV2beta1DocumentReloadStatus LatestReloadStatus { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudDialogflowV2beta1DocumentReloadStatus |
Metadata
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.
Declaration
[JsonProperty("metadata")]
public virtual IDictionary<string, string> Metadata { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
MimeType
Required. The MIME type of this document.
Declaration
[JsonProperty("mimeType")]
public virtual string MimeType { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Optional. The document resource name. The name must be empty when creating a document. Format:
projects//locations//knowledgeBases//documents/
.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
RawContent
The raw content of the document. This field is only permitted for EXTRACTIVE_QA and FAQ knowledge types.
Declaration
[JsonProperty("rawContent")]
public virtual string RawContent { get; set; }
Property Value
Type | Description |
---|---|
string |
State
Output only. The current state of the document.
Declaration
[JsonProperty("state")]
public virtual string State { get; set; }
Property Value
Type | Description |
---|---|
string |