operations.proto 6.3 KB

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