Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ImportDocumentsRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb

Overview

Request message for Documents.ImportDocuments.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ImportDocumentsRequest

Returns a new instance of GoogleCloudDialogflowV2beta1ImportDocumentsRequest.



10217
10218
10219
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10217

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#document_templateGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ImportDocumentTemplate

The template used for importing documents. Corresponds to the JSON property documentTemplate



10203
10204
10205
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10203

def document_template
  @document_template
end

#gcs_sourceGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GcsSources

Google Cloud Storage locations for the inputs. Corresponds to the JSON property gcsSource



10208
10209
10210
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10208

def gcs_source
  @gcs_source
end

#import_gcs_custom_metadataBoolean Also known as: import_gcs_custom_metadata?

Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI. Corresponds to the JSON property importGcsCustomMetadata

Returns:

  • (Boolean)


10214
10215
10216
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10214

def 
  @import_gcs_custom_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10222
10223
10224
10225
10226
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10222

def update!(**args)
  @document_template = args[:document_template] if args.key?(:document_template)
  @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
  @import_gcs_custom_metadata = args[:import_gcs_custom_metadata] if args.key?(:import_gcs_custom_metadata)
end