-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: stop tracking generated files (#20)
- Loading branch information
1 parent
b804ee8
commit c2d1f46
Showing
65 changed files
with
67,857 additions
and
13,781 deletions.
There are no files selected for viewing
228 changes: 228 additions & 0 deletions
228
...e-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,228 @@ | ||
// Copyright 2020 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.cloud.aiplatform.v1beta1.schema; | ||
|
||
import "google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto"; | ||
import "google/cloud/aiplatform/v1beta1/schema/geometry.proto"; | ||
import "google/protobuf/duration.proto"; | ||
import "google/api/annotations.proto"; | ||
|
||
option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "AnnotationPayloadProto"; | ||
option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; | ||
|
||
// Annotation details specific to image classification. | ||
message ImageClassificationAnnotation { | ||
// The resource Id of the AnnotationSpec that this Annotation pertains to. | ||
string annotation_spec_id = 1; | ||
|
||
// The display name of the AnnotationSpec that this Annotation pertains to. | ||
string display_name = 2; | ||
} | ||
|
||
// Annotation details specific to image object detection. | ||
message ImageBoundingBoxAnnotation { | ||
// The resource Id of the AnnotationSpec that this Annotation pertains to. | ||
string annotation_spec_id = 1; | ||
|
||
// The display name of the AnnotationSpec that this Annotation pertains to. | ||
string display_name = 2; | ||
|
||
// The leftmost coordinate of the bounding box. | ||
double x_min = 3; | ||
|
||
// The rightmost coordinate of the bounding box. | ||
double x_max = 4; | ||
|
||
// The topmost coordinate of the bounding box. | ||
double y_min = 5; | ||
|
||
// The bottommost coordinate of the bounding box. | ||
double y_max = 6; | ||
} | ||
|
||
// Annotation details specific to image segmentation. | ||
message ImageSegmentationAnnotation { | ||
// The mask based segmentation annotation. | ||
message MaskAnnotation { | ||
// 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. | ||
string mask_gcs_uri = 1; | ||
|
||
// The mapping between color and AnnotationSpec for this Annotation. | ||
repeated AnnotationSpecColor annotation_spec_colors = 2; | ||
} | ||
|
||
// Represents a polygon in image. | ||
message PolygonAnnotation { | ||
// The vertexes are connected one by one and the last vertex is connected to | ||
// the first one to represent a polygon. | ||
repeated Vertex vertexes = 1; | ||
|
||
// The resource Id of the AnnotationSpec that this Annotation pertains to. | ||
string annotation_spec_id = 2; | ||
|
||
// The display name of the AnnotationSpec that this Annotation pertains to. | ||
string display_name = 3; | ||
} | ||
|
||
// Represents a polyline in image. | ||
message PolylineAnnotation { | ||
// The vertexes are connected one by one and the last vertex in not | ||
// connected to the first one. | ||
repeated Vertex vertexes = 1; | ||
|
||
// The resource Id of the AnnotationSpec that this Annotation pertains to. | ||
string annotation_spec_id = 2; | ||
|
||
// The display name of the AnnotationSpec that this Annotation pertains to. | ||
string display_name = 3; | ||
} | ||
|
||
oneof annotation { | ||
// Mask based segmentation annotation. Only one mask annotation can exist | ||
// for one image. | ||
MaskAnnotation mask_annotation = 3; | ||
|
||
// Polygon annotation. | ||
PolygonAnnotation polygon_annotation = 4; | ||
|
||
// Polyline annotation. | ||
PolylineAnnotation polyline_annotation = 5; | ||
} | ||
} | ||
|
||
// Annotation details specific to text classification. | ||
message TextClassificationAnnotation { | ||
// The resource Id of the AnnotationSpec that this Annotation pertains to. | ||
string annotation_spec_id = 1; | ||
|
||
// The display name of the AnnotationSpec that this Annotation pertains to. | ||
string display_name = 2; | ||
} | ||
|
||
// Annotation details specific to text extraction. | ||
message TextExtractionAnnotation { | ||
// The segment of the text content. | ||
TextSegment text_segment = 1; | ||
|
||
// The resource Id of the AnnotationSpec that this Annotation pertains to. | ||
string annotation_spec_id = 2; | ||
|
||
// The display name of the AnnotationSpec that this Annotation pertains to. | ||
string display_name = 3; | ||
} | ||
|
||
// The text segment inside of DataItem. | ||
message TextSegment { | ||
// Zero-based character index of the first character of the text | ||
// segment (counting characters from the beginning of the text). | ||
uint64 start_offset = 1; | ||
|
||
// 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. | ||
uint64 end_offset = 2; | ||
|
||
// The text content in the segment for output only. | ||
string content = 3; | ||
} | ||
|
||
// Annotation details specific to text sentiment. | ||
message TextSentimentAnnotation { | ||
// The sentiment score for text. | ||
int32 sentiment = 1; | ||
|
||
// The sentiment max score for text. | ||
int32 sentiment_max = 2; | ||
|
||
// The resource Id of the AnnotationSpec that this Annotation pertains to. | ||
string annotation_spec_id = 3; | ||
|
||
// The display name of the AnnotationSpec that this Annotation pertains to. | ||
string display_name = 4; | ||
} | ||
|
||
// Annotation details specific to video classification. | ||
message VideoClassificationAnnotation { | ||
// This Annotation applies to the time period represented by the TimeSegment. | ||
// If it's not set, the Annotation applies to the whole video. | ||
TimeSegment time_segment = 1; | ||
|
||
// The resource Id of the AnnotationSpec that this Annotation pertains to. | ||
string annotation_spec_id = 2; | ||
|
||
// The display name of the AnnotationSpec that this Annotation pertains to. | ||
string display_name = 3; | ||
} | ||
|
||
// A time period inside of a DataItem that has a time dimension (e.g. video). | ||
message TimeSegment { | ||
// Start of the time segment (inclusive), represented as the duration since | ||
// the start of the DataItem. | ||
google.protobuf.Duration start_time_offset = 1; | ||
|
||
// End of the time segment (exclusive), represented as the duration since the | ||
// start of the DataItem. | ||
google.protobuf.Duration end_time_offset = 2; | ||
} | ||
|
||
// Annotation details specific to video object tracking. | ||
message VideoObjectTrackingAnnotation { | ||
// A time (frame) of a video to which this annotation pertains. | ||
// Represented as the duration since the video's start. | ||
google.protobuf.Duration time_offset = 1; | ||
|
||
// The leftmost coordinate of the bounding box. | ||
double x_min = 2; | ||
|
||
// The rightmost coordinate of the bounding box. | ||
double x_max = 3; | ||
|
||
// The topmost coordinate of the bounding box. | ||
double y_min = 4; | ||
|
||
// The bottommost coordinate of the bounding box. | ||
double y_max = 5; | ||
|
||
// The instance of the object, expressed as a positive integer. Used to track | ||
// the same object across different frames. | ||
int64 instance_id = 6; | ||
|
||
// The resource Id of the AnnotationSpec that this Annotation pertains to. | ||
string annotation_spec_id = 7; | ||
|
||
// The display name of the AnnotationSpec that this Annotation pertains to. | ||
string display_name = 8; | ||
} | ||
|
||
// Annotation details specific to video action recognition. | ||
message VideoActionRecognitionAnnotation { | ||
// This Annotation applies to the time period represented by the TimeSegment. | ||
// If it's not set, the Annotation applies to the whole video. | ||
TimeSegment time_segment = 1; | ||
|
||
// The resource Id of the AnnotationSpec that this Annotation pertains to. | ||
string annotation_spec_id = 2; | ||
|
||
// The display name of the AnnotationSpec that this Annotation pertains to. | ||
string display_name = 3; | ||
} |
40 changes: 40 additions & 0 deletions
40
...loud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright 2020 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.cloud.aiplatform.v1beta1.schema; | ||
|
||
import "google/type/color.proto"; | ||
import "google/api/annotations.proto"; | ||
|
||
option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "AnnotationSpecColorProto"; | ||
option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; | ||
|
||
// An entry of mapping between color and AnnotationSpec. The mapping is used in | ||
// segmentation mask. | ||
message AnnotationSpecColor { | ||
// The color of the AnnotationSpec in a segmentation mask. | ||
google.type.Color color = 1; | ||
|
||
// The display name of the AnnotationSpec represented by the color in the | ||
// segmentation mask. | ||
string display_name = 2; | ||
|
||
// The ID of the AnnotationSpec represented by the color in the segmentation | ||
// mask. | ||
string id = 3; | ||
} |
66 changes: 66 additions & 0 deletions
66
...le-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// Copyright 2020 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.cloud.aiplatform.v1beta1.schema; | ||
|
||
import "google/api/field_behavior.proto"; | ||
import "google/protobuf/duration.proto"; | ||
import "google/api/annotations.proto"; | ||
|
||
option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema;schema"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "DataItemPayloadProto"; | ||
option java_package = "com.google.cloud.aiplatform.v1beta1.schema"; | ||
|
||
// Payload of Image DataItem. | ||
message ImageDataItem { | ||
// Required. Google Cloud Storage URI points to the original image in user's bucket. | ||
// The image is up to 30MB in size. | ||
string gcs_uri = 1 [(google.api.field_behavior) = REQUIRED]; | ||
|
||
// 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 | ||
string mime_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
} | ||
|
||
// Payload of Video DataItem. | ||
message VideoDataItem { | ||
// 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. | ||
string gcs_uri = 1 [(google.api.field_behavior) = REQUIRED]; | ||
|
||
// 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 | ||
string mime_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
} | ||
|
||
// Payload of Text DataItem. | ||
message TextDataItem { | ||
// Output only. Google Cloud Storage URI points to the original text in user's bucket. | ||
// The text file is up to 10MB in size. | ||
string gcs_uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
} |
Oops, something went wrong.