common.proto 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. // Copyright 2022 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.visionai.v1alpha1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/timestamp.proto";
  19. option csharp_namespace = "Google.Cloud.VisionAI.V1Alpha1";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/visionai/v1alpha1;visionai";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "CommonProto";
  23. option java_package = "com.google.cloud.visionai.v1alpha1";
  24. option php_namespace = "Google\\Cloud\\VisionAI\\V1alpha1";
  25. option ruby_package = "Google::Cloud::VisionAI::V1alpha1";
  26. // Message describing the Cluster object.
  27. message Cluster {
  28. option (google.api.resource) = {
  29. type: "visionai.googleapis.com/Cluster"
  30. pattern: "projects/{project}/locations/{location}/clusters/{cluster}"
  31. };
  32. // The current state of the cluster.
  33. enum State {
  34. // Not set.
  35. STATE_UNSPECIFIED = 0;
  36. // The PROVISIONING state indicates the cluster is being created.
  37. PROVISIONING = 1;
  38. // The RUNNING state indicates the cluster has been created and is fully
  39. // usable.
  40. RUNNING = 2;
  41. // The STOPPING state indicates the cluster is being deleted.
  42. STOPPING = 3;
  43. // The ERROR state indicates the cluster is unusable. It will be
  44. // automatically deleted.
  45. ERROR = 4;
  46. }
  47. // Output only. Name of the resource.
  48. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  49. // Output only. The create timestamp.
  50. google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  51. // Output only. The update timestamp.
  52. google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  53. // Labels as key value pairs
  54. map<string, string> labels = 4;
  55. // Annotations to allow clients to store small amounts of arbitrary data.
  56. map<string, string> annotations = 5;
  57. // Output only. The DNS name of the data plane service
  58. string dataplane_service_endpoint = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  59. // Output only. The current state of the cluster.
  60. State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  61. // Output only. The private service connection service target name.
  62. string psc_target = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  63. }
  64. // Represents the metadata of the long-running operation.
  65. message OperationMetadata {
  66. // Output only. The time the operation was created.
  67. google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  68. // Output only. The time the operation finished running.
  69. google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  70. // Output only. Server-defined resource path for the target of the operation.
  71. string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  72. // Output only. Name of the verb executed by the operation.
  73. string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  74. // Output only. Human-readable status of the operation, if any.
  75. string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  76. // Output only. Identifies whether the user has requested cancellation
  77. // of the operation. Operations that have successfully been cancelled
  78. // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
  79. // corresponding to `Code.CANCELLED`.
  80. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  81. // Output only. API version used to start the operation.
  82. string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  83. }
  84. // The Google Cloud Storage location for the input content.
  85. message GcsSource {
  86. // Required. References to a Google Cloud Storage paths.
  87. repeated string uris = 1 [(google.api.field_behavior) = REQUIRED];
  88. }