Class: Google::Apis::HealthcareV1beta1::Annotation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Annotation

Returns a new instance of Annotation.



297
298
299
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 297

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

Instance Attribute Details

#annotation_sourceGoogle::Apis::HealthcareV1beta1::AnnotationSource

AnnotationSource holds the source information of the annotation. Corresponds to the JSON property annotationSource



267
268
269
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 267

def annotation_source
  @annotation_source
end

#custom_dataHash<String,String>

Additional information for this annotation record, such as annotator and verifier information or study campaign. Corresponds to the JSON property customData

Returns:

  • (Hash<String,String>)


273
274
275
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 273

def custom_data
  @custom_data
end

#image_annotationGoogle::Apis::HealthcareV1beta1::ImageAnnotation

Image annotation. Corresponds to the JSON property imageAnnotation



278
279
280
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 278

def image_annotation
  @image_annotation
end

#nameString

Identifier. 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`

Returns:

  • (String)


285
286
287
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 285

def name
  @name
end

#resource_annotationGoogle::Apis::HealthcareV1beta1::ResourceAnnotation

Resource level annotation. Corresponds to the JSON property resourceAnnotation



290
291
292
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 290

def resource_annotation
  @resource_annotation
end

#text_annotationGoogle::Apis::HealthcareV1beta1::SensitiveTextAnnotation

A TextAnnotation specifies a text range that includes sensitive information. Corresponds to the JSON property textAnnotation



295
296
297
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 295

def text_annotation
  @text_annotation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



302
303
304
305
306
307
308
309
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 302

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