Index
AnnotationSpecColor
(message)ImageBoundingBoxAnnotation
(message)ImageClassificationAnnotation
(message)ImageDataItem
(message)ImageDatasetMetadata
(message)ImageSegmentationAnnotation
(message)ImageSegmentationAnnotation.MaskAnnotation
(message)ImageSegmentationAnnotation.PolygonAnnotation
(message)ImageSegmentationAnnotation.PolylineAnnotation
(message)PredictionResult
(message)PredictionResult.Error
(message)TablesDatasetMetadata
(message)TablesDatasetMetadata.BigQuerySource
(message)TablesDatasetMetadata.GcsSource
(message)TablesDatasetMetadata.InputConfig
(message)TextClassificationAnnotation
(message)TextDataItem
(message)TextDatasetMetadata
(message)TextExtractionAnnotation
(message)TextSegment
(message)TextSentimentAnnotation
(message)TextSentimentSavedQueryMetadata
(message)TimeSegment
(message)TimeSeriesDatasetMetadata
(message)TimeSeriesDatasetMetadata.BigQuerySource
(message)TimeSeriesDatasetMetadata.GcsSource
(message)TimeSeriesDatasetMetadata.InputConfig
(message)Vertex
(message)VideoActionRecognitionAnnotation
(message)VideoClassificationAnnotation
(message)VideoDataItem
(message)VideoDatasetMetadata
(message)VideoObjectTrackingAnnotation
(message)VisualInspectionClassificationLabelSavedQueryMetadata
(message)VisualInspectionMaskSavedQueryMetadata
(message)
AnnotationSpecColor
An entry of mapping between color and AnnotationSpec. The mapping is used in segmentation mask.
Fields | |
---|---|
color |
The color of the AnnotationSpec in a segmentation mask. |
display_ |
The display name of the AnnotationSpec represented by the color in the segmentation mask. |
id |
The ID of the AnnotationSpec represented by the color in the segmentation mask. |
ImageBoundingBoxAnnotation
Annotation details specific to image object detection.
Fields | |
---|---|
annotation_ |
The resource Id of the AnnotationSpec that this Annotation pertains to. |
display_ |
The display name of the AnnotationSpec that this Annotation pertains to. |
x_ |
The leftmost coordinate of the bounding box. |
x_ |
The rightmost coordinate of the bounding box. |
y_ |
The topmost coordinate of the bounding box. |
y_ |
The bottommost coordinate of the bounding box. |
ImageClassificationAnnotation
Annotation details specific to image classification.
Fields | |
---|---|
annotation_ |
The resource Id of the AnnotationSpec that this Annotation pertains to. |
display_ |
The display name of the AnnotationSpec that this Annotation pertains to. |
ImageDataItem
Payload of Image DataItem.
Fields | |
---|---|
gcs_ |
Required. Google Cloud Storage URI points to the original image in user's bucket. The image is up to 30MB in size. |
mime_ |
Output only. The mime type of the content of the image. Only the images in below listed mime types are supported. - image/jpeg - image/gif - image/png - image/webp - image/bmp - image/tiff - image/vnd.microsoft.icon |
ImageDatasetMetadata
The metadata of Datasets that contain Image DataItems.
Fields | |
---|---|
data_ |
Points to a YAML file stored on Google Cloud Storage describing payload of the Image DataItems that belong to this Dataset. |
gcs_ |
Google Cloud Storage Bucket name that contains the blob data of this Dataset. |
ImageSegmentationAnnotation
Annotation details specific to image segmentation.
Fields | |
---|---|
Union field
|
|
mask_ |
Mask based segmentation annotation. Only one mask annotation can exist for one image. |
polygon_ |
Polygon annotation. |
polyline_ |
Polyline annotation. |
MaskAnnotation
The mask based segmentation annotation.
Fields | |
---|---|
mask_ |
Google Cloud Storage URI that points to the mask image. The image must be in PNG format. It must have the same size as the DataItem's image. Each pixel in the image mask represents the AnnotationSpec which the pixel in the image DataItem belong to. Each color is mapped to one AnnotationSpec based on annotation_spec_colors. |
annotation_ |
The mapping between color and AnnotationSpec for this Annotation. |
PolygonAnnotation
Represents a polygon in image.
Fields | |
---|---|
vertexes[] |
The vertexes are connected one by one and the last vertex is connected to the first one to represent a polygon. |
annotation_ |
The resource Id of the AnnotationSpec that this Annotation pertains to. |
display_ |
The display name of the AnnotationSpec that this Annotation pertains to. |
PolylineAnnotation
Represents a polyline in image.
Fields | |
---|---|
vertexes[] |
The vertexes are connected one by one and the last vertex in not connected to the first one. |
annotation_ |
The resource Id of the AnnotationSpec that this Annotation pertains to. |
display_ |
The display name of the AnnotationSpec that this Annotation pertains to. |
PredictionResult
Represents a line of JSONL in the batch prediction output file.
Fields | |
---|---|
prediction |
The prediction result. Value is used here instead of Any so that JsonFormat does not append an extra "@type" field when we convert the proto to JSON and so we can represent array of objects. Do not set error if this is set. |
error |
The error result. Do not set prediction if this is set. |
Union field input . Some identifier from the input so that the prediction can be mapped back to the input instance. input can be only one of the following: |
|
instance |
User's input instance. Struct is used here instead of Any so that JsonFormat does not append an extra "@type" field when we convert the proto to JSON. |
key |
Optional user-provided key from the input instance. |
Error
Fields | |
---|---|
status |
Error status. This will be serialized into the enum name e.g. "NOT_FOUND". |
message |
Error message with additional details. |
TablesDatasetMetadata
The metadata of Datasets that contain tables data.
Fields | |
---|---|
input_ |
BigQuerySource
Fields | |
---|---|
uri |
The URI of a BigQuery table. e.g. bq://projectId.bqDatasetId.bqTableId |
GcsSource
Fields | |
---|---|
uri[] |
Cloud Storage URI of one or more files. Only CSV files are supported. The first line of the CSV file is used as the header. If there are multiple files, the header is the first line of the lexicographically first file, the other files must either contain the exact same header or omit the header. |
InputConfig
The tables Dataset's data source. The Dataset doesn't store the data directly, but only pointer(s) to its data.
Fields | |
---|---|
Union field
|
|
gcs_ |
|
bigquery_ |
TextClassificationAnnotation
Annotation details specific to text classification.
Fields | |
---|---|
annotation_ |
The resource Id of the AnnotationSpec that this Annotation pertains to. |
display_ |
The display name of the AnnotationSpec that this Annotation pertains to. |
TextDataItem
Payload of Text DataItem.
Fields | |
---|---|
gcs_ |
Output only. Google Cloud Storage URI points to the original text in user's bucket. The text file is up to 10MB in size. |
TextDatasetMetadata
The metadata of Datasets that contain Text DataItems.
Fields | |
---|---|
data_ |
Points to a YAML file stored on Google Cloud Storage describing payload of the Text DataItems that belong to this Dataset. |
gcs_ |
Google Cloud Storage Bucket name that contains the blob data of this Dataset. |
TextExtractionAnnotation
Annotation details specific to text extraction.
Fields | |
---|---|
text_ |
The segment of the text content. |
annotation_ |
The resource Id of the AnnotationSpec that this Annotation pertains to. |
display_ |
The display name of the AnnotationSpec that this Annotation pertains to. |
TextSegment
The text segment inside of DataItem.
Fields | |
---|---|
start_ |
Zero-based character index of the first character of the text segment (counting characters from the beginning of the text). |
end_ |
Zero-based character index of the first character past the end of the text segment (counting character from the beginning of the text). The character at the end_offset is NOT included in the text segment. |
content |
The text content in the segment for output only. |
TextSentimentAnnotation
Annotation details specific to text sentiment.
Fields | |
---|---|
sentiment |
The sentiment score for text. |
sentiment_ |
The sentiment max score for text. |
annotation_ |
The resource Id of the AnnotationSpec that this Annotation pertains to. |
display_ |
The display name of the AnnotationSpec that this Annotation pertains to. |
TextSentimentSavedQueryMetadata
The metadata of SavedQuery contains TextSentiment Annotations.
Fields | |
---|---|
sentiment_ |
The maximum sentiment of sentiment Anntoation in this SavedQuery. |
TimeSegment
A time period inside of a DataItem that has a time dimension (e.g. video).
Fields | |
---|---|
start_ |
Start of the time segment (inclusive), represented as the duration since the start of the DataItem. |
end_ |
End of the time segment (exclusive), represented as the duration since the start of the DataItem. |
TimeSeriesDatasetMetadata
The metadata of Datasets that contain time series data.
Fields | |
---|---|
input_ |
|
time_ |
The column name of the time series identifier column that identifies the time series. |
time_ |
The column name of the time column that identifies time order in the time series. |
BigQuerySource
Fields | |
---|---|
uri |
The URI of a BigQuery table. |
GcsSource
Fields | |
---|---|
uri[] |
Cloud Storage URI of one or more files. Only CSV files are supported. The first line of the CSV file is used as the header. If there are multiple files, the header is the first line of the lexicographically first file, the other files must either contain the exact same header or omit the header. |
InputConfig
The time series Dataset's data source. The Dataset doesn't store the data directly, but only pointer(s) to its data.
Fields | |
---|---|
Union field
|
|
gcs_ |
|
bigquery_ |
Vertex
A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
Fields | |
---|---|
x |
X coordinate. |
y |
Y coordinate. |
VideoActionRecognitionAnnotation
Annotation details specific to video action recognition.
Fields | |
---|---|
time_ |
This Annotation applies to the time period represented by the TimeSegment. If it's not set, the Annotation applies to the whole video. |
annotation_ |
The resource Id of the AnnotationSpec that this Annotation pertains to. |
display_ |
The display name of the AnnotationSpec that this Annotation pertains to. |
VideoClassificationAnnotation
Annotation details specific to video classification.
Fields | |
---|---|
time_ |
This Annotation applies to the time period represented by the TimeSegment. If it's not set, the Annotation applies to the whole video. |
annotation_ |
The resource Id of the AnnotationSpec that this Annotation pertains to. |
display_ |
The display name of the AnnotationSpec that this Annotation pertains to. |
VideoDataItem
Payload of Video DataItem.
Fields | |
---|---|
gcs_ |
Required. Google Cloud Storage URI points to the original video in user's bucket. The video is up to 50 GB in size and up to 3 hour in duration. |
mime_ |
Output only. The mime type of the content of the video. Only the videos in below listed mime types are supported. Supported mime_type: - video/mp4 - video/avi - video/quicktime |
VideoDatasetMetadata
The metadata of Datasets that contain Video DataItems.
Fields | |
---|---|
data_ |
Points to a YAML file stored on Google Cloud Storage describing payload of the Video DataItems that belong to this Dataset. |
gcs_ |
Google Cloud Storage Bucket name that contains the blob data of this Dataset. |
VideoObjectTrackingAnnotation
Annotation details specific to video object tracking.
Fields | |
---|---|
time_ |
A time (frame) of a video to which this annotation pertains. Represented as the duration since the video's start. |
x_ |
The leftmost coordinate of the bounding box. |
x_ |
The rightmost coordinate of the bounding box. |
y_ |
The topmost coordinate of the bounding box. |
y_ |
The bottommost coordinate of the bounding box. |
instance_ |
The instance of the object, expressed as a positive integer. Used to track the same object across different frames. |
annotation_ |
The resource Id of the AnnotationSpec that this Annotation pertains to. |
display_ |
The display name of the AnnotationSpec that this Annotation pertains to. |
VisualInspectionClassificationLabelSavedQueryMetadata
Fields | |
---|---|
multi_ |
Whether or not the classification label is multi_label. |
VisualInspectionMaskSavedQueryMetadata
This type has no fields.