Packages
Cloud Translation API client library. Integrates text translation into your website or application.
Current section
Files
Jump to
Current section
Files
lib/google_api/translate/v3/model/model.ex
# 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.Translate.V3.Model.Model do
@moduledoc """
A trained translation model.
## Attributes
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when the model resource was created, which is also when the training started.
* `dataset` (*type:* `String.t`, *default:* `nil`) - The dataset from which the model is trained, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}`
* `displayName` (*type:* `String.t`, *default:* `nil`) - The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
* `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the model, in form of `projects/{project-number-or-id}/locations/{location_id}/models/{model_id}`
* `sourceLanguageCode` (*type:* `String.t`, *default:* `nil`) - Output only. The BCP-47 language code of the source language.
* `targetLanguageCode` (*type:* `String.t`, *default:* `nil`) - Output only. The BCP-47 language code of the target language.
* `testExampleCount` (*type:* `integer()`, *default:* `nil`) - Output only. Number of examples (sentence pairs) used to test the model.
* `trainExampleCount` (*type:* `integer()`, *default:* `nil`) - Output only. Number of examples (sentence pairs) used to train the model.
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this model was last updated.
* `validateExampleCount` (*type:* `integer()`, *default:* `nil`) - Output only. Number of examples (sentence pairs) used to validate the model.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:createTime => DateTime.t() | nil,
:dataset => String.t() | nil,
:displayName => String.t() | nil,
:name => String.t() | nil,
:sourceLanguageCode => String.t() | nil,
:targetLanguageCode => String.t() | nil,
:testExampleCount => integer() | nil,
:trainExampleCount => integer() | nil,
:updateTime => DateTime.t() | nil,
:validateExampleCount => integer() | nil
}
field(:createTime, as: DateTime)
field(:dataset)
field(:displayName)
field(:name)
field(:sourceLanguageCode)
field(:targetLanguageCode)
field(:testExampleCount)
field(:trainExampleCount)
field(:updateTime, as: DateTime)
field(:validateExampleCount)
end
defimpl Poison.Decoder, for: GoogleApi.Translate.V3.Model.Model do
def decode(value, options) do
GoogleApi.Translate.V3.Model.Model.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Translate.V3.Model.Model do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end