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.



31055
31056
31057
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31055

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)


30961
30962
30963
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30961

def contextual_dangerous
  @contextual_dangerous
end

#csamBoolean Also known as: csam?

Corresponds to the JSON property csam

Returns:

  • (Boolean)


30967
30968
30969
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30967

def csam
  @csam
end

#fringeBoolean Also known as: fringe?

Corresponds to the JSON property fringe

Returns:

  • (Boolean)


30973
30974
30975
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30973

def fringe
  @fringe
end

#grail_image_harm_typeGoogle::Apis::AiplatformV1beta1::LearningGenaiRootHarmGrailImageHarmType

Harm type for images Corresponds to the JSON property grailImageHarmType



30979
30980
30981
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30979

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



30984
30985
30986
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30984

def grail_text_harm_type
  @grail_text_harm_type
end

#image_csamBoolean Also known as: image_csam?

Corresponds to the JSON property imageCsam

Returns:

  • (Boolean)


30989
30990
30991
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30989

def image_csam
  @image_csam
end

#image_pedoBoolean Also known as: image_pedo?

Corresponds to the JSON property imagePedo

Returns:

  • (Boolean)


30995
30996
30997
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 30995

def image_pedo
  @image_pedo
end

#image_pornBoolean Also known as: image_porn?

Image signals Corresponds to the JSON property imagePorn

Returns:

  • (Boolean)


31001
31002
31003
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31001

def image_porn
  @image_porn
end

#image_violenceBoolean Also known as: image_violence?

Corresponds to the JSON property imageViolence

Returns:

  • (Boolean)


31007
31008
31009
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31007

def image_violence
  @image_violence
end

#pqcBoolean Also known as: pqc?

Corresponds to the JSON property pqc

Returns:

  • (Boolean)


31013
31014
31015
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31013

def pqc
  @pqc
end

#safetycatGoogle::Apis::AiplatformV1beta1::LearningGenaiRootHarmSafetyCatCategories

Corresponds to the JSON property safetycat



31019
31020
31021
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31019

def safetycat
  @safetycat
end

#spiiGoogle::Apis::AiplatformV1beta1::LearningGenaiRootHarmSpiiFilter

Corresponds to the JSON property spii



31024
31025
31026
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31024

def spii
  @spii
end

#thresholdFloat

Corresponds to the JSON property threshold

Returns:

  • (Float)


31029
31030
31031
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31029

def threshold
  @threshold
end

#video_frame_csamBoolean Also known as: video_frame_csam?

Corresponds to the JSON property videoFrameCsam

Returns:

  • (Boolean)


31034
31035
31036
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31034

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)


31040
31041
31042
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31040

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)


31046
31047
31048
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31046

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)


31052
31053
31054
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31052

def video_frame_violence
  @video_frame_violence
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31060
31061
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072
31073
31074
31075
31076
31077
31078
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 31060

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_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_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