Class: Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequest
- Inherits:
-
Object
- Object
- Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequest
- 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
Request proto for ClassifyContent RPC.
Instance Attribute Summary collapse
-
#classifier_version ⇒ String
Optional.
-
#context ⇒ Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestContext
Context about the input that will be used to help on the classification.
-
#input ⇒ Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent
Content to be classified.
-
#policies ⇒ Array<Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChecksAisafetyV1alphaClassifyContentRequest
constructor
A new instance of GoogleChecksAisafetyV1alphaClassifyContentRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChecksAisafetyV1alphaClassifyContentRequest
Returns a new instance of GoogleChecksAisafetyV1alphaClassifyContentRequest.
130 131 132 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 130 def initialize(**args) update!(**args) end |
Instance Attribute Details
#classifier_version ⇒ String
Optional. Version of the classifier to use. If not specified, the latest
version will be used.
Corresponds to the JSON property classifierVersion
113 114 115 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 113 def classifier_version @classifier_version end |
#context ⇒ Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestContext
Context about the input that will be used to help on the classification.
Corresponds to the JSON property context
118 119 120 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 118 def context @context end |
#input ⇒ Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent
Content to be classified.
Corresponds to the JSON property input
123 124 125 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 123 def input @input end |
#policies ⇒ Array<Google::Apis::ChecksV1alpha::GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig>
Required. List of policies to classify against.
Corresponds to the JSON property policies
128 129 130 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 128 def policies @policies end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
135 136 137 138 139 140 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 135 def update!(**args) @classifier_version = args[:classifier_version] if args.key?(:classifier_version) @context = args[:context] if args.key?(:context) @input = args[:input] if args.key?(:input) @policies = args[:policies] if args.key?(:policies) end |