Document class final

Represents the input to API methods.

Inheritance
  • Object
  • ProtoMessage
  • Document

Constructors

Document({Document_Type type = Document_Type.$default, String? content, String? gcsContentUri, String languageCode = ''})
Document.fromJson(Object? j)
factory

Properties

content String?
The content of the input in string format. Cloud audit logging exempt since it is based on user data.
final
gcsContentUri String?
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.
final
hashCode int
The hash code for this object.
no setterinherited
languageCode String
Optional. The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted.
Language Support 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.
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Document_Type
Required. If the type is not set or is TYPE_UNSPECIFIED, returns an INVALID_ARGUMENT error.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

fullyQualifiedName → const String