class Google::Apis::LanguageV1beta2::Document
################################################################ # Represents the input to API methods.
Attributes
Indicates how detected boilerplate(e.g. advertisements, copyright declarations, banners) should be handled for this document. If not specified, boilerplate will be treated the same as content. Corresponds to the JSON property `boilerplateHandling` @return [String]
The content of the input in string format. Cloud audit logging exempt since it is based on user data. Corresponds to the JSON property `content` @return [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. Corresponds to the JSON property `gcsContentUri` @return [String]
The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. [Language Support]( cloud.google.com/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. Corresponds to the JSON property `language` @return [String]
The web URI where the document comes from. This URI is not used for fetching the content, but as a hint for analyzing the document. Corresponds to the JSON property `referenceWebUri` @return [String]
Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an ` INVALID_ARGUMENT` error. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/language_v1beta2/classes.rb, line 482 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/language_v1beta2/classes.rb, line 487 def update!(**args) @boilerplate_handling = args[:boilerplate_handling] if args.key?(:boilerplate_handling) @content = args[:content] if args.key?(:content) @gcs_content_uri = args[:gcs_content_uri] if args.key?(:gcs_content_uri) @language = args[:language] if args.key?(:language) @reference_web_uri = args[:reference_web_uri] if args.key?(:reference_web_uri) @type = args[:type] if args.key?(:type) end