Class: Google::Apis::AiplatformV1::LearningGenaiRootHarm

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootHarm

Returns a new instance of LearningGenaiRootHarm.



31964
31965
31966
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31964

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)


31856
31857
31858
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31856

def contextual_dangerous
  @contextual_dangerous
end

#csamBoolean Also known as: csam?

Corresponds to the JSON property csam

Returns:

  • (Boolean)


31862
31863
31864
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31862

def csam
  @csam
end

#fringeBoolean Also known as: fringe?

Corresponds to the JSON property fringe

Returns:

  • (Boolean)


31868
31869
31870
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31868

def fringe
  @fringe
end

#grail_image_harm_typeGoogle::Apis::AiplatformV1::LearningGenaiRootHarmGrailImageHarmType

Harm type for images Corresponds to the JSON property grailImageHarmType



31874
31875
31876
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31874

def grail_image_harm_type
  @grail_image_harm_type
end

#grail_text_harm_typeGoogle::Apis::AiplatformV1::LearningGenaiRootHarmGrailTextHarmType

Harm type for text Corresponds to the JSON property grailTextHarmType



31879
31880
31881
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31879

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)


31884
31885
31886
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31884

def image_child
  @image_child
end

#image_csamBoolean Also known as: image_csam?

Corresponds to the JSON property imageCsam

Returns:

  • (Boolean)


31890
31891
31892
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31890

def image_csam
  @image_csam
end

#image_pedoBoolean Also known as: image_pedo?

Corresponds to the JSON property imagePedo

Returns:

  • (Boolean)


31896
31897
31898
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31896

def image_pedo
  @image_pedo
end

#image_pornBoolean Also known as: image_porn?

Image signals Corresponds to the JSON property imagePorn

Returns:

  • (Boolean)


31902
31903
31904
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31902

def image_porn
  @image_porn
end

#image_violenceBoolean Also known as: image_violence?

Corresponds to the JSON property imageViolence

Returns:

  • (Boolean)


31908
31909
31910
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31908

def image_violence
  @image_violence
end

#pqcBoolean Also known as: pqc?

Corresponds to the JSON property pqc

Returns:

  • (Boolean)


31914
31915
31916
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31914

def pqc
  @pqc
end

#safetycatGoogle::Apis::AiplatformV1::LearningGenaiRootHarmSafetyCatCategories

Corresponds to the JSON property safetycat



31920
31921
31922
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31920

def safetycat
  @safetycat
end

#spiiGoogle::Apis::AiplatformV1::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



31927
31928
31929
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31927

def spii
  @spii
end

#thresholdFloat

Corresponds to the JSON property threshold

Returns:

  • (Float)


31932
31933
31934
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31932

def threshold
  @threshold
end

#video_frame_childBoolean Also known as: video_frame_child?

Corresponds to the JSON property videoFrameChild

Returns:

  • (Boolean)


31937
31938
31939
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31937

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)


31943
31944
31945
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31943

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)


31949
31950
31951
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31949

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)


31955
31956
31957
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31955

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)


31961
31962
31963
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31961

def video_frame_violence
  @video_frame_violence
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31969
31970
31971
31972
31973
31974
31975
31976
31977
31978
31979
31980
31981
31982
31983
31984
31985
31986
31987
31988
31989
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31969

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