xref: /aosp_15_r20/external/googleapis/google/cloud/datastream/v1/datastream.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.datastream.v1;
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/datastream/v1/datastream_resources.proto";
24*d5c09012SAndroid Build Coastguard Workerimport "google/longrunning/operations.proto";
25*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/empty.proto";
26*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/field_mask.proto";
27*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/timestamp.proto";
28*d5c09012SAndroid Build Coastguard Worker
29*d5c09012SAndroid Build Coastguard Workeroption csharp_namespace = "Google.Cloud.Datastream.V1";
30*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/datastream/apiv1/datastreampb;datastreampb";
31*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true;
32*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "DatastreamProto";
33*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.datastream.v1";
34*d5c09012SAndroid Build Coastguard Workeroption php_namespace = "Google\\Cloud\\Datastream\\V1";
35*d5c09012SAndroid Build Coastguard Workeroption ruby_package = "Google::Cloud::Datastream::V1";
36*d5c09012SAndroid Build Coastguard Worker
37*d5c09012SAndroid Build Coastguard Worker// Datastream service
38*d5c09012SAndroid Build Coastguard Workerservice Datastream {
39*d5c09012SAndroid Build Coastguard Worker  option (google.api.default_host) = "datastream.googleapis.com";
40*d5c09012SAndroid Build Coastguard Worker  option (google.api.oauth_scopes) =
41*d5c09012SAndroid Build Coastguard Worker      "https://www.googleapis.com/auth/cloud-platform";
42*d5c09012SAndroid Build Coastguard Worker
43*d5c09012SAndroid Build Coastguard Worker  // Use this method to list connection profiles created in a project and
44*d5c09012SAndroid Build Coastguard Worker  // location.
45*d5c09012SAndroid Build Coastguard Worker  rpc ListConnectionProfiles(ListConnectionProfilesRequest)
46*d5c09012SAndroid Build Coastguard Worker      returns (ListConnectionProfilesResponse) {
47*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
48*d5c09012SAndroid Build Coastguard Worker      get: "/v1/{parent=projects/*/locations/*}/connectionProfiles"
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  // Use this method to get details about a connection profile.
54*d5c09012SAndroid Build Coastguard Worker  rpc GetConnectionProfile(GetConnectionProfileRequest)
55*d5c09012SAndroid Build Coastguard Worker      returns (ConnectionProfile) {
56*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
57*d5c09012SAndroid Build Coastguard Worker      get: "/v1/{name=projects/*/locations/*/connectionProfiles/*}"
58*d5c09012SAndroid Build Coastguard Worker    };
59*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
60*d5c09012SAndroid Build Coastguard Worker  }
61*d5c09012SAndroid Build Coastguard Worker
62*d5c09012SAndroid Build Coastguard Worker  // Use this method to create a connection profile in a project and location.
63*d5c09012SAndroid Build Coastguard Worker  rpc CreateConnectionProfile(CreateConnectionProfileRequest)
64*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
65*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
66*d5c09012SAndroid Build Coastguard Worker      post: "/v1/{parent=projects/*/locations/*}/connectionProfiles"
67*d5c09012SAndroid Build Coastguard Worker      body: "connection_profile"
68*d5c09012SAndroid Build Coastguard Worker    };
69*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) =
70*d5c09012SAndroid Build Coastguard Worker        "parent,connection_profile,connection_profile_id";
71*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
72*d5c09012SAndroid Build Coastguard Worker      response_type: "ConnectionProfile"
73*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
74*d5c09012SAndroid Build Coastguard Worker    };
75*d5c09012SAndroid Build Coastguard Worker  }
76*d5c09012SAndroid Build Coastguard Worker
77*d5c09012SAndroid Build Coastguard Worker  // Use this method to update the parameters of a connection profile.
78*d5c09012SAndroid Build Coastguard Worker  rpc UpdateConnectionProfile(UpdateConnectionProfileRequest)
79*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
80*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
81*d5c09012SAndroid Build Coastguard Worker      patch: "/v1/{connection_profile.name=projects/*/locations/*/connectionProfiles/*}"
82*d5c09012SAndroid Build Coastguard Worker      body: "connection_profile"
83*d5c09012SAndroid Build Coastguard Worker    };
84*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "connection_profile,update_mask";
85*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
86*d5c09012SAndroid Build Coastguard Worker      response_type: "ConnectionProfile"
87*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
88*d5c09012SAndroid Build Coastguard Worker    };
89*d5c09012SAndroid Build Coastguard Worker  }
90*d5c09012SAndroid Build Coastguard Worker
91*d5c09012SAndroid Build Coastguard Worker  // Use this method to delete a connection profile.
92*d5c09012SAndroid Build Coastguard Worker  rpc DeleteConnectionProfile(DeleteConnectionProfileRequest)
93*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
94*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
95*d5c09012SAndroid Build Coastguard Worker      delete: "/v1/{name=projects/*/locations/*/connectionProfiles/*}"
96*d5c09012SAndroid Build Coastguard Worker    };
97*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
98*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
99*d5c09012SAndroid Build Coastguard Worker      response_type: "google.protobuf.Empty"
100*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
101*d5c09012SAndroid Build Coastguard Worker    };
102*d5c09012SAndroid Build Coastguard Worker  }
103*d5c09012SAndroid Build Coastguard Worker
104*d5c09012SAndroid Build Coastguard Worker  // Use this method to discover a connection profile.
105*d5c09012SAndroid Build Coastguard Worker  // The discover API call exposes the data objects and metadata belonging to
106*d5c09012SAndroid Build Coastguard Worker  // the profile. Typically, a request returns children data objects of a
107*d5c09012SAndroid Build Coastguard Worker  // parent data object that's optionally supplied in the request.
108*d5c09012SAndroid Build Coastguard Worker  rpc DiscoverConnectionProfile(DiscoverConnectionProfileRequest)
109*d5c09012SAndroid Build Coastguard Worker      returns (DiscoverConnectionProfileResponse) {
110*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
111*d5c09012SAndroid Build Coastguard Worker      post: "/v1/{parent=projects/*/locations/*}/connectionProfiles:discover"
112*d5c09012SAndroid Build Coastguard Worker      body: "*"
113*d5c09012SAndroid Build Coastguard Worker    };
114*d5c09012SAndroid Build Coastguard Worker  }
115*d5c09012SAndroid Build Coastguard Worker
116*d5c09012SAndroid Build Coastguard Worker  // Use this method to list streams in a project and location.
117*d5c09012SAndroid Build Coastguard Worker  rpc ListStreams(ListStreamsRequest) returns (ListStreamsResponse) {
118*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
119*d5c09012SAndroid Build Coastguard Worker      get: "/v1/{parent=projects/*/locations/*}/streams"
120*d5c09012SAndroid Build Coastguard Worker    };
121*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent";
122*d5c09012SAndroid Build Coastguard Worker  }
123*d5c09012SAndroid Build Coastguard Worker
124*d5c09012SAndroid Build Coastguard Worker  // Use this method to get details about a stream.
125*d5c09012SAndroid Build Coastguard Worker  rpc GetStream(GetStreamRequest) returns (Stream) {
126*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
127*d5c09012SAndroid Build Coastguard Worker      get: "/v1/{name=projects/*/locations/*/streams/*}"
128*d5c09012SAndroid Build Coastguard Worker    };
129*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
130*d5c09012SAndroid Build Coastguard Worker  }
131*d5c09012SAndroid Build Coastguard Worker
132*d5c09012SAndroid Build Coastguard Worker  // Use this method to create a stream.
133*d5c09012SAndroid Build Coastguard Worker  rpc CreateStream(CreateStreamRequest) returns (google.longrunning.Operation) {
134*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
135*d5c09012SAndroid Build Coastguard Worker      post: "/v1/{parent=projects/*/locations/*}/streams"
136*d5c09012SAndroid Build Coastguard Worker      body: "stream"
137*d5c09012SAndroid Build Coastguard Worker    };
138*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent,stream,stream_id";
139*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
140*d5c09012SAndroid Build Coastguard Worker      response_type: "Stream"
141*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
142*d5c09012SAndroid Build Coastguard Worker    };
143*d5c09012SAndroid Build Coastguard Worker  }
144*d5c09012SAndroid Build Coastguard Worker
145*d5c09012SAndroid Build Coastguard Worker  // Use this method to update the configuration of a stream.
146*d5c09012SAndroid Build Coastguard Worker  rpc UpdateStream(UpdateStreamRequest) returns (google.longrunning.Operation) {
147*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
148*d5c09012SAndroid Build Coastguard Worker      patch: "/v1/{stream.name=projects/*/locations/*/streams/*}"
149*d5c09012SAndroid Build Coastguard Worker      body: "stream"
150*d5c09012SAndroid Build Coastguard Worker    };
151*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "stream,update_mask";
152*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
153*d5c09012SAndroid Build Coastguard Worker      response_type: "Stream"
154*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
155*d5c09012SAndroid Build Coastguard Worker    };
156*d5c09012SAndroid Build Coastguard Worker  }
157*d5c09012SAndroid Build Coastguard Worker
158*d5c09012SAndroid Build Coastguard Worker  // Use this method to delete a stream.
159*d5c09012SAndroid Build Coastguard Worker  rpc DeleteStream(DeleteStreamRequest) returns (google.longrunning.Operation) {
160*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
161*d5c09012SAndroid Build Coastguard Worker      delete: "/v1/{name=projects/*/locations/*/streams/*}"
162*d5c09012SAndroid Build Coastguard Worker    };
163*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
164*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
165*d5c09012SAndroid Build Coastguard Worker      response_type: "google.protobuf.Empty"
166*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
167*d5c09012SAndroid Build Coastguard Worker    };
168*d5c09012SAndroid Build Coastguard Worker  }
169*d5c09012SAndroid Build Coastguard Worker
170*d5c09012SAndroid Build Coastguard Worker  // Use this method to get details about a stream object.
171*d5c09012SAndroid Build Coastguard Worker  rpc GetStreamObject(GetStreamObjectRequest) returns (StreamObject) {
172*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
173*d5c09012SAndroid Build Coastguard Worker      get: "/v1/{name=projects/*/locations/*/streams/*/objects/*}"
174*d5c09012SAndroid Build Coastguard Worker    };
175*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
176*d5c09012SAndroid Build Coastguard Worker  }
177*d5c09012SAndroid Build Coastguard Worker
178*d5c09012SAndroid Build Coastguard Worker  // Use this method to look up a stream object by its source object identifier.
179*d5c09012SAndroid Build Coastguard Worker  rpc LookupStreamObject(LookupStreamObjectRequest) returns (StreamObject) {
180*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
181*d5c09012SAndroid Build Coastguard Worker      post: "/v1/{parent=projects/*/locations/*/streams/*}/objects:lookup"
182*d5c09012SAndroid Build Coastguard Worker      body: "*"
183*d5c09012SAndroid Build Coastguard Worker    };
184*d5c09012SAndroid Build Coastguard Worker  }
185*d5c09012SAndroid Build Coastguard Worker
186*d5c09012SAndroid Build Coastguard Worker  // Use this method to list the objects of a specific stream.
187*d5c09012SAndroid Build Coastguard Worker  rpc ListStreamObjects(ListStreamObjectsRequest)
188*d5c09012SAndroid Build Coastguard Worker      returns (ListStreamObjectsResponse) {
189*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
190*d5c09012SAndroid Build Coastguard Worker      get: "/v1/{parent=projects/*/locations/*/streams/*}/objects"
191*d5c09012SAndroid Build Coastguard Worker    };
192*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent";
193*d5c09012SAndroid Build Coastguard Worker  }
194*d5c09012SAndroid Build Coastguard Worker
195*d5c09012SAndroid Build Coastguard Worker  // Use this method to start a backfill job for the specified stream object.
196*d5c09012SAndroid Build Coastguard Worker  rpc StartBackfillJob(StartBackfillJobRequest)
197*d5c09012SAndroid Build Coastguard Worker      returns (StartBackfillJobResponse) {
198*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
199*d5c09012SAndroid Build Coastguard Worker      post: "/v1/{object=projects/*/locations/*/streams/*/objects/*}:startBackfillJob"
200*d5c09012SAndroid Build Coastguard Worker      body: "*"
201*d5c09012SAndroid Build Coastguard Worker    };
202*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "object";
203*d5c09012SAndroid Build Coastguard Worker  }
204*d5c09012SAndroid Build Coastguard Worker
205*d5c09012SAndroid Build Coastguard Worker  // Use this method to stop a backfill job for the specified stream object.
206*d5c09012SAndroid Build Coastguard Worker  rpc StopBackfillJob(StopBackfillJobRequest)
207*d5c09012SAndroid Build Coastguard Worker      returns (StopBackfillJobResponse) {
208*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
209*d5c09012SAndroid Build Coastguard Worker      post: "/v1/{object=projects/*/locations/*/streams/*/objects/*}:stopBackfillJob"
210*d5c09012SAndroid Build Coastguard Worker      body: "*"
211*d5c09012SAndroid Build Coastguard Worker    };
212*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "object";
213*d5c09012SAndroid Build Coastguard Worker  }
214*d5c09012SAndroid Build Coastguard Worker
215*d5c09012SAndroid Build Coastguard Worker  // The FetchStaticIps API call exposes the static IP addresses used by
216*d5c09012SAndroid Build Coastguard Worker  // Datastream.
217*d5c09012SAndroid Build Coastguard Worker  rpc FetchStaticIps(FetchStaticIpsRequest) returns (FetchStaticIpsResponse) {
218*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
219*d5c09012SAndroid Build Coastguard Worker      get: "/v1/{name=projects/*/locations/*}:fetchStaticIps"
220*d5c09012SAndroid Build Coastguard Worker    };
221*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
222*d5c09012SAndroid Build Coastguard Worker  }
223*d5c09012SAndroid Build Coastguard Worker
224*d5c09012SAndroid Build Coastguard Worker  // Use this method to create a private connectivity configuration.
225*d5c09012SAndroid Build Coastguard Worker  rpc CreatePrivateConnection(CreatePrivateConnectionRequest)
226*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
227*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
228*d5c09012SAndroid Build Coastguard Worker      post: "/v1/{parent=projects/*/locations/*}/privateConnections"
229*d5c09012SAndroid Build Coastguard Worker      body: "private_connection"
230*d5c09012SAndroid Build Coastguard Worker    };
231*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) =
232*d5c09012SAndroid Build Coastguard Worker        "parent,private_connection,private_connection_id";
233*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
234*d5c09012SAndroid Build Coastguard Worker      response_type: "PrivateConnection"
235*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
236*d5c09012SAndroid Build Coastguard Worker    };
237*d5c09012SAndroid Build Coastguard Worker  }
238*d5c09012SAndroid Build Coastguard Worker
239*d5c09012SAndroid Build Coastguard Worker  // Use this method to get details about a private connectivity configuration.
240*d5c09012SAndroid Build Coastguard Worker  rpc GetPrivateConnection(GetPrivateConnectionRequest)
241*d5c09012SAndroid Build Coastguard Worker      returns (PrivateConnection) {
242*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
243*d5c09012SAndroid Build Coastguard Worker      get: "/v1/{name=projects/*/locations/*/privateConnections/*}"
244*d5c09012SAndroid Build Coastguard Worker    };
245*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
246*d5c09012SAndroid Build Coastguard Worker  }
247*d5c09012SAndroid Build Coastguard Worker
248*d5c09012SAndroid Build Coastguard Worker  // Use this method to list private connectivity configurations in a project
249*d5c09012SAndroid Build Coastguard Worker  // and location.
250*d5c09012SAndroid Build Coastguard Worker  rpc ListPrivateConnections(ListPrivateConnectionsRequest)
251*d5c09012SAndroid Build Coastguard Worker      returns (ListPrivateConnectionsResponse) {
252*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
253*d5c09012SAndroid Build Coastguard Worker      get: "/v1/{parent=projects/*/locations/*}/privateConnections"
254*d5c09012SAndroid Build Coastguard Worker    };
255*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent";
256*d5c09012SAndroid Build Coastguard Worker  }
257*d5c09012SAndroid Build Coastguard Worker
258*d5c09012SAndroid Build Coastguard Worker  // Use this method to delete a private connectivity configuration.
259*d5c09012SAndroid Build Coastguard Worker  rpc DeletePrivateConnection(DeletePrivateConnectionRequest)
260*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
261*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
262*d5c09012SAndroid Build Coastguard Worker      delete: "/v1/{name=projects/*/locations/*/privateConnections/*}"
263*d5c09012SAndroid Build Coastguard Worker    };
264*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
265*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
266*d5c09012SAndroid Build Coastguard Worker      response_type: "google.protobuf.Empty"
267*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
268*d5c09012SAndroid Build Coastguard Worker    };
269*d5c09012SAndroid Build Coastguard Worker  }
270*d5c09012SAndroid Build Coastguard Worker
271*d5c09012SAndroid Build Coastguard Worker  // Use this method to create a route for a private connectivity configuration
272*d5c09012SAndroid Build Coastguard Worker  // in a project and location.
273*d5c09012SAndroid Build Coastguard Worker  rpc CreateRoute(CreateRouteRequest) returns (google.longrunning.Operation) {
274*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
275*d5c09012SAndroid Build Coastguard Worker      post: "/v1/{parent=projects/*/locations/*/privateConnections/*}/routes"
276*d5c09012SAndroid Build Coastguard Worker      body: "route"
277*d5c09012SAndroid Build Coastguard Worker    };
278*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent,route,route_id";
279*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
280*d5c09012SAndroid Build Coastguard Worker      response_type: "Route"
281*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
282*d5c09012SAndroid Build Coastguard Worker    };
283*d5c09012SAndroid Build Coastguard Worker  }
284*d5c09012SAndroid Build Coastguard Worker
285*d5c09012SAndroid Build Coastguard Worker  // Use this method to get details about a route.
286*d5c09012SAndroid Build Coastguard Worker  rpc GetRoute(GetRouteRequest) returns (Route) {
287*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
288*d5c09012SAndroid Build Coastguard Worker      get: "/v1/{name=projects/*/locations/*/privateConnections/*/routes/*}"
289*d5c09012SAndroid Build Coastguard Worker    };
290*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
291*d5c09012SAndroid Build Coastguard Worker  }
292*d5c09012SAndroid Build Coastguard Worker
293*d5c09012SAndroid Build Coastguard Worker  // Use this method to list routes created for a private connectivity
294*d5c09012SAndroid Build Coastguard Worker  // configuration in a project and location.
295*d5c09012SAndroid Build Coastguard Worker  rpc ListRoutes(ListRoutesRequest) returns (ListRoutesResponse) {
296*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
297*d5c09012SAndroid Build Coastguard Worker      get: "/v1/{parent=projects/*/locations/*/privateConnections/*}/routes"
298*d5c09012SAndroid Build Coastguard Worker    };
299*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent";
300*d5c09012SAndroid Build Coastguard Worker  }
301*d5c09012SAndroid Build Coastguard Worker
302*d5c09012SAndroid Build Coastguard Worker  // Use this method to delete a route.
303*d5c09012SAndroid Build Coastguard Worker  rpc DeleteRoute(DeleteRouteRequest) returns (google.longrunning.Operation) {
304*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
305*d5c09012SAndroid Build Coastguard Worker      delete: "/v1/{name=projects/*/locations/*/privateConnections/*/routes/*}"
306*d5c09012SAndroid Build Coastguard Worker    };
307*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
308*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
309*d5c09012SAndroid Build Coastguard Worker      response_type: "google.protobuf.Empty"
310*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
311*d5c09012SAndroid Build Coastguard Worker    };
312*d5c09012SAndroid Build Coastguard Worker  }
313*d5c09012SAndroid Build Coastguard Worker}
314*d5c09012SAndroid Build Coastguard Worker
315*d5c09012SAndroid Build Coastguard Worker// Request message for 'discover' ConnectionProfile request.
316*d5c09012SAndroid Build Coastguard Workermessage DiscoverConnectionProfileRequest {
317*d5c09012SAndroid Build Coastguard Worker  // Required. The parent resource of the connection profile type. Must be in
318*d5c09012SAndroid Build Coastguard Worker  // the format `projects/*/locations/*`.
319*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
320*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
321*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
322*d5c09012SAndroid Build Coastguard Worker      child_type: "datastream.googleapis.com/ConnectionProfile"
323*d5c09012SAndroid Build Coastguard Worker    }
324*d5c09012SAndroid Build Coastguard Worker  ];
325*d5c09012SAndroid Build Coastguard Worker
326*d5c09012SAndroid Build Coastguard Worker  // The connection profile on which to run discover.
327*d5c09012SAndroid Build Coastguard Worker  oneof target {
328*d5c09012SAndroid Build Coastguard Worker    // An ad-hoc connection profile configuration.
329*d5c09012SAndroid Build Coastguard Worker    ConnectionProfile connection_profile = 200;
330*d5c09012SAndroid Build Coastguard Worker
331*d5c09012SAndroid Build Coastguard Worker    // A reference to an existing connection profile.
332*d5c09012SAndroid Build Coastguard Worker    string connection_profile_name = 201;
333*d5c09012SAndroid Build Coastguard Worker  }
334*d5c09012SAndroid Build Coastguard Worker
335*d5c09012SAndroid Build Coastguard Worker  // The depth of the retrieved hierarchy of data objects.
336*d5c09012SAndroid Build Coastguard Worker  oneof hierarchy {
337*d5c09012SAndroid Build Coastguard Worker    // Whether to retrieve the full hierarchy of data objects (TRUE) or only the
338*d5c09012SAndroid Build Coastguard Worker    // current level (FALSE).
339*d5c09012SAndroid Build Coastguard Worker    bool full_hierarchy = 3;
340*d5c09012SAndroid Build Coastguard Worker
341*d5c09012SAndroid Build Coastguard Worker    // The number of hierarchy levels below the current level to be retrieved.
342*d5c09012SAndroid Build Coastguard Worker    int32 hierarchy_depth = 4;
343*d5c09012SAndroid Build Coastguard Worker  }
344*d5c09012SAndroid Build Coastguard Worker
345*d5c09012SAndroid Build Coastguard Worker  // The data object to populate with child data objects and metadata.
346*d5c09012SAndroid Build Coastguard Worker  oneof data_object {
347*d5c09012SAndroid Build Coastguard Worker    // Oracle RDBMS to enrich with child data objects and metadata.
348*d5c09012SAndroid Build Coastguard Worker    OracleRdbms oracle_rdbms = 100;
349*d5c09012SAndroid Build Coastguard Worker
350*d5c09012SAndroid Build Coastguard Worker    // MySQL RDBMS to enrich with child data objects and metadata.
351*d5c09012SAndroid Build Coastguard Worker    MysqlRdbms mysql_rdbms = 101;
352*d5c09012SAndroid Build Coastguard Worker
353*d5c09012SAndroid Build Coastguard Worker    // PostgreSQL RDBMS to enrich with child data objects and metadata.
354*d5c09012SAndroid Build Coastguard Worker    PostgresqlRdbms postgresql_rdbms = 102;
355*d5c09012SAndroid Build Coastguard Worker  }
356*d5c09012SAndroid Build Coastguard Worker}
357*d5c09012SAndroid Build Coastguard Worker
358*d5c09012SAndroid Build Coastguard Worker// Response from a discover request.
359*d5c09012SAndroid Build Coastguard Workermessage DiscoverConnectionProfileResponse {
360*d5c09012SAndroid Build Coastguard Worker  // The data object that has been enriched by the discover API call.
361*d5c09012SAndroid Build Coastguard Worker  oneof data_object {
362*d5c09012SAndroid Build Coastguard Worker    // Enriched Oracle RDBMS object.
363*d5c09012SAndroid Build Coastguard Worker    OracleRdbms oracle_rdbms = 100;
364*d5c09012SAndroid Build Coastguard Worker
365*d5c09012SAndroid Build Coastguard Worker    // Enriched MySQL RDBMS object.
366*d5c09012SAndroid Build Coastguard Worker    MysqlRdbms mysql_rdbms = 101;
367*d5c09012SAndroid Build Coastguard Worker
368*d5c09012SAndroid Build Coastguard Worker    // Enriched PostgreSQL RDBMS object.
369*d5c09012SAndroid Build Coastguard Worker    PostgresqlRdbms postgresql_rdbms = 102;
370*d5c09012SAndroid Build Coastguard Worker  }
371*d5c09012SAndroid Build Coastguard Worker}
372*d5c09012SAndroid Build Coastguard Worker
373*d5c09012SAndroid Build Coastguard Worker// Request message for 'FetchStaticIps' request.
374*d5c09012SAndroid Build Coastguard Workermessage FetchStaticIpsRequest {
375*d5c09012SAndroid Build Coastguard Worker  // Required. The resource name for the location for which static IPs should be
376*d5c09012SAndroid Build Coastguard Worker  // returned. Must be in the format `projects/*/locations/*`.
377*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
378*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
379*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
380*d5c09012SAndroid Build Coastguard Worker      type: "locations.googleapis.com/Location"
381*d5c09012SAndroid Build Coastguard Worker    }
382*d5c09012SAndroid Build Coastguard Worker  ];
383*d5c09012SAndroid Build Coastguard Worker
384*d5c09012SAndroid Build Coastguard Worker  // Maximum number of Ips to return, will likely not be specified.
385*d5c09012SAndroid Build Coastguard Worker  int32 page_size = 2;
386*d5c09012SAndroid Build Coastguard Worker
387*d5c09012SAndroid Build Coastguard Worker  // A page token, received from a previous `ListStaticIps` call.
388*d5c09012SAndroid Build Coastguard Worker  // will likely not be specified.
389*d5c09012SAndroid Build Coastguard Worker  string page_token = 3;
390*d5c09012SAndroid Build Coastguard Worker}
391*d5c09012SAndroid Build Coastguard Worker
392*d5c09012SAndroid Build Coastguard Worker// Response message for a 'FetchStaticIps' response.
393*d5c09012SAndroid Build Coastguard Workermessage FetchStaticIpsResponse {
394*d5c09012SAndroid Build Coastguard Worker  // list of static ips by account
395*d5c09012SAndroid Build Coastguard Worker  repeated string static_ips = 1;
396*d5c09012SAndroid Build Coastguard Worker
397*d5c09012SAndroid Build Coastguard Worker  // A token that can be sent as `page_token` to retrieve the next page.
398*d5c09012SAndroid Build Coastguard Worker  // If this field is omitted, there are no subsequent pages.
399*d5c09012SAndroid Build Coastguard Worker  string next_page_token = 2;
400*d5c09012SAndroid Build Coastguard Worker}
401*d5c09012SAndroid Build Coastguard Worker
402*d5c09012SAndroid Build Coastguard Worker// Request message for listing connection profiles.
403*d5c09012SAndroid Build Coastguard Workermessage ListConnectionProfilesRequest {
404*d5c09012SAndroid Build Coastguard Worker  // Required. The parent that owns the collection of connection profiles.
405*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
406*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
407*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
408*d5c09012SAndroid Build Coastguard Worker      child_type: "datastream.googleapis.com/ConnectionProfile"
409*d5c09012SAndroid Build Coastguard Worker    }
410*d5c09012SAndroid Build Coastguard Worker  ];
411*d5c09012SAndroid Build Coastguard Worker
412*d5c09012SAndroid Build Coastguard Worker  // Maximum number of connection profiles to return.
413*d5c09012SAndroid Build Coastguard Worker  // If unspecified, at most 50 connection profiles will be returned.
414*d5c09012SAndroid Build Coastguard Worker  // The maximum value is 1000; values above 1000 will be coerced to 1000.
415*d5c09012SAndroid Build Coastguard Worker  int32 page_size = 2;
416*d5c09012SAndroid Build Coastguard Worker
417*d5c09012SAndroid Build Coastguard Worker  // Page token received from a previous `ListConnectionProfiles` call.
418*d5c09012SAndroid Build Coastguard Worker  // Provide this to retrieve the subsequent page.
419*d5c09012SAndroid Build Coastguard Worker  //
420*d5c09012SAndroid Build Coastguard Worker  // When paginating, all other parameters provided to `ListConnectionProfiles`
421*d5c09012SAndroid Build Coastguard Worker  // must match the call that provided the page token.
422*d5c09012SAndroid Build Coastguard Worker  string page_token = 3;
423*d5c09012SAndroid Build Coastguard Worker
424*d5c09012SAndroid Build Coastguard Worker  // Filter request.
425*d5c09012SAndroid Build Coastguard Worker  string filter = 4;
426*d5c09012SAndroid Build Coastguard Worker
427*d5c09012SAndroid Build Coastguard Worker  // Order by fields for the result.
428*d5c09012SAndroid Build Coastguard Worker  string order_by = 5;
429*d5c09012SAndroid Build Coastguard Worker}
430*d5c09012SAndroid Build Coastguard Worker
431*d5c09012SAndroid Build Coastguard Worker// Response message for listing connection profiles.
432*d5c09012SAndroid Build Coastguard Workermessage ListConnectionProfilesResponse {
433*d5c09012SAndroid Build Coastguard Worker  // List of connection profiles.
434*d5c09012SAndroid Build Coastguard Worker  repeated ConnectionProfile connection_profiles = 1;
435*d5c09012SAndroid Build Coastguard Worker
436*d5c09012SAndroid Build Coastguard Worker  // A token, which can be sent as `page_token` to retrieve the next page.
437*d5c09012SAndroid Build Coastguard Worker  // If this field is omitted, there are no subsequent pages.
438*d5c09012SAndroid Build Coastguard Worker  string next_page_token = 2;
439*d5c09012SAndroid Build Coastguard Worker
440*d5c09012SAndroid Build Coastguard Worker  // Locations that could not be reached.
441*d5c09012SAndroid Build Coastguard Worker  repeated string unreachable = 3;
442*d5c09012SAndroid Build Coastguard Worker}
443*d5c09012SAndroid Build Coastguard Worker
444*d5c09012SAndroid Build Coastguard Worker// Request message for getting a connection profile.
445*d5c09012SAndroid Build Coastguard Workermessage GetConnectionProfileRequest {
446*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the connection profile resource to get.
447*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
448*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
449*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
450*d5c09012SAndroid Build Coastguard Worker      type: "datastream.googleapis.com/ConnectionProfile"
451*d5c09012SAndroid Build Coastguard Worker    }
452*d5c09012SAndroid Build Coastguard Worker  ];
453*d5c09012SAndroid Build Coastguard Worker}
454*d5c09012SAndroid Build Coastguard Worker
455*d5c09012SAndroid Build Coastguard Worker// Request message for creating a connection profile.
456*d5c09012SAndroid Build Coastguard Workermessage CreateConnectionProfileRequest {
457*d5c09012SAndroid Build Coastguard Worker  // Required. The parent that owns the collection of ConnectionProfiles.
458*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
459*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
460*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
461*d5c09012SAndroid Build Coastguard Worker      child_type: "datastream.googleapis.com/ConnectionProfile"
462*d5c09012SAndroid Build Coastguard Worker    }
463*d5c09012SAndroid Build Coastguard Worker  ];
464*d5c09012SAndroid Build Coastguard Worker
465*d5c09012SAndroid Build Coastguard Worker  // Required. The connection profile identifier.
466*d5c09012SAndroid Build Coastguard Worker  string connection_profile_id = 2 [(google.api.field_behavior) = REQUIRED];
467*d5c09012SAndroid Build Coastguard Worker
468*d5c09012SAndroid Build Coastguard Worker  // Required. The connection profile resource to create.
469*d5c09012SAndroid Build Coastguard Worker  ConnectionProfile connection_profile = 3
470*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = REQUIRED];
471*d5c09012SAndroid Build Coastguard Worker
472*d5c09012SAndroid Build Coastguard Worker  // Optional. A request ID to identify requests. Specify a unique request ID
473*d5c09012SAndroid Build Coastguard Worker  // so that if you must retry your request, the server will know to ignore
474*d5c09012SAndroid Build Coastguard Worker  // the request if it has already been completed. The server will guarantee
475*d5c09012SAndroid Build Coastguard Worker  // that for at least 60 minutes since the first request.
476*d5c09012SAndroid Build Coastguard Worker  //
477*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and the
478*d5c09012SAndroid Build Coastguard Worker  // request times out. If you make the request again with the same request ID,
479*d5c09012SAndroid Build Coastguard Worker  // the server can check if original operation with the same request ID was
480*d5c09012SAndroid Build Coastguard Worker  // received, and if so, will ignore the second request. This prevents clients
481*d5c09012SAndroid Build Coastguard Worker  // from accidentally creating duplicate commitments.
482*d5c09012SAndroid Build Coastguard Worker  //
483*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
484*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
485*d5c09012SAndroid Build Coastguard Worker  string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
486*d5c09012SAndroid Build Coastguard Worker
487*d5c09012SAndroid Build Coastguard Worker  // Optional. Only validate the connection profile, but don't create any
488*d5c09012SAndroid Build Coastguard Worker  // resources. The default is false.
489*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL];
490*d5c09012SAndroid Build Coastguard Worker
491*d5c09012SAndroid Build Coastguard Worker  // Optional. Create the connection profile without validating it.
492*d5c09012SAndroid Build Coastguard Worker  bool force = 6 [(google.api.field_behavior) = OPTIONAL];
493*d5c09012SAndroid Build Coastguard Worker}
494*d5c09012SAndroid Build Coastguard Worker
495*d5c09012SAndroid Build Coastguard Worker// Connection profile update message.
496*d5c09012SAndroid Build Coastguard Workermessage UpdateConnectionProfileRequest {
497*d5c09012SAndroid Build Coastguard Worker  // Optional. Field mask is used to specify the fields to be overwritten in the
498*d5c09012SAndroid Build Coastguard Worker  // ConnectionProfile resource by the update.
499*d5c09012SAndroid Build Coastguard Worker  // The fields specified in the update_mask are relative to the resource, not
500*d5c09012SAndroid Build Coastguard Worker  // the full request. A field will be overwritten if it is in the mask. If the
501*d5c09012SAndroid Build Coastguard Worker  // user does not provide a mask then all fields will be overwritten.
502*d5c09012SAndroid Build Coastguard Worker  google.protobuf.FieldMask update_mask = 1
503*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OPTIONAL];
504*d5c09012SAndroid Build Coastguard Worker
505*d5c09012SAndroid Build Coastguard Worker  // Required. The connection profile to update.
506*d5c09012SAndroid Build Coastguard Worker  ConnectionProfile connection_profile = 2
507*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = REQUIRED];
508*d5c09012SAndroid Build Coastguard Worker
509*d5c09012SAndroid Build Coastguard Worker  // Optional. A request ID to identify requests. Specify a unique request ID
510*d5c09012SAndroid Build Coastguard Worker  // so that if you must retry your request, the server will know to ignore
511*d5c09012SAndroid Build Coastguard Worker  // the request if it has already been completed. The server will guarantee
512*d5c09012SAndroid Build Coastguard Worker  // that for at least 60 minutes since the first request.
513*d5c09012SAndroid Build Coastguard Worker  //
514*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and the
515*d5c09012SAndroid Build Coastguard Worker  // request times out. If you make the request again with the same request ID,
516*d5c09012SAndroid Build Coastguard Worker  // the server can check if original operation with the same request ID was
517*d5c09012SAndroid Build Coastguard Worker  // received, and if so, will ignore the second request. This prevents clients
518*d5c09012SAndroid Build Coastguard Worker  // from accidentally creating duplicate commitments.
519*d5c09012SAndroid Build Coastguard Worker  //
520*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
521*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
522*d5c09012SAndroid Build Coastguard Worker  string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
523*d5c09012SAndroid Build Coastguard Worker
524*d5c09012SAndroid Build Coastguard Worker  // Optional. Only validate the connection profile, but don't update any
525*d5c09012SAndroid Build Coastguard Worker  // resources. The default is false.
526*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL];
527*d5c09012SAndroid Build Coastguard Worker
528*d5c09012SAndroid Build Coastguard Worker  // Optional. Update the connection profile without validating it.
529*d5c09012SAndroid Build Coastguard Worker  bool force = 5 [(google.api.field_behavior) = OPTIONAL];
530*d5c09012SAndroid Build Coastguard Worker}
531*d5c09012SAndroid Build Coastguard Worker
532*d5c09012SAndroid Build Coastguard Worker// Request message for deleting a connection profile.
533*d5c09012SAndroid Build Coastguard Workermessage DeleteConnectionProfileRequest {
534*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the connection profile resource to delete.
535*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
536*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
537*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
538*d5c09012SAndroid Build Coastguard Worker      type: "datastream.googleapis.com/ConnectionProfile"
539*d5c09012SAndroid Build Coastguard Worker    }
540*d5c09012SAndroid Build Coastguard Worker  ];
541*d5c09012SAndroid Build Coastguard Worker
542*d5c09012SAndroid Build Coastguard Worker  // Optional. A request ID to identify requests. Specify a unique request ID
543*d5c09012SAndroid Build Coastguard Worker  // so that if you must retry your request, the server will know to ignore
544*d5c09012SAndroid Build Coastguard Worker  // the request if it has already been completed. The server will guarantee
545*d5c09012SAndroid Build Coastguard Worker  // that for at least 60 minutes after the first request.
546*d5c09012SAndroid Build Coastguard Worker  //
547*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and the
548*d5c09012SAndroid Build Coastguard Worker  // request times out. If you make the request again with the same request ID,
549*d5c09012SAndroid Build Coastguard Worker  // the server can check if original operation with the same request ID was
550*d5c09012SAndroid Build Coastguard Worker  // received, and if so, will ignore the second request. This prevents clients
551*d5c09012SAndroid Build Coastguard Worker  // from accidentally creating duplicate commitments.
552*d5c09012SAndroid Build Coastguard Worker  //
553*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
554*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
555*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
556*d5c09012SAndroid Build Coastguard Worker}
557*d5c09012SAndroid Build Coastguard Worker
558*d5c09012SAndroid Build Coastguard Worker// Request message for listing streams.
559*d5c09012SAndroid Build Coastguard Workermessage ListStreamsRequest {
560*d5c09012SAndroid Build Coastguard Worker  // Required. The parent that owns the collection of streams.
561*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
562*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
563*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
564*d5c09012SAndroid Build Coastguard Worker      child_type: "datastream.googleapis.com/Stream"
565*d5c09012SAndroid Build Coastguard Worker    }
566*d5c09012SAndroid Build Coastguard Worker  ];
567*d5c09012SAndroid Build Coastguard Worker
568*d5c09012SAndroid Build Coastguard Worker  // Maximum number of streams to return.
569*d5c09012SAndroid Build Coastguard Worker  // If unspecified, at most 50 streams will  be returned. The maximum
570*d5c09012SAndroid Build Coastguard Worker  // value is 1000; values above 1000 will be coerced to 1000.
571*d5c09012SAndroid Build Coastguard Worker  int32 page_size = 2;
572*d5c09012SAndroid Build Coastguard Worker
573*d5c09012SAndroid Build Coastguard Worker  // Page token received from a previous `ListStreams` call.
574*d5c09012SAndroid Build Coastguard Worker  // Provide this to retrieve the subsequent page.
575*d5c09012SAndroid Build Coastguard Worker  //
576*d5c09012SAndroid Build Coastguard Worker  // When paginating, all other parameters provided to `ListStreams`
577*d5c09012SAndroid Build Coastguard Worker  // must match the call that provided the page token.
578*d5c09012SAndroid Build Coastguard Worker  string page_token = 3;
579*d5c09012SAndroid Build Coastguard Worker
580*d5c09012SAndroid Build Coastguard Worker  // Filter request.
581*d5c09012SAndroid Build Coastguard Worker  string filter = 4;
582*d5c09012SAndroid Build Coastguard Worker
583*d5c09012SAndroid Build Coastguard Worker  // Order by fields for the result.
584*d5c09012SAndroid Build Coastguard Worker  string order_by = 5;
585*d5c09012SAndroid Build Coastguard Worker}
586*d5c09012SAndroid Build Coastguard Worker
587*d5c09012SAndroid Build Coastguard Worker// Response message for listing streams.
588*d5c09012SAndroid Build Coastguard Workermessage ListStreamsResponse {
589*d5c09012SAndroid Build Coastguard Worker  // List of streams
590*d5c09012SAndroid Build Coastguard Worker  repeated Stream streams = 1;
591*d5c09012SAndroid Build Coastguard Worker
592*d5c09012SAndroid Build Coastguard Worker  // A token, which can be sent as `page_token` to retrieve the next page.
593*d5c09012SAndroid Build Coastguard Worker  // If this field is omitted, there are no subsequent pages.
594*d5c09012SAndroid Build Coastguard Worker  string next_page_token = 2;
595*d5c09012SAndroid Build Coastguard Worker
596*d5c09012SAndroid Build Coastguard Worker  // Locations that could not be reached.
597*d5c09012SAndroid Build Coastguard Worker  repeated string unreachable = 3;
598*d5c09012SAndroid Build Coastguard Worker}
599*d5c09012SAndroid Build Coastguard Worker
600*d5c09012SAndroid Build Coastguard Worker// Request message for getting a stream.
601*d5c09012SAndroid Build Coastguard Workermessage GetStreamRequest {
602*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the stream resource to get.
603*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
604*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
605*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
606*d5c09012SAndroid Build Coastguard Worker      type: "datastream.googleapis.com/Stream"
607*d5c09012SAndroid Build Coastguard Worker    }
608*d5c09012SAndroid Build Coastguard Worker  ];
609*d5c09012SAndroid Build Coastguard Worker}
610*d5c09012SAndroid Build Coastguard Worker
611*d5c09012SAndroid Build Coastguard Worker// Request message for creating a stream.
612*d5c09012SAndroid Build Coastguard Workermessage CreateStreamRequest {
613*d5c09012SAndroid Build Coastguard Worker  // Required. The parent that owns the collection of streams.
614*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
615*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
616*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
617*d5c09012SAndroid Build Coastguard Worker      child_type: "datastream.googleapis.com/Stream"
618*d5c09012SAndroid Build Coastguard Worker    }
619*d5c09012SAndroid Build Coastguard Worker  ];
620*d5c09012SAndroid Build Coastguard Worker
621*d5c09012SAndroid Build Coastguard Worker  // Required. The stream identifier.
622*d5c09012SAndroid Build Coastguard Worker  string stream_id = 2 [(google.api.field_behavior) = REQUIRED];
623*d5c09012SAndroid Build Coastguard Worker
624*d5c09012SAndroid Build Coastguard Worker  // Required. The stream resource to create.
625*d5c09012SAndroid Build Coastguard Worker  Stream stream = 3 [(google.api.field_behavior) = REQUIRED];
626*d5c09012SAndroid Build Coastguard Worker
627*d5c09012SAndroid Build Coastguard Worker  // Optional. A request ID to identify requests. Specify a unique request ID
628*d5c09012SAndroid Build Coastguard Worker  // so that if you must retry your request, the server will know to ignore
629*d5c09012SAndroid Build Coastguard Worker  // the request if it has already been completed. The server will guarantee
630*d5c09012SAndroid Build Coastguard Worker  // that for at least 60 minutes since the first request.
631*d5c09012SAndroid Build Coastguard Worker  //
632*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and the
633*d5c09012SAndroid Build Coastguard Worker  // request times out. If you make the request again with the same request ID,
634*d5c09012SAndroid Build Coastguard Worker  // the server can check if original operation with the same request ID was
635*d5c09012SAndroid Build Coastguard Worker  // received, and if so, will ignore the second request. This prevents clients
636*d5c09012SAndroid Build Coastguard Worker  // from accidentally creating duplicate commitments.
637*d5c09012SAndroid Build Coastguard Worker  //
638*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
639*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
640*d5c09012SAndroid Build Coastguard Worker  string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
641*d5c09012SAndroid Build Coastguard Worker
642*d5c09012SAndroid Build Coastguard Worker  // Optional. Only validate the stream, but don't create any resources.
643*d5c09012SAndroid Build Coastguard Worker  // The default is false.
644*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL];
645*d5c09012SAndroid Build Coastguard Worker
646*d5c09012SAndroid Build Coastguard Worker  // Optional. Create the stream without validating it.
647*d5c09012SAndroid Build Coastguard Worker  bool force = 6 [(google.api.field_behavior) = OPTIONAL];
648*d5c09012SAndroid Build Coastguard Worker}
649*d5c09012SAndroid Build Coastguard Worker
650*d5c09012SAndroid Build Coastguard Worker// Request message for updating a stream.
651*d5c09012SAndroid Build Coastguard Workermessage UpdateStreamRequest {
652*d5c09012SAndroid Build Coastguard Worker  // Optional. Field mask is used to specify the fields to be overwritten in the
653*d5c09012SAndroid Build Coastguard Worker  // stream resource by the update.
654*d5c09012SAndroid Build Coastguard Worker  // The fields specified in the update_mask are relative to the resource, not
655*d5c09012SAndroid Build Coastguard Worker  // the full request. A field will be overwritten if it is in the mask. If the
656*d5c09012SAndroid Build Coastguard Worker  // user does not provide a mask then all fields will be overwritten.
657*d5c09012SAndroid Build Coastguard Worker  google.protobuf.FieldMask update_mask = 1
658*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OPTIONAL];
659*d5c09012SAndroid Build Coastguard Worker
660*d5c09012SAndroid Build Coastguard Worker  // Required. The stream resource to update.
661*d5c09012SAndroid Build Coastguard Worker  Stream stream = 2 [(google.api.field_behavior) = REQUIRED];
662*d5c09012SAndroid Build Coastguard Worker
663*d5c09012SAndroid Build Coastguard Worker  // Optional. A request ID to identify requests. Specify a unique request ID
664*d5c09012SAndroid Build Coastguard Worker  // so that if you must retry your request, the server will know to ignore
665*d5c09012SAndroid Build Coastguard Worker  // the request if it has already been completed. The server will guarantee
666*d5c09012SAndroid Build Coastguard Worker  // that for at least 60 minutes since the first request.
667*d5c09012SAndroid Build Coastguard Worker  //
668*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and the
669*d5c09012SAndroid Build Coastguard Worker  // request times out. If you make the request again with the same request ID,
670*d5c09012SAndroid Build Coastguard Worker  // the server can check if original operation with the same request ID was
671*d5c09012SAndroid Build Coastguard Worker  // received, and if so, will ignore the second request. This prevents clients
672*d5c09012SAndroid Build Coastguard Worker  // from accidentally creating duplicate commitments.
673*d5c09012SAndroid Build Coastguard Worker  //
674*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
675*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
676*d5c09012SAndroid Build Coastguard Worker  string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
677*d5c09012SAndroid Build Coastguard Worker
678*d5c09012SAndroid Build Coastguard Worker  // Optional. Only validate the stream with the changes, without actually
679*d5c09012SAndroid Build Coastguard Worker  // updating it. The default is false.
680*d5c09012SAndroid Build Coastguard Worker  bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL];
681*d5c09012SAndroid Build Coastguard Worker
682*d5c09012SAndroid Build Coastguard Worker  // Optional. Update the stream without validating it.
683*d5c09012SAndroid Build Coastguard Worker  bool force = 5 [(google.api.field_behavior) = OPTIONAL];
684*d5c09012SAndroid Build Coastguard Worker}
685*d5c09012SAndroid Build Coastguard Worker
686*d5c09012SAndroid Build Coastguard Worker// Request message for deleting a stream.
687*d5c09012SAndroid Build Coastguard Workermessage DeleteStreamRequest {
688*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the stream resource to delete.
689*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
690*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
691*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
692*d5c09012SAndroid Build Coastguard Worker      type: "datastream.googleapis.com/Stream"
693*d5c09012SAndroid Build Coastguard Worker    }
694*d5c09012SAndroid Build Coastguard Worker  ];
695*d5c09012SAndroid Build Coastguard Worker
696*d5c09012SAndroid Build Coastguard Worker  // Optional. A request ID to identify requests. Specify a unique request ID
697*d5c09012SAndroid Build Coastguard Worker  // so that if you must retry your request, the server will know to ignore
698*d5c09012SAndroid Build Coastguard Worker  // the request if it has already been completed. The server will guarantee
699*d5c09012SAndroid Build Coastguard Worker  // that for at least 60 minutes after the first request.
700*d5c09012SAndroid Build Coastguard Worker  //
701*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and the
702*d5c09012SAndroid Build Coastguard Worker  // request times out. If you make the request again with the same request ID,
703*d5c09012SAndroid Build Coastguard Worker  // the server can check if original operation with the same request ID was
704*d5c09012SAndroid Build Coastguard Worker  // received, and if so, will ignore the second request. This prevents clients
705*d5c09012SAndroid Build Coastguard Worker  // from accidentally creating duplicate commitments.
706*d5c09012SAndroid Build Coastguard Worker  //
707*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
708*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
709*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
710*d5c09012SAndroid Build Coastguard Worker}
711*d5c09012SAndroid Build Coastguard Worker
712*d5c09012SAndroid Build Coastguard Worker// Request for fetching a specific stream object.
713*d5c09012SAndroid Build Coastguard Workermessage GetStreamObjectRequest {
714*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the stream object resource to get.
715*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
716*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
717*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
718*d5c09012SAndroid Build Coastguard Worker      type: "datastream.googleapis.com/StreamObject"
719*d5c09012SAndroid Build Coastguard Worker    }
720*d5c09012SAndroid Build Coastguard Worker  ];
721*d5c09012SAndroid Build Coastguard Worker}
722*d5c09012SAndroid Build Coastguard Worker
723*d5c09012SAndroid Build Coastguard Worker// Request for looking up a specific stream object by its source object
724*d5c09012SAndroid Build Coastguard Worker// identifier.
725*d5c09012SAndroid Build Coastguard Workermessage LookupStreamObjectRequest {
726*d5c09012SAndroid Build Coastguard Worker  // Required. The parent stream that owns the collection of objects.
727*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
728*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
729*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
730*d5c09012SAndroid Build Coastguard Worker      type: "datastream.googleapis.com/Stream"
731*d5c09012SAndroid Build Coastguard Worker    }
732*d5c09012SAndroid Build Coastguard Worker  ];
733*d5c09012SAndroid Build Coastguard Worker
734*d5c09012SAndroid Build Coastguard Worker  // Required. The source object identifier which maps to the stream object.
735*d5c09012SAndroid Build Coastguard Worker  SourceObjectIdentifier source_object_identifier = 2
736*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = REQUIRED];
737*d5c09012SAndroid Build Coastguard Worker}
738*d5c09012SAndroid Build Coastguard Worker
739*d5c09012SAndroid Build Coastguard Worker// Request for manually initiating a backfill job for a specific stream object.
740*d5c09012SAndroid Build Coastguard Workermessage StartBackfillJobRequest {
741*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the stream object resource to start a backfill job
742*d5c09012SAndroid Build Coastguard Worker  // for.
743*d5c09012SAndroid Build Coastguard Worker  string object = 1 [
744*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
745*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
746*d5c09012SAndroid Build Coastguard Worker      type: "datastream.googleapis.com/StreamObject"
747*d5c09012SAndroid Build Coastguard Worker    }
748*d5c09012SAndroid Build Coastguard Worker  ];
749*d5c09012SAndroid Build Coastguard Worker}
750*d5c09012SAndroid Build Coastguard Worker
751*d5c09012SAndroid Build Coastguard Worker// Response for manually initiating a backfill job for a specific stream object.
752*d5c09012SAndroid Build Coastguard Workermessage StartBackfillJobResponse {
753*d5c09012SAndroid Build Coastguard Worker  // The stream object resource a backfill job was started for.
754*d5c09012SAndroid Build Coastguard Worker  StreamObject object = 1;
755*d5c09012SAndroid Build Coastguard Worker}
756*d5c09012SAndroid Build Coastguard Worker
757*d5c09012SAndroid Build Coastguard Worker// Request for manually stopping a running backfill job for a specific stream
758*d5c09012SAndroid Build Coastguard Worker// object.
759*d5c09012SAndroid Build Coastguard Workermessage StopBackfillJobRequest {
760*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the stream object resource to stop the backfill job
761*d5c09012SAndroid Build Coastguard Worker  // for.
762*d5c09012SAndroid Build Coastguard Worker  string object = 1 [
763*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
764*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
765*d5c09012SAndroid Build Coastguard Worker      type: "datastream.googleapis.com/StreamObject"
766*d5c09012SAndroid Build Coastguard Worker    }
767*d5c09012SAndroid Build Coastguard Worker  ];
768*d5c09012SAndroid Build Coastguard Worker}
769*d5c09012SAndroid Build Coastguard Worker
770*d5c09012SAndroid Build Coastguard Worker// Response for manually stop a backfill job for a specific stream object.
771*d5c09012SAndroid Build Coastguard Workermessage StopBackfillJobResponse {
772*d5c09012SAndroid Build Coastguard Worker  // The stream object resource the backfill job was stopped for.
773*d5c09012SAndroid Build Coastguard Worker  StreamObject object = 1;
774*d5c09012SAndroid Build Coastguard Worker}
775*d5c09012SAndroid Build Coastguard Worker
776*d5c09012SAndroid Build Coastguard Worker// Request for listing all objects for a specific stream.
777*d5c09012SAndroid Build Coastguard Workermessage ListStreamObjectsRequest {
778*d5c09012SAndroid Build Coastguard Worker  // Required. The parent stream that owns the collection of objects.
779*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
780*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
781*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
782*d5c09012SAndroid Build Coastguard Worker      child_type: "datastream.googleapis.com/StreamObject"
783*d5c09012SAndroid Build Coastguard Worker    }
784*d5c09012SAndroid Build Coastguard Worker  ];
785*d5c09012SAndroid Build Coastguard Worker
786*d5c09012SAndroid Build Coastguard Worker  // Maximum number of objects to return. Default is 50.
787*d5c09012SAndroid Build Coastguard Worker  // The maximum value is 1000; values above 1000 will be coerced to 1000.
788*d5c09012SAndroid Build Coastguard Worker  int32 page_size = 2;
789*d5c09012SAndroid Build Coastguard Worker
790*d5c09012SAndroid Build Coastguard Worker  // Page token received from a previous `ListStreamObjectsRequest` call.
791*d5c09012SAndroid Build Coastguard Worker  // Provide this to retrieve the subsequent page.
792*d5c09012SAndroid Build Coastguard Worker  //
793*d5c09012SAndroid Build Coastguard Worker  // When paginating, all other parameters provided to
794*d5c09012SAndroid Build Coastguard Worker  // `ListStreamObjectsRequest` must match the call that provided the page
795*d5c09012SAndroid Build Coastguard Worker  // token.
796*d5c09012SAndroid Build Coastguard Worker  string page_token = 3;
797*d5c09012SAndroid Build Coastguard Worker}
798*d5c09012SAndroid Build Coastguard Worker
799*d5c09012SAndroid Build Coastguard Worker// Response containing the objects for a stream.
800*d5c09012SAndroid Build Coastguard Workermessage ListStreamObjectsResponse {
801*d5c09012SAndroid Build Coastguard Worker  // List of stream objects.
802*d5c09012SAndroid Build Coastguard Worker  repeated StreamObject stream_objects = 1;
803*d5c09012SAndroid Build Coastguard Worker
804*d5c09012SAndroid Build Coastguard Worker  // A token, which can be sent as `page_token` to retrieve the next page.
805*d5c09012SAndroid Build Coastguard Worker  string next_page_token = 2;
806*d5c09012SAndroid Build Coastguard Worker}
807*d5c09012SAndroid Build Coastguard Worker
808*d5c09012SAndroid Build Coastguard Worker// Represents the metadata of the long-running operation.
809*d5c09012SAndroid Build Coastguard Workermessage OperationMetadata {
810*d5c09012SAndroid Build Coastguard Worker  // Output only. The time the operation was created.
811*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp create_time = 1
812*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
813*d5c09012SAndroid Build Coastguard Worker
814*d5c09012SAndroid Build Coastguard Worker  // Output only. The time the operation finished running.
815*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp end_time = 2
816*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
817*d5c09012SAndroid Build Coastguard Worker
818*d5c09012SAndroid Build Coastguard Worker  // Output only. Server-defined resource path for the target of the operation.
819*d5c09012SAndroid Build Coastguard Worker  string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
820*d5c09012SAndroid Build Coastguard Worker
821*d5c09012SAndroid Build Coastguard Worker  // Output only. Name of the verb executed by the operation.
822*d5c09012SAndroid Build Coastguard Worker  string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
823*d5c09012SAndroid Build Coastguard Worker
824*d5c09012SAndroid Build Coastguard Worker  // Output only. Human-readable status of the operation, if any.
825*d5c09012SAndroid Build Coastguard Worker  string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
826*d5c09012SAndroid Build Coastguard Worker
827*d5c09012SAndroid Build Coastguard Worker  // Output only. Identifies whether the user has requested cancellation
828*d5c09012SAndroid Build Coastguard Worker  // of the operation. Operations that have successfully been cancelled
829*d5c09012SAndroid Build Coastguard Worker  // have [Operation.error][] value with a
830*d5c09012SAndroid Build Coastguard Worker  // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
831*d5c09012SAndroid Build Coastguard Worker  // `Code.CANCELLED`.
832*d5c09012SAndroid Build Coastguard Worker  bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
833*d5c09012SAndroid Build Coastguard Worker
834*d5c09012SAndroid Build Coastguard Worker  // Output only. API version used to start the operation.
835*d5c09012SAndroid Build Coastguard Worker  string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
836*d5c09012SAndroid Build Coastguard Worker
837*d5c09012SAndroid Build Coastguard Worker  // Output only. Results of executed validations if there are any.
838*d5c09012SAndroid Build Coastguard Worker  ValidationResult validation_result = 8
839*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
840*d5c09012SAndroid Build Coastguard Worker}
841*d5c09012SAndroid Build Coastguard Worker
842*d5c09012SAndroid Build Coastguard Worker// Request for creating a private connection.
843*d5c09012SAndroid Build Coastguard Workermessage CreatePrivateConnectionRequest {
844*d5c09012SAndroid Build Coastguard Worker  // Required. The parent that owns the collection of PrivateConnections.
845*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
846*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
847*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
848*d5c09012SAndroid Build Coastguard Worker      child_type: "datastream.googleapis.com/PrivateConnection"
849*d5c09012SAndroid Build Coastguard Worker    }
850*d5c09012SAndroid Build Coastguard Worker  ];
851*d5c09012SAndroid Build Coastguard Worker
852*d5c09012SAndroid Build Coastguard Worker  // Required. The private connectivity identifier.
853*d5c09012SAndroid Build Coastguard Worker  string private_connection_id = 2 [(google.api.field_behavior) = REQUIRED];
854*d5c09012SAndroid Build Coastguard Worker
855*d5c09012SAndroid Build Coastguard Worker  // Required. The Private Connectivity resource to create.
856*d5c09012SAndroid Build Coastguard Worker  PrivateConnection private_connection = 3
857*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = REQUIRED];
858*d5c09012SAndroid Build Coastguard Worker
859*d5c09012SAndroid Build Coastguard Worker  // Optional. A request ID to identify requests. Specify a unique request ID
860*d5c09012SAndroid Build Coastguard Worker  // so that if you must retry your request, the server will know to ignore
861*d5c09012SAndroid Build Coastguard Worker  // the request if it has already been completed. The server will guarantee
862*d5c09012SAndroid Build Coastguard Worker  // that for at least 60 minutes since the first request.
863*d5c09012SAndroid Build Coastguard Worker  //
864*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and the
865*d5c09012SAndroid Build Coastguard Worker  // request times out. If you make the request again with the same request ID,
866*d5c09012SAndroid Build Coastguard Worker  // the server can check if original operation with the same request ID was
867*d5c09012SAndroid Build Coastguard Worker  // received, and if so, will ignore the second request. This prevents clients
868*d5c09012SAndroid Build Coastguard Worker  // from accidentally creating duplicate commitments.
869*d5c09012SAndroid Build Coastguard Worker  //
870*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
871*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
872*d5c09012SAndroid Build Coastguard Worker  string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
873*d5c09012SAndroid Build Coastguard Worker
874*d5c09012SAndroid Build Coastguard Worker  // Optional. If set to true, will skip validations.
875*d5c09012SAndroid Build Coastguard Worker  bool force = 6 [(google.api.field_behavior) = OPTIONAL];
876*d5c09012SAndroid Build Coastguard Worker}
877*d5c09012SAndroid Build Coastguard Worker
878*d5c09012SAndroid Build Coastguard Worker// Request for listing private connections.
879*d5c09012SAndroid Build Coastguard Workermessage ListPrivateConnectionsRequest {
880*d5c09012SAndroid Build Coastguard Worker  // Required. The parent that owns the collection of private connectivity
881*d5c09012SAndroid Build Coastguard Worker  // configurations.
882*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
883*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
884*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
885*d5c09012SAndroid Build Coastguard Worker      child_type: "datastream.googleapis.com/PrivateConnection"
886*d5c09012SAndroid Build Coastguard Worker    }
887*d5c09012SAndroid Build Coastguard Worker  ];
888*d5c09012SAndroid Build Coastguard Worker
889*d5c09012SAndroid Build Coastguard Worker  // Maximum number of private connectivity configurations to return.
890*d5c09012SAndroid Build Coastguard Worker  // If unspecified, at most 50 private connectivity configurations that will be
891*d5c09012SAndroid Build Coastguard Worker  // returned. The maximum value is 1000; values above 1000 will be coerced to
892*d5c09012SAndroid Build Coastguard Worker  // 1000.
893*d5c09012SAndroid Build Coastguard Worker  int32 page_size = 2;
894*d5c09012SAndroid Build Coastguard Worker
895*d5c09012SAndroid Build Coastguard Worker  // Page token received from a previous `ListPrivateConnections` call.
896*d5c09012SAndroid Build Coastguard Worker  // Provide this to retrieve the subsequent page.
897*d5c09012SAndroid Build Coastguard Worker  //
898*d5c09012SAndroid Build Coastguard Worker  // When paginating, all other parameters provided to
899*d5c09012SAndroid Build Coastguard Worker  // `ListPrivateConnections` must match the call that provided the page
900*d5c09012SAndroid Build Coastguard Worker  // token.
901*d5c09012SAndroid Build Coastguard Worker  string page_token = 3;
902*d5c09012SAndroid Build Coastguard Worker
903*d5c09012SAndroid Build Coastguard Worker  // Filter request.
904*d5c09012SAndroid Build Coastguard Worker  string filter = 4;
905*d5c09012SAndroid Build Coastguard Worker
906*d5c09012SAndroid Build Coastguard Worker  // Order by fields for the result.
907*d5c09012SAndroid Build Coastguard Worker  string order_by = 5;
908*d5c09012SAndroid Build Coastguard Worker}
909*d5c09012SAndroid Build Coastguard Worker
910*d5c09012SAndroid Build Coastguard Worker// Response containing a list of private connection configurations.
911*d5c09012SAndroid Build Coastguard Workermessage ListPrivateConnectionsResponse {
912*d5c09012SAndroid Build Coastguard Worker  // List of private connectivity configurations.
913*d5c09012SAndroid Build Coastguard Worker  repeated PrivateConnection private_connections = 1;
914*d5c09012SAndroid Build Coastguard Worker
915*d5c09012SAndroid Build Coastguard Worker  // A token, which can be sent as `page_token` to retrieve the next page.
916*d5c09012SAndroid Build Coastguard Worker  // If this field is omitted, there are no subsequent pages.
917*d5c09012SAndroid Build Coastguard Worker  string next_page_token = 2;
918*d5c09012SAndroid Build Coastguard Worker
919*d5c09012SAndroid Build Coastguard Worker  // Locations that could not be reached.
920*d5c09012SAndroid Build Coastguard Worker  repeated string unreachable = 3;
921*d5c09012SAndroid Build Coastguard Worker}
922*d5c09012SAndroid Build Coastguard Worker
923*d5c09012SAndroid Build Coastguard Worker// Request to delete a private connection.
924*d5c09012SAndroid Build Coastguard Workermessage DeletePrivateConnectionRequest {
925*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the private connectivity configuration to delete.
926*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
927*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
928*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
929*d5c09012SAndroid Build Coastguard Worker      type: "datastream.googleapis.com/PrivateConnection"
930*d5c09012SAndroid Build Coastguard Worker    }
931*d5c09012SAndroid Build Coastguard Worker  ];
932*d5c09012SAndroid Build Coastguard Worker
933*d5c09012SAndroid Build Coastguard Worker  // Optional. A request ID to identify requests. Specify a unique request ID
934*d5c09012SAndroid Build Coastguard Worker  // so that if you must retry your request, the server will know to ignore
935*d5c09012SAndroid Build Coastguard Worker  // the request if it has already been completed. The server will guarantee
936*d5c09012SAndroid Build Coastguard Worker  // that for at least 60 minutes after the first request.
937*d5c09012SAndroid Build Coastguard Worker  //
938*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and the
939*d5c09012SAndroid Build Coastguard Worker  // request times out. If you make the request again with the same request ID,
940*d5c09012SAndroid Build Coastguard Worker  // the server can check if original operation with the same request ID was
941*d5c09012SAndroid Build Coastguard Worker  // received, and if so, will ignore the second request. This prevents clients
942*d5c09012SAndroid Build Coastguard Worker  // from accidentally creating duplicate commitments.
943*d5c09012SAndroid Build Coastguard Worker  //
944*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
945*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
946*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
947*d5c09012SAndroid Build Coastguard Worker
948*d5c09012SAndroid Build Coastguard Worker  // Optional. If set to true, any child routes that belong to this
949*d5c09012SAndroid Build Coastguard Worker  // PrivateConnection will also be deleted.
950*d5c09012SAndroid Build Coastguard Worker  bool force = 3 [(google.api.field_behavior) = OPTIONAL];
951*d5c09012SAndroid Build Coastguard Worker}
952*d5c09012SAndroid Build Coastguard Worker
953*d5c09012SAndroid Build Coastguard Worker// Request to get a private connection configuration.
954*d5c09012SAndroid Build Coastguard Workermessage GetPrivateConnectionRequest {
955*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the  private connectivity configuration to get.
956*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
957*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
958*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
959*d5c09012SAndroid Build Coastguard Worker      type: "datastream.googleapis.com/PrivateConnection"
960*d5c09012SAndroid Build Coastguard Worker    }
961*d5c09012SAndroid Build Coastguard Worker  ];
962*d5c09012SAndroid Build Coastguard Worker}
963*d5c09012SAndroid Build Coastguard Worker
964*d5c09012SAndroid Build Coastguard Worker// Route creation request.
965*d5c09012SAndroid Build Coastguard Workermessage CreateRouteRequest {
966*d5c09012SAndroid Build Coastguard Worker  // Required. The parent that owns the collection of Routes.
967*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
968*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
969*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
970*d5c09012SAndroid Build Coastguard Worker      child_type: "datastream.googleapis.com/Route"
971*d5c09012SAndroid Build Coastguard Worker    }
972*d5c09012SAndroid Build Coastguard Worker  ];
973*d5c09012SAndroid Build Coastguard Worker
974*d5c09012SAndroid Build Coastguard Worker  // Required. The Route identifier.
975*d5c09012SAndroid Build Coastguard Worker  string route_id = 2 [(google.api.field_behavior) = REQUIRED];
976*d5c09012SAndroid Build Coastguard Worker
977*d5c09012SAndroid Build Coastguard Worker  // Required. The Route resource to create.
978*d5c09012SAndroid Build Coastguard Worker  Route route = 3 [(google.api.field_behavior) = REQUIRED];
979*d5c09012SAndroid Build Coastguard Worker
980*d5c09012SAndroid Build Coastguard Worker  // Optional. A request ID to identify requests. Specify a unique request ID
981*d5c09012SAndroid Build Coastguard Worker  // so that if you must retry your request, the server will know to ignore
982*d5c09012SAndroid Build Coastguard Worker  // the request if it has already been completed. The server will guarantee
983*d5c09012SAndroid Build Coastguard Worker  // that for at least 60 minutes since the first request.
984*d5c09012SAndroid Build Coastguard Worker  //
985*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and the
986*d5c09012SAndroid Build Coastguard Worker  // request times out. If you make the request again with the same request ID,
987*d5c09012SAndroid Build Coastguard Worker  // the server can check if original operation with the same request ID was
988*d5c09012SAndroid Build Coastguard Worker  // received, and if so, will ignore the second request. This prevents clients
989*d5c09012SAndroid Build Coastguard Worker  // from accidentally creating duplicate commitments.
990*d5c09012SAndroid Build Coastguard Worker  //
991*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
992*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
993*d5c09012SAndroid Build Coastguard Worker  string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
994*d5c09012SAndroid Build Coastguard Worker}
995*d5c09012SAndroid Build Coastguard Worker
996*d5c09012SAndroid Build Coastguard Worker// Route list request.
997*d5c09012SAndroid Build Coastguard Workermessage ListRoutesRequest {
998*d5c09012SAndroid Build Coastguard Worker  // Required. The parent that owns the collection of Routess.
999*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
1000*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1001*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
1002*d5c09012SAndroid Build Coastguard Worker      child_type: "datastream.googleapis.com/Route"
1003*d5c09012SAndroid Build Coastguard Worker    }
1004*d5c09012SAndroid Build Coastguard Worker  ];
1005*d5c09012SAndroid Build Coastguard Worker
1006*d5c09012SAndroid Build Coastguard Worker  // Maximum number of Routes to return. The service may return
1007*d5c09012SAndroid Build Coastguard Worker  // fewer than this value. If unspecified, at most 50 Routes
1008*d5c09012SAndroid Build Coastguard Worker  // will be returned. The maximum value is 1000; values above 1000 will be
1009*d5c09012SAndroid Build Coastguard Worker  // coerced to 1000.
1010*d5c09012SAndroid Build Coastguard Worker  int32 page_size = 2;
1011*d5c09012SAndroid Build Coastguard Worker
1012*d5c09012SAndroid Build Coastguard Worker  // Page token received from a previous `ListRoutes` call.
1013*d5c09012SAndroid Build Coastguard Worker  // Provide this to retrieve the subsequent page.
1014*d5c09012SAndroid Build Coastguard Worker  //
1015*d5c09012SAndroid Build Coastguard Worker  // When paginating, all other parameters provided to
1016*d5c09012SAndroid Build Coastguard Worker  // `ListRoutes` must match the call that provided the page
1017*d5c09012SAndroid Build Coastguard Worker  // token.
1018*d5c09012SAndroid Build Coastguard Worker  string page_token = 3;
1019*d5c09012SAndroid Build Coastguard Worker
1020*d5c09012SAndroid Build Coastguard Worker  // Filter request.
1021*d5c09012SAndroid Build Coastguard Worker  string filter = 4;
1022*d5c09012SAndroid Build Coastguard Worker
1023*d5c09012SAndroid Build Coastguard Worker  // Order by fields for the result.
1024*d5c09012SAndroid Build Coastguard Worker  string order_by = 5;
1025*d5c09012SAndroid Build Coastguard Worker}
1026*d5c09012SAndroid Build Coastguard Worker
1027*d5c09012SAndroid Build Coastguard Worker// Route list response.
1028*d5c09012SAndroid Build Coastguard Workermessage ListRoutesResponse {
1029*d5c09012SAndroid Build Coastguard Worker  // List of Routes.
1030*d5c09012SAndroid Build Coastguard Worker  repeated Route routes = 1;
1031*d5c09012SAndroid Build Coastguard Worker
1032*d5c09012SAndroid Build Coastguard Worker  // A token, which can be sent as `page_token` to retrieve the next page.
1033*d5c09012SAndroid Build Coastguard Worker  // If this field is omitted, there are no subsequent pages.
1034*d5c09012SAndroid Build Coastguard Worker  string next_page_token = 2;
1035*d5c09012SAndroid Build Coastguard Worker
1036*d5c09012SAndroid Build Coastguard Worker  // Locations that could not be reached.
1037*d5c09012SAndroid Build Coastguard Worker  repeated string unreachable = 3;
1038*d5c09012SAndroid Build Coastguard Worker}
1039*d5c09012SAndroid Build Coastguard Worker
1040*d5c09012SAndroid Build Coastguard Worker// Route deletion request.
1041*d5c09012SAndroid Build Coastguard Workermessage DeleteRouteRequest {
1042*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the Route resource to delete.
1043*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
1044*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1045*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
1046*d5c09012SAndroid Build Coastguard Worker      type: "datastream.googleapis.com/Route"
1047*d5c09012SAndroid Build Coastguard Worker    }
1048*d5c09012SAndroid Build Coastguard Worker  ];
1049*d5c09012SAndroid Build Coastguard Worker
1050*d5c09012SAndroid Build Coastguard Worker  // Optional. A request ID to identify requests. Specify a unique request ID
1051*d5c09012SAndroid Build Coastguard Worker  // so that if you must retry your request, the server will know to ignore
1052*d5c09012SAndroid Build Coastguard Worker  // the request if it has already been completed. The server will guarantee
1053*d5c09012SAndroid Build Coastguard Worker  // that for at least 60 minutes after the first request.
1054*d5c09012SAndroid Build Coastguard Worker  //
1055*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and the
1056*d5c09012SAndroid Build Coastguard Worker  // request times out. If you make the request again with the same request ID,
1057*d5c09012SAndroid Build Coastguard Worker  // the server can check if original operation with the same request ID was
1058*d5c09012SAndroid Build Coastguard Worker  // received, and if so, will ignore the second request. This prevents clients
1059*d5c09012SAndroid Build Coastguard Worker  // from accidentally creating duplicate commitments.
1060*d5c09012SAndroid Build Coastguard Worker  //
1061*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
1062*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
1063*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
1064*d5c09012SAndroid Build Coastguard Worker}
1065*d5c09012SAndroid Build Coastguard Worker
1066*d5c09012SAndroid Build Coastguard Worker// Route get request.
1067*d5c09012SAndroid Build Coastguard Workermessage GetRouteRequest {
1068*d5c09012SAndroid Build Coastguard Worker  // Required. The name of the Route resource to get.
1069*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
1070*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
1071*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
1072*d5c09012SAndroid Build Coastguard Worker      type: "datastream.googleapis.com/Route"
1073*d5c09012SAndroid Build Coastguard Worker    }
1074*d5c09012SAndroid Build Coastguard Worker  ];
1075*d5c09012SAndroid Build Coastguard Worker}
1076