class Google::Apis::LanguageV1beta2::ClassifyTextResponse

The document classification response message.

Attributes

categories[RW]

Categories representing the input document. Corresponds to the JSON property `categories` @return [Array<Google::Apis::LanguageV1beta2::ClassificationCategory>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/language_v1beta2/classes.rb, line 396
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/language_v1beta2/classes.rb, line 401
def update!(**args)
  @categories = args[:categories] if args.key?(:categories)
end