public interface DocumentOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
String |
getContent()
The raw content of the document.
|
com.google.protobuf.ByteString |
getContentBytes()
The raw content of the document.
|
String |
getContentUri()
The URI where the file content is located.
|
com.google.protobuf.ByteString |
getContentUriBytes()
The URI where the file content is located.
|
String |
getDisplayName()
Required.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Required.
|
Document.KnowledgeType |
getKnowledgeTypes(int index)
Required.
|
int |
getKnowledgeTypesCount()
Required.
|
List<Document.KnowledgeType> |
getKnowledgeTypesList()
Required.
|
int |
getKnowledgeTypesValue(int index)
Required.
|
List<Integer> |
getKnowledgeTypesValueList()
Required.
|
String |
getMimeType()
Required.
|
com.google.protobuf.ByteString |
getMimeTypeBytes()
Required.
|
String |
getName()
The document resource name.
|
com.google.protobuf.ByteString |
getNameBytes()
The document resource name.
|
Document.SourceCase |
getSourceCase() |
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getName()
The document resource name. The name must be empty when creating a document. Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
string name = 1;com.google.protobuf.ByteString getNameBytes()
The document resource name. The name must be empty when creating a document. Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
string name = 1;String getDisplayName()
Required. The display name of the document. The name must be 1024 bytes or less; otherwise, the creation request fails.
string display_name = 2;com.google.protobuf.ByteString getDisplayNameBytes()
Required. The display name of the document. The name must be 1024 bytes or less; otherwise, the creation request fails.
string display_name = 2;String getMimeType()
Required. The MIME type of this document.
string mime_type = 3;com.google.protobuf.ByteString getMimeTypeBytes()
Required. The MIME type of this document.
string mime_type = 3;List<Document.KnowledgeType> getKnowledgeTypesList()
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
int getKnowledgeTypesCount()
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
Document.KnowledgeType getKnowledgeTypes(int index)
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
List<Integer> getKnowledgeTypesValueList()
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
int getKnowledgeTypesValue(int index)
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 4;
String getContentUri()
The URI where the file content is located. For documents stored in Google Cloud Storage, these URIs must have the form `gs://<bucket-name>/<object-name>`. 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.
string content_uri = 5;com.google.protobuf.ByteString getContentUriBytes()
The URI where the file content is located. For documents stored in Google Cloud Storage, these URIs must have the form `gs://<bucket-name>/<object-name>`. 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.
string content_uri = 5;String getContent()
The raw content of the document. This field is only permitted for EXTRACTIVE_QA and FAQ knowledge types.
string content = 6;com.google.protobuf.ByteString getContentBytes()
The raw content of the document. This field is only permitted for EXTRACTIVE_QA and FAQ knowledge types.
string content = 6;Document.SourceCase getSourceCase()
Copyright © 2019 Google LLC. All rights reserved.