operations.proto 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. // Copyright 2019 Google LLC.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. //
  15. syntax = "proto3";
  16. package google.cloud.datalabeling.v1beta1;
  17. import "google/cloud/datalabeling/v1beta1/dataset.proto";
  18. import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto";
  19. import "google/protobuf/timestamp.proto";
  20. import "google/rpc/status.proto";
  21. option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
  22. option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling";
  23. option java_multiple_files = true;
  24. option java_package = "com.google.cloud.datalabeling.v1beta1";
  25. option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
  26. option ruby_package = "Google::Cloud::DataLabeling::V1beta1";
  27. // Response used for ImportData longrunning operation.
  28. message ImportDataOperationResponse {
  29. // Ouptut only. The name of imported dataset.
  30. string dataset = 1;
  31. // Output only. Total number of examples requested to import
  32. int32 total_count = 2;
  33. // Output only. Number of examples imported successfully.
  34. int32 import_count = 3;
  35. }
  36. // Response used for ExportDataset longrunning operation.
  37. message ExportDataOperationResponse {
  38. // Ouptut only. The name of dataset.
  39. // "projects/*/datasets/*"
  40. string dataset = 1;
  41. // Output only. Total number of examples requested to export
  42. int32 total_count = 2;
  43. // Output only. Number of examples exported successfully.
  44. int32 export_count = 3;
  45. // Output only. Statistic infos of labels in the exported dataset.
  46. LabelStats label_stats = 4;
  47. // Output only. output_config in the ExportData request.
  48. OutputConfig output_config = 5;
  49. }
  50. // Metadata of an ImportData operation.
  51. message ImportDataOperationMetadata {
  52. // Output only. The name of imported dataset.
  53. // "projects/*/datasets/*"
  54. string dataset = 1;
  55. // Output only. Partial failures encountered.
  56. // E.g. single files that couldn't be read.
  57. // Status details field will contain standard GCP error details.
  58. repeated google.rpc.Status partial_failures = 2;
  59. // Output only. Timestamp when import dataset request was created.
  60. google.protobuf.Timestamp create_time = 3;
  61. }
  62. // Metadata of an ExportData operation.
  63. message ExportDataOperationMetadata {
  64. // Output only. The name of dataset to be exported.
  65. // "projects/*/datasets/*"
  66. string dataset = 1;
  67. // Output only. Partial failures encountered.
  68. // E.g. single files that couldn't be read.
  69. // Status details field will contain standard GCP error details.
  70. repeated google.rpc.Status partial_failures = 2;
  71. // Output only. Timestamp when export dataset request was created.
  72. google.protobuf.Timestamp create_time = 3;
  73. }
  74. // Metadata of a labeling operation, such as LabelImage or LabelVideo.
  75. // Next tag: 20
  76. message LabelOperationMetadata {
  77. // Ouptut only. Details of specific label operation.
  78. oneof details {
  79. // Details of label image classification operation.
  80. LabelImageClassificationOperationMetadata image_classification_details = 3;
  81. // Details of label image bounding box operation.
  82. LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4;
  83. // Details of label image bounding poly operation.
  84. LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11;
  85. // Details of label image oriented bounding box operation.
  86. LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14;
  87. // Details of label image polyline operation.
  88. LabelImagePolylineOperationMetadata image_polyline_details = 12;
  89. // Details of label image segmentation operation.
  90. LabelImageSegmentationOperationMetadata image_segmentation_details = 15;
  91. // Details of label video classification operation.
  92. LabelVideoClassificationOperationMetadata video_classification_details = 5;
  93. // Details of label video object detection operation.
  94. LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6;
  95. // Details of label video object tracking operation.
  96. LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7;
  97. // Details of label video event operation.
  98. LabelVideoEventOperationMetadata video_event_details = 8;
  99. // Details of label text classification operation.
  100. LabelTextClassificationOperationMetadata text_classification_details = 9;
  101. // Details of label text entity extraction operation.
  102. LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13;
  103. }
  104. // Output only. Progress of label operation. Range: [0, 100].
  105. int32 progress_percent = 1;
  106. // Output only. Partial failures encountered.
  107. // E.g. single files that couldn't be read.
  108. // Status details field will contain standard GCP error details.
  109. repeated google.rpc.Status partial_failures = 2;
  110. // Output only. Timestamp when labeling request was created.
  111. google.protobuf.Timestamp create_time = 16;
  112. }
  113. // Metadata of a LabelImageClassification operation.
  114. message LabelImageClassificationOperationMetadata {
  115. // Basic human annotation config used in labeling request.
  116. HumanAnnotationConfig basic_config = 1;
  117. }
  118. // Details of a LabelImageBoundingBox operation metadata.
  119. message LabelImageBoundingBoxOperationMetadata {
  120. // Basic human annotation config used in labeling request.
  121. HumanAnnotationConfig basic_config = 1;
  122. }
  123. // Details of a LabelImageOrientedBoundingBox operation metadata.
  124. message LabelImageOrientedBoundingBoxOperationMetadata {
  125. // Basic human annotation config.
  126. HumanAnnotationConfig basic_config = 1;
  127. }
  128. // Details of LabelImageBoundingPoly operation metadata.
  129. message LabelImageBoundingPolyOperationMetadata {
  130. // Basic human annotation config used in labeling request.
  131. HumanAnnotationConfig basic_config = 1;
  132. }
  133. // Details of LabelImagePolyline operation metadata.
  134. message LabelImagePolylineOperationMetadata {
  135. // Basic human annotation config used in labeling request.
  136. HumanAnnotationConfig basic_config = 1;
  137. }
  138. // Details of a LabelImageSegmentation operation metadata.
  139. message LabelImageSegmentationOperationMetadata {
  140. // Basic human annotation config.
  141. HumanAnnotationConfig basic_config = 1;
  142. }
  143. // Details of a LabelVideoClassification operation metadata.
  144. message LabelVideoClassificationOperationMetadata {
  145. // Basic human annotation config used in labeling request.
  146. HumanAnnotationConfig basic_config = 1;
  147. }
  148. // Details of a LabelVideoObjectDetection operation metadata.
  149. message LabelVideoObjectDetectionOperationMetadata {
  150. // Basic human annotation config used in labeling request.
  151. HumanAnnotationConfig basic_config = 1;
  152. }
  153. // Details of a LabelVideoObjectTracking operation metadata.
  154. message LabelVideoObjectTrackingOperationMetadata {
  155. // Basic human annotation config used in labeling request.
  156. HumanAnnotationConfig basic_config = 1;
  157. }
  158. // Details of a LabelVideoEvent operation metadata.
  159. message LabelVideoEventOperationMetadata {
  160. // Basic human annotation config used in labeling request.
  161. HumanAnnotationConfig basic_config = 1;
  162. }
  163. // Details of a LabelTextClassification operation metadata.
  164. message LabelTextClassificationOperationMetadata {
  165. // Basic human annotation config used in labeling request.
  166. HumanAnnotationConfig basic_config = 1;
  167. }
  168. // Details of a LabelTextEntityExtraction operation metadata.
  169. message LabelTextEntityExtractionOperationMetadata {
  170. // Basic human annotation config used in labeling request.
  171. HumanAnnotationConfig basic_config = 1;
  172. }
  173. // Metadata of a CreateInstruction operation.
  174. message CreateInstructionMetadata {
  175. // The name of the created Instruction.
  176. // projects/{project_id}/instructions/{instruction_id}
  177. string instruction = 1;
  178. // Partial failures encountered.
  179. // E.g. single files that couldn't be read.
  180. // Status details field will contain standard GCP error details.
  181. repeated google.rpc.Status partial_failures = 2;
  182. // Timestamp when create instruction request was created.
  183. google.protobuf.Timestamp create_time = 3;
  184. }