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