Class: Google::Apis::HealthcareV1beta1::Annotation
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::Annotation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/google/apis/healthcare_v1beta1/representations.rb
Overview
An annotation record.
Instance Attribute Summary collapse
-
#annotation_source ⇒ Google::Apis::HealthcareV1beta1::AnnotationSource
AnnotationSource holds the source information of the annotation.
-
#custom_data ⇒ Hash<String,String>
Additional information for this annotation record, such as annotator and verifier information or study campaign.
-
#image_annotation ⇒ Google::Apis::HealthcareV1beta1::ImageAnnotation
Image annotation.
-
#name ⇒ String
Resource name of the Annotation, of the form
projects/project_id/locations/location_id/datasets/dataset_id/annotationStores/annotation_store_id/ annotations/annotation_id``. -
#resource_annotation ⇒ Google::Apis::HealthcareV1beta1::ResourceAnnotation
Resource level annotation.
-
#text_annotation ⇒ Google::Apis::HealthcareV1beta1::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.
Constructor Details
#initialize(**args) ⇒ Annotation
Returns a new instance of Annotation.
161 162 163 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 161 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation_source ⇒ Google::Apis::HealthcareV1beta1::AnnotationSource
AnnotationSource holds the source information of the annotation.
Corresponds to the JSON property annotationSource
131 132 133 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 131 def annotation_source @annotation_source end |
#custom_data ⇒ Hash<String,String>
Additional information for this annotation record, such as annotator and
verifier information or study campaign.
Corresponds to the JSON property customData
137 138 139 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 137 def custom_data @custom_data end |
#image_annotation ⇒ Google::Apis::HealthcareV1beta1::ImageAnnotation
Image annotation.
Corresponds to the JSON property imageAnnotation
142 143 144 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 142 def image_annotation @image_annotation end |
#name ⇒ String
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 propertyname`
149 150 151 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 149 def name @name end |
#resource_annotation ⇒ Google::Apis::HealthcareV1beta1::ResourceAnnotation
Resource level annotation.
Corresponds to the JSON property resourceAnnotation
154 155 156 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 154 def resource_annotation @resource_annotation end |
#text_annotation ⇒ Google::Apis::HealthcareV1beta1::SensitiveTextAnnotation
A TextAnnotation specifies a text range that includes sensitive information.
Corresponds to the JSON property textAnnotation
159 160 161 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 159 def text_annotation @text_annotation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
166 167 168 169 170 171 172 173 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 166 def update!(**args) @annotation_source = args[:annotation_source] if args.key?(:annotation_source) @custom_data = args[:custom_data] if args.key?(:custom_data) @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 |