Index
AnnotationService(interface)Annotation(message)AnnotationSource(message)AnnotationSource.CloudHealthcareSource(message)AnnotationStore(message)AnnotationView(enum)BigQueryDestination(message)BigQueryDestination.SchemaType(enum)BigQueryDestination.WriteDisposition(enum)CreateAnnotationRequest(message)CreateAnnotationStoreRequest(message)DeleteAnnotationRequest(message)DeleteAnnotationStoreRequest(message)EvaluateAnnotationStoreRequest(message)EvaluateAnnotationStoreRequest.InfoTypeConfig(message)EvaluateAnnotationStoreRequest.InfoTypeConfig.FilterList(message)EvaluateAnnotationStoreResponse(message)ExportAnnotationsRequest(message)ExportAnnotationsResponse(message)GcsDestination(message)GcsSource(message)GetAnnotationRequest(message)GetAnnotationStoreRequest(message)ImageAnnotation(message)ImageAnnotation.BoundingPoly(message)ImageAnnotation.Vertex(message)ImportAnnotationsRequest(message)ImportAnnotationsResponse(message)ListAnnotationStoresRequest(message)ListAnnotationStoresResponse(message)ListAnnotationsRequest(message)ListAnnotationsResponse(message)ResourceAnnotation(message)SensitiveTextAnnotation(message)SensitiveTextAnnotation.Detail(message)SensitiveTextAnnotation.Detail.Finding(message)UpdateAnnotationRequest(message)UpdateAnnotationStoreRequest(message)
AnnotationService
A service for handling Cloud Healthcare Data Annotations.
| CreateAnnotation |
|---|
|
Creates a new
|
| CreateAnnotationStore |
|---|
|
Creates a new Annotation store within the parent dataset.
|
| DeleteAnnotation |
|---|
|
Deletes an
|
| DeleteAnnotationStore |
|---|
|
Deletes the specified Annotation store and removes all annotations that are contained within it.
|
| EvaluateAnnotationStore |
|---|
|
Evaluate an
|
| ExportAnnotations |
|---|
|
Export
|
| GetAnnotation |
|---|
|
Gets an
|
| GetAnnotationStore |
|---|
|
Gets the specified Annotation store or returns NOT_FOUND if it does not exist.
|
| ImportAnnotations |
|---|
|
Import
|
| ListAnnotationStores |
|---|
|
Lists the Annotation stores in the given dataset for a source store.
|
| ListAnnotations |
|---|
|
Lists the
|
| UpdateAnnotation |
|---|
|
Updates the
|
| UpdateAnnotationStore |
|---|
|
Updates the specified Annotation store.
|
Annotation
An annotation record.
| Fields | |
|---|---|
name |
Identifier. Resource name of the Annotation, of the form |
annotation_source |
Required. Details of the source. |
custom_data |
Additional information for this annotation record, such as annotator and verifier information or study campaign. |
Union field
|
|
resource_annotation |
Annotations for resource. For example, classification tags. |
image_annotation |
Annotations for images. For example, bounding polygons. |
text_annotation |
Annotations for sensitive texts. For example, a range that describes the location of sensitive text. |
AnnotationSource
AnnotationSource holds the source information of the annotation.
| Fields | |
|---|---|
Union field
|
|
cloud_healthcare_source |
Cloud Healthcare API resource. |
CloudHealthcareSource
Cloud Healthcare API resource.
| Fields | |
|---|---|
name |
Full path of a Cloud Healthcare API resource. |
AnnotationStore
An Annotation store that can store annotation resources such as labels and tags for text, image and audio.
| Fields | |
|---|---|
name |
Identifier. Resource name of the Annotation store, of the form |
labels |
Optional. User-supplied key-value pairs used to organize Annotation stores. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62} Label values must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a given store. |
AnnotationView
The optional view on Annotation.
| Enums | |
|---|---|
ANNOTATION_VIEW_UNSPECIFIED |
Same as BASIC. |
ANNOTATION_VIEW_BASIC |
Only name, annotation_source and custom_data fields are populated. |
ANNOTATION_VIEW_FULL |
All fields are populated. |
BigQueryDestination
The BigQuery table for export.
| Fields | |
|---|---|
table_uri |
BigQuery URI to a table, up to 2000 characters long, must be of the form bq://projectId.bqDatasetId.tableId. |
force |
Use |
schema_type |
Specifies the schema format to export. |
write_disposition |
Determines if existing data in the destination dataset is overwritten, appended to, or not written if the tables contain data. If a write_disposition is specified, the |
SchemaType
| Enums | |
|---|---|
SCHEMA_TYPE_UNSPECIFIED |
Same as SIMPLE. |
SIMPLE |
A flatterned version of Annotation. |
WriteDisposition
The BigQuery WriteDispostion used by the export operation.
| Enums | |
|---|---|
WRITE_DISPOSITION_UNSPECIFIED |
Default behavior is the same as WRITE_EMPTY. |
WRITE_EMPTY |
Only export data if the destination table is empty. |
WRITE_TRUNCATE |
Erase all existing data in a table before writing the instances. |
WRITE_APPEND |
Append data to the existing table. |
CreateAnnotationRequest
Creates an Annotation record for a source and adds it to Annotation store.
| Fields | |
|---|---|
parent |
Required. The name of the Annotation store this annotation belongs to. For example, Authorization requires the following IAM permission on the specified resource
|
annotation |
Required. Annotation to create. |
CreateAnnotationStoreRequest
Request to create a new Annotation store.
| Fields | |
|---|---|
parent |
Required. The name of the dataset this Annotation store belongs to. Authorization requires the following IAM permission on the specified resource
|
annotation_store_id |
Required. The ID of the Annotation store that is being created. The string must match the following regex: |
annotation_store |
Configuration info for this Annotation store. |
DeleteAnnotationRequest
Deletes an Annotation from the specified Annotation store.
| Fields | |
|---|---|
name |
Required. The resource name of the Annotation to delete. Authorization requires the following IAM permission on the specified resource
|
DeleteAnnotationStoreRequest
Deletes the specified Annotation store.
| Fields | |
|---|---|
name |
Required. The resource name of the Annotation store to delete. Authorization requires the following IAM permission on the specified resource
|
EvaluateAnnotationStoreRequest
Request to evaluate an Annotation store against a ground truth [Annotation store].
| Fields | |
|---|---|
name |
Required. The Annotation store to compare against Authorization requires the following IAM permission on the specified resource
|
eval_info_type_mapping |
Optional. InfoType mapping for Unmentioned infoTypes, such as InfoTypes are case-insensitive. |
golden_store |
Required. The Annotation store to use as ground truth, in the format of |
golden_info_type_mapping |
Optional. Similar to |
info_type_config |
|
Union field report_destination. Specifies the report location. report_destination can be only one of the following: |
|
bigquery_destination |
The BigQuery table where the server writes the output. BigQueryDestination requires the |
InfoTypeConfig
Specifies how to use infoTypes for evaluation. For example, a user might only want to evaluate PERSON, LOCATION, and AGE.
| Fields | |
|---|---|
strict_matching |
If
When
When
|
Union field filter. filter allows users to flexibly choose a subset of infoTypes for evaluation. If not specified, default behavior is to keep all infoTypes. filter can be only one of the following: |
|
evaluate_list |
|
ignore_list |
|
FilterList
List of infoTypes to be filtered.
| Fields | |
|---|---|
info_types[] |
These infoTypes are based on after the |
EvaluateAnnotationStoreResponse
This type has no fields.
Response for successful Annotation store evaluation operations. This structure is included in the response upon operation completion.
ExportAnnotationsRequest
Request to export Annotations. The export operation is not atomic. If a failure occurs, any annotations already exported are not removed.
| Fields | |
|---|---|
name |
Required. The name of the Annotation store to export annotations to, in the format of Authorization requires the following IAM permission on the specified resource
|
Union field destination. Destination for export. destination can be only one of the following: |
|
gcs_destination |
The Cloud Storage destination, which requires the |
bigquery_destination |
The BigQuery output destination, which requires two IAM roles: |
ExportAnnotationsResponse
This type has no fields.
Response for successful annotation export operations. This structure is included in response upon operation completion.
GcsDestination
The Cloud Storage location for export.
| Fields | |
|---|---|
uri_prefix |
The Cloud Storage destination to export to. URI for a Cloud Storage directory where the server writes result files, in the format |
GcsSource
Specifies the configuration for importing data from Cloud Storage.
| Fields | |
|---|---|
uri |
Points to a Cloud Storage URI containing file(s) with content only. The URI must be in the following format: |
GetAnnotationRequest
Gets an Annotation from the specified Annotation store.
| Fields | |
|---|---|
name |
Required. The resource name of the Annotation to retrieve. Authorization requires the following IAM permission on the specified resource
|
GetAnnotationStoreRequest
Gets an Annotation store.
| Fields | |
|---|---|
name |
Required. The resource name of the Annotation store to get. Authorization requires the following IAM permission on the specified resource
|
ImageAnnotation
Image annotation.
| Fields | |
|---|---|
bounding_polys[] |
The list of polygons outlining the sensitive regions in the image. |
frame_index |
0-based index of the image frame. For example, an image frame in a DICOM instance. |
BoundingPoly
A bounding polygon for the detected image annotation.
| Fields | |
|---|---|
vertices[] |
List of the vertices of this polygon. |
label |
A description of this polygon. |
Vertex
A 2D coordinate in an image. The origin is the top-left.
| Fields | |
|---|---|
x |
X coordinate. |
y |
Y coordinate. |
ImportAnnotationsRequest
Request to import Annotations. The Annotations to be imported must have client-supplied resource names which indicate the annotation resource. The import operation is not atomic. If a failure occurs, any annotations already imported are not removed.
| Fields | |
|---|---|
name |
Required. The name of the Annotation store to which the server imports annotations, in the format Authorization requires the following IAM permission on the specified resource
|
Union field |
|
gcs_source |
|
ImportAnnotationsResponse
This type has no fields.
Final response of importing Annotations in successful case. This structure is included in the response. It is only included when the operation finishes.
ListAnnotationStoresRequest
Lists the Annotation stores in the given dataset, for a given source store.
| Fields | |
|---|---|
parent |
Required. Name of the dataset. Authorization requires the following IAM permission on the specified resource
|
page_size |
Limit on the number of Annotation stores to return in a single response. If not specified, 100 is used. May not be larger than 1000. |
page_token |
The next_page_token value returned from the previous List request, if any. |
filter |
Restricts stores returned to those matching a filter. The following syntax is available:
Only filtering on labels is supported, for example |
ListAnnotationStoresResponse
Lists the Annotation stores in the given dataset.
| Fields | |
|---|---|
annotation_stores[] |
The returned Annotation stores. Won't be more Annotation stores than the value of page_size in the request. |
next_page_token |
Token to retrieve the next page of results or empty if there are no more results in the list. |
ListAnnotationsRequest
Lists the Annotations in the specified Annotation store.
| Fields | |
|---|---|
parent |
Required. Name of the Annotation store to retrieve Annotations from. Authorization requires the following IAM permission on the specified resource
|
page_size |
Limit on the number of Annotations to return in a single response. If not specified, 100 is used. May not be larger than 1000. |
page_token |
The next_page_token value returned from the previous List request, if any. |
filter |
Restricts Annotations returned to those matching a filter. Functions available for filtering are:
|
view |
Controls which fields are populated in the response. |
ListAnnotationsResponse
Lists the Annotations in the specified Annotation store.
| Fields | |
|---|---|
annotations[] |
The returned Annotations. Won't be more values than the value of page_size in the request. See |
next_page_token |
Token to retrieve the next page of results or empty if there are no more results in the list. |
ResourceAnnotation
Resource level annotation.
| Fields | |
|---|---|
label |
A description of the annotation record. |
SensitiveTextAnnotation
A TextAnnotation specifies a text range that includes sensitive information.
| Fields | |
|---|---|
details |
Maps from a resource slice. For example, FHIR resource field path to a set of sensitive text findings. For example, Appointment.Narrative text1 --> {findings_1, findings_2, findings_3} |
Detail
Contains multiple sensitive information findings for each resource slice.
| Fields | |
|---|---|
findings[] |
|
Finding
| Fields | |
|---|---|
info_type |
The type of information stored in this text range. For example, HumanName, BirthDate, or Address. |
start |
Zero-based starting index of the found text, inclusively. |
end |
Zero-based ending index of the found text, exclusively. |
quote |
The snippet of the sensitive text. This field is only populated during deidentification if |
UpdateAnnotationRequest
Request to update the given Annotation.
| Fields | |
|---|---|
annotation |
Required. The annotation resource which updates the resource on the server. Only fields listed in Authorization requires the following IAM permission on the specified resource
|
update_mask |
Required. The update mask applies to the resource. For the |
UpdateAnnotationStoreRequest
Updates an Annotation store.
| Fields | |
|---|---|
annotation_store |
Required. The Annotation store resource that updates the resource on the server. Only updating labels is supported. Authorization requires the following IAM permission on the specified resource
|
update_mask |
Required. The update mask applies to the resource. For the |