operations.proto 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. // Copyright 2021 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. syntax = "proto3";
  15. package google.cloud.automl.v1;
  16. import "google/cloud/automl/v1/io.proto";
  17. import "google/protobuf/timestamp.proto";
  18. import "google/rpc/status.proto";
  19. option csharp_namespace = "Google.Cloud.AutoML.V1";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
  21. option java_multiple_files = true;
  22. option java_package = "com.google.cloud.automl.v1";
  23. option php_namespace = "Google\\Cloud\\AutoMl\\V1";
  24. option ruby_package = "Google::Cloud::AutoML::V1";
  25. // Metadata used across all long running operations returned by AutoML API.
  26. message OperationMetadata {
  27. // Ouptut only. Details of specific operation. Even if this field is empty,
  28. // the presence allows to distinguish different types of operations.
  29. oneof details {
  30. // Details of a Delete operation.
  31. DeleteOperationMetadata delete_details = 8;
  32. // Details of a DeployModel operation.
  33. DeployModelOperationMetadata deploy_model_details = 24;
  34. // Details of an UndeployModel operation.
  35. UndeployModelOperationMetadata undeploy_model_details = 25;
  36. // Details of CreateModel operation.
  37. CreateModelOperationMetadata create_model_details = 10;
  38. // Details of CreateDataset operation.
  39. CreateDatasetOperationMetadata create_dataset_details = 30;
  40. // Details of ImportData operation.
  41. ImportDataOperationMetadata import_data_details = 15;
  42. // Details of BatchPredict operation.
  43. BatchPredictOperationMetadata batch_predict_details = 16;
  44. // Details of ExportData operation.
  45. ExportDataOperationMetadata export_data_details = 21;
  46. // Details of ExportModel operation.
  47. ExportModelOperationMetadata export_model_details = 22;
  48. }
  49. // Output only. Progress of operation. Range: [0, 100].
  50. // Not used currently.
  51. int32 progress_percent = 13;
  52. // Output only. Partial failures encountered.
  53. // E.g. single files that couldn't be read.
  54. // This field should never exceed 20 entries.
  55. // Status details field will contain standard GCP error details.
  56. repeated google.rpc.Status partial_failures = 2;
  57. // Output only. Time when the operation was created.
  58. google.protobuf.Timestamp create_time = 3;
  59. // Output only. Time when the operation was updated for the last time.
  60. google.protobuf.Timestamp update_time = 4;
  61. }
  62. // Details of operations that perform deletes of any entities.
  63. message DeleteOperationMetadata {
  64. }
  65. // Details of DeployModel operation.
  66. message DeployModelOperationMetadata {
  67. }
  68. // Details of UndeployModel operation.
  69. message UndeployModelOperationMetadata {
  70. }
  71. // Details of CreateDataset operation.
  72. message CreateDatasetOperationMetadata {
  73. }
  74. // Details of CreateModel operation.
  75. message CreateModelOperationMetadata {
  76. }
  77. // Details of ImportData operation.
  78. message ImportDataOperationMetadata {
  79. }
  80. // Details of ExportData operation.
  81. message ExportDataOperationMetadata {
  82. // Further describes this export data's output.
  83. // Supplements
  84. // [OutputConfig][google.cloud.automl.v1.OutputConfig].
  85. message ExportDataOutputInfo {
  86. // The output location to which the exported data is written.
  87. oneof output_location {
  88. // The full path of the Google Cloud Storage directory created, into which
  89. // the exported data is written.
  90. string gcs_output_directory = 1;
  91. }
  92. }
  93. // Output only. Information further describing this export data's output.
  94. ExportDataOutputInfo output_info = 1;
  95. }
  96. // Details of BatchPredict operation.
  97. message BatchPredictOperationMetadata {
  98. // Further describes this batch predict's output.
  99. // Supplements
  100. // [BatchPredictOutputConfig][google.cloud.automl.v1.BatchPredictOutputConfig].
  101. message BatchPredictOutputInfo {
  102. // The output location into which prediction output is written.
  103. oneof output_location {
  104. // The full path of the Google Cloud Storage directory created, into which
  105. // the prediction output is written.
  106. string gcs_output_directory = 1;
  107. }
  108. }
  109. // Output only. The input config that was given upon starting this
  110. // batch predict operation.
  111. BatchPredictInputConfig input_config = 1;
  112. // Output only. Information further describing this batch predict's output.
  113. BatchPredictOutputInfo output_info = 2;
  114. }
  115. // Details of ExportModel operation.
  116. message ExportModelOperationMetadata {
  117. // Further describes the output of model export.
  118. // Supplements
  119. // [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig].
  120. message ExportModelOutputInfo {
  121. // The full path of the Google Cloud Storage directory created, into which
  122. // the model will be exported.
  123. string gcs_output_directory = 1;
  124. }
  125. // Output only. Information further describing the output of this model
  126. // export.
  127. ExportModelOutputInfo output_info = 2;
  128. }