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.rapidmigrationassessment.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/rapidmigrationassessment/v1/api_entities.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.RapidMigrationAssessment.V1";
29*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/rapidmigrationassessment/apiv1/rapidmigrationassessmentpb;rapidmigrationassessmentpb";
30*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true;
31*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "RapidMigrationAssessmentProto";
32*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.rapidmigrationassessment.v1";
33*d5c09012SAndroid Build Coastguard Workeroption php_namespace = "Google\\Cloud\\RapidMigrationAssessment\\V1";
34*d5c09012SAndroid Build Coastguard Workeroption ruby_package = "Google::Cloud::RapidMigrationAssessment::V1";
35*d5c09012SAndroid Build Coastguard Worker
36*d5c09012SAndroid Build Coastguard Worker// Service describing handlers for resources.
37*d5c09012SAndroid Build Coastguard Workerservice RapidMigrationAssessment {
38*d5c09012SAndroid Build Coastguard Worker  option (google.api.default_host) = "rapidmigrationassessment.googleapis.com";
39*d5c09012SAndroid Build Coastguard Worker  option (google.api.oauth_scopes) =
40*d5c09012SAndroid Build Coastguard Worker      "https://www.googleapis.com/auth/cloud-platform";
41*d5c09012SAndroid Build Coastguard Worker
42*d5c09012SAndroid Build Coastguard Worker  // Create a Collector to manage the on-prem appliance which collects
43*d5c09012SAndroid Build Coastguard Worker  // information about Customer assets.
44*d5c09012SAndroid Build Coastguard Worker  rpc CreateCollector(CreateCollectorRequest)
45*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
46*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
47*d5c09012SAndroid Build Coastguard Worker      post: "/v1/{parent=projects/*/locations/*}/collectors"
48*d5c09012SAndroid Build Coastguard Worker      body: "collector"
49*d5c09012SAndroid Build Coastguard Worker    };
50*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent,collector,collector_id";
51*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
52*d5c09012SAndroid Build Coastguard Worker      response_type: "Collector"
53*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
54*d5c09012SAndroid Build Coastguard Worker    };
55*d5c09012SAndroid Build Coastguard Worker  }
56*d5c09012SAndroid Build Coastguard Worker
57*d5c09012SAndroid Build Coastguard Worker  // Creates an Annotation
58*d5c09012SAndroid Build Coastguard Worker  rpc CreateAnnotation(CreateAnnotationRequest)
59*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
60*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
61*d5c09012SAndroid Build Coastguard Worker      post: "/v1/{parent=projects/*/locations/*}/annotations"
62*d5c09012SAndroid Build Coastguard Worker      body: "annotation"
63*d5c09012SAndroid Build Coastguard Worker    };
64*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent,annotation";
65*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
66*d5c09012SAndroid Build Coastguard Worker      response_type: "Annotation"
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  // Gets details of a single Annotation.
72*d5c09012SAndroid Build Coastguard Worker  rpc GetAnnotation(GetAnnotationRequest) returns (Annotation) {
73*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
74*d5c09012SAndroid Build Coastguard Worker      get: "/v1/{name=projects/*/locations/*/annotations/*}"
75*d5c09012SAndroid Build Coastguard Worker    };
76*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
77*d5c09012SAndroid Build Coastguard Worker  }
78*d5c09012SAndroid Build Coastguard Worker
79*d5c09012SAndroid Build Coastguard Worker  // Lists Collectors in a given project and location.
80*d5c09012SAndroid Build Coastguard Worker  rpc ListCollectors(ListCollectorsRequest) returns (ListCollectorsResponse) {
81*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
82*d5c09012SAndroid Build Coastguard Worker      get: "/v1/{parent=projects/*/locations/*}/collectors"
83*d5c09012SAndroid Build Coastguard Worker    };
84*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "parent";
85*d5c09012SAndroid Build Coastguard Worker  }
86*d5c09012SAndroid Build Coastguard Worker
87*d5c09012SAndroid Build Coastguard Worker  // Gets details of a single Collector.
88*d5c09012SAndroid Build Coastguard Worker  rpc GetCollector(GetCollectorRequest) returns (Collector) {
89*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
90*d5c09012SAndroid Build Coastguard Worker      get: "/v1/{name=projects/*/locations/*/collectors/*}"
91*d5c09012SAndroid Build Coastguard Worker    };
92*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
93*d5c09012SAndroid Build Coastguard Worker  }
94*d5c09012SAndroid Build Coastguard Worker
95*d5c09012SAndroid Build Coastguard Worker  // Updates the parameters of a single Collector.
96*d5c09012SAndroid Build Coastguard Worker  rpc UpdateCollector(UpdateCollectorRequest)
97*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
98*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
99*d5c09012SAndroid Build Coastguard Worker      patch: "/v1/{collector.name=projects/*/locations/*/collectors/*}"
100*d5c09012SAndroid Build Coastguard Worker      body: "collector"
101*d5c09012SAndroid Build Coastguard Worker    };
102*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "collector,update_mask";
103*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
104*d5c09012SAndroid Build Coastguard Worker      response_type: "Collector"
105*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
106*d5c09012SAndroid Build Coastguard Worker    };
107*d5c09012SAndroid Build Coastguard Worker  }
108*d5c09012SAndroid Build Coastguard Worker
109*d5c09012SAndroid Build Coastguard Worker  // Deletes a single Collector - changes state of collector to "Deleting".
110*d5c09012SAndroid Build Coastguard Worker  // Background jobs does final deletion thorugh producer api.
111*d5c09012SAndroid Build Coastguard Worker  rpc DeleteCollector(DeleteCollectorRequest)
112*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
113*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
114*d5c09012SAndroid Build Coastguard Worker      delete: "/v1/{name=projects/*/locations/*/collectors/*}"
115*d5c09012SAndroid Build Coastguard Worker    };
116*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
117*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
118*d5c09012SAndroid Build Coastguard Worker      response_type: "Collector"
119*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
120*d5c09012SAndroid Build Coastguard Worker    };
121*d5c09012SAndroid Build Coastguard Worker  }
122*d5c09012SAndroid Build Coastguard Worker
123*d5c09012SAndroid Build Coastguard Worker  // Resumes the given collector.
124*d5c09012SAndroid Build Coastguard Worker  rpc ResumeCollector(ResumeCollectorRequest)
125*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
126*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
127*d5c09012SAndroid Build Coastguard Worker      post: "/v1/{name=projects/*/locations/*/collectors/*}:resume"
128*d5c09012SAndroid Build Coastguard Worker      body: "*"
129*d5c09012SAndroid Build Coastguard Worker    };
130*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
131*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
132*d5c09012SAndroid Build Coastguard Worker      response_type: "Collector"
133*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
134*d5c09012SAndroid Build Coastguard Worker    };
135*d5c09012SAndroid Build Coastguard Worker  }
136*d5c09012SAndroid Build Coastguard Worker
137*d5c09012SAndroid Build Coastguard Worker  // Registers the given collector.
138*d5c09012SAndroid Build Coastguard Worker  rpc RegisterCollector(RegisterCollectorRequest)
139*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
140*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
141*d5c09012SAndroid Build Coastguard Worker      post: "/v1/{name=projects/*/locations/*/collectors/*}:register"
142*d5c09012SAndroid Build Coastguard Worker      body: "*"
143*d5c09012SAndroid Build Coastguard Worker    };
144*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
145*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
146*d5c09012SAndroid Build Coastguard Worker      response_type: "Collector"
147*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
148*d5c09012SAndroid Build Coastguard Worker    };
149*d5c09012SAndroid Build Coastguard Worker  }
150*d5c09012SAndroid Build Coastguard Worker
151*d5c09012SAndroid Build Coastguard Worker  // Pauses the given collector.
152*d5c09012SAndroid Build Coastguard Worker  rpc PauseCollector(PauseCollectorRequest)
153*d5c09012SAndroid Build Coastguard Worker      returns (google.longrunning.Operation) {
154*d5c09012SAndroid Build Coastguard Worker    option (google.api.http) = {
155*d5c09012SAndroid Build Coastguard Worker      post: "/v1/{name=projects/*/locations/*/collectors/*}:pause"
156*d5c09012SAndroid Build Coastguard Worker      body: "*"
157*d5c09012SAndroid Build Coastguard Worker    };
158*d5c09012SAndroid Build Coastguard Worker    option (google.api.method_signature) = "name";
159*d5c09012SAndroid Build Coastguard Worker    option (google.longrunning.operation_info) = {
160*d5c09012SAndroid Build Coastguard Worker      response_type: "Collector"
161*d5c09012SAndroid Build Coastguard Worker      metadata_type: "OperationMetadata"
162*d5c09012SAndroid Build Coastguard Worker    };
163*d5c09012SAndroid Build Coastguard Worker  }
164*d5c09012SAndroid Build Coastguard Worker}
165*d5c09012SAndroid Build Coastguard Worker
166*d5c09012SAndroid Build Coastguard Worker// Message for creating an AnnotationS.
167*d5c09012SAndroid Build Coastguard Workermessage CreateAnnotationRequest {
168*d5c09012SAndroid Build Coastguard Worker  // Required. Name of the parent (project+location).
169*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
170*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
171*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
172*d5c09012SAndroid Build Coastguard Worker      type: "locations.googleapis.com/Location"
173*d5c09012SAndroid Build Coastguard Worker    }
174*d5c09012SAndroid Build Coastguard Worker  ];
175*d5c09012SAndroid Build Coastguard Worker
176*d5c09012SAndroid Build Coastguard Worker  // Required. The resource being created.
177*d5c09012SAndroid Build Coastguard Worker  Annotation annotation = 2 [(google.api.field_behavior) = REQUIRED];
178*d5c09012SAndroid Build Coastguard Worker
179*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests.
180*d5c09012SAndroid Build Coastguard Worker  string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
181*d5c09012SAndroid Build Coastguard Worker}
182*d5c09012SAndroid Build Coastguard Worker
183*d5c09012SAndroid Build Coastguard Worker// Message for getting a specific Annotation
184*d5c09012SAndroid Build Coastguard Workermessage GetAnnotationRequest {
185*d5c09012SAndroid Build Coastguard Worker  // Required. Name of the resource.
186*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
187*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
188*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
189*d5c09012SAndroid Build Coastguard Worker      type: "rapidmigrationassessment.googleapis.com/Annotation"
190*d5c09012SAndroid Build Coastguard Worker    }
191*d5c09012SAndroid Build Coastguard Worker  ];
192*d5c09012SAndroid Build Coastguard Worker}
193*d5c09012SAndroid Build Coastguard Worker
194*d5c09012SAndroid Build Coastguard Worker// Message for creating a Collector.
195*d5c09012SAndroid Build Coastguard Workermessage CreateCollectorRequest {
196*d5c09012SAndroid Build Coastguard Worker  // Required. Name of the parent (project+location).
197*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
198*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
199*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
200*d5c09012SAndroid Build Coastguard Worker      type: "locations.googleapis.com/Location"
201*d5c09012SAndroid Build Coastguard Worker    }
202*d5c09012SAndroid Build Coastguard Worker  ];
203*d5c09012SAndroid Build Coastguard Worker
204*d5c09012SAndroid Build Coastguard Worker  // Required. Id of the requesting object.
205*d5c09012SAndroid Build Coastguard Worker  string collector_id = 2 [(google.api.field_behavior) = REQUIRED];
206*d5c09012SAndroid Build Coastguard Worker
207*d5c09012SAndroid Build Coastguard Worker  // Required. The resource being created.
208*d5c09012SAndroid Build Coastguard Worker  Collector collector = 3 [(google.api.field_behavior) = REQUIRED];
209*d5c09012SAndroid Build Coastguard Worker
210*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests.
211*d5c09012SAndroid Build Coastguard Worker  string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
212*d5c09012SAndroid Build Coastguard Worker}
213*d5c09012SAndroid Build Coastguard Worker
214*d5c09012SAndroid Build Coastguard Worker// Message for requesting list of Collectors.
215*d5c09012SAndroid Build Coastguard Workermessage ListCollectorsRequest {
216*d5c09012SAndroid Build Coastguard Worker  // Required. Parent value for ListCollectorsRequest.
217*d5c09012SAndroid Build Coastguard Worker  string parent = 1 [
218*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
219*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
220*d5c09012SAndroid Build Coastguard Worker      type: "locations.googleapis.com/Location"
221*d5c09012SAndroid Build Coastguard Worker    }
222*d5c09012SAndroid Build Coastguard Worker  ];
223*d5c09012SAndroid Build Coastguard Worker
224*d5c09012SAndroid Build Coastguard Worker  // Requested page size. Server may return fewer items than requested.
225*d5c09012SAndroid Build Coastguard Worker  // If unspecified, server will pick an appropriate default.
226*d5c09012SAndroid Build Coastguard Worker  int32 page_size = 2;
227*d5c09012SAndroid Build Coastguard Worker
228*d5c09012SAndroid Build Coastguard Worker  // A token identifying a page of results the server should return.
229*d5c09012SAndroid Build Coastguard Worker  string page_token = 3;
230*d5c09012SAndroid Build Coastguard Worker
231*d5c09012SAndroid Build Coastguard Worker  // Filtering results.
232*d5c09012SAndroid Build Coastguard Worker  string filter = 4;
233*d5c09012SAndroid Build Coastguard Worker
234*d5c09012SAndroid Build Coastguard Worker  // Hint for how to order the results.
235*d5c09012SAndroid Build Coastguard Worker  string order_by = 5;
236*d5c09012SAndroid Build Coastguard Worker}
237*d5c09012SAndroid Build Coastguard Worker
238*d5c09012SAndroid Build Coastguard Worker// Message for response to listing Collectors.
239*d5c09012SAndroid Build Coastguard Workermessage ListCollectorsResponse {
240*d5c09012SAndroid Build Coastguard Worker  // The list of Collectors.
241*d5c09012SAndroid Build Coastguard Worker  repeated Collector collectors = 1;
242*d5c09012SAndroid Build Coastguard Worker
243*d5c09012SAndroid Build Coastguard Worker  // A token identifying a page of results the server should return.
244*d5c09012SAndroid Build Coastguard Worker  string next_page_token = 2;
245*d5c09012SAndroid Build Coastguard Worker
246*d5c09012SAndroid Build Coastguard Worker  // Locations that could not be reached.
247*d5c09012SAndroid Build Coastguard Worker  repeated string unreachable = 3;
248*d5c09012SAndroid Build Coastguard Worker}
249*d5c09012SAndroid Build Coastguard Worker
250*d5c09012SAndroid Build Coastguard Worker// Message for getting a specific Collector.
251*d5c09012SAndroid Build Coastguard Workermessage GetCollectorRequest {
252*d5c09012SAndroid Build Coastguard Worker  // Required. Name of the resource.
253*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
254*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
255*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
256*d5c09012SAndroid Build Coastguard Worker      type: "rapidmigrationassessment.googleapis.com/Collector"
257*d5c09012SAndroid Build Coastguard Worker    }
258*d5c09012SAndroid Build Coastguard Worker  ];
259*d5c09012SAndroid Build Coastguard Worker}
260*d5c09012SAndroid Build Coastguard Worker
261*d5c09012SAndroid Build Coastguard Worker// Message for deleting a Collector.
262*d5c09012SAndroid Build Coastguard Workermessage DeleteCollectorRequest {
263*d5c09012SAndroid Build Coastguard Worker  // Required. Name of the resource.
264*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
265*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
266*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
267*d5c09012SAndroid Build Coastguard Worker      type: "rapidmigrationassessment.googleapis.com/Collector"
268*d5c09012SAndroid Build Coastguard Worker    }
269*d5c09012SAndroid Build Coastguard Worker  ];
270*d5c09012SAndroid Build Coastguard Worker
271*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
272*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
273*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
274*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes after the first request.
275*d5c09012SAndroid Build Coastguard Worker  //
276*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
277*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
278*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
279*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
280*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
281*d5c09012SAndroid Build Coastguard Worker  //
282*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
283*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
284*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
285*d5c09012SAndroid Build Coastguard Worker}
286*d5c09012SAndroid Build Coastguard Worker
287*d5c09012SAndroid Build Coastguard Worker// Message for updating a Collector.
288*d5c09012SAndroid Build Coastguard Workermessage UpdateCollectorRequest {
289*d5c09012SAndroid Build Coastguard Worker  // Required. Field mask is used to specify the fields to be overwritten in the
290*d5c09012SAndroid Build Coastguard Worker  // Collector resource by the update.
291*d5c09012SAndroid Build Coastguard Worker  // The fields specified in the update_mask are relative to the resource, not
292*d5c09012SAndroid Build Coastguard Worker  // the full request. A field will be overwritten if it is in the mask. If the
293*d5c09012SAndroid Build Coastguard Worker  // user does not provide a mask then all fields will be overwritten.
294*d5c09012SAndroid Build Coastguard Worker  google.protobuf.FieldMask update_mask = 1
295*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = REQUIRED];
296*d5c09012SAndroid Build Coastguard Worker
297*d5c09012SAndroid Build Coastguard Worker  // Required. The resource being updated.
298*d5c09012SAndroid Build Coastguard Worker  Collector collector = 2 [(google.api.field_behavior) = REQUIRED];
299*d5c09012SAndroid Build Coastguard Worker
300*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
301*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
302*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
303*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes since the first request.
304*d5c09012SAndroid Build Coastguard Worker  //
305*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
306*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
307*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
308*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
309*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
310*d5c09012SAndroid Build Coastguard Worker  //
311*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
312*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
313*d5c09012SAndroid Build Coastguard Worker  string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
314*d5c09012SAndroid Build Coastguard Worker}
315*d5c09012SAndroid Build Coastguard Worker
316*d5c09012SAndroid Build Coastguard Worker// Message for resuming a Collector.
317*d5c09012SAndroid Build Coastguard Workermessage ResumeCollectorRequest {
318*d5c09012SAndroid Build Coastguard Worker  // Required. Name of the resource.
319*d5c09012SAndroid Build Coastguard Worker  string name = 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      type: "rapidmigrationassessment.googleapis.com/Collector"
323*d5c09012SAndroid Build Coastguard Worker    }
324*d5c09012SAndroid Build Coastguard Worker  ];
325*d5c09012SAndroid Build Coastguard Worker
326*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
327*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
328*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
329*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes after the first request.
330*d5c09012SAndroid Build Coastguard Worker  //
331*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
332*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
333*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
334*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
335*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
336*d5c09012SAndroid Build Coastguard Worker  //
337*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
338*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
339*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
340*d5c09012SAndroid Build Coastguard Worker}
341*d5c09012SAndroid Build Coastguard Worker
342*d5c09012SAndroid Build Coastguard Worker// Message for registering a Collector.
343*d5c09012SAndroid Build Coastguard Workermessage RegisterCollectorRequest {
344*d5c09012SAndroid Build Coastguard Worker  // Required. Name of the resource.
345*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
346*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
347*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
348*d5c09012SAndroid Build Coastguard Worker      type: "rapidmigrationassessment.googleapis.com/Collector"
349*d5c09012SAndroid Build Coastguard Worker    }
350*d5c09012SAndroid Build Coastguard Worker  ];
351*d5c09012SAndroid Build Coastguard Worker
352*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
353*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
354*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
355*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes after the first request.
356*d5c09012SAndroid Build Coastguard Worker  //
357*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
358*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
359*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
360*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
361*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
362*d5c09012SAndroid Build Coastguard Worker  //
363*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
364*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
365*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
366*d5c09012SAndroid Build Coastguard Worker}
367*d5c09012SAndroid Build Coastguard Worker
368*d5c09012SAndroid Build Coastguard Worker// Message for pausing a Collector.
369*d5c09012SAndroid Build Coastguard Workermessage PauseCollectorRequest {
370*d5c09012SAndroid Build Coastguard Worker  // Required. Name of the resource.
371*d5c09012SAndroid Build Coastguard Worker  string name = 1 [
372*d5c09012SAndroid Build Coastguard Worker    (google.api.field_behavior) = REQUIRED,
373*d5c09012SAndroid Build Coastguard Worker    (google.api.resource_reference) = {
374*d5c09012SAndroid Build Coastguard Worker      type: "rapidmigrationassessment.googleapis.com/Collector"
375*d5c09012SAndroid Build Coastguard Worker    }
376*d5c09012SAndroid Build Coastguard Worker  ];
377*d5c09012SAndroid Build Coastguard Worker
378*d5c09012SAndroid Build Coastguard Worker  // Optional. An optional request ID to identify requests. Specify a unique
379*d5c09012SAndroid Build Coastguard Worker  // request ID so that if you must retry your request, the server will know to
380*d5c09012SAndroid Build Coastguard Worker  // ignore the request if it has already been completed. The server will
381*d5c09012SAndroid Build Coastguard Worker  // guarantee that for at least 60 minutes after the first request.
382*d5c09012SAndroid Build Coastguard Worker  //
383*d5c09012SAndroid Build Coastguard Worker  // For example, consider a situation where you make an initial request and
384*d5c09012SAndroid Build Coastguard Worker  // the request times out. If you make the request again with the same request
385*d5c09012SAndroid Build Coastguard Worker  // ID, the server can check if original operation with the same request ID
386*d5c09012SAndroid Build Coastguard Worker  // was received, and if so, will ignore the second request. This prevents
387*d5c09012SAndroid Build Coastguard Worker  // clients from accidentally creating duplicate commitments.
388*d5c09012SAndroid Build Coastguard Worker  //
389*d5c09012SAndroid Build Coastguard Worker  // The request ID must be a valid UUID with the exception that zero UUID is
390*d5c09012SAndroid Build Coastguard Worker  // not supported (00000000-0000-0000-0000-000000000000).
391*d5c09012SAndroid Build Coastguard Worker  string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
392*d5c09012SAndroid Build Coastguard Worker}
393*d5c09012SAndroid Build Coastguard Worker
394*d5c09012SAndroid Build Coastguard Worker// Represents the metadata of the long-running operation.
395*d5c09012SAndroid Build Coastguard Workermessage OperationMetadata {
396*d5c09012SAndroid Build Coastguard Worker  // Output only. The time the operation was created.
397*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp create_time = 1
398*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
399*d5c09012SAndroid Build Coastguard Worker
400*d5c09012SAndroid Build Coastguard Worker  // Output only. The time the operation finished running.
401*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp end_time = 2
402*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = OUTPUT_ONLY];
403*d5c09012SAndroid Build Coastguard Worker
404*d5c09012SAndroid Build Coastguard Worker  // Output only. Server-defined resource path for the target of the operation.
405*d5c09012SAndroid Build Coastguard Worker  string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
406*d5c09012SAndroid Build Coastguard Worker
407*d5c09012SAndroid Build Coastguard Worker  // Output only. Name of the verb executed by the operation.
408*d5c09012SAndroid Build Coastguard Worker  string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
409*d5c09012SAndroid Build Coastguard Worker
410*d5c09012SAndroid Build Coastguard Worker  // Output only. Human-readable status of the operation, if any.
411*d5c09012SAndroid Build Coastguard Worker  string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
412*d5c09012SAndroid Build Coastguard Worker
413*d5c09012SAndroid Build Coastguard Worker  // Output only. Identifies whether the user has requested cancellation
414*d5c09012SAndroid Build Coastguard Worker  // of the operation. Operations that have successfully been cancelled
415*d5c09012SAndroid Build Coastguard Worker  // have [Operation.error][] value with a
416*d5c09012SAndroid Build Coastguard Worker  // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
417*d5c09012SAndroid Build Coastguard Worker  // `Code.CANCELLED`.
418*d5c09012SAndroid Build Coastguard Worker  bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
419*d5c09012SAndroid Build Coastguard Worker
420*d5c09012SAndroid Build Coastguard Worker  // Output only. API version used to start the operation.
421*d5c09012SAndroid Build Coastguard Worker  string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
422*d5c09012SAndroid Build Coastguard Worker}
423