Class: Google::Apis::HealthcareV1alpha2::Annotation

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_sourceGoogle::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_annotationGoogle::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

#nameString

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 propertyname`

Returns:

  • (String)


44
45
46
# File 'generated/google/apis/healthcare_v1alpha2/classes.rb', line 44

def name
  @name
end

#resource_annotationGoogle::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_annotationGoogle::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