xref: /aosp_15_r20/external/googleapis/google/cloud/visionai/v1/common.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1*d5c09012SAndroid Build Coastguard Worker// Copyright 2023 Google LLC
2*d5c09012SAndroid Build Coastguard Worker//
3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*d5c09012SAndroid Build Coastguard Worker//
7*d5c09012SAndroid Build Coastguard Worker//     http://www.apache.org/licenses/LICENSE-2.0
8*d5c09012SAndroid Build Coastguard Worker//
9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*d5c09012SAndroid Build Coastguard Worker// limitations under the License.
14*d5c09012SAndroid Build Coastguard Worker
15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3";
16*d5c09012SAndroid Build Coastguard Worker
17*d5c09012SAndroid Build Coastguard Workerpackage google.cloud.visionai.v1;
18*d5c09012SAndroid Build Coastguard Worker
19*d5c09012SAndroid Build Coastguard Workerimport "google/api/field_behavior.proto";
20*d5c09012SAndroid Build Coastguard Workerimport "google/api/resource.proto";
21*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/timestamp.proto";
22*d5c09012SAndroid Build Coastguard Worker
23*d5c09012SAndroid Build Coastguard Workeroption csharp_namespace = "Google.Cloud.VisionAI.V1";
24*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/visionai/apiv1/visionaipb;visionaipb";
25*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true;
26*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "CommonProto";
27*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.visionai.v1";
28*d5c09012SAndroid Build Coastguard Workeroption php_namespace = "Google\\Cloud\\VisionAI\\V1";
29*d5c09012SAndroid Build Coastguard Workeroption ruby_package = "Google::Cloud::VisionAI::V1";
30*d5c09012SAndroid Build Coastguard Worker
31*d5c09012SAndroid Build Coastguard Worker// Message describing the Cluster object.
32*d5c09012SAndroid Build Coastguard Workermessage Cluster {
33*d5c09012SAndroid Build Coastguard Worker  option (google.api.resource) = {
34*d5c09012SAndroid Build Coastguard Worker    type: "visionai.googleapis.com/Cluster"
35*d5c09012SAndroid Build Coastguard Worker    pattern: "projects/{project}/locations/{location}/clusters/{cluster}"
36*d5c09012SAndroid Build Coastguard Worker  };
37*d5c09012SAndroid Build Coastguard Worker
38*d5c09012SAndroid Build Coastguard Worker  // The current state of the cluster.
39*d5c09012SAndroid Build Coastguard Worker  enum State {
40*d5c09012SAndroid Build Coastguard Worker    // Not set.
41*d5c09012SAndroid Build Coastguard Worker    STATE_UNSPECIFIED = 0;
42*d5c09012SAndroid Build Coastguard Worker
43*d5c09012SAndroid Build Coastguard Worker    // The PROVISIONING state indicates the cluster is being created.
44*d5c09012SAndroid Build Coastguard Worker    PROVISIONING = 1;
45*d5c09012SAndroid Build Coastguard Worker
46*d5c09012SAndroid Build Coastguard Worker    // The RUNNING state indicates the cluster has been created and is fully
47*d5c09012SAndroid Build Coastguard Worker    // usable.
48*d5c09012SAndroid Build Coastguard Worker    RUNNING = 2;
49*d5c09012SAndroid Build Coastguard Worker
50*d5c09012SAndroid Build Coastguard Worker    // The STOPPING state indicates the cluster is being deleted.
51*d5c09012SAndroid Build Coastguard Worker    STOPPING = 3;
52*d5c09012SAndroid Build Coastguard Worker
53*d5c09012SAndroid Build Coastguard Worker    // The ERROR state indicates the cluster is unusable. It will be
54*d5c09012SAndroid Build Coastguard Worker    // automatically deleted.
55*d5c09012SAndroid Build Coastguard Worker    ERROR = 4;
56*d5c09012SAndroid Build Coastguard Worker  }
57*d5c09012SAndroid Build Coastguard Worker
58*d5c09012SAndroid Build Coastguard Worker  // Output only. Name of the resource.
59*d5c09012SAndroid Build Coastguard Worker  string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
60*d5c09012SAndroid Build Coastguard Worker
61*d5c09012SAndroid Build Coastguard Worker  // Output only. The create timestamp.
62*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp create_time = 2
63*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
64*d5c09012SAndroid Build Coastguard Worker
65*d5c09012SAndroid Build Coastguard Worker  // Output only. The update timestamp.
66*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp update_time = 3
67*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
68*d5c09012SAndroid Build Coastguard Worker
69*d5c09012SAndroid Build Coastguard Worker  // Labels as key value pairs
70*d5c09012SAndroid Build Coastguard Worker  map<string, string> labels = 4;
71*d5c09012SAndroid Build Coastguard Worker
72*d5c09012SAndroid Build Coastguard Worker  // Annotations to allow clients to store small amounts of arbitrary data.
73*d5c09012SAndroid Build Coastguard Worker  map<string, string> annotations = 5;
74*d5c09012SAndroid Build Coastguard Worker
75*d5c09012SAndroid Build Coastguard Worker  // Output only. The DNS name of the data plane service
76*d5c09012SAndroid Build Coastguard Worker  string dataplane_service_endpoint = 6
77*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
78*d5c09012SAndroid Build Coastguard Worker
79*d5c09012SAndroid Build Coastguard Worker  // Output only. The current state of the cluster.
80*d5c09012SAndroid Build Coastguard Worker  State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
81*d5c09012SAndroid Build Coastguard Worker
82*d5c09012SAndroid Build Coastguard Worker  // Output only. The private service connection service target name.
83*d5c09012SAndroid Build Coastguard Worker  string psc_target = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
84*d5c09012SAndroid Build Coastguard Worker}
85*d5c09012SAndroid Build Coastguard Worker
86*d5c09012SAndroid Build Coastguard Worker// Represents the metadata of the long-running operation.
87*d5c09012SAndroid Build Coastguard Workermessage OperationMetadata {
88*d5c09012SAndroid Build Coastguard Worker  // Output only. The time the operation was created.
89*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp create_time = 1
90*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
91*d5c09012SAndroid Build Coastguard Worker
92*d5c09012SAndroid Build Coastguard Worker  // Output only. The time the operation finished running.
93*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp end_time = 2
94*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
95*d5c09012SAndroid Build Coastguard Worker
96*d5c09012SAndroid Build Coastguard Worker  // Output only. Server-defined resource path for the target of the operation.
97*d5c09012SAndroid Build Coastguard Worker  string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
98*d5c09012SAndroid Build Coastguard Worker
99*d5c09012SAndroid Build Coastguard Worker  // Output only. Name of the verb executed by the operation.
100*d5c09012SAndroid Build Coastguard Worker  string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
101*d5c09012SAndroid Build Coastguard Worker
102*d5c09012SAndroid Build Coastguard Worker  // Output only. Human-readable status of the operation, if any.
103*d5c09012SAndroid Build Coastguard Worker  string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
104*d5c09012SAndroid Build Coastguard Worker
105*d5c09012SAndroid Build Coastguard Worker  // Output only. Identifies whether the user has requested cancellation
106*d5c09012SAndroid Build Coastguard Worker  // of the operation. Operations that have successfully been cancelled
107*d5c09012SAndroid Build Coastguard Worker  // have [Operation.error][] value with a
108*d5c09012SAndroid Build Coastguard Worker  // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
109*d5c09012SAndroid Build Coastguard Worker  // `Code.CANCELLED`.
110*d5c09012SAndroid Build Coastguard Worker  bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
111*d5c09012SAndroid Build Coastguard Worker
112*d5c09012SAndroid Build Coastguard Worker  // Output only. API version used to start the operation.
113*d5c09012SAndroid Build Coastguard Worker  string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
114*d5c09012SAndroid Build Coastguard Worker}
115*d5c09012SAndroid Build Coastguard Worker
116*d5c09012SAndroid Build Coastguard Worker// The Google Cloud Storage location for the input content.
117*d5c09012SAndroid Build Coastguard Workermessage GcsSource {
118*d5c09012SAndroid Build Coastguard Worker  // Required. References to a Google Cloud Storage paths.
119*d5c09012SAndroid Build Coastguard Worker  repeated string uris = 1 [(google.api.field_behavior) = REQUIRED];
120*d5c09012SAndroid Build Coastguard Worker}
121