Class: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/checks_v1alpha/classes.rb,
lib/google/apis/checks_v1alpha/representations.rb,
lib/google/apis/checks_v1alpha/representations.rb

Overview

Content to be classified.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent

Returns a new instance of GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent.



171
172
173
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 171

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#text_inputGoogle::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaTextInput

Text input to be classified. Corresponds to the JSON property textInput



169
170
171
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 169

def text_input
  @text_input
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



176
177
178
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 176

def update!(**args)
  @text_input = args[:text_input] if args.key?(:text_input)
end