xref: /aosp_15_r20/external/googleapis/google/cloud/alloydb/v1beta/service.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.alloydb.v1beta;
18*d5c09012SAndroid Build Coastguard Worker
19*d5c09012SAndroid Build Coastguard Workerimport "google/api/annotations.proto";
20*d5c09012SAndroid Build Coastguard Workerimport "google/api/client.proto";
21*d5c09012SAndroid Build Coastguard Workerimport "google/api/field_behavior.proto";
22*d5c09012SAndroid Build Coastguard Workerimport "google/api/resource.proto";
23*d5c09012SAndroid Build Coastguard Workerimport "google/cloud/alloydb/v1beta/resources.proto";
24*d5c09012SAndroid Build Coastguard Workerimport "google/longrunning/operations.proto";
25*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/duration.proto";
26*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/empty.proto";
27*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/field_mask.proto";
28*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/timestamp.proto";
29*d5c09012SAndroid Build Coastguard Workerimport "google/rpc/status.proto";
30*d5c09012SAndroid Build Coastguard Worker
31*d5c09012SAndroid Build Coastguard Workeroption csharp_namespace = "Google.Cloud.AlloyDb.V1Beta";
32*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/alloydb/apiv1beta/alloydbpb;alloydbpb";
33*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true;
34*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "ServiceProto";
35*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.alloydb.v1beta";
36*d5c09012SAndroid Build Coastguard Workeroption php_namespace = "Google\\Cloud\\AlloyDb\\V1beta";
37*d5c09012SAndroid Build Coastguard Workeroption ruby_package = "Google::Cloud::AlloyDB::V1beta";
38*d5c09012SAndroid Build Coastguard Worker
39*d5c09012SAndroid Build Coastguard Worker// Service describing handlers for resources
40*d5c09012SAndroid Build Coastguard Workerservice AlloyDBAdmin {
41*d5c09012SAndroid Build Coastguard Worker  option (google.api.default_host) = "alloydb.googleapis.com";
42*d5c09012SAndroid Build Coastguard Worker  option (google.api.oauth_scopes) =
43*d5c09012SAndroid Build Coastguard Worker      "https://www.googleapis.com/auth/cloud-platform";
44*d5c09012SAndroid Build Coastguard Worker
45*d5c09012SAndroid Build Coastguard Worker  // Lists Clusters in a given project and location.
46*d5c09012SAndroid Build Coastguard Worker  rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) {
47*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
48*d5c09012SAndroid Build Coastguard Worker      get: "/v1beta/{parent=projects/*/locations/*}/clusters"
49*d5c09012SAndroid Build Coastguard Worker    };
50*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent";
51*d5c09012SAndroid Build Coastguard Worker  }
52*d5c09012SAndroid Build Coastguard Worker
53*d5c09012SAndroid Build Coastguard Worker  // Gets details of a single Cluster.
54*d5c09012SAndroid Build Coastguard Worker  rpc GetCluster(GetClusterRequest) returns (Cluster) {
55*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
56*d5c09012SAndroid Build Coastguard Worker      get: "/v1beta/{name=projects/*/locations/*/clusters/*}"
57*d5c09012SAndroid Build Coastguard Worker    };
58*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
59*d5c09012SAndroid Build Coastguard Worker  }
60*d5c09012SAndroid Build Coastguard Worker
61*d5c09012SAndroid Build Coastguard Worker  // Creates a new Cluster in a given project and location.
62*d5c09012SAndroid Build Coastguard Worker  rpc CreateCluster(CreateClusterRequest)
63*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
64*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
65*d5c09012SAndroid Build Coastguard Worker      post: "/v1beta/{parent=projects/*/locations/*}/clusters"
66*d5c09012SAndroid Build Coastguard Worker      body: "cluster"
67*d5c09012SAndroid Build Coastguard Worker    };
68*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent,cluster,cluster_id";
69*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
70*d5c09012SAndroid Build Coastguard Worker      response_type: "Cluster"
71*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
72*d5c09012SAndroid Build Coastguard Worker    };
73*d5c09012SAndroid Build Coastguard Worker  }
74*d5c09012SAndroid Build Coastguard Worker
75*d5c09012SAndroid Build Coastguard Worker  // Updates the parameters of a single Cluster.
76*d5c09012SAndroid Build Coastguard Worker  rpc UpdateCluster(UpdateClusterRequest)
77*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
78*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
79*d5c09012SAndroid Build Coastguard Worker      patch: "/v1beta/{cluster.name=projects/*/locations/*/clusters/*}"
80*d5c09012SAndroid Build Coastguard Worker      body: "cluster"
81*d5c09012SAndroid Build Coastguard Worker    };
82*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "cluster,update_mask";
83*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
84*d5c09012SAndroid Build Coastguard Worker      response_type: "Cluster"
85*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
86*d5c09012SAndroid Build Coastguard Worker    };
87*d5c09012SAndroid Build Coastguard Worker  }
88*d5c09012SAndroid Build Coastguard Worker
89*d5c09012SAndroid Build Coastguard Worker  // Deletes a single Cluster.
90*d5c09012SAndroid Build Coastguard Worker  rpc DeleteCluster(DeleteClusterRequest)
91*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
92*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
93*d5c09012SAndroid Build Coastguard Worker      delete: "/v1beta/{name=projects/*/locations/*/clusters/*}"
94*d5c09012SAndroid Build Coastguard Worker    };
95*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
96*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
97*d5c09012SAndroid Build Coastguard Worker      response_type: "google.protobuf.Empty"
98*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
99*d5c09012SAndroid Build Coastguard Worker    };
100*d5c09012SAndroid Build Coastguard Worker  }
101*d5c09012SAndroid Build Coastguard Worker
102*d5c09012SAndroid Build Coastguard Worker  // Promotes a SECONDARY cluster. This turns down replication
103*d5c09012SAndroid Build Coastguard Worker  // from the PRIMARY cluster and promotes a secondary cluster
104*d5c09012SAndroid Build Coastguard Worker  // into its own standalone cluster.
105*d5c09012SAndroid Build Coastguard Worker  // Imperative only.
106*d5c09012SAndroid Build Coastguard Worker  rpc PromoteCluster(PromoteClusterRequest)
107*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
108*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
109*d5c09012SAndroid Build Coastguard Worker      post: "/v1beta/{name=projects/*/locations/*/clusters/*}:promote"
110*d5c09012SAndroid Build Coastguard Worker      body: "*"
111*d5c09012SAndroid Build Coastguard Worker    };
112*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
113*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
114*d5c09012SAndroid Build Coastguard Worker      response_type: "Cluster"
115*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
116*d5c09012SAndroid Build Coastguard Worker    };
117*d5c09012SAndroid Build Coastguard Worker  }
118*d5c09012SAndroid Build Coastguard Worker
119*d5c09012SAndroid Build Coastguard Worker  // Creates a new Cluster in a given project and location, with a volume
120*d5c09012SAndroid Build Coastguard Worker  // restored from the provided source, either a backup ID or a point-in-time
121*d5c09012SAndroid Build Coastguard Worker  // and a source cluster.
122*d5c09012SAndroid Build Coastguard Worker  rpc RestoreCluster(RestoreClusterRequest)
123*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
124*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
125*d5c09012SAndroid Build Coastguard Worker      post: "/v1beta/{parent=projects/*/locations/*}/clusters:restore"
126*d5c09012SAndroid Build Coastguard Worker      body: "*"
127*d5c09012SAndroid Build Coastguard Worker    };
128*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
129*d5c09012SAndroid Build Coastguard Worker      response_type: "Cluster"
130*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
131*d5c09012SAndroid Build Coastguard Worker    };
132*d5c09012SAndroid Build Coastguard Worker  }
133*d5c09012SAndroid Build Coastguard Worker
134*d5c09012SAndroid Build Coastguard Worker  // Creates a cluster of type SECONDARY in the given location using
135*d5c09012SAndroid Build Coastguard Worker  // the primary cluster as the source.
136*d5c09012SAndroid Build Coastguard Worker  rpc CreateSecondaryCluster(CreateSecondaryClusterRequest)
137*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
138*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
139*d5c09012SAndroid Build Coastguard Worker      post: "/v1beta/{parent=projects/*/locations/*}/clusters:createsecondary"
140*d5c09012SAndroid Build Coastguard Worker      body: "cluster"
141*d5c09012SAndroid Build Coastguard Worker    };
142*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent,cluster,cluster_id";
143*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
144*d5c09012SAndroid Build Coastguard Worker      response_type: "Cluster"
145*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
146*d5c09012SAndroid Build Coastguard Worker    };
147*d5c09012SAndroid Build Coastguard Worker  }
148*d5c09012SAndroid Build Coastguard Worker
149*d5c09012SAndroid Build Coastguard Worker  // Lists Instances in a given project and location.
150*d5c09012SAndroid Build Coastguard Worker  rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) {
151*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
152*d5c09012SAndroid Build Coastguard Worker      get: "/v1beta/{parent=projects/*/locations/*/clusters/*}/instances"
153*d5c09012SAndroid Build Coastguard Worker    };
154*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent";
155*d5c09012SAndroid Build Coastguard Worker  }
156*d5c09012SAndroid Build Coastguard Worker
157*d5c09012SAndroid Build Coastguard Worker  // Gets details of a single Instance.
158*d5c09012SAndroid Build Coastguard Worker  rpc GetInstance(GetInstanceRequest) returns (Instance) {
159*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
160*d5c09012SAndroid Build Coastguard Worker      get: "/v1beta/{name=projects/*/locations/*/clusters/*/instances/*}"
161*d5c09012SAndroid Build Coastguard Worker    };
162*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
163*d5c09012SAndroid Build Coastguard Worker  }
164*d5c09012SAndroid Build Coastguard Worker
165*d5c09012SAndroid Build Coastguard Worker  // Creates a new Instance in a given project and location.
166*d5c09012SAndroid Build Coastguard Worker  rpc CreateInstance(CreateInstanceRequest)
167*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
168*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
169*d5c09012SAndroid Build Coastguard Worker      post: "/v1beta/{parent=projects/*/locations/*/clusters/*}/instances"
170*d5c09012SAndroid Build Coastguard Worker      body: "instance"
171*d5c09012SAndroid Build Coastguard Worker    };
172*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent,instance,instance_id";
173*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
174*d5c09012SAndroid Build Coastguard Worker      response_type: "Instance"
175*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
176*d5c09012SAndroid Build Coastguard Worker    };
177*d5c09012SAndroid Build Coastguard Worker  }
178*d5c09012SAndroid Build Coastguard Worker
179*d5c09012SAndroid Build Coastguard Worker  // Creates a new SECONDARY Instance in a given project and location.
180*d5c09012SAndroid Build Coastguard Worker  rpc CreateSecondaryInstance(CreateSecondaryInstanceRequest)
181*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
182*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
183*d5c09012SAndroid Build Coastguard Worker      post: "/v1beta/{parent=projects/*/locations/*/clusters/*}/instances:createsecondary"
184*d5c09012SAndroid Build Coastguard Worker      body: "instance"
185*d5c09012SAndroid Build Coastguard Worker    };
186*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent,instance,instance_id";
187*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
188*d5c09012SAndroid Build Coastguard Worker      response_type: "Instance"
189*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
190*d5c09012SAndroid Build Coastguard Worker    };
191*d5c09012SAndroid Build Coastguard Worker  }
192*d5c09012SAndroid Build Coastguard Worker
193*d5c09012SAndroid Build Coastguard Worker  // Creates new instances under the given project, location and cluster.
194*d5c09012SAndroid Build Coastguard Worker  // There can be only one primary instance in a cluster. If the primary
195*d5c09012SAndroid Build Coastguard Worker  // instance exists in the cluster as well as this request, then API will
196*d5c09012SAndroid Build Coastguard Worker  // throw an error.
197*d5c09012SAndroid Build Coastguard Worker  // The primary instance should exist before any read pool instance is
198*d5c09012SAndroid Build Coastguard Worker  // created. If the primary instance is a part of the request payload, then
199*d5c09012SAndroid Build Coastguard Worker  // the API will take care of creating instances in the correct order.
200*d5c09012SAndroid Build Coastguard Worker  // This method is here to support Google-internal use cases, and is not meant
201*d5c09012SAndroid Build Coastguard Worker  // for external customers to consume. Please do not start relying on it; its
202*d5c09012SAndroid Build Coastguard Worker  // behavior is subject to change without notice.
203*d5c09012SAndroid Build Coastguard Worker  rpc BatchCreateInstances(BatchCreateInstancesRequest)
204*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
205*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
206*d5c09012SAndroid Build Coastguard Worker      post: "/v1beta/{parent=projects/*/locations/*/clusters/*}/instances:batchCreate"
207*d5c09012SAndroid Build Coastguard Worker      body: "requests"
208*d5c09012SAndroid Build Coastguard Worker    };
209*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
210*d5c09012SAndroid Build Coastguard Worker      response_type: "BatchCreateInstancesResponse"
211*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
212*d5c09012SAndroid Build Coastguard Worker    };
213*d5c09012SAndroid Build Coastguard Worker  }
214*d5c09012SAndroid Build Coastguard Worker
215*d5c09012SAndroid Build Coastguard Worker  // Updates the parameters of a single Instance.
216*d5c09012SAndroid Build Coastguard Worker  rpc UpdateInstance(UpdateInstanceRequest)
217*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
218*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
219*d5c09012SAndroid Build Coastguard Worker      patch: "/v1beta/{instance.name=projects/*/locations/*/clusters/*/instances/*}"
220*d5c09012SAndroid Build Coastguard Worker      body: "instance"
221*d5c09012SAndroid Build Coastguard Worker    };
222*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "instance,update_mask";
223*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
224*d5c09012SAndroid Build Coastguard Worker      response_type: "Instance"
225*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
226*d5c09012SAndroid Build Coastguard Worker    };
227*d5c09012SAndroid Build Coastguard Worker  }
228*d5c09012SAndroid Build Coastguard Worker
229*d5c09012SAndroid Build Coastguard Worker  // Deletes a single Instance.
230*d5c09012SAndroid Build Coastguard Worker  rpc DeleteInstance(DeleteInstanceRequest)
231*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
232*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
233*d5c09012SAndroid Build Coastguard Worker      delete: "/v1beta/{name=projects/*/locations/*/clusters/*/instances/*}"
234*d5c09012SAndroid Build Coastguard Worker    };
235*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
236*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
237*d5c09012SAndroid Build Coastguard Worker      response_type: "google.protobuf.Empty"
238*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
239*d5c09012SAndroid Build Coastguard Worker    };
240*d5c09012SAndroid Build Coastguard Worker  }
241*d5c09012SAndroid Build Coastguard Worker
242*d5c09012SAndroid Build Coastguard Worker  // Forces a Failover for a highly available instance.
243*d5c09012SAndroid Build Coastguard Worker  // Failover promotes the HA standby instance as the new primary.
244*d5c09012SAndroid Build Coastguard Worker  // Imperative only.
245*d5c09012SAndroid Build Coastguard Worker  rpc FailoverInstance(FailoverInstanceRequest)
246*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
247*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
248*d5c09012SAndroid Build Coastguard Worker      post: "/v1beta/{name=projects/*/locations/*/clusters/*/instances/*}:failover"
249*d5c09012SAndroid Build Coastguard Worker      body: "*"
250*d5c09012SAndroid Build Coastguard Worker    };
251*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
252*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
253*d5c09012SAndroid Build Coastguard Worker      response_type: "Instance"
254*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
255*d5c09012SAndroid Build Coastguard Worker    };
256*d5c09012SAndroid Build Coastguard Worker  }
257*d5c09012SAndroid Build Coastguard Worker
258*d5c09012SAndroid Build Coastguard Worker  // Injects fault in an instance.
259*d5c09012SAndroid Build Coastguard Worker  // Imperative only.
260*d5c09012SAndroid Build Coastguard Worker  rpc InjectFault(InjectFaultRequest) returns (google.longrunning.Operation) {
261*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
262*d5c09012SAndroid Build Coastguard Worker      post: "/v1beta/{name=projects/*/locations/*/clusters/*/instances/*}:injectFault"
263*d5c09012SAndroid Build Coastguard Worker      body: "*"
264*d5c09012SAndroid Build Coastguard Worker    };
265*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "fault_type,name";
266*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
267*d5c09012SAndroid Build Coastguard Worker      response_type: "Instance"
268*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
269*d5c09012SAndroid Build Coastguard Worker    };
270*d5c09012SAndroid Build Coastguard Worker  }
271*d5c09012SAndroid Build Coastguard Worker
272*d5c09012SAndroid Build Coastguard Worker  // Restart an Instance in a cluster.
273*d5c09012SAndroid Build Coastguard Worker  // Imperative only.
274*d5c09012SAndroid Build Coastguard Worker  rpc RestartInstance(RestartInstanceRequest)
275*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
276*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
277*d5c09012SAndroid Build Coastguard Worker      post: "/v1beta/{name=projects/*/locations/*/clusters/*/instances/*}:restart"
278*d5c09012SAndroid Build Coastguard Worker      body: "*"
279*d5c09012SAndroid Build Coastguard Worker    };
280*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
281*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
282*d5c09012SAndroid Build Coastguard Worker      response_type: "Instance"
283*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
284*d5c09012SAndroid Build Coastguard Worker    };
285*d5c09012SAndroid Build Coastguard Worker  }
286*d5c09012SAndroid Build Coastguard Worker
287*d5c09012SAndroid Build Coastguard Worker  // Lists Backups in a given project and location.
288*d5c09012SAndroid Build Coastguard Worker  rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) {
289*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
290*d5c09012SAndroid Build Coastguard Worker      get: "/v1beta/{parent=projects/*/locations/*}/backups"
291*d5c09012SAndroid Build Coastguard Worker    };
292*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent";
293*d5c09012SAndroid Build Coastguard Worker  }
294*d5c09012SAndroid Build Coastguard Worker
295*d5c09012SAndroid Build Coastguard Worker  // Gets details of a single Backup.
296*d5c09012SAndroid Build Coastguard Worker  rpc GetBackup(GetBackupRequest) returns (Backup) {
297*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
298*d5c09012SAndroid Build Coastguard Worker      get: "/v1beta/{name=projects/*/locations/*/backups/*}"
299*d5c09012SAndroid Build Coastguard Worker    };
300*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
301*d5c09012SAndroid Build Coastguard Worker  }
302*d5c09012SAndroid Build Coastguard Worker
303*d5c09012SAndroid Build Coastguard Worker  // Creates a new Backup in a given project and location.
304*d5c09012SAndroid Build Coastguard Worker  rpc CreateBackup(CreateBackupRequest) returns (google.longrunning.Operation) {
305*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
306*d5c09012SAndroid Build Coastguard Worker      post: "/v1beta/{parent=projects/*/locations/*}/backups"
307*d5c09012SAndroid Build Coastguard Worker      body: "backup"
308*d5c09012SAndroid Build Coastguard Worker    };
309*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent,backup,backup_id";
310*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
311*d5c09012SAndroid Build Coastguard Worker      response_type: "Backup"
312*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
313*d5c09012SAndroid Build Coastguard Worker    };
314*d5c09012SAndroid Build Coastguard Worker  }
315*d5c09012SAndroid Build Coastguard Worker
316*d5c09012SAndroid Build Coastguard Worker  // Updates the parameters of a single Backup.
317*d5c09012SAndroid Build Coastguard Worker  rpc UpdateBackup(UpdateBackupRequest) returns (google.longrunning.Operation) {
318*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
319*d5c09012SAndroid Build Coastguard Worker      patch: "/v1beta/{backup.name=projects/*/locations/*/backups/*}"
320*d5c09012SAndroid Build Coastguard Worker      body: "backup"
321*d5c09012SAndroid Build Coastguard Worker    };
322*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "backup,update_mask";
323*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
324*d5c09012SAndroid Build Coastguard Worker      response_type: "Backup"
325*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
326*d5c09012SAndroid Build Coastguard Worker    };
327*d5c09012SAndroid Build Coastguard Worker  }
328*d5c09012SAndroid Build Coastguard Worker
329*d5c09012SAndroid Build Coastguard Worker  // Deletes a single Backup.
330*d5c09012SAndroid Build Coastguard Worker  rpc DeleteBackup(DeleteBackupRequest) returns (google.longrunning.Operation) {
331*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
332*d5c09012SAndroid Build Coastguard Worker      delete: "/v1beta/{name=projects/*/locations/*/backups/*}"
333*d5c09012SAndroid Build Coastguard Worker    };
334*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
335*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
336*d5c09012SAndroid Build Coastguard Worker      response_type: "google.protobuf.Empty"
337*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
338*d5c09012SAndroid Build Coastguard Worker    };
339*d5c09012SAndroid Build Coastguard Worker  }
340*d5c09012SAndroid Build Coastguard Worker
341*d5c09012SAndroid Build Coastguard Worker  // Lists SupportedDatabaseFlags for a given project and location.
342*d5c09012SAndroid Build Coastguard Worker  rpc ListSupportedDatabaseFlags(ListSupportedDatabaseFlagsRequest)
343*d5c09012SAndroid Build Coastguard Worker      returns (ListSupportedDatabaseFlagsResponse) {
344*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
345*d5c09012SAndroid Build Coastguard Worker      get: "/v1beta/{parent=projects/*/locations/*}/supportedDatabaseFlags"
346*d5c09012SAndroid Build Coastguard Worker    };
347*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent";
348*d5c09012SAndroid Build Coastguard Worker  }
349*d5c09012SAndroid Build Coastguard Worker
350*d5c09012SAndroid Build Coastguard Worker  // Generate a client certificate signed by a Cluster CA.
351*d5c09012SAndroid Build Coastguard Worker  // The sole purpose of this endpoint is to support AlloyDB connectors and the
352*d5c09012SAndroid Build Coastguard Worker  // Auth Proxy client. The endpoint's behavior is subject to change without
353*d5c09012SAndroid Build Coastguard Worker  // notice, so do not rely on its behavior remaining constant. Future changes
354*d5c09012SAndroid Build Coastguard Worker  // will not break AlloyDB connectors or the Auth Proxy client.
355*d5c09012SAndroid Build Coastguard Worker  rpc GenerateClientCertificate(GenerateClientCertificateRequest)
356*d5c09012SAndroid Build Coastguard Worker      returns (GenerateClientCertificateResponse) {
357*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
358*d5c09012SAndroid Build Coastguard Worker      post: "/v1beta/{parent=projects/*/locations/*/clusters/*}:generateClientCertificate"
359*d5c09012SAndroid Build Coastguard Worker      body: "*"
360*d5c09012SAndroid Build Coastguard Worker    };
361*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent";
362*d5c09012SAndroid Build Coastguard Worker  }
363*d5c09012SAndroid Build Coastguard Worker
364*d5c09012SAndroid Build Coastguard Worker  // Get instance metadata used for a connection.
365*d5c09012SAndroid Build Coastguard Worker  rpc GetConnectionInfo(GetConnectionInfoRequest) returns (ConnectionInfo) {
366*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
367*d5c09012SAndroid Build Coastguard Worker      get: "/v1beta/{parent=projects/*/locations/*/clusters/*/instances/*}/connectionInfo"
368*d5c09012SAndroid Build Coastguard Worker    };
369*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent";
370*d5c09012SAndroid Build Coastguard Worker  }
371*d5c09012SAndroid Build Coastguard Worker
372*d5c09012SAndroid Build Coastguard Worker  // Lists Users in a given project and location.
373*d5c09012SAndroid Build Coastguard Worker  rpc ListUsers(ListUsersRequest) returns (ListUsersResponse) {
374*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
375*d5c09012SAndroid Build Coastguard Worker      get: "/v1beta/{parent=projects/*/locations/*/clusters/*}/users"
376*d5c09012SAndroid Build Coastguard Worker    };
377*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent";
378*d5c09012SAndroid Build Coastguard Worker  }
379*d5c09012SAndroid Build Coastguard Worker
380*d5c09012SAndroid Build Coastguard Worker  // Gets details of a single User.
381*d5c09012SAndroid Build Coastguard Worker  rpc GetUser(GetUserRequest) returns (User) {
382*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
383*d5c09012SAndroid Build Coastguard Worker      get: "/v1beta/{name=projects/*/locations/*/clusters/*/users/*}"
384*d5c09012SAndroid Build Coastguard Worker    };
385*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
386*d5c09012SAndroid Build Coastguard Worker  }
387*d5c09012SAndroid Build Coastguard Worker
388*d5c09012SAndroid Build Coastguard Worker  // Creates a new User in a given project, location, and cluster.
389*d5c09012SAndroid Build Coastguard Worker  rpc CreateUser(CreateUserRequest) returns (User) {
390*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
391*d5c09012SAndroid Build Coastguard Worker      post: "/v1beta/{parent=projects/*/locations/*/clusters/*}/users"
392*d5c09012SAndroid Build Coastguard Worker      body: "user"
393*d5c09012SAndroid Build Coastguard Worker    };
394*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent,user,user_id";
395*d5c09012SAndroid Build Coastguard Worker  }
396*d5c09012SAndroid Build Coastguard Worker
397*d5c09012SAndroid Build Coastguard Worker  // Updates the parameters of a single User.
398*d5c09012SAndroid Build Coastguard Worker  rpc UpdateUser(UpdateUserRequest) returns (User) {
399*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
400*d5c09012SAndroid Build Coastguard Worker      patch: "/v1beta/{user.name=projects/*/locations/*/clusters/*/users/*}"
401*d5c09012SAndroid Build Coastguard Worker      body: "user"
402*d5c09012SAndroid Build Coastguard Worker    };
403*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "user,update_mask";
404*d5c09012SAndroid Build Coastguard Worker  }
405*d5c09012SAndroid Build Coastguard Worker
406*d5c09012SAndroid Build Coastguard Worker  // Deletes a single User.
407*d5c09012SAndroid Build Coastguard Worker  rpc DeleteUser(DeleteUserRequest) returns (google.protobuf.Empty) {
408*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
409*d5c09012SAndroid Build Coastguard Worker      delete: "/v1beta/{name=projects/*/locations/*/clusters/*/users/*}"
410*d5c09012SAndroid Build Coastguard Worker    };
411*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
412*d5c09012SAndroid Build Coastguard Worker  }
413*d5c09012SAndroid Build Coastguard Worker
414*d5c09012SAndroid Build Coastguard Worker  // Lists Databases in a given project and location.
415*d5c09012SAndroid Build Coastguard Worker  rpc ListDatabases(ListDatabasesRequest) returns (ListDatabasesResponse) {
416*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
417*d5c09012SAndroid Build Coastguard Worker      get: "/v1beta/{parent=projects/*/locations/*/clusters/*}/databases"
418*d5c09012SAndroid Build Coastguard Worker    };
419*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent";
420*d5c09012SAndroid Build Coastguard Worker  }
421*d5c09012SAndroid Build Coastguard Worker}
422*d5c09012SAndroid Build Coastguard Worker
423*d5c09012SAndroid Build Coastguard Worker// Message for requesting list of Clusters
424*d5c09012SAndroid Build Coastguard Workermessage ListClustersRequest {
425*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the parent resource. For the required format, see the
426*d5c09012SAndroid Build Coastguard Worker  // comment on the Cluster.name field. Additionally, you can perform an
427*d5c09012SAndroid Build Coastguard Worker  // aggregated list operation by specifying a value with the following format:
428*d5c09012SAndroid Build Coastguard Worker  //  * projects/{project}/locations/-
429*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
430*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
431*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
432*d5c09012SAndroid Build Coastguard Worker      child_type: "alloydb.googleapis.com/Cluster"
433*d5c09012SAndroid Build Coastguard Worker    }
434*d5c09012SAndroid Build Coastguard Worker  ];
435*d5c09012SAndroid Build Coastguard Worker
436*d5c09012SAndroid Build Coastguard Worker  // Optional. Requested page size. Server may return fewer items than
437*d5c09012SAndroid Build Coastguard Worker  // requested. If unspecified, server will pick an appropriate default.
438*d5c09012SAndroid Build Coastguard Worker  int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
439*d5c09012SAndroid Build Coastguard Worker
440*d5c09012SAndroid Build Coastguard Worker  // A token identifying a page of results the server should return.
441*d5c09012SAndroid Build Coastguard Worker  string page_token = 3;
442*d5c09012SAndroid Build Coastguard Worker
443*d5c09012SAndroid Build Coastguard Worker  // Optional. Filtering results
444*d5c09012SAndroid Build Coastguard Worker  string filter = 4 [(google.api.field_behavior) = OPTIONAL];
445*d5c09012SAndroid Build Coastguard Worker
446*d5c09012SAndroid Build Coastguard Worker  // Optional. Hint for how to order the results
447*d5c09012SAndroid Build Coastguard Worker  string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
448*d5c09012SAndroid Build Coastguard Worker}
449*d5c09012SAndroid Build Coastguard Worker
450*d5c09012SAndroid Build Coastguard Worker// Message for response to listing Clusters
451*d5c09012SAndroid Build Coastguard Workermessage ListClustersResponse {
452*d5c09012SAndroid Build Coastguard Worker  // The list of Cluster
453*d5c09012SAndroid Build Coastguard Worker  repeated Cluster clusters = 1;
454*d5c09012SAndroid Build Coastguard Worker
455*d5c09012SAndroid Build Coastguard Worker  // A token identifying a page of results the server should return.
456*d5c09012SAndroid Build Coastguard Worker  string next_page_token = 2;
457*d5c09012SAndroid Build Coastguard Worker
458*d5c09012SAndroid Build Coastguard Worker  // Locations that could not be reached.
459*d5c09012SAndroid Build Coastguard Worker  repeated string unreachable = 3;
460*d5c09012SAndroid Build Coastguard Worker}
461*d5c09012SAndroid Build Coastguard Worker
462*d5c09012SAndroid Build Coastguard Worker// Message for getting a Cluster
463*d5c09012SAndroid Build Coastguard Workermessage GetClusterRequest {
464*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the resource. For the required format, see the
465*d5c09012SAndroid Build Coastguard Worker  // comment on the Cluster.name field.
466*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
467*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
468*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = { type: "alloydb.googleapis.com/Cluster" }
469*d5c09012SAndroid Build Coastguard Worker  ];
470*d5c09012SAndroid Build Coastguard Worker
471*d5c09012SAndroid Build Coastguard Worker  // Optional. The view of the cluster to return. Returns all default fields if
472*d5c09012SAndroid Build Coastguard Worker  // not set.
473*d5c09012SAndroid Build Coastguard Worker  ClusterView view = 2 [(google.api.field_behavior) = OPTIONAL];
474*d5c09012SAndroid Build Coastguard Worker}
475*d5c09012SAndroid Build Coastguard Worker
476*d5c09012SAndroid Build Coastguard Workermessage CreateSecondaryClusterRequest {
477*d5c09012SAndroid Build Coastguard Worker  // Required. The location of the new cluster. For the required
478*d5c09012SAndroid Build Coastguard Worker  // format, see the comment on the Cluster.name field.
479*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
480*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
481*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
482*d5c09012SAndroid Build Coastguard Worker      child_type: "alloydb.googleapis.com/Cluster"
483*d5c09012SAndroid Build Coastguard Worker    }
484*d5c09012SAndroid Build Coastguard Worker  ];
485*d5c09012SAndroid Build Coastguard Worker
486*d5c09012SAndroid Build Coastguard Worker  // Required. ID of the requesting object (the secondary cluster).
487*d5c09012SAndroid Build Coastguard Worker  string cluster_id = 2 [(google.api.field_behavior) = REQUIRED];
488*d5c09012SAndroid Build Coastguard Worker
489*d5c09012SAndroid Build Coastguard Worker  // Required. Configuration of the requesting object (the secondary cluster).
490*d5c09012SAndroid Build Coastguard Worker  Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED];
491*d5c09012SAndroid Build Coastguard Worker
492*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
493*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
494*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
495*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes since the first request.
496*d5c09012SAndroid Build Coastguard Worker  //
497*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
498*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
499*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
500*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
501*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
502*d5c09012SAndroid Build Coastguard Worker  //
503*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
504*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
505*d5c09012SAndroid Build Coastguard Worker  string request_id = 5 [(google.api.field_behavior) = OPTIONAL];
506*d5c09012SAndroid Build Coastguard Worker
507*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, performs request validation (e.g. permission checks and
508*d5c09012SAndroid Build Coastguard Worker  // any other type of validation), but do not actually execute the create
509*d5c09012SAndroid Build Coastguard Worker  // request.
510*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 6 [(google.api.field_behavior) = OPTIONAL];
511*d5c09012SAndroid Build Coastguard Worker}
512*d5c09012SAndroid Build Coastguard Worker
513*d5c09012SAndroid Build Coastguard Worker// Message for creating a Cluster
514*d5c09012SAndroid Build Coastguard Workermessage CreateClusterRequest {
515*d5c09012SAndroid Build Coastguard Worker  // Required. The location of the new cluster. For the required format, see the
516*d5c09012SAndroid Build Coastguard Worker  // comment on the Cluster.name field.
517*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
518*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
519*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
520*d5c09012SAndroid Build Coastguard Worker      child_type: "alloydb.googleapis.com/Cluster"
521*d5c09012SAndroid Build Coastguard Worker    }
522*d5c09012SAndroid Build Coastguard Worker  ];
523*d5c09012SAndroid Build Coastguard Worker
524*d5c09012SAndroid Build Coastguard Worker  // Required. ID of the requesting object.
525*d5c09012SAndroid Build Coastguard Worker  string cluster_id = 2 [(google.api.field_behavior) = REQUIRED];
526*d5c09012SAndroid Build Coastguard Worker
527*d5c09012SAndroid Build Coastguard Worker  // Required. The resource being created
528*d5c09012SAndroid Build Coastguard Worker  Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED];
529*d5c09012SAndroid Build Coastguard Worker
530*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
531*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
532*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
533*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes since the first request.
534*d5c09012SAndroid Build Coastguard Worker  //
535*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
536*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
537*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
538*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
539*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
540*d5c09012SAndroid Build Coastguard Worker  //
541*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
542*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
543*d5c09012SAndroid Build Coastguard Worker  string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
544*d5c09012SAndroid Build Coastguard Worker
545*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, performs request validation (e.g. permission checks and
546*d5c09012SAndroid Build Coastguard Worker  // any other type of validation), but do not actually execute the create
547*d5c09012SAndroid Build Coastguard Worker  // request.
548*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL];
549*d5c09012SAndroid Build Coastguard Worker}
550*d5c09012SAndroid Build Coastguard Worker
551*d5c09012SAndroid Build Coastguard Worker// Message for updating a Cluster
552*d5c09012SAndroid Build Coastguard Workermessage UpdateClusterRequest {
553*d5c09012SAndroid Build Coastguard Worker  // Optional. Field mask is used to specify the fields to be overwritten in the
554*d5c09012SAndroid Build Coastguard Worker  // Cluster resource by the update.
555*d5c09012SAndroid Build Coastguard Worker  // The fields specified in the update_mask are relative to the resource, not
556*d5c09012SAndroid Build Coastguard Worker  // the full request. A field will be overwritten if it is in the mask. If the
557*d5c09012SAndroid Build Coastguard Worker  // user does not provide a mask then all fields will be overwritten.
558*d5c09012SAndroid Build Coastguard Worker  google.protobuf.FieldMask update_mask = 1
559*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OPTIONAL];
560*d5c09012SAndroid Build Coastguard Worker
561*d5c09012SAndroid Build Coastguard Worker  // Required. The resource being updated
562*d5c09012SAndroid Build Coastguard Worker  Cluster cluster = 2 [(google.api.field_behavior) = REQUIRED];
563*d5c09012SAndroid Build Coastguard Worker
564*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
565*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
566*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
567*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes since the first request.
568*d5c09012SAndroid Build Coastguard Worker  //
569*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
570*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
571*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
572*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
573*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
574*d5c09012SAndroid Build Coastguard Worker  //
575*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
576*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
577*d5c09012SAndroid Build Coastguard Worker  string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
578*d5c09012SAndroid Build Coastguard Worker
579*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, performs request validation (e.g. permission checks and
580*d5c09012SAndroid Build Coastguard Worker  // any other type of validation), but do not actually execute the update
581*d5c09012SAndroid Build Coastguard Worker  // request.
582*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL];
583*d5c09012SAndroid Build Coastguard Worker
584*d5c09012SAndroid Build Coastguard Worker  // Optional. If set to true, update succeeds even if cluster is not found. In
585*d5c09012SAndroid Build Coastguard Worker  // that case, a new cluster is created and `update_mask` is ignored.
586*d5c09012SAndroid Build Coastguard Worker  bool allow_missing = 5 [(google.api.field_behavior) = OPTIONAL];
587*d5c09012SAndroid Build Coastguard Worker}
588*d5c09012SAndroid Build Coastguard Worker
589*d5c09012SAndroid Build Coastguard Worker// Message for deleting a Cluster
590*d5c09012SAndroid Build Coastguard Workermessage DeleteClusterRequest {
591*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the resource. For the required format, see the
592*d5c09012SAndroid Build Coastguard Worker  // comment on the Cluster.name field.
593*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
594*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
595*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = { type: "alloydb.googleapis.com/Cluster" }
596*d5c09012SAndroid Build Coastguard Worker  ];
597*d5c09012SAndroid Build Coastguard Worker
598*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
599*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
600*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
601*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes after the first request.
602*d5c09012SAndroid Build Coastguard Worker  //
603*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
604*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
605*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
606*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
607*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
608*d5c09012SAndroid Build Coastguard Worker  //
609*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
610*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
611*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
612*d5c09012SAndroid Build Coastguard Worker
613*d5c09012SAndroid Build Coastguard Worker  // Optional. The current etag of the Cluster.
614*d5c09012SAndroid Build Coastguard Worker  // If an etag is provided and does not match the current etag of the Cluster,
615*d5c09012SAndroid Build Coastguard Worker  // deletion will be blocked and an ABORTED error will be returned.
616*d5c09012SAndroid Build Coastguard Worker  string etag = 3 [(google.api.field_behavior) = OPTIONAL];
617*d5c09012SAndroid Build Coastguard Worker
618*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, performs request validation (e.g. permission checks and
619*d5c09012SAndroid Build Coastguard Worker  // any other type of validation), but do not actually execute the delete.
620*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL];
621*d5c09012SAndroid Build Coastguard Worker
622*d5c09012SAndroid Build Coastguard Worker  // Optional. Whether to cascade delete child instances for given cluster.
623*d5c09012SAndroid Build Coastguard Worker  bool force = 5 [(google.api.field_behavior) = OPTIONAL];
624*d5c09012SAndroid Build Coastguard Worker}
625*d5c09012SAndroid Build Coastguard Worker
626*d5c09012SAndroid Build Coastguard Worker// Message for promoting a Cluster
627*d5c09012SAndroid Build Coastguard Workermessage PromoteClusterRequest {
628*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the resource. For the required format, see the
629*d5c09012SAndroid Build Coastguard Worker  // comment on the Cluster.name field
630*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
631*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
632*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = { type: "alloydb.googleapis.com/Cluster" }
633*d5c09012SAndroid Build Coastguard Worker  ];
634*d5c09012SAndroid Build Coastguard Worker
635*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
636*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
637*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
638*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes after the first request.
639*d5c09012SAndroid Build Coastguard Worker  //
640*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
641*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
642*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
643*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
644*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
645*d5c09012SAndroid Build Coastguard Worker  //
646*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
647*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
648*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
649*d5c09012SAndroid Build Coastguard Worker
650*d5c09012SAndroid Build Coastguard Worker  // Optional. The current etag of the Cluster.
651*d5c09012SAndroid Build Coastguard Worker  // If an etag is provided and does not match the current etag of the Cluster,
652*d5c09012SAndroid Build Coastguard Worker  // deletion will be blocked and an ABORTED error will be returned.
653*d5c09012SAndroid Build Coastguard Worker  string etag = 3 [(google.api.field_behavior) = OPTIONAL];
654*d5c09012SAndroid Build Coastguard Worker
655*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, performs request validation (e.g. permission checks and
656*d5c09012SAndroid Build Coastguard Worker  // any other type of validation), but do not actually execute the delete.
657*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL];
658*d5c09012SAndroid Build Coastguard Worker}
659*d5c09012SAndroid Build Coastguard Worker
660*d5c09012SAndroid Build Coastguard Worker// Message for restoring a Cluster from a backup or another cluster at a given
661*d5c09012SAndroid Build Coastguard Worker// point in time.
662*d5c09012SAndroid Build Coastguard Workermessage RestoreClusterRequest {
663*d5c09012SAndroid Build Coastguard Worker  // Required.
664*d5c09012SAndroid Build Coastguard Worker  // The source to import from.
665*d5c09012SAndroid Build Coastguard Worker  oneof source {
666*d5c09012SAndroid Build Coastguard Worker    // Backup source.
667*d5c09012SAndroid Build Coastguard Worker    BackupSource backup_source = 4;
668*d5c09012SAndroid Build Coastguard Worker
669*d5c09012SAndroid Build Coastguard Worker    // ContinuousBackup source. Continuous backup needs to be enabled in the
670*d5c09012SAndroid Build Coastguard Worker    // source cluster for this operation to succeed.
671*d5c09012SAndroid Build Coastguard Worker    ContinuousBackupSource continuous_backup_source = 8;
672*d5c09012SAndroid Build Coastguard Worker  }
673*d5c09012SAndroid Build Coastguard Worker
674*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the parent resource. For the required format, see the
675*d5c09012SAndroid Build Coastguard Worker  // comment on the Cluster.name field.
676*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
677*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
678*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
679*d5c09012SAndroid Build Coastguard Worker      child_type: "alloydb.googleapis.com/Cluster"
680*d5c09012SAndroid Build Coastguard Worker    }
681*d5c09012SAndroid Build Coastguard Worker  ];
682*d5c09012SAndroid Build Coastguard Worker
683*d5c09012SAndroid Build Coastguard Worker  // Required. ID of the requesting object.
684*d5c09012SAndroid Build Coastguard Worker  string cluster_id = 2 [(google.api.field_behavior) = REQUIRED];
685*d5c09012SAndroid Build Coastguard Worker
686*d5c09012SAndroid Build Coastguard Worker  // Required. The resource being created
687*d5c09012SAndroid Build Coastguard Worker  Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED];
688*d5c09012SAndroid Build Coastguard Worker
689*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
690*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
691*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
692*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes since the first request.
693*d5c09012SAndroid Build Coastguard Worker  //
694*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
695*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
696*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
697*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
698*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
699*d5c09012SAndroid Build Coastguard Worker  //
700*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
701*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
702*d5c09012SAndroid Build Coastguard Worker  string request_id = 5 [(google.api.field_behavior) = OPTIONAL];
703*d5c09012SAndroid Build Coastguard Worker
704*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, performs request validation (e.g. permission checks and
705*d5c09012SAndroid Build Coastguard Worker  // any other type of validation), but do not actually execute the import
706*d5c09012SAndroid Build Coastguard Worker  // request.
707*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 6 [(google.api.field_behavior) = OPTIONAL];
708*d5c09012SAndroid Build Coastguard Worker}
709*d5c09012SAndroid Build Coastguard Worker
710*d5c09012SAndroid Build Coastguard Worker// Message for requesting list of Instances
711*d5c09012SAndroid Build Coastguard Workermessage ListInstancesRequest {
712*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the parent resource. For the required format, see the
713*d5c09012SAndroid Build Coastguard Worker  // comment on the Instance.name field. Additionally, you can perform an
714*d5c09012SAndroid Build Coastguard Worker  // aggregated list operation by specifying a value with one of the following
715*d5c09012SAndroid Build Coastguard Worker  // formats:
716*d5c09012SAndroid Build Coastguard Worker  //  * projects/{project}/locations/-/clusters/-
717*d5c09012SAndroid Build Coastguard Worker  //  * projects/{project}/locations/{region}/clusters/-
718*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
719*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
720*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
721*d5c09012SAndroid Build Coastguard Worker      child_type: "alloydb.googleapis.com/Instance"
722*d5c09012SAndroid Build Coastguard Worker    }
723*d5c09012SAndroid Build Coastguard Worker  ];
724*d5c09012SAndroid Build Coastguard Worker
725*d5c09012SAndroid Build Coastguard Worker  // Optional. Requested page size. Server may return fewer items than
726*d5c09012SAndroid Build Coastguard Worker  // requested. If unspecified, server will pick an appropriate default.
727*d5c09012SAndroid Build Coastguard Worker  int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
728*d5c09012SAndroid Build Coastguard Worker
729*d5c09012SAndroid Build Coastguard Worker  // A token identifying a page of results the server should return.
730*d5c09012SAndroid Build Coastguard Worker  string page_token = 3;
731*d5c09012SAndroid Build Coastguard Worker
732*d5c09012SAndroid Build Coastguard Worker  // Optional. Filtering results
733*d5c09012SAndroid Build Coastguard Worker  string filter = 4 [(google.api.field_behavior) = OPTIONAL];
734*d5c09012SAndroid Build Coastguard Worker
735*d5c09012SAndroid Build Coastguard Worker  // Optional. Hint for how to order the results
736*d5c09012SAndroid Build Coastguard Worker  string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
737*d5c09012SAndroid Build Coastguard Worker}
738*d5c09012SAndroid Build Coastguard Worker
739*d5c09012SAndroid Build Coastguard Worker// Message for response to listing Instances
740*d5c09012SAndroid Build Coastguard Workermessage ListInstancesResponse {
741*d5c09012SAndroid Build Coastguard Worker  // The list of Instance
742*d5c09012SAndroid Build Coastguard Worker  repeated Instance instances = 1;
743*d5c09012SAndroid Build Coastguard Worker
744*d5c09012SAndroid Build Coastguard Worker  // A token identifying a page of results the server should return.
745*d5c09012SAndroid Build Coastguard Worker  string next_page_token = 2;
746*d5c09012SAndroid Build Coastguard Worker
747*d5c09012SAndroid Build Coastguard Worker  // Locations that could not be reached.
748*d5c09012SAndroid Build Coastguard Worker  repeated string unreachable = 3;
749*d5c09012SAndroid Build Coastguard Worker}
750*d5c09012SAndroid Build Coastguard Worker
751*d5c09012SAndroid Build Coastguard Worker// Message for getting a Instance
752*d5c09012SAndroid Build Coastguard Workermessage GetInstanceRequest {
753*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the resource. For the required format, see the
754*d5c09012SAndroid Build Coastguard Worker  // comment on the Instance.name field.
755*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
756*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
757*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
758*d5c09012SAndroid Build Coastguard Worker      type: "alloydb.googleapis.com/Instance"
759*d5c09012SAndroid Build Coastguard Worker    }
760*d5c09012SAndroid Build Coastguard Worker  ];
761*d5c09012SAndroid Build Coastguard Worker
762*d5c09012SAndroid Build Coastguard Worker  // The view of the instance to return.
763*d5c09012SAndroid Build Coastguard Worker  InstanceView view = 2;
764*d5c09012SAndroid Build Coastguard Worker}
765*d5c09012SAndroid Build Coastguard Worker
766*d5c09012SAndroid Build Coastguard Worker// Message for creating a Instance
767*d5c09012SAndroid Build Coastguard Workermessage CreateInstanceRequest {
768*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the parent resource. For the required format, see the
769*d5c09012SAndroid Build Coastguard Worker  // comment on the Instance.name field.
770*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
771*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
772*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
773*d5c09012SAndroid Build Coastguard Worker      child_type: "alloydb.googleapis.com/Instance"
774*d5c09012SAndroid Build Coastguard Worker    }
775*d5c09012SAndroid Build Coastguard Worker  ];
776*d5c09012SAndroid Build Coastguard Worker
777*d5c09012SAndroid Build Coastguard Worker  // Required. ID of the requesting object.
778*d5c09012SAndroid Build Coastguard Worker  string instance_id = 2 [(google.api.field_behavior) = REQUIRED];
779*d5c09012SAndroid Build Coastguard Worker
780*d5c09012SAndroid Build Coastguard Worker  // Required. The resource being created
781*d5c09012SAndroid Build Coastguard Worker  Instance instance = 3 [(google.api.field_behavior) = REQUIRED];
782*d5c09012SAndroid Build Coastguard Worker
783*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
784*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
785*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
786*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes since the first request.
787*d5c09012SAndroid Build Coastguard Worker  //
788*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
789*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
790*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
791*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
792*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
793*d5c09012SAndroid Build Coastguard Worker  //
794*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
795*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
796*d5c09012SAndroid Build Coastguard Worker  string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
797*d5c09012SAndroid Build Coastguard Worker
798*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, performs request validation (e.g. permission checks and
799*d5c09012SAndroid Build Coastguard Worker  // any other type of validation), but do not actually execute the create
800*d5c09012SAndroid Build Coastguard Worker  // request.
801*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL];
802*d5c09012SAndroid Build Coastguard Worker}
803*d5c09012SAndroid Build Coastguard Worker
804*d5c09012SAndroid Build Coastguard Worker// Message for creating a Secondary Instance
805*d5c09012SAndroid Build Coastguard Workermessage CreateSecondaryInstanceRequest {
806*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the parent resource. For the required format, see the
807*d5c09012SAndroid Build Coastguard Worker  // comment on the Instance.name field.
808*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
809*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
810*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
811*d5c09012SAndroid Build Coastguard Worker      child_type: "alloydb.googleapis.com/Instance"
812*d5c09012SAndroid Build Coastguard Worker    }
813*d5c09012SAndroid Build Coastguard Worker  ];
814*d5c09012SAndroid Build Coastguard Worker
815*d5c09012SAndroid Build Coastguard Worker  // Required. ID of the requesting object.
816*d5c09012SAndroid Build Coastguard Worker  string instance_id = 2 [(google.api.field_behavior) = REQUIRED];
817*d5c09012SAndroid Build Coastguard Worker
818*d5c09012SAndroid Build Coastguard Worker  // Required. The resource being created
819*d5c09012SAndroid Build Coastguard Worker  Instance instance = 3 [(google.api.field_behavior) = REQUIRED];
820*d5c09012SAndroid Build Coastguard Worker
821*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
822*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
823*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
824*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes since the first request.
825*d5c09012SAndroid Build Coastguard Worker  //
826*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
827*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
828*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
829*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
830*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
831*d5c09012SAndroid Build Coastguard Worker  //
832*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
833*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
834*d5c09012SAndroid Build Coastguard Worker  string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
835*d5c09012SAndroid Build Coastguard Worker
836*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, performs request validation (e.g. permission checks and
837*d5c09012SAndroid Build Coastguard Worker  // any other type of validation), but do not actually execute the create
838*d5c09012SAndroid Build Coastguard Worker  // request.
839*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL];
840*d5c09012SAndroid Build Coastguard Worker}
841*d5c09012SAndroid Build Coastguard Worker
842*d5c09012SAndroid Build Coastguard Worker// See usage below for notes.
843*d5c09012SAndroid Build Coastguard Workermessage CreateInstanceRequests {
844*d5c09012SAndroid Build Coastguard Worker  // Required. Primary and read replica instances to be created. This list
845*d5c09012SAndroid Build Coastguard Worker  // should not be empty.
846*d5c09012SAndroid Build Coastguard Worker  repeated CreateInstanceRequest create_instance_requests = 1
847*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = REQUIRED];
848*d5c09012SAndroid Build Coastguard Worker}
849*d5c09012SAndroid Build Coastguard Worker
850*d5c09012SAndroid Build Coastguard Worker// Message for creating a batch of instances under the specified cluster.
851*d5c09012SAndroid Build Coastguard Workermessage BatchCreateInstancesRequest {
852*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the parent resource.
853*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
854*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
855*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
856*d5c09012SAndroid Build Coastguard Worker      child_type: "alloydb.googleapis.com/Instance"
857*d5c09012SAndroid Build Coastguard Worker    }
858*d5c09012SAndroid Build Coastguard Worker  ];
859*d5c09012SAndroid Build Coastguard Worker
860*d5c09012SAndroid Build Coastguard Worker  // Required. Resources being created.
861*d5c09012SAndroid Build Coastguard Worker  CreateInstanceRequests requests = 2 [(google.api.field_behavior) = REQUIRED];
862*d5c09012SAndroid Build Coastguard Worker
863*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
864*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
865*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
866*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes since the first request.
867*d5c09012SAndroid Build Coastguard Worker  //
868*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
869*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
870*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
871*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
872*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
873*d5c09012SAndroid Build Coastguard Worker  //
874*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
875*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
876*d5c09012SAndroid Build Coastguard Worker  string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
877*d5c09012SAndroid Build Coastguard Worker}
878*d5c09012SAndroid Build Coastguard Worker
879*d5c09012SAndroid Build Coastguard Worker// Message for creating batches of instances in a cluster.
880*d5c09012SAndroid Build Coastguard Workermessage BatchCreateInstancesResponse {
881*d5c09012SAndroid Build Coastguard Worker  // Created instances.
882*d5c09012SAndroid Build Coastguard Worker  repeated Instance instances = 1;
883*d5c09012SAndroid Build Coastguard Worker}
884*d5c09012SAndroid Build Coastguard Worker
885*d5c09012SAndroid Build Coastguard Worker// Message for metadata that is specific to BatchCreateInstances API.
886*d5c09012SAndroid Build Coastguard Worker// NEXT_ID: 3
887*d5c09012SAndroid Build Coastguard Workermessage BatchCreateInstancesMetadata {
888*d5c09012SAndroid Build Coastguard Worker  // The instances being created in the API call. Each string in this list
889*d5c09012SAndroid Build Coastguard Worker  // is the server defined resource path for target instances in the request
890*d5c09012SAndroid Build Coastguard Worker  // and for the format of each string, see the comment on the Instance.name
891*d5c09012SAndroid Build Coastguard Worker  // field.
892*d5c09012SAndroid Build Coastguard Worker  repeated string instance_targets = 1;
893*d5c09012SAndroid Build Coastguard Worker
894*d5c09012SAndroid Build Coastguard Worker  // A map representing state of the instances involved in the
895*d5c09012SAndroid Build Coastguard Worker  // BatchCreateInstances operation during the operation execution.
896*d5c09012SAndroid Build Coastguard Worker  // The instance state will be in STATE_UNSPECIFIED state if the instance has
897*d5c09012SAndroid Build Coastguard Worker  // not yet been picked up for processing.
898*d5c09012SAndroid Build Coastguard Worker  // The key of the map is the name of the instance resource.
899*d5c09012SAndroid Build Coastguard Worker  // For the format, see the comment on the Instance.name field.
900*d5c09012SAndroid Build Coastguard Worker  map<string, BatchCreateInstanceStatus> instance_statuses = 2;
901*d5c09012SAndroid Build Coastguard Worker}
902*d5c09012SAndroid Build Coastguard Worker
903*d5c09012SAndroid Build Coastguard Worker// Message for current status of an instance in the BatchCreateInstances
904*d5c09012SAndroid Build Coastguard Worker// operation.
905*d5c09012SAndroid Build Coastguard Worker// For example, lets say a BatchCreateInstances workflow has 4 instances,
906*d5c09012SAndroid Build Coastguard Worker// Instance1 through Instance4. Lets also assume that 2 instances succeeded
907*d5c09012SAndroid Build Coastguard Worker// but the third failed to create and the 4th was never picked up for creation
908*d5c09012SAndroid Build Coastguard Worker// because of failure of the previous one. Then, resulting states would look
909*d5c09012SAndroid Build Coastguard Worker// something like:
910*d5c09012SAndroid Build Coastguard Worker//   1. Instance1 = ROLLED_BACK
911*d5c09012SAndroid Build Coastguard Worker//   2. Instance2 = ROLLED_BACK
912*d5c09012SAndroid Build Coastguard Worker//   3. Instance3 = FAILED
913*d5c09012SAndroid Build Coastguard Worker//   4. Instance4 = FAILED
914*d5c09012SAndroid Build Coastguard Worker//
915*d5c09012SAndroid Build Coastguard Worker// However, while the operation is running, the instance might be in other
916*d5c09012SAndroid Build Coastguard Worker// states including PENDING_CREATE, ACTIVE, DELETING and CREATING. The states
917*d5c09012SAndroid Build Coastguard Worker// / do not get further updated once the operation is done.
918*d5c09012SAndroid Build Coastguard Workermessage BatchCreateInstanceStatus {
919*d5c09012SAndroid Build Coastguard Worker  // State contains all valid instance states for the BatchCreateInstances
920*d5c09012SAndroid Build Coastguard Worker  // operation. This is mainly used for status reporting through the LRO
921*d5c09012SAndroid Build Coastguard Worker  // metadata.
922*d5c09012SAndroid Build Coastguard Worker  enum State {
923*d5c09012SAndroid Build Coastguard Worker    // The state of the instance is unknown.
924*d5c09012SAndroid Build Coastguard Worker    STATE_UNSPECIFIED = 0;
925*d5c09012SAndroid Build Coastguard Worker
926*d5c09012SAndroid Build Coastguard Worker    // Instance is pending creation and has not yet been picked up for
927*d5c09012SAndroid Build Coastguard Worker    // processsing in the backend.
928*d5c09012SAndroid Build Coastguard Worker    PENDING_CREATE = 1;
929*d5c09012SAndroid Build Coastguard Worker
930*d5c09012SAndroid Build Coastguard Worker    // The instance is active and running.
931*d5c09012SAndroid Build Coastguard Worker    READY = 2;
932*d5c09012SAndroid Build Coastguard Worker
933*d5c09012SAndroid Build Coastguard Worker    // The instance is being created.
934*d5c09012SAndroid Build Coastguard Worker    CREATING = 3;
935*d5c09012SAndroid Build Coastguard Worker
936*d5c09012SAndroid Build Coastguard Worker    // The instance is being deleted.
937*d5c09012SAndroid Build Coastguard Worker    DELETING = 4;
938*d5c09012SAndroid Build Coastguard Worker
939*d5c09012SAndroid Build Coastguard Worker    // The creation of the instance failed or a fatal error occurred during
940*d5c09012SAndroid Build Coastguard Worker    // an operation on the instance or a batch of instances.
941*d5c09012SAndroid Build Coastguard Worker    FAILED = 5;
942*d5c09012SAndroid Build Coastguard Worker
943*d5c09012SAndroid Build Coastguard Worker    // The instance was created successfully, but was rolled back and deleted
944*d5c09012SAndroid Build Coastguard Worker    // due to some other failure during BatchCreateInstances operation.
945*d5c09012SAndroid Build Coastguard Worker    ROLLED_BACK = 6;
946*d5c09012SAndroid Build Coastguard Worker  }
947*d5c09012SAndroid Build Coastguard Worker
948*d5c09012SAndroid Build Coastguard Worker  // The current state of an instance involved in the batch create operation.
949*d5c09012SAndroid Build Coastguard Worker  // Once the operation is complete, the final state of the instances in the
950*d5c09012SAndroid Build Coastguard Worker  // LRO can be one of:
951*d5c09012SAndroid Build Coastguard Worker  //   1. ACTIVE, indicating that instances were created successfully
952*d5c09012SAndroid Build Coastguard Worker  //   2. FAILED, indicating that a particular instance failed creation
953*d5c09012SAndroid Build Coastguard Worker  //   3. ROLLED_BACK indicating that although the instance was created
954*d5c09012SAndroid Build Coastguard Worker  //      successfully, it had to be rolled back and deleted due to failure in
955*d5c09012SAndroid Build Coastguard Worker  //      other steps of the workflow.
956*d5c09012SAndroid Build Coastguard Worker  State state = 1;
957*d5c09012SAndroid Build Coastguard Worker
958*d5c09012SAndroid Build Coastguard Worker  // DEPRECATED - Use the error field instead.
959*d5c09012SAndroid Build Coastguard Worker  // Error, if any error occurred and is available, during instance creation.
960*d5c09012SAndroid Build Coastguard Worker  string error_msg = 2;
961*d5c09012SAndroid Build Coastguard Worker
962*d5c09012SAndroid Build Coastguard Worker  // The RPC status of the instance creation operation. This field will be
963*d5c09012SAndroid Build Coastguard Worker  // present if an error happened during the instance creation.
964*d5c09012SAndroid Build Coastguard Worker  google.rpc.Status error = 4;
965*d5c09012SAndroid Build Coastguard Worker
966*d5c09012SAndroid Build Coastguard Worker  Instance.InstanceType type = 3;
967*d5c09012SAndroid Build Coastguard Worker}
968*d5c09012SAndroid Build Coastguard Worker
969*d5c09012SAndroid Build Coastguard Worker// Message for updating a Instance
970*d5c09012SAndroid Build Coastguard Workermessage UpdateInstanceRequest {
971*d5c09012SAndroid Build Coastguard Worker  // Optional. Field mask is used to specify the fields to be overwritten in the
972*d5c09012SAndroid Build Coastguard Worker  // Instance resource by the update.
973*d5c09012SAndroid Build Coastguard Worker  // The fields specified in the update_mask are relative to the resource, not
974*d5c09012SAndroid Build Coastguard Worker  // the full request. A field will be overwritten if it is in the mask. If the
975*d5c09012SAndroid Build Coastguard Worker  // user does not provide a mask then all fields will be overwritten.
976*d5c09012SAndroid Build Coastguard Worker  google.protobuf.FieldMask update_mask = 1
977*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OPTIONAL];
978*d5c09012SAndroid Build Coastguard Worker
979*d5c09012SAndroid Build Coastguard Worker  // Required. The resource being updated
980*d5c09012SAndroid Build Coastguard Worker  Instance instance = 2 [(google.api.field_behavior) = REQUIRED];
981*d5c09012SAndroid Build Coastguard Worker
982*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
983*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
984*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
985*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes since the first request.
986*d5c09012SAndroid Build Coastguard Worker  //
987*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
988*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
989*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
990*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
991*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
992*d5c09012SAndroid Build Coastguard Worker  //
993*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
994*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
995*d5c09012SAndroid Build Coastguard Worker  string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
996*d5c09012SAndroid Build Coastguard Worker
997*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, performs request validation (e.g. permission checks and
998*d5c09012SAndroid Build Coastguard Worker  // any other type of validation), but do not actually execute the update
999*d5c09012SAndroid Build Coastguard Worker  // request.
1000*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL];
1001*d5c09012SAndroid Build Coastguard Worker
1002*d5c09012SAndroid Build Coastguard Worker  // Optional. If set to true, update succeeds even if instance is not found. In
1003*d5c09012SAndroid Build Coastguard Worker  // that case, a new instance is created and `update_mask` is ignored.
1004*d5c09012SAndroid Build Coastguard Worker  bool allow_missing = 5 [(google.api.field_behavior) = OPTIONAL];
1005*d5c09012SAndroid Build Coastguard Worker}
1006*d5c09012SAndroid Build Coastguard Worker
1007*d5c09012SAndroid Build Coastguard Worker// Message for deleting a Instance
1008*d5c09012SAndroid Build Coastguard Workermessage DeleteInstanceRequest {
1009*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the resource. For the required format, see the
1010*d5c09012SAndroid Build Coastguard Worker  // comment on the Instance.name field.
1011*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
1012*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1013*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
1014*d5c09012SAndroid Build Coastguard Worker      type: "alloydb.googleapis.com/Instance"
1015*d5c09012SAndroid Build Coastguard Worker    }
1016*d5c09012SAndroid Build Coastguard Worker  ];
1017*d5c09012SAndroid Build Coastguard Worker
1018*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
1019*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
1020*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
1021*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes after the first request.
1022*d5c09012SAndroid Build Coastguard Worker  //
1023*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
1024*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
1025*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
1026*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
1027*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
1028*d5c09012SAndroid Build Coastguard Worker  //
1029*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
1030*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
1031*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
1032*d5c09012SAndroid Build Coastguard Worker
1033*d5c09012SAndroid Build Coastguard Worker  // Optional. The current etag of the Instance.
1034*d5c09012SAndroid Build Coastguard Worker  // If an etag is provided and does not match the current etag of the Instance,
1035*d5c09012SAndroid Build Coastguard Worker  // deletion will be blocked and an ABORTED error will be returned.
1036*d5c09012SAndroid Build Coastguard Worker  string etag = 3 [(google.api.field_behavior) = OPTIONAL];
1037*d5c09012SAndroid Build Coastguard Worker
1038*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, performs request validation (e.g. permission checks and
1039*d5c09012SAndroid Build Coastguard Worker  // any other type of validation), but do not actually execute the delete.
1040*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL];
1041*d5c09012SAndroid Build Coastguard Worker}
1042*d5c09012SAndroid Build Coastguard Worker
1043*d5c09012SAndroid Build Coastguard Worker// Message for triggering failover on an Instance
1044*d5c09012SAndroid Build Coastguard Workermessage FailoverInstanceRequest {
1045*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the resource. For the required format, see the
1046*d5c09012SAndroid Build Coastguard Worker  // comment on the Instance.name field.
1047*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
1048*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1049*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
1050*d5c09012SAndroid Build Coastguard Worker      type: "alloydb.googleapis.com/Instance"
1051*d5c09012SAndroid Build Coastguard Worker    }
1052*d5c09012SAndroid Build Coastguard Worker  ];
1053*d5c09012SAndroid Build Coastguard Worker
1054*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
1055*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
1056*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
1057*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes after the first request.
1058*d5c09012SAndroid Build Coastguard Worker  //
1059*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
1060*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
1061*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
1062*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
1063*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
1064*d5c09012SAndroid Build Coastguard Worker  //
1065*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
1066*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
1067*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
1068*d5c09012SAndroid Build Coastguard Worker
1069*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, performs request validation (e.g. permission checks and
1070*d5c09012SAndroid Build Coastguard Worker  // any other type of validation), but do not actually execute the failover.
1071*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL];
1072*d5c09012SAndroid Build Coastguard Worker}
1073*d5c09012SAndroid Build Coastguard Worker
1074*d5c09012SAndroid Build Coastguard Worker// Message for triggering fault injection on an instance
1075*d5c09012SAndroid Build Coastguard Workermessage InjectFaultRequest {
1076*d5c09012SAndroid Build Coastguard Worker  // FaultType contains all valid types of faults that can be injected to an
1077*d5c09012SAndroid Build Coastguard Worker  // instance.
1078*d5c09012SAndroid Build Coastguard Worker  enum FaultType {
1079*d5c09012SAndroid Build Coastguard Worker    // The fault type is unknown.
1080*d5c09012SAndroid Build Coastguard Worker    FAULT_TYPE_UNSPECIFIED = 0;
1081*d5c09012SAndroid Build Coastguard Worker
1082*d5c09012SAndroid Build Coastguard Worker    // Stop the VM
1083*d5c09012SAndroid Build Coastguard Worker    STOP_VM = 1;
1084*d5c09012SAndroid Build Coastguard Worker  }
1085*d5c09012SAndroid Build Coastguard Worker
1086*d5c09012SAndroid Build Coastguard Worker  // Required. The type of fault to be injected in an instance.
1087*d5c09012SAndroid Build Coastguard Worker  FaultType fault_type = 1 [(google.api.field_behavior) = REQUIRED];
1088*d5c09012SAndroid Build Coastguard Worker
1089*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the resource. For the required format, see the
1090*d5c09012SAndroid Build Coastguard Worker  // comment on the Instance.name field.
1091*d5c09012SAndroid Build Coastguard Worker  string name = 2 [
1092*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1093*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
1094*d5c09012SAndroid Build Coastguard Worker      type: "alloydb.googleapis.com/Instance"
1095*d5c09012SAndroid Build Coastguard Worker    }
1096*d5c09012SAndroid Build Coastguard Worker  ];
1097*d5c09012SAndroid Build Coastguard Worker
1098*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
1099*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
1100*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
1101*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes after the first request.
1102*d5c09012SAndroid Build Coastguard Worker  //
1103*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
1104*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
1105*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
1106*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
1107*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
1108*d5c09012SAndroid Build Coastguard Worker  //
1109*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
1110*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
1111*d5c09012SAndroid Build Coastguard Worker  string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
1112*d5c09012SAndroid Build Coastguard Worker
1113*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, performs request validation (e.g. permission checks and
1114*d5c09012SAndroid Build Coastguard Worker  // any other type of validation), but do not actually execute the fault
1115*d5c09012SAndroid Build Coastguard Worker  // injection.
1116*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL];
1117*d5c09012SAndroid Build Coastguard Worker}
1118*d5c09012SAndroid Build Coastguard Worker
1119*d5c09012SAndroid Build Coastguard Workermessage RestartInstanceRequest {
1120*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the resource. For the required format, see the
1121*d5c09012SAndroid Build Coastguard Worker  // comment on the Instance.name field.
1122*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
1123*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1124*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
1125*d5c09012SAndroid Build Coastguard Worker      type: "alloydb.googleapis.com/Instance"
1126*d5c09012SAndroid Build Coastguard Worker    }
1127*d5c09012SAndroid Build Coastguard Worker  ];
1128*d5c09012SAndroid Build Coastguard Worker
1129*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
1130*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
1131*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
1132*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes after the first request.
1133*d5c09012SAndroid Build Coastguard Worker  //
1134*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
1135*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
1136*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
1137*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
1138*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
1139*d5c09012SAndroid Build Coastguard Worker  //
1140*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
1141*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
1142*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
1143*d5c09012SAndroid Build Coastguard Worker
1144*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, performs request validation (e.g. permission checks and
1145*d5c09012SAndroid Build Coastguard Worker  // any other type of validation), but do not actually execute the restart.
1146*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL];
1147*d5c09012SAndroid Build Coastguard Worker}
1148*d5c09012SAndroid Build Coastguard Worker
1149*d5c09012SAndroid Build Coastguard Worker// Message for requesting list of Backups
1150*d5c09012SAndroid Build Coastguard Workermessage ListBackupsRequest {
1151*d5c09012SAndroid Build Coastguard Worker  // Required. Parent value for ListBackupsRequest
1152*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
1153*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1154*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
1155*d5c09012SAndroid Build Coastguard Worker      child_type: "alloydb.googleapis.com/Backup"
1156*d5c09012SAndroid Build Coastguard Worker    }
1157*d5c09012SAndroid Build Coastguard Worker  ];
1158*d5c09012SAndroid Build Coastguard Worker
1159*d5c09012SAndroid Build Coastguard Worker  // Requested page size. Server may return fewer items than requested.
1160*d5c09012SAndroid Build Coastguard Worker  // If unspecified, server will pick an appropriate default.
1161*d5c09012SAndroid Build Coastguard Worker  int32 page_size = 2;
1162*d5c09012SAndroid Build Coastguard Worker
1163*d5c09012SAndroid Build Coastguard Worker  // A token identifying a page of results the server should return.
1164*d5c09012SAndroid Build Coastguard Worker  string page_token = 3;
1165*d5c09012SAndroid Build Coastguard Worker
1166*d5c09012SAndroid Build Coastguard Worker  // Filtering results
1167*d5c09012SAndroid Build Coastguard Worker  string filter = 4;
1168*d5c09012SAndroid Build Coastguard Worker
1169*d5c09012SAndroid Build Coastguard Worker  // Hint for how to order the results
1170*d5c09012SAndroid Build Coastguard Worker  string order_by = 5;
1171*d5c09012SAndroid Build Coastguard Worker}
1172*d5c09012SAndroid Build Coastguard Worker
1173*d5c09012SAndroid Build Coastguard Worker// Message for response to listing Backups
1174*d5c09012SAndroid Build Coastguard Workermessage ListBackupsResponse {
1175*d5c09012SAndroid Build Coastguard Worker  // The list of Backup
1176*d5c09012SAndroid Build Coastguard Worker  repeated Backup backups = 1;
1177*d5c09012SAndroid Build Coastguard Worker
1178*d5c09012SAndroid Build Coastguard Worker  // A token identifying a page of results the server should return.
1179*d5c09012SAndroid Build Coastguard Worker  string next_page_token = 2;
1180*d5c09012SAndroid Build Coastguard Worker
1181*d5c09012SAndroid Build Coastguard Worker  // Locations that could not be reached.
1182*d5c09012SAndroid Build Coastguard Worker  repeated string unreachable = 3;
1183*d5c09012SAndroid Build Coastguard Worker}
1184*d5c09012SAndroid Build Coastguard Worker
1185*d5c09012SAndroid Build Coastguard Worker// Message for getting a Backup
1186*d5c09012SAndroid Build Coastguard Workermessage GetBackupRequest {
1187*d5c09012SAndroid Build Coastguard Worker  // Required. Name of the resource
1188*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
1189*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1190*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = { type: "alloydb.googleapis.com/Backup" }
1191*d5c09012SAndroid Build Coastguard Worker  ];
1192*d5c09012SAndroid Build Coastguard Worker}
1193*d5c09012SAndroid Build Coastguard Worker
1194*d5c09012SAndroid Build Coastguard Worker// Message for creating a Backup
1195*d5c09012SAndroid Build Coastguard Workermessage CreateBackupRequest {
1196*d5c09012SAndroid Build Coastguard Worker  // Required. Value for parent.
1197*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
1198*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1199*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
1200*d5c09012SAndroid Build Coastguard Worker      child_type: "alloydb.googleapis.com/Backup"
1201*d5c09012SAndroid Build Coastguard Worker    }
1202*d5c09012SAndroid Build Coastguard Worker  ];
1203*d5c09012SAndroid Build Coastguard Worker
1204*d5c09012SAndroid Build Coastguard Worker  // Required. ID of the requesting object.
1205*d5c09012SAndroid Build Coastguard Worker  string backup_id = 2 [(google.api.field_behavior) = REQUIRED];
1206*d5c09012SAndroid Build Coastguard Worker
1207*d5c09012SAndroid Build Coastguard Worker  // Required. The resource being created
1208*d5c09012SAndroid Build Coastguard Worker  Backup backup = 3 [(google.api.field_behavior) = REQUIRED];
1209*d5c09012SAndroid Build Coastguard Worker
1210*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
1211*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
1212*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
1213*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes since the first request.
1214*d5c09012SAndroid Build Coastguard Worker  //
1215*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
1216*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
1217*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
1218*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
1219*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
1220*d5c09012SAndroid Build Coastguard Worker  //
1221*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
1222*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
1223*d5c09012SAndroid Build Coastguard Worker  string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
1224*d5c09012SAndroid Build Coastguard Worker
1225*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, the backend validates the request, but doesn't actually
1226*d5c09012SAndroid Build Coastguard Worker  // execute it.
1227*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL];
1228*d5c09012SAndroid Build Coastguard Worker}
1229*d5c09012SAndroid Build Coastguard Worker
1230*d5c09012SAndroid Build Coastguard Worker// Message for updating a Backup
1231*d5c09012SAndroid Build Coastguard Workermessage UpdateBackupRequest {
1232*d5c09012SAndroid Build Coastguard Worker  // Optional. Field mask is used to specify the fields to be overwritten in the
1233*d5c09012SAndroid Build Coastguard Worker  // Backup resource by the update.
1234*d5c09012SAndroid Build Coastguard Worker  // The fields specified in the update_mask are relative to the resource, not
1235*d5c09012SAndroid Build Coastguard Worker  // the full request. A field will be overwritten if it is in the mask. If the
1236*d5c09012SAndroid Build Coastguard Worker  // user does not provide a mask then all fields will be overwritten.
1237*d5c09012SAndroid Build Coastguard Worker  google.protobuf.FieldMask update_mask = 1
1238*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OPTIONAL];
1239*d5c09012SAndroid Build Coastguard Worker
1240*d5c09012SAndroid Build Coastguard Worker  // Required. The resource being updated
1241*d5c09012SAndroid Build Coastguard Worker  Backup backup = 2 [(google.api.field_behavior) = REQUIRED];
1242*d5c09012SAndroid Build Coastguard Worker
1243*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
1244*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
1245*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
1246*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes since the first request.
1247*d5c09012SAndroid Build Coastguard Worker  //
1248*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
1249*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
1250*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
1251*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
1252*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
1253*d5c09012SAndroid Build Coastguard Worker  //
1254*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
1255*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
1256*d5c09012SAndroid Build Coastguard Worker  string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
1257*d5c09012SAndroid Build Coastguard Worker
1258*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, the backend validates the request, but doesn't actually
1259*d5c09012SAndroid Build Coastguard Worker  // execute it.
1260*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL];
1261*d5c09012SAndroid Build Coastguard Worker
1262*d5c09012SAndroid Build Coastguard Worker  // Optional. If set to true, update succeeds even if instance is not found. In
1263*d5c09012SAndroid Build Coastguard Worker  // that case, a new backup is created and `update_mask` is ignored.
1264*d5c09012SAndroid Build Coastguard Worker  bool allow_missing = 5 [(google.api.field_behavior) = OPTIONAL];
1265*d5c09012SAndroid Build Coastguard Worker}
1266*d5c09012SAndroid Build Coastguard Worker
1267*d5c09012SAndroid Build Coastguard Worker// Message for deleting a Backup
1268*d5c09012SAndroid Build Coastguard Workermessage DeleteBackupRequest {
1269*d5c09012SAndroid Build Coastguard Worker  // Required. Name of the resource. For the required format, see the comment on
1270*d5c09012SAndroid Build Coastguard Worker  // the Backup.name field.
1271*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
1272*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1273*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = { type: "alloydb.googleapis.com/Backup" }
1274*d5c09012SAndroid Build Coastguard Worker  ];
1275*d5c09012SAndroid Build Coastguard Worker
1276*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
1277*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
1278*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
1279*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes after the first request.
1280*d5c09012SAndroid Build Coastguard Worker  //
1281*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
1282*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
1283*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
1284*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
1285*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
1286*d5c09012SAndroid Build Coastguard Worker  //
1287*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
1288*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
1289*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
1290*d5c09012SAndroid Build Coastguard Worker
1291*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, the backend validates the request, but doesn't actually
1292*d5c09012SAndroid Build Coastguard Worker  // execute it.
1293*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL];
1294*d5c09012SAndroid Build Coastguard Worker
1295*d5c09012SAndroid Build Coastguard Worker  // Optional. The current etag of the Backup.
1296*d5c09012SAndroid Build Coastguard Worker  // If an etag is provided and does not match the current etag of the Backup,
1297*d5c09012SAndroid Build Coastguard Worker  // deletion will be blocked and an ABORTED error will be returned.
1298*d5c09012SAndroid Build Coastguard Worker  string etag = 4 [(google.api.field_behavior) = OPTIONAL];
1299*d5c09012SAndroid Build Coastguard Worker}
1300*d5c09012SAndroid Build Coastguard Worker
1301*d5c09012SAndroid Build Coastguard Worker// Message for listing the information about the supported Database flags.
1302*d5c09012SAndroid Build Coastguard Workermessage ListSupportedDatabaseFlagsRequest {
1303*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the parent resource. The required format is:
1304*d5c09012SAndroid Build Coastguard Worker  //  * projects/{project}/locations/{location}
1305*d5c09012SAndroid Build Coastguard Worker  //
1306*d5c09012SAndroid Build Coastguard Worker  // Regardless of the parent specified here, as long it is contains a valid
1307*d5c09012SAndroid Build Coastguard Worker  // project and location, the service will return a static list of supported
1308*d5c09012SAndroid Build Coastguard Worker  // flags resources. Note that we do not yet support region-specific
1309*d5c09012SAndroid Build Coastguard Worker  // flags.
1310*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
1311*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1312*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
1313*d5c09012SAndroid Build Coastguard Worker      child_type: "alloydb.googleapis.com/SupportedDatabaseFlag"
1314*d5c09012SAndroid Build Coastguard Worker    }
1315*d5c09012SAndroid Build Coastguard Worker  ];
1316*d5c09012SAndroid Build Coastguard Worker
1317*d5c09012SAndroid Build Coastguard Worker  // Requested page size. Server may return fewer items than requested.
1318*d5c09012SAndroid Build Coastguard Worker  // If unspecified, server will pick an appropriate default.
1319*d5c09012SAndroid Build Coastguard Worker  int32 page_size = 2;
1320*d5c09012SAndroid Build Coastguard Worker
1321*d5c09012SAndroid Build Coastguard Worker  // A token identifying a page of results the server should return.
1322*d5c09012SAndroid Build Coastguard Worker  string page_token = 3;
1323*d5c09012SAndroid Build Coastguard Worker}
1324*d5c09012SAndroid Build Coastguard Worker
1325*d5c09012SAndroid Build Coastguard Worker// Message for response to listing SupportedDatabaseFlags.
1326*d5c09012SAndroid Build Coastguard Workermessage ListSupportedDatabaseFlagsResponse {
1327*d5c09012SAndroid Build Coastguard Worker  // The list of SupportedDatabaseFlags.
1328*d5c09012SAndroid Build Coastguard Worker  repeated SupportedDatabaseFlag supported_database_flags = 1;
1329*d5c09012SAndroid Build Coastguard Worker
1330*d5c09012SAndroid Build Coastguard Worker  // A token identifying a page of results the server should return.
1331*d5c09012SAndroid Build Coastguard Worker  string next_page_token = 2;
1332*d5c09012SAndroid Build Coastguard Worker}
1333*d5c09012SAndroid Build Coastguard Worker
1334*d5c09012SAndroid Build Coastguard Worker// Message for requests to generate a client certificate signed by the Cluster
1335*d5c09012SAndroid Build Coastguard Worker// CA.
1336*d5c09012SAndroid Build Coastguard Workermessage GenerateClientCertificateRequest {
1337*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the parent resource. The required format is:
1338*d5c09012SAndroid Build Coastguard Worker  //  * projects/{project}/locations/{location}/clusters/{cluster}
1339*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
1340*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1341*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = { type: "alloydb.googleapis.com/Cluster" }
1342*d5c09012SAndroid Build Coastguard Worker  ];
1343*d5c09012SAndroid Build Coastguard Worker
1344*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
1345*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
1346*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
1347*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes after the first request.
1348*d5c09012SAndroid Build Coastguard Worker  //
1349*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
1350*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
1351*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
1352*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
1353*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
1354*d5c09012SAndroid Build Coastguard Worker  //
1355*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
1356*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
1357*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
1358*d5c09012SAndroid Build Coastguard Worker
1359*d5c09012SAndroid Build Coastguard Worker  // Optional. A pem-encoded X.509 certificate signing request (CSR). It is
1360*d5c09012SAndroid Build Coastguard Worker  // recommended to use public_key instead.
1361*d5c09012SAndroid Build Coastguard Worker  string pem_csr = 3
1362*d5c09012SAndroid Build Coastguard Worker      [deprecated = true, (google.api.field_behavior) = OPTIONAL];
1363*d5c09012SAndroid Build Coastguard Worker
1364*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional hint to the endpoint to generate the client
1365*d5c09012SAndroid Build Coastguard Worker  // certificate with the requested duration. The duration can be from 1 hour to
1366*d5c09012SAndroid Build Coastguard Worker  // 24 hours. The endpoint may or may not honor the hint. If the hint is left
1367*d5c09012SAndroid Build Coastguard Worker  // unspecified or is not honored, then the endpoint will pick an appropriate
1368*d5c09012SAndroid Build Coastguard Worker  // default duration.
1369*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Duration cert_duration = 4
1370*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OPTIONAL];
1371*d5c09012SAndroid Build Coastguard Worker
1372*d5c09012SAndroid Build Coastguard Worker  // Optional. The public key from the client.
1373*d5c09012SAndroid Build Coastguard Worker  string public_key = 5 [(google.api.field_behavior) = OPTIONAL];
1374*d5c09012SAndroid Build Coastguard Worker
1375*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional hint to the endpoint to generate a client
1376*d5c09012SAndroid Build Coastguard Worker  // ceritificate that can be used by AlloyDB connectors to exchange additional
1377*d5c09012SAndroid Build Coastguard Worker  // metadata with the server after TLS handshake.
1378*d5c09012SAndroid Build Coastguard Worker  bool use_metadata_exchange = 6 [(google.api.field_behavior) = OPTIONAL];
1379*d5c09012SAndroid Build Coastguard Worker}
1380*d5c09012SAndroid Build Coastguard Worker
1381*d5c09012SAndroid Build Coastguard Worker// Message returned by a GenerateClientCertificate operation.
1382*d5c09012SAndroid Build Coastguard Workermessage GenerateClientCertificateResponse {
1383*d5c09012SAndroid Build Coastguard Worker  // Output only. The pem-encoded, signed X.509 certificate.
1384*d5c09012SAndroid Build Coastguard Worker  string pem_certificate = 1
1385*d5c09012SAndroid Build Coastguard Worker      [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY];
1386*d5c09012SAndroid Build Coastguard Worker
1387*d5c09012SAndroid Build Coastguard Worker  // Output only. The pem-encoded chain that may be used to verify the X.509
1388*d5c09012SAndroid Build Coastguard Worker  // certificate. Expected to be in issuer-to-root order according to RFC 5246.
1389*d5c09012SAndroid Build Coastguard Worker  repeated string pem_certificate_chain = 2
1390*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
1391*d5c09012SAndroid Build Coastguard Worker
1392*d5c09012SAndroid Build Coastguard Worker  // Optional. The pem-encoded cluster ca X.509 certificate.
1393*d5c09012SAndroid Build Coastguard Worker  string ca_cert = 3 [(google.api.field_behavior) = OPTIONAL];
1394*d5c09012SAndroid Build Coastguard Worker}
1395*d5c09012SAndroid Build Coastguard Worker
1396*d5c09012SAndroid Build Coastguard Worker// Request message for GetConnectionInfo.
1397*d5c09012SAndroid Build Coastguard Workermessage GetConnectionInfoRequest {
1398*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the parent resource. The required format is:
1399*d5c09012SAndroid Build Coastguard Worker  // projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance}
1400*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
1401*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1402*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
1403*d5c09012SAndroid Build Coastguard Worker      type: "alloydb.googleapis.com/Instance"
1404*d5c09012SAndroid Build Coastguard Worker    }
1405*d5c09012SAndroid Build Coastguard Worker  ];
1406*d5c09012SAndroid Build Coastguard Worker
1407*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
1408*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
1409*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
1410*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes after the first request.
1411*d5c09012SAndroid Build Coastguard Worker  //
1412*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
1413*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
1414*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
1415*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
1416*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
1417*d5c09012SAndroid Build Coastguard Worker  //
1418*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
1419*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
1420*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
1421*d5c09012SAndroid Build Coastguard Worker}
1422*d5c09012SAndroid Build Coastguard Worker
1423*d5c09012SAndroid Build Coastguard Worker// Represents the metadata of the long-running operation.
1424*d5c09012SAndroid Build Coastguard Workermessage OperationMetadata {
1425*d5c09012SAndroid Build Coastguard Worker  // Request specific metadata, if any.
1426*d5c09012SAndroid Build Coastguard Worker  oneof request_specific {
1427*d5c09012SAndroid Build Coastguard Worker    // Output only. BatchCreateInstances related metadata.
1428*d5c09012SAndroid Build Coastguard Worker    BatchCreateInstancesMetadata batch_create_instances_metadata = 8
1429*d5c09012SAndroid Build Coastguard Worker        [(google.api.field_behavior) = OUTPUT_ONLY];
1430*d5c09012SAndroid Build Coastguard Worker  }
1431*d5c09012SAndroid Build Coastguard Worker
1432*d5c09012SAndroid Build Coastguard Worker  // Output only. The time the operation was created.
1433*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp create_time = 1
1434*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
1435*d5c09012SAndroid Build Coastguard Worker
1436*d5c09012SAndroid Build Coastguard Worker  // Output only. The time the operation finished running.
1437*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp end_time = 2
1438*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
1439*d5c09012SAndroid Build Coastguard Worker
1440*d5c09012SAndroid Build Coastguard Worker  // Output only. Server-defined resource path for the target of the operation.
1441*d5c09012SAndroid Build Coastguard Worker  string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
1442*d5c09012SAndroid Build Coastguard Worker
1443*d5c09012SAndroid Build Coastguard Worker  // Output only. Name of the verb executed by the operation.
1444*d5c09012SAndroid Build Coastguard Worker  string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
1445*d5c09012SAndroid Build Coastguard Worker
1446*d5c09012SAndroid Build Coastguard Worker  // Output only. Human-readable status of the operation, if any.
1447*d5c09012SAndroid Build Coastguard Worker  string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
1448*d5c09012SAndroid Build Coastguard Worker
1449*d5c09012SAndroid Build Coastguard Worker  // Output only. Identifies whether the user has requested cancellation
1450*d5c09012SAndroid Build Coastguard Worker  // of the operation. Operations that have successfully been cancelled
1451*d5c09012SAndroid Build Coastguard Worker  // have [Operation.error][] value with a
1452*d5c09012SAndroid Build Coastguard Worker  // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
1453*d5c09012SAndroid Build Coastguard Worker  // `Code.CANCELLED`.
1454*d5c09012SAndroid Build Coastguard Worker  bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
1455*d5c09012SAndroid Build Coastguard Worker
1456*d5c09012SAndroid Build Coastguard Worker  // Output only. API version used to start the operation.
1457*d5c09012SAndroid Build Coastguard Worker  string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
1458*d5c09012SAndroid Build Coastguard Worker}
1459*d5c09012SAndroid Build Coastguard Worker
1460*d5c09012SAndroid Build Coastguard Worker// Message for requesting list of Users
1461*d5c09012SAndroid Build Coastguard Workermessage ListUsersRequest {
1462*d5c09012SAndroid Build Coastguard Worker  // Required. Parent value for ListUsersRequest
1463*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
1464*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1465*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
1466*d5c09012SAndroid Build Coastguard Worker      child_type: "alloydb.googleapis.com/User"
1467*d5c09012SAndroid Build Coastguard Worker    }
1468*d5c09012SAndroid Build Coastguard Worker  ];
1469*d5c09012SAndroid Build Coastguard Worker
1470*d5c09012SAndroid Build Coastguard Worker  // Optional. Requested page size. Server may return fewer items than
1471*d5c09012SAndroid Build Coastguard Worker  // requested. If unspecified, server will pick an appropriate default.
1472*d5c09012SAndroid Build Coastguard Worker  int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
1473*d5c09012SAndroid Build Coastguard Worker
1474*d5c09012SAndroid Build Coastguard Worker  // Optional. A token identifying a page of results the server should return.
1475*d5c09012SAndroid Build Coastguard Worker  string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
1476*d5c09012SAndroid Build Coastguard Worker
1477*d5c09012SAndroid Build Coastguard Worker  // Optional. Filtering results
1478*d5c09012SAndroid Build Coastguard Worker  string filter = 4 [(google.api.field_behavior) = OPTIONAL];
1479*d5c09012SAndroid Build Coastguard Worker
1480*d5c09012SAndroid Build Coastguard Worker  // Optional. Hint for how to order the results
1481*d5c09012SAndroid Build Coastguard Worker  string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
1482*d5c09012SAndroid Build Coastguard Worker}
1483*d5c09012SAndroid Build Coastguard Worker
1484*d5c09012SAndroid Build Coastguard Worker// Message for response to listing Users
1485*d5c09012SAndroid Build Coastguard Workermessage ListUsersResponse {
1486*d5c09012SAndroid Build Coastguard Worker  // The list of User
1487*d5c09012SAndroid Build Coastguard Worker  repeated User users = 1;
1488*d5c09012SAndroid Build Coastguard Worker
1489*d5c09012SAndroid Build Coastguard Worker  // A token identifying a page of results the server should return.
1490*d5c09012SAndroid Build Coastguard Worker  string next_page_token = 2;
1491*d5c09012SAndroid Build Coastguard Worker
1492*d5c09012SAndroid Build Coastguard Worker  // Locations that could not be reached.
1493*d5c09012SAndroid Build Coastguard Worker  repeated string unreachable = 3;
1494*d5c09012SAndroid Build Coastguard Worker}
1495*d5c09012SAndroid Build Coastguard Worker
1496*d5c09012SAndroid Build Coastguard Worker// Message for getting a User
1497*d5c09012SAndroid Build Coastguard Workermessage GetUserRequest {
1498*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the resource. For the required format, see the
1499*d5c09012SAndroid Build Coastguard Worker  // comment on the User.name field.
1500*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
1501*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1502*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = { type: "alloydb.googleapis.com/User" }
1503*d5c09012SAndroid Build Coastguard Worker  ];
1504*d5c09012SAndroid Build Coastguard Worker}
1505*d5c09012SAndroid Build Coastguard Worker
1506*d5c09012SAndroid Build Coastguard Worker// Message for creating a User
1507*d5c09012SAndroid Build Coastguard Workermessage CreateUserRequest {
1508*d5c09012SAndroid Build Coastguard Worker  // Required. Value for parent.
1509*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
1510*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1511*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
1512*d5c09012SAndroid Build Coastguard Worker      child_type: "alloydb.googleapis.com/User"
1513*d5c09012SAndroid Build Coastguard Worker    }
1514*d5c09012SAndroid Build Coastguard Worker  ];
1515*d5c09012SAndroid Build Coastguard Worker
1516*d5c09012SAndroid Build Coastguard Worker  // Required. ID of the requesting object.
1517*d5c09012SAndroid Build Coastguard Worker  string user_id = 2 [(google.api.field_behavior) = REQUIRED];
1518*d5c09012SAndroid Build Coastguard Worker
1519*d5c09012SAndroid Build Coastguard Worker  // Required. The resource being created
1520*d5c09012SAndroid Build Coastguard Worker  User user = 3 [(google.api.field_behavior) = REQUIRED];
1521*d5c09012SAndroid Build Coastguard Worker
1522*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
1523*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
1524*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
1525*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes since the first request.
1526*d5c09012SAndroid Build Coastguard Worker  //
1527*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
1528*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
1529*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
1530*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
1531*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
1532*d5c09012SAndroid Build Coastguard Worker  //
1533*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
1534*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
1535*d5c09012SAndroid Build Coastguard Worker  string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
1536*d5c09012SAndroid Build Coastguard Worker
1537*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, the backend validates the request, but doesn't actually
1538*d5c09012SAndroid Build Coastguard Worker  // execute it.
1539*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL];
1540*d5c09012SAndroid Build Coastguard Worker}
1541*d5c09012SAndroid Build Coastguard Worker
1542*d5c09012SAndroid Build Coastguard Worker// Message for updating a User
1543*d5c09012SAndroid Build Coastguard Workermessage UpdateUserRequest {
1544*d5c09012SAndroid Build Coastguard Worker  // Optional. Field mask is used to specify the fields to be overwritten in the
1545*d5c09012SAndroid Build Coastguard Worker  // User resource by the update.
1546*d5c09012SAndroid Build Coastguard Worker  // The fields specified in the update_mask are relative to the resource, not
1547*d5c09012SAndroid Build Coastguard Worker  // the full request. A field will be overwritten if it is in the mask. If the
1548*d5c09012SAndroid Build Coastguard Worker  // user does not provide a mask then all fields will be overwritten.
1549*d5c09012SAndroid Build Coastguard Worker  google.protobuf.FieldMask update_mask = 1
1550*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OPTIONAL];
1551*d5c09012SAndroid Build Coastguard Worker
1552*d5c09012SAndroid Build Coastguard Worker  // Required. The resource being updated
1553*d5c09012SAndroid Build Coastguard Worker  User user = 2 [(google.api.field_behavior) = REQUIRED];
1554*d5c09012SAndroid Build Coastguard Worker
1555*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
1556*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
1557*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
1558*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes since the first request.
1559*d5c09012SAndroid Build Coastguard Worker  //
1560*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
1561*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
1562*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
1563*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
1564*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
1565*d5c09012SAndroid Build Coastguard Worker  //
1566*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
1567*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
1568*d5c09012SAndroid Build Coastguard Worker  string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
1569*d5c09012SAndroid Build Coastguard Worker
1570*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, the backend validates the request, but doesn't actually
1571*d5c09012SAndroid Build Coastguard Worker  // execute it.
1572*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL];
1573*d5c09012SAndroid Build Coastguard Worker
1574*d5c09012SAndroid Build Coastguard Worker  // Optional. Allow missing fields in the update mask.
1575*d5c09012SAndroid Build Coastguard Worker  bool allow_missing = 5 [(google.api.field_behavior) = OPTIONAL];
1576*d5c09012SAndroid Build Coastguard Worker}
1577*d5c09012SAndroid Build Coastguard Worker
1578*d5c09012SAndroid Build Coastguard Worker// Message for deleting a User
1579*d5c09012SAndroid Build Coastguard Workermessage DeleteUserRequest {
1580*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the resource. For the required format, see the
1581*d5c09012SAndroid Build Coastguard Worker  // comment on the User.name field.
1582*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
1583*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1584*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = { type: "alloydb.googleapis.com/User" }
1585*d5c09012SAndroid Build Coastguard Worker  ];
1586*d5c09012SAndroid Build Coastguard Worker
1587*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
1588*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
1589*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
1590*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes after the first request.
1591*d5c09012SAndroid Build Coastguard Worker  //
1592*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
1593*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
1594*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
1595*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
1596*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
1597*d5c09012SAndroid Build Coastguard Worker  //
1598*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
1599*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
1600*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
1601*d5c09012SAndroid Build Coastguard Worker
1602*d5c09012SAndroid Build Coastguard Worker  // Optional. If set, the backend validates the request, but doesn't actually
1603*d5c09012SAndroid Build Coastguard Worker  // execute it.
1604*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL];
1605*d5c09012SAndroid Build Coastguard Worker}
1606*d5c09012SAndroid Build Coastguard Worker
1607*d5c09012SAndroid Build Coastguard Worker// Message for requesting list of Databases.
1608*d5c09012SAndroid Build Coastguard Workermessage ListDatabasesRequest {
1609*d5c09012SAndroid Build Coastguard Worker  // Required. Parent value for ListDatabasesRequest.
1610*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
1611*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1612*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
1613*d5c09012SAndroid Build Coastguard Worker      child_type: "alloydb.googleapis.com/Database"
1614*d5c09012SAndroid Build Coastguard Worker    }
1615*d5c09012SAndroid Build Coastguard Worker  ];
1616*d5c09012SAndroid Build Coastguard Worker
1617*d5c09012SAndroid Build Coastguard Worker  // Optional. The maximum number of databases to return. The service may return
1618*d5c09012SAndroid Build Coastguard Worker  // fewer than this value. If unspecified, an appropriate number of databases
1619*d5c09012SAndroid Build Coastguard Worker  // will be returned. The max value will be 2000, values above max will be
1620*d5c09012SAndroid Build Coastguard Worker  // coerced to max.
1621*d5c09012SAndroid Build Coastguard Worker  int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
1622*d5c09012SAndroid Build Coastguard Worker
1623*d5c09012SAndroid Build Coastguard Worker  // Optional. A page token, received from a previous `ListDatabases` call.
1624*d5c09012SAndroid Build Coastguard Worker  // This should be provided to retrieve the subsequent page.
1625*d5c09012SAndroid Build Coastguard Worker  // This field is currently not supported, its value will be ignored if passed.
1626*d5c09012SAndroid Build Coastguard Worker  string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
1627*d5c09012SAndroid Build Coastguard Worker
1628*d5c09012SAndroid Build Coastguard Worker  // Optional. Filtering results.
1629*d5c09012SAndroid Build Coastguard Worker  // This field is currently not supported, its value will be ignored if passed.
1630*d5c09012SAndroid Build Coastguard Worker  string filter = 4 [(google.api.field_behavior) = OPTIONAL];
1631*d5c09012SAndroid Build Coastguard Worker}
1632*d5c09012SAndroid Build Coastguard Worker
1633*d5c09012SAndroid Build Coastguard Worker// Message for response to listing Databases.
1634*d5c09012SAndroid Build Coastguard Workermessage ListDatabasesResponse {
1635*d5c09012SAndroid Build Coastguard Worker  // The list of databases
1636*d5c09012SAndroid Build Coastguard Worker  repeated Database databases = 1;
1637*d5c09012SAndroid Build Coastguard Worker
1638*d5c09012SAndroid Build Coastguard Worker  // A token identifying the next page of results the server should return.
1639*d5c09012SAndroid Build Coastguard Worker  // If this field is omitted, there are no subsequent pages.
1640*d5c09012SAndroid Build Coastguard Worker  string next_page_token = 2;
1641*d5c09012SAndroid Build Coastguard Worker}
1642