operations.proto 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. // Copyright 2020 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.v1beta1;
  16. import "google/cloud/automl/v1beta1/io.proto";
  17. import "google/cloud/automl/v1beta1/model.proto";
  18. import "google/cloud/automl/v1beta1/model_evaluation.proto";
  19. import "google/protobuf/empty.proto";
  20. import "google/protobuf/timestamp.proto";
  21. import "google/rpc/status.proto";
  22. import "google/api/annotations.proto";
  23. option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl";
  24. option java_multiple_files = true;
  25. option java_package = "com.google.cloud.automl.v1beta1";
  26. option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
  27. option ruby_package = "Google::Cloud::AutoML::V1beta1";
  28. // Metadata used across all long running operations returned by AutoML API.
  29. message OperationMetadata {
  30. // Ouptut only. Details of specific operation. Even if this field is empty,
  31. // the presence allows to distinguish different types of operations.
  32. oneof details {
  33. // Details of a Delete operation.
  34. DeleteOperationMetadata delete_details = 8;
  35. // Details of a DeployModel operation.
  36. DeployModelOperationMetadata deploy_model_details = 24;
  37. // Details of an UndeployModel operation.
  38. UndeployModelOperationMetadata undeploy_model_details = 25;
  39. // Details of CreateModel operation.
  40. CreateModelOperationMetadata create_model_details = 10;
  41. // Details of ImportData operation.
  42. ImportDataOperationMetadata import_data_details = 15;
  43. // Details of BatchPredict operation.
  44. BatchPredictOperationMetadata batch_predict_details = 16;
  45. // Details of ExportData operation.
  46. ExportDataOperationMetadata export_data_details = 21;
  47. // Details of ExportModel operation.
  48. ExportModelOperationMetadata export_model_details = 22;
  49. // Details of ExportEvaluatedExamples operation.
  50. ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26;
  51. }
  52. // Output only. Progress of operation. Range: [0, 100].
  53. // Not used currently.
  54. int32 progress_percent = 13;
  55. // Output only. Partial failures encountered.
  56. // E.g. single files that couldn't be read.
  57. // This field should never exceed 20 entries.
  58. // Status details field will contain standard GCP error details.
  59. repeated google.rpc.Status partial_failures = 2;
  60. // Output only. Time when the operation was created.
  61. google.protobuf.Timestamp create_time = 3;
  62. // Output only. Time when the operation was updated for the last time.
  63. google.protobuf.Timestamp update_time = 4;
  64. }
  65. // Details of operations that perform deletes of any entities.
  66. message DeleteOperationMetadata {
  67. }
  68. // Details of DeployModel operation.
  69. message DeployModelOperationMetadata {
  70. }
  71. // Details of UndeployModel operation.
  72. message UndeployModelOperationMetadata {
  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.v1beta1.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. // The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
  92. // format, into which the exported data is written.
  93. string bigquery_output_dataset = 2;
  94. }
  95. }
  96. // Output only. Information further describing this export data's output.
  97. ExportDataOutputInfo output_info = 1;
  98. }
  99. // Details of BatchPredict operation.
  100. message BatchPredictOperationMetadata {
  101. // Further describes this batch predict's output.
  102. // Supplements
  103. //
  104. // [BatchPredictOutputConfig][google.cloud.automl.v1beta1.BatchPredictOutputConfig].
  105. message BatchPredictOutputInfo {
  106. // The output location into which prediction output is written.
  107. oneof output_location {
  108. // The full path of the Google Cloud Storage directory created, into which
  109. // the prediction output is written.
  110. string gcs_output_directory = 1;
  111. // The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
  112. // format, into which the prediction output is written.
  113. string bigquery_output_dataset = 2;
  114. }
  115. }
  116. // Output only. The input config that was given upon starting this
  117. // batch predict operation.
  118. BatchPredictInputConfig input_config = 1;
  119. // Output only. Information further describing this batch predict's output.
  120. BatchPredictOutputInfo output_info = 2;
  121. }
  122. // Details of ExportModel operation.
  123. message ExportModelOperationMetadata {
  124. // Further describes the output of model export.
  125. // Supplements
  126. //
  127. // [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig].
  128. message ExportModelOutputInfo {
  129. // The full path of the Google Cloud Storage directory created, into which
  130. // the model will be exported.
  131. string gcs_output_directory = 1;
  132. }
  133. // Output only. Information further describing the output of this model
  134. // export.
  135. ExportModelOutputInfo output_info = 2;
  136. }
  137. // Details of EvaluatedExamples operation.
  138. message ExportEvaluatedExamplesOperationMetadata {
  139. // Further describes the output of the evaluated examples export.
  140. // Supplements
  141. //
  142. // [ExportEvaluatedExamplesOutputConfig][google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig].
  143. message ExportEvaluatedExamplesOutputInfo {
  144. // The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
  145. // format, into which the output of export evaluated examples is written.
  146. string bigquery_output_dataset = 2;
  147. }
  148. // Output only. Information further describing the output of this evaluated
  149. // examples export.
  150. ExportEvaluatedExamplesOutputInfo output_info = 2;
  151. }