Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootHarm

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootHarm

Returns a new instance of LearningGenaiRootHarm.



36260
36261
36262
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36260

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

Instance Attribute Details

#contextual_dangerousBoolean Also known as: contextual_dangerous?

Please do not use, this is still under development. Corresponds to the JSON property contextualDangerous

Returns:

  • (Boolean)


36152
36153
36154
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36152

def contextual_dangerous
  @contextual_dangerous
end

#csamBoolean Also known as: csam?

Corresponds to the JSON property csam

Returns:

  • (Boolean)


36158
36159
36160
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36158

def csam
  @csam
end

#fringeBoolean Also known as: fringe?

Corresponds to the JSON property fringe

Returns:

  • (Boolean)


36164
36165
36166
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36164

def fringe
  @fringe
end

#grail_image_harm_typeGoogle::Apis::AiplatformV1beta1::LearningGenaiRootHarmGrailImageHarmType

Harm type for images Corresponds to the JSON property grailImageHarmType



36170
36171
36172
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36170

def grail_image_harm_type
  @grail_image_harm_type
end

#grail_text_harm_typeGoogle::Apis::AiplatformV1beta1::LearningGenaiRootHarmGrailTextHarmType

Harm type for text Corresponds to the JSON property grailTextHarmType



36175
36176
36177
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36175

def grail_text_harm_type
  @grail_text_harm_type
end

#image_childBoolean Also known as: image_child?

Corresponds to the JSON property imageChild

Returns:

  • (Boolean)


36180
36181
36182
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36180

def image_child
  @image_child
end

#image_csamBoolean Also known as: image_csam?

Corresponds to the JSON property imageCsam

Returns:

  • (Boolean)


36186
36187
36188
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36186

def image_csam
  @image_csam
end

#image_pedoBoolean Also known as: image_pedo?

Corresponds to the JSON property imagePedo

Returns:

  • (Boolean)


36192
36193
36194
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36192

def image_pedo
  @image_pedo
end

#image_pornBoolean Also known as: image_porn?

Image signals Corresponds to the JSON property imagePorn

Returns:

  • (Boolean)


36198
36199
36200
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36198

def image_porn
  @image_porn
end

#image_violenceBoolean Also known as: image_violence?

Corresponds to the JSON property imageViolence

Returns:

  • (Boolean)


36204
36205
36206
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36204

def image_violence
  @image_violence
end

#pqcBoolean Also known as: pqc?

Corresponds to the JSON property pqc

Returns:

  • (Boolean)


36210
36211
36212
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36210

def pqc
  @pqc
end

#safetycatGoogle::Apis::AiplatformV1beta1::LearningGenaiRootHarmSafetyCatCategories

Corresponds to the JSON property safetycat



36216
36217
36218
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36216

def safetycat
  @safetycat
end

#spiiGoogle::Apis::AiplatformV1beta1::LearningGenaiRootHarmSpiiFilter

Spii Filter uses buckets http://google3/google/privacy/dlp/v2/storage.proto;l= 77;rcl=584719820 to classify the input. LMRoot converts the bucket into double score. For example the score for "POSSIBLE" is 3 / 5 = 0.6 . Corresponds to the JSON property spii



36223
36224
36225
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36223

def spii
  @spii
end

#thresholdFloat

Corresponds to the JSON property threshold

Returns:

  • (Float)


36228
36229
36230
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36228

def threshold
  @threshold
end

#video_frame_childBoolean Also known as: video_frame_child?

Corresponds to the JSON property videoFrameChild

Returns:

  • (Boolean)


36233
36234
36235
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36233

def video_frame_child
  @video_frame_child
end

#video_frame_csamBoolean Also known as: video_frame_csam?

Corresponds to the JSON property videoFrameCsam

Returns:

  • (Boolean)


36239
36240
36241
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36239

def video_frame_csam
  @video_frame_csam
end

#video_frame_pedoBoolean Also known as: video_frame_pedo?

Corresponds to the JSON property videoFramePedo

Returns:

  • (Boolean)


36245
36246
36247
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36245

def video_frame_pedo
  @video_frame_pedo
end

#video_frame_pornBoolean Also known as: video_frame_porn?

Video frame signals Corresponds to the JSON property videoFramePorn

Returns:

  • (Boolean)


36251
36252
36253
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36251

def video_frame_porn
  @video_frame_porn
end

#video_frame_violenceBoolean Also known as: video_frame_violence?

Corresponds to the JSON property videoFrameViolence

Returns:

  • (Boolean)


36257
36258
36259
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36257

def video_frame_violence
  @video_frame_violence
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36265
36266
36267
36268
36269
36270
36271
36272
36273
36274
36275
36276
36277
36278
36279
36280
36281
36282
36283
36284
36285
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36265

def update!(**args)
  @contextual_dangerous = args[:contextual_dangerous] if args.key?(:contextual_dangerous)
  @csam = args[:csam] if args.key?(:csam)
  @fringe = args[:fringe] if args.key?(:fringe)
  @grail_image_harm_type = args[:grail_image_harm_type] if args.key?(:grail_image_harm_type)
  @grail_text_harm_type = args[:grail_text_harm_type] if args.key?(:grail_text_harm_type)
  @image_child = args[:image_child] if args.key?(:image_child)
  @image_csam = args[:image_csam] if args.key?(:image_csam)
  @image_pedo = args[:image_pedo] if args.key?(:image_pedo)
  @image_porn = args[:image_porn] if args.key?(:image_porn)
  @image_violence = args[:image_violence] if args.key?(:image_violence)
  @pqc = args[:pqc] if args.key?(:pqc)
  @safetycat = args[:safetycat] if args.key?(:safetycat)
  @spii = args[:spii] if args.key?(:spii)
  @threshold = args[:threshold] if args.key?(:threshold)
  @video_frame_child = args[:video_frame_child] if args.key?(:video_frame_child)
  @video_frame_csam = args[:video_frame_csam] if args.key?(:video_frame_csam)
  @video_frame_pedo = args[:video_frame_pedo] if args.key?(:video_frame_pedo)
  @video_frame_porn = args[:video_frame_porn] if args.key?(:video_frame_porn)
  @video_frame_violence = args[:video_frame_violence] if args.key?(:video_frame_violence)
end