Interface ImportDocumentTemplateOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    ImportDocumentTemplate, ImportDocumentTemplate.Builder

    public interface ImportDocumentTemplateOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • 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

        Document.KnowledgeType getKnowledgeTypes​(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 element to return.
        Returns:
        The knowledgeTypes at the given index.
      • getKnowledgeTypesValueList

        List<Integer> 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

        boolean containsMetadata​(String key)
         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;
      • getMetadataMap

        Map<String,​String> 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

        String getMetadataOrDefault​(String key,
                                    String defaultValue)
         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

        String getMetadataOrThrow​(String key)
         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;