Packages

Cloud Natural Language API client library. Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.

Current section

Files

Jump to
google_api_language lib google_api language v1 model document.ex
Raw

lib/google_api/language/v1/model/document.ex

# Copyright 2017 Google Inc.
#
# 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 class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule GoogleApi.Language.V1.Model.Document do
@moduledoc """
################################################################ # Represents the input to API methods.
## Attributes
- content (String.t): The content of the input in string format. Cloud audit logging exempt since it is based on user data. Defaults to: `null`.
- gcsContentUri (String.t): The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported. Defaults to: `null`.
- language (String.t): The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted.<br> [Language Support](/natural-language/docs/languages) lists currently supported languages for each API method. If the language (either specified by the caller or automatically detected) is not supported by the called API method, an `INVALID_ARGUMENT` error is returned. Defaults to: `null`.
- type (String.t): Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `INVALID_ARGUMENT` error. Defaults to: `null`.
- Enum - one of [TYPE_UNSPECIFIED, PLAIN_TEXT, HTML]
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:content => any(),
:gcsContentUri => any(),
:language => any(),
:type => any()
}
field(:content)
field(:gcsContentUri)
field(:language)
field(:type)
end
defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.Document do
def decode(value, options) do
GoogleApi.Language.V1.Model.Document.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Language.V1.Model.Document do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end