Class ImportDocumentTemplate

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2.ImportDocumentTemplate
All Implemented Interfaces:
ImportDocumentTemplateOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ImportDocumentTemplate extends com.google.protobuf.GeneratedMessage implements ImportDocumentTemplateOrBuilder
 The template used for importing documents.
 
Protobuf type google.cloud.dialogflow.v2.ImportDocumentTemplate
See Also:
  • Field Details

    • MIME_TYPE_FIELD_NUMBER

      public static final int MIME_TYPE_FIELD_NUMBER
      See Also:
    • KNOWLEDGE_TYPES_FIELD_NUMBER

      public static final int KNOWLEDGE_TYPES_FIELD_NUMBER
      See Also:
    • METADATA_FIELD_NUMBER

      public static final int METADATA_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.v2.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.v2.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.v2.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.v2.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.v2.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
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata 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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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
    • parseFrom

      public static ImportDocumentTemplate parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ImportDocumentTemplate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ImportDocumentTemplate parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ImportDocumentTemplate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ImportDocumentTemplate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ImportDocumentTemplate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static ImportDocumentTemplate.Builder newBuilder()
    • newBuilder

      public static ImportDocumentTemplate.Builder newBuilder(ImportDocumentTemplate prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ImportDocumentTemplate getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ImportDocumentTemplate> parser()
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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