Package com.google.cloud.dialogflow.v2
Interface ImportDocumentTemplateOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ImportDocumentTemplate,ImportDocumentTemplate.Builder
@Generated
public interface ImportDocumentTemplateOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetadata(String key) Metadata for the document.getKnowledgeTypes(int index) Required.intRequired.Required.intgetKnowledgeTypesValue(int index) Required.Required.Deprecated.intMetadata for the document.Metadata for the document.getMetadataOrDefault(String key, String defaultValue) Metadata for the document.getMetadataOrThrow(String key) Metadata for the document.Required.com.google.protobuf.ByteStringRequired.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getMimeType
String getMimeType()Required. The MIME type of the document.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The mimeType.
-
getMimeTypeBytes
com.google.protobuf.ByteString getMimeTypeBytes()Required. The MIME type of the document.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for mimeType.
-
getKnowledgeTypesList
List<Document.KnowledgeType> getKnowledgeTypesList()Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- A list containing the knowledgeTypes.
-
getKnowledgeTypesCount
int getKnowledgeTypesCount()Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The count of knowledgeTypes.
-
getKnowledgeTypes
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index of the element to return.- Returns:
- The knowledgeTypes at the given index.
-
getKnowledgeTypesValueList
Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- A list containing the enum numeric values on the wire for knowledgeTypes.
-
getKnowledgeTypesValue
int getKnowledgeTypesValue(int index) Required. The knowledge type of document content.
repeated .google.cloud.dialogflow.v2.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of knowledgeTypes at the given index.
-
getMetadataCount
int getMetadataCount()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.
map<string, string> metadata = 3; -
containsMetadata
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.
map<string, string> metadata = 3; -
getMetadata
Deprecated.UsegetMetadataMap()instead. -
getMetadataMap
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.
map<string, string> metadata = 3; -
getMetadataOrDefault
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.
map<string, string> metadata = 3; -
getMetadataOrThrow
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.
map<string, string> metadata = 3;
-