Class ImportDocumentTemplate

  • All Implemented Interfaces:
    ImportDocumentTemplateOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ImportDocumentTemplate
    extends com.google.protobuf.GeneratedMessageV3
    implements ImportDocumentTemplateOrBuilder
     The template used for importing documents.
     
    Protobuf type google.cloud.dialogflow.v2beta1.ImportDocumentTemplate
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getMimeType

        public String getMimeType()
         Required. The MIME type of the document.
         
        string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMimeType in interface ImportDocumentTemplateOrBuilder
        Returns:
        The mimeType.
      • getMimeTypeBytes

        public com.google.protobuf.ByteString getMimeTypeBytes()
         Required. The MIME type of the document.
         
        string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMimeTypeBytes in interface ImportDocumentTemplateOrBuilder
        Returns:
        The bytes for mimeType.
      • getKnowledgeTypesList

        public List<Document.KnowledgeType> getKnowledgeTypesList()
         Required. The knowledge type of document content.
         
        repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getKnowledgeTypesList in interface ImportDocumentTemplateOrBuilder
        Returns:
        A list containing the knowledgeTypes.
      • getKnowledgeTypesCount

        public int getKnowledgeTypesCount()
         Required. The knowledge type of document content.
         
        repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getKnowledgeTypesCount in interface ImportDocumentTemplateOrBuilder
        Returns:
        The count of knowledgeTypes.
      • getKnowledgeTypes

        public Document.KnowledgeType getKnowledgeTypes​(int index)
         Required. The knowledge type of document content.
         
        repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getKnowledgeTypes in interface ImportDocumentTemplateOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The knowledgeTypes at the given index.
      • getKnowledgeTypesValueList

        public List<Integer> getKnowledgeTypesValueList()
         Required. The knowledge type of document content.
         
        repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getKnowledgeTypesValueList in interface ImportDocumentTemplateOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for knowledgeTypes.
      • getKnowledgeTypesValue

        public int getKnowledgeTypesValue​(int index)
         Required. The knowledge type of document content.
         
        repeated .google.cloud.dialogflow.v2beta1.Document.KnowledgeType knowledge_types = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getKnowledgeTypesValue in interface ImportDocumentTemplateOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of knowledgeTypes at the given index.
      • getMetadataCount

        public int getMetadataCount()
        Description copied from interface: ImportDocumentTemplateOrBuilder
         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;
        Specified by:
        getMetadataCount in interface ImportDocumentTemplateOrBuilder
      • containsMetadata

        public 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;
        Specified by:
        containsMetadata in interface ImportDocumentTemplateOrBuilder
      • getMetadataMap

        public 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;
        Specified by:
        getMetadataMap in interface ImportDocumentTemplateOrBuilder
      • getMetadataOrDefault

        public 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;
        Specified by:
        getMetadataOrDefault in interface ImportDocumentTemplateOrBuilder
      • getMetadataOrThrow

        public 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;
        Specified by:
        getMetadataOrThrow in interface ImportDocumentTemplateOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ImportDocumentTemplate parseFrom​(ByteBuffer data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ImportDocumentTemplate parseFrom​(ByteBuffer data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ImportDocumentTemplate parseFrom​(com.google.protobuf.ByteString data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ImportDocumentTemplate parseFrom​(com.google.protobuf.ByteString data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ImportDocumentTemplate parseFrom​(byte[] data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ImportDocumentTemplate parseFrom​(byte[] data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public ImportDocumentTemplate.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ImportDocumentTemplate.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ImportDocumentTemplate.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ImportDocumentTemplate> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ImportDocumentTemplate getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder