class Google::Apis::TranslateV2::DetectionsResource

Attributes

confidence[RW]

The confidence of the detection resul of this language. Corresponds to the JSON property `confidence` @return [Float]

is_reliable[RW]

A boolean to indicate is the language detection result reliable. Corresponds to the JSON property `isReliable` @return [Boolean]

is_reliable?[RW]

A boolean to indicate is the language detection result reliable. Corresponds to the JSON property `isReliable` @return [Boolean]

language[RW]

The language we detect Corresponds to the JSON property `language` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/translate_v2/classes.rb, line 69
def update!(**args)
  @confidence = args[:confidence] if args.key?(:confidence)
  @is_reliable = args[:is_reliable] if args.key?(:is_reliable)
  @language = args[:language] if args.key?(:language)
end