Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::ImportDocumentsRequest (v1.5.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::ImportDocumentsRequest.

Request message for Documents.ImportDocuments.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#document_template

def document_template() -> ::Google::Cloud::Dialogflow::V2::ImportDocumentTemplate
Returns

#document_template=

def document_template=(value) -> ::Google::Cloud::Dialogflow::V2::ImportDocumentTemplate
Parameter
Returns

#gcs_source

def gcs_source() -> ::Google::Cloud::Dialogflow::V2::GcsSources
Returns
  • (::Google::Cloud::Dialogflow::V2::GcsSources) — Optional. The Google Cloud Storage location for the documents. The path can include a wildcard.

    These URIs may have the forms gs://<bucket-name>/<object-name>. gs://<bucket-name>/<object-path>/*.<extension>.

#gcs_source=

def gcs_source=(value) -> ::Google::Cloud::Dialogflow::V2::GcsSources
Parameter
  • value (::Google::Cloud::Dialogflow::V2::GcsSources) — Optional. The Google Cloud Storage location for the documents. The path can include a wildcard.

    These URIs may have the forms gs://<bucket-name>/<object-name>. gs://<bucket-name>/<object-path>/*.<extension>.

Returns
  • (::Google::Cloud::Dialogflow::V2::GcsSources) — Optional. The Google Cloud Storage location for the documents. The path can include a wildcard.

    These URIs may have the forms gs://<bucket-name>/<object-name>. gs://<bucket-name>/<object-path>/*.<extension>.

#import_gcs_custom_metadata

def import_gcs_custom_metadata() -> ::Boolean
Returns
  • (::Boolean) — Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.

#import_gcs_custom_metadata=

def import_gcs_custom_metadata=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.
Returns
  • (::Boolean) — Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.

#parent

def parent() -> ::String
Returns
  • (::String) — Required. The knowledge base to import documents into. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>.

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) — Required. The knowledge base to import documents into. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>.
Returns
  • (::String) — Required. The knowledge base to import documents into. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>.