# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.
defmodule GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ImportDocumentsRequest do
@moduledoc """
Request message for Documents.ImportDocuments.
## Attributes
* `documentTemplate` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ImportDocumentTemplate.t`, *default:* `nil`) - Required. Document template used for importing all the documents.
* `gcsSource` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2GcsSources.t`, *default:* `nil`) - The Google Cloud Storage location for the documents. The path can include a wildcard. These URIs may have the forms `gs:///`. `gs:////*.`.
* `importGcsCustomMetadata` (*type:* `boolean()`, *default:* `nil`) - Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:documentTemplate =>
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ImportDocumentTemplate.t() | nil,
:gcsSource => GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2GcsSources.t() | nil,
:importGcsCustomMetadata => boolean() | nil
}
field(:documentTemplate,
as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ImportDocumentTemplate
)
field(:gcsSource, as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2GcsSources)
field(:importGcsCustomMetadata)
end
defimpl Poison.Decoder,
for: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ImportDocumentsRequest do
def decode(value, options) do
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ImportDocumentsRequest.decode(
value,
options
)
end
end
defimpl Poison.Encoder,
for: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ImportDocumentsRequest do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end