Class: Google::Apis::HealthcareV1alpha2::Annotation
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1alpha2::Annotation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/healthcare_v1alpha2/classes.rb,
generated/google/apis/healthcare_v1alpha2/representations.rb,
generated/google/apis/healthcare_v1alpha2/representations.rb
Overview
An annotation record.
Instance Attribute Summary collapse
-
#annotation_source ⇒ Google::Apis::HealthcareV1alpha2::AnnotationSource
AnnotationSource holds the source information of the annotation.
-
#image_annotation ⇒ Google::Apis::HealthcareV1alpha2::ImageAnnotation
Image annotation.
-
#name ⇒ String
Output only.
-
#resource_annotation ⇒ Google::Apis::HealthcareV1alpha2::ResourceAnnotation
Resource level annotation.
-
#text_annotation ⇒ Google::Apis::HealthcareV1alpha2::SensitiveTextAnnotation
A TextAnnotation specifies a text range that includes sensitive information.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Annotation
constructor
A new instance of Annotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Annotation
Returns a new instance of Annotation
56 57 58 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 56 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation_source ⇒ Google::Apis::HealthcareV1alpha2::AnnotationSource
AnnotationSource holds the source information of the annotation.
Corresponds to the JSON property annotationSource
32 33 34 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 32 def annotation_source @annotation_source end |
#image_annotation ⇒ Google::Apis::HealthcareV1alpha2::ImageAnnotation
Image annotation.
Corresponds to the JSON property imageAnnotation
37 38 39 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 37 def image_annotation @image_annotation end |
#name ⇒ String
Output only. Resource name of the Annotation, of the form
projects/
project_id/locations/
location_id/datasets/
dataset_id/
annotationStores/
annotation_store_id/annotations/
annotation_id`.
Corresponds to the JSON property
name`
44 45 46 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 44 def name @name end |
#resource_annotation ⇒ Google::Apis::HealthcareV1alpha2::ResourceAnnotation
Resource level annotation.
Corresponds to the JSON property resourceAnnotation
49 50 51 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 49 def resource_annotation @resource_annotation end |
#text_annotation ⇒ Google::Apis::HealthcareV1alpha2::SensitiveTextAnnotation
A TextAnnotation specifies a text range that includes sensitive information.
Corresponds to the JSON property textAnnotation
54 55 56 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 54 def text_annotation @text_annotation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
61 62 63 64 65 66 67 |
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 61 def update!(**args) @annotation_source = args[:annotation_source] if args.key?(:annotation_source) @image_annotation = args[:image_annotation] if args.key?(:image_annotation) @name = args[:name] if args.key?(:name) @resource_annotation = args[:resource_annotation] if args.key?(:resource_annotation) @text_annotation = args[:text_annotation] if args.key?(:text_annotation) end |