operation_metadata.proto 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // Copyright 2017 Google Inc.
  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.ml.v1;
  16. import "google/api/annotations.proto";
  17. import "google/cloud/ml/v1/model_service.proto";
  18. import "google/protobuf/timestamp.proto";
  19. option go_package = "google.golang.org/genproto/googleapis/cloud/ml/v1;ml";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "OperationMetadataProto";
  22. option java_package = "com.google.cloud.ml.api.v1";
  23. // Copyright 2017 Google Inc. All Rights Reserved.
  24. //
  25. // Proto file for the Google Cloud Machine Learning Engine.
  26. // Describes the metadata for longrunning operations.
  27. // Represents the metadata of the long-running operation.
  28. message OperationMetadata {
  29. // The operation type.
  30. enum OperationType {
  31. // Unspecified operation type.
  32. OPERATION_TYPE_UNSPECIFIED = 0;
  33. // An operation to create a new version.
  34. CREATE_VERSION = 1;
  35. // An operation to delete an existing version.
  36. DELETE_VERSION = 2;
  37. // An operation to delete an existing model.
  38. DELETE_MODEL = 3;
  39. }
  40. // The time the operation was submitted.
  41. google.protobuf.Timestamp create_time = 1;
  42. // The time operation processing started.
  43. google.protobuf.Timestamp start_time = 2;
  44. // The time operation processing completed.
  45. google.protobuf.Timestamp end_time = 3;
  46. // Indicates whether a request to cancel this operation has been made.
  47. bool is_cancellation_requested = 4;
  48. // The operation type.
  49. OperationType operation_type = 5;
  50. // Contains the name of the model associated with the operation.
  51. string model_name = 6;
  52. // Contains the version associated with the operation.
  53. Version version = 7;
  54. }