Debian Codegraph @

bigquery/reservation/apiv1/reservation_client_example_test.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go_gapic. DO NOT EDIT.
16
17 package reservation_test
18
19 import (
20 "context"
21
22 reservation "cloud.google.com/go/bigquery/reservation/apiv1"
23 reservationpb "cloud.google.com/go/bigquery/reservation/apiv1/reservationpb"
24 "google.golang.org/api/iterator"
25 )
26
27 func ExampleNewClient() {
28 ctx := context.Background()
29 // This snippet has been automatically generated and should be regarded as a code template only.
30 // It will require modifications to work:
31 // - It may require correct/in-range values for request initialization.
32 // - It may require specifying regional endpoints when creating the service client as shown in:
33 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
34 c, err := reservation.NewClient(ctx)
35 if err != nil {
36 // TODO: Handle error.
37 }
38 defer c.Close()
39
40 // TODO: Use client.
41 _ = c
42 }
43
44 func ExampleNewRESTClient() {
45 ctx := context.Background()
46 // This snippet has been automatically generated and should be regarded as a code template only.
47 // It will require modifications to work:
48 // - It may require correct/in-range values for request initialization.
49 // - It may require specifying regional endpoints when creating the service client as shown in:
50 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
51 c, err := reservation.NewRESTClient(ctx)
52 if err != nil {
53 // TODO: Handle error.
54 }
55 defer c.Close()
56
57 // TODO: Use client.
58 _ = c
59 }
60
61 func ExampleClient_CreateAssignment() {
62 ctx := context.Background()
63 // This snippet has been automatically generated and should be regarded as a code template only.
64 // It will require modifications to work:
65 // - It may require correct/in-range values for request initialization.
66 // - It may require specifying regional endpoints when creating the service client as shown in:
67 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
68 c, err := reservation.NewClient(ctx)
69 if err != nil {
70 // TODO: Handle error.
71 }
72 defer c.Close()
73
74 req := &reservationpb.CreateAssignmentRequest{
75 // TODO: Fill request struct fields.
76 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#CreateAssignmentRequest.
77 }
78 resp, err := c.CreateAssignment(ctx, req)
79 if err != nil {
80 // TODO: Handle error.
81 }
82 // TODO: Use resp.
83 _ = resp
84 }
85
86 func ExampleClient_CreateCapacityCommitment() {
87 ctx := context.Background()
88 // This snippet has been automatically generated and should be regarded as a code template only.
89 // It will require modifications to work:
90 // - It may require correct/in-range values for request initialization.
91 // - It may require specifying regional endpoints when creating the service client as shown in:
92 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
93 c, err := reservation.NewClient(ctx)
94 if err != nil {
95 // TODO: Handle error.
96 }
97 defer c.Close()
98
99 req := &reservationpb.CreateCapacityCommitmentRequest{
100 // TODO: Fill request struct fields.
101 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#CreateCapacityCommitmentRequest.
102 }
103 resp, err := c.CreateCapacityCommitment(ctx, req)
104 if err != nil {
105 // TODO: Handle error.
106 }
107 // TODO: Use resp.
108 _ = resp
109 }
110
111 func ExampleClient_CreateReservation() {
112 ctx := context.Background()
113 // This snippet has been automatically generated and should be regarded as a code template only.
114 // It will require modifications to work:
115 // - It may require correct/in-range values for request initialization.
116 // - It may require specifying regional endpoints when creating the service client as shown in:
117 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
118 c, err := reservation.NewClient(ctx)
119 if err != nil {
120 // TODO: Handle error.
121 }
122 defer c.Close()
123
124 req := &reservationpb.CreateReservationRequest{
125 // TODO: Fill request struct fields.
126 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#CreateReservationRequest.
127 }
128 resp, err := c.CreateReservation(ctx, req)
129 if err != nil {
130 // TODO: Handle error.
131 }
132 // TODO: Use resp.
133 _ = resp
134 }
135
136 func ExampleClient_DeleteAssignment() {
137 ctx := context.Background()
138 // This snippet has been automatically generated and should be regarded as a code template only.
139 // It will require modifications to work:
140 // - It may require correct/in-range values for request initialization.
141 // - It may require specifying regional endpoints when creating the service client as shown in:
142 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
143 c, err := reservation.NewClient(ctx)
144 if err != nil {
145 // TODO: Handle error.
146 }
147 defer c.Close()
148
149 req := &reservationpb.DeleteAssignmentRequest{
150 // TODO: Fill request struct fields.
151 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#DeleteAssignmentRequest.
152 }
153 err = c.DeleteAssignment(ctx, req)
154 if err != nil {
155 // TODO: Handle error.
156 }
157 }
158
159 func ExampleClient_DeleteCapacityCommitment() {
160 ctx := context.Background()
161 // This snippet has been automatically generated and should be regarded as a code template only.
162 // It will require modifications to work:
163 // - It may require correct/in-range values for request initialization.
164 // - It may require specifying regional endpoints when creating the service client as shown in:
165 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
166 c, err := reservation.NewClient(ctx)
167 if err != nil {
168 // TODO: Handle error.
169 }
170 defer c.Close()
171
172 req := &reservationpb.DeleteCapacityCommitmentRequest{
173 // TODO: Fill request struct fields.
174 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#DeleteCapacityCommitmentRequest.
175 }
176 err = c.DeleteCapacityCommitment(ctx, req)
177 if err != nil {
178 // TODO: Handle error.
179 }
180 }
181
182 func ExampleClient_DeleteReservation() {
183 ctx := context.Background()
184 // This snippet has been automatically generated and should be regarded as a code template only.
185 // It will require modifications to work:
186 // - It may require correct/in-range values for request initialization.
187 // - It may require specifying regional endpoints when creating the service client as shown in:
188 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
189 c, err := reservation.NewClient(ctx)
190 if err != nil {
191 // TODO: Handle error.
192 }
193 defer c.Close()
194
195 req := &reservationpb.DeleteReservationRequest{
196 // TODO: Fill request struct fields.
197 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#DeleteReservationRequest.
198 }
199 err = c.DeleteReservation(ctx, req)
200 if err != nil {
201 // TODO: Handle error.
202 }
203 }
204
205 func ExampleClient_FailoverReservation() {
206 ctx := context.Background()
207 // This snippet has been automatically generated and should be regarded as a code template only.
208 // It will require modifications to work:
209 // - It may require correct/in-range values for request initialization.
210 // - It may require specifying regional endpoints when creating the service client as shown in:
211 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
212 c, err := reservation.NewClient(ctx)
213 if err != nil {
214 // TODO: Handle error.
215 }
216 defer c.Close()
217
218 req := &reservationpb.FailoverReservationRequest{
219 // TODO: Fill request struct fields.
220 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#FailoverReservationRequest.
221 }
222 resp, err := c.FailoverReservation(ctx, req)
223 if err != nil {
224 // TODO: Handle error.
225 }
226 // TODO: Use resp.
227 _ = resp
228 }
229
230 func ExampleClient_GetBiReservation() {
231 ctx := context.Background()
232 // This snippet has been automatically generated and should be regarded as a code template only.
233 // It will require modifications to work:
234 // - It may require correct/in-range values for request initialization.
235 // - It may require specifying regional endpoints when creating the service client as shown in:
236 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
237 c, err := reservation.NewClient(ctx)
238 if err != nil {
239 // TODO: Handle error.
240 }
241 defer c.Close()
242
243 req := &reservationpb.GetBiReservationRequest{
244 // TODO: Fill request struct fields.
245 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#GetBiReservationRequest.
246 }
247 resp, err := c.GetBiReservation(ctx, req)
248 if err != nil {
249 // TODO: Handle error.
250 }
251 // TODO: Use resp.
252 _ = resp
253 }
254
255 func ExampleClient_GetCapacityCommitment() {
256 ctx := context.Background()
257 // This snippet has been automatically generated and should be regarded as a code template only.
258 // It will require modifications to work:
259 // - It may require correct/in-range values for request initialization.
260 // - It may require specifying regional endpoints when creating the service client as shown in:
261 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
262 c, err := reservation.NewClient(ctx)
263 if err != nil {
264 // TODO: Handle error.
265 }
266 defer c.Close()
267
268 req := &reservationpb.GetCapacityCommitmentRequest{
269 // TODO: Fill request struct fields.
270 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#GetCapacityCommitmentRequest.
271 }
272 resp, err := c.GetCapacityCommitment(ctx, req)
273 if err != nil {
274 // TODO: Handle error.
275 }
276 // TODO: Use resp.
277 _ = resp
278 }
279
280 func ExampleClient_GetReservation() {
281 ctx := context.Background()
282 // This snippet has been automatically generated and should be regarded as a code template only.
283 // It will require modifications to work:
284 // - It may require correct/in-range values for request initialization.
285 // - It may require specifying regional endpoints when creating the service client as shown in:
286 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
287 c, err := reservation.NewClient(ctx)
288 if err != nil {
289 // TODO: Handle error.
290 }
291 defer c.Close()
292
293 req := &reservationpb.GetReservationRequest{
294 // TODO: Fill request struct fields.
295 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#GetReservationRequest.
296 }
297 resp, err := c.GetReservation(ctx, req)
298 if err != nil {
299 // TODO: Handle error.
300 }
301 // TODO: Use resp.
302 _ = resp
303 }
304
305 func ExampleClient_ListAssignments() {
306 ctx := context.Background()
307 // This snippet has been automatically generated and should be regarded as a code template only.
308 // It will require modifications to work:
309 // - It may require correct/in-range values for request initialization.
310 // - It may require specifying regional endpoints when creating the service client as shown in:
311 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
312 c, err := reservation.NewClient(ctx)
313 if err != nil {
314 // TODO: Handle error.
315 }
316 defer c.Close()
317
318 req := &reservationpb.ListAssignmentsRequest{
319 // TODO: Fill request struct fields.
320 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#ListAssignmentsRequest.
321 }
322 it := c.ListAssignments(ctx, req)
323 for {
324 resp, err := it.Next()
325 if err == iterator.Done {
326 break
327 }
328 if err != nil {
329 // TODO: Handle error.
330 }
331 // TODO: Use resp.
332 _ = resp
333
334 // If you need to access the underlying RPC response,
335 // you can do so by casting the `Response` as below.
336 // Otherwise, remove this line. Only populated after
337 // first call to Next(). Not safe for concurrent access.
338 _ = it.Response.(*reservationpb.ListAssignmentsResponse)
339 }
340 }
341
342 func ExampleClient_ListCapacityCommitments() {
343 ctx := context.Background()
344 // This snippet has been automatically generated and should be regarded as a code template only.
345 // It will require modifications to work:
346 // - It may require correct/in-range values for request initialization.
347 // - It may require specifying regional endpoints when creating the service client as shown in:
348 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
349 c, err := reservation.NewClient(ctx)
350 if err != nil {
351 // TODO: Handle error.
352 }
353 defer c.Close()
354
355 req := &reservationpb.ListCapacityCommitmentsRequest{
356 // TODO: Fill request struct fields.
357 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#ListCapacityCommitmentsRequest.
358 }
359 it := c.ListCapacityCommitments(ctx, req)
360 for {
361 resp, err := it.Next()
362 if err == iterator.Done {
363 break
364 }
365 if err != nil {
366 // TODO: Handle error.
367 }
368 // TODO: Use resp.
369 _ = resp
370
371 // If you need to access the underlying RPC response,
372 // you can do so by casting the `Response` as below.
373 // Otherwise, remove this line. Only populated after
374 // first call to Next(). Not safe for concurrent access.
375 _ = it.Response.(*reservationpb.ListCapacityCommitmentsResponse)
376 }
377 }
378
379 func ExampleClient_ListReservations() {
380 ctx := context.Background()
381 // This snippet has been automatically generated and should be regarded as a code template only.
382 // It will require modifications to work:
383 // - It may require correct/in-range values for request initialization.
384 // - It may require specifying regional endpoints when creating the service client as shown in:
385 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
386 c, err := reservation.NewClient(ctx)
387 if err != nil {
388 // TODO: Handle error.
389 }
390 defer c.Close()
391
392 req := &reservationpb.ListReservationsRequest{
393 // TODO: Fill request struct fields.
394 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#ListReservationsRequest.
395 }
396 it := c.ListReservations(ctx, req)
397 for {
398 resp, err := it.Next()
399 if err == iterator.Done {
400 break
401 }
402 if err != nil {
403 // TODO: Handle error.
404 }
405 // TODO: Use resp.
406 _ = resp
407
408 // If you need to access the underlying RPC response,
409 // you can do so by casting the `Response` as below.
410 // Otherwise, remove this line. Only populated after
411 // first call to Next(). Not safe for concurrent access.
412 _ = it.Response.(*reservationpb.ListReservationsResponse)
413 }
414 }
415
416 func ExampleClient_MergeCapacityCommitments() {
417 ctx := context.Background()
418 // This snippet has been automatically generated and should be regarded as a code template only.
419 // It will require modifications to work:
420 // - It may require correct/in-range values for request initialization.
421 // - It may require specifying regional endpoints when creating the service client as shown in:
422 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
423 c, err := reservation.NewClient(ctx)
424 if err != nil {
425 // TODO: Handle error.
426 }
427 defer c.Close()
428
429 req := &reservationpb.MergeCapacityCommitmentsRequest{
430 // TODO: Fill request struct fields.
431 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#MergeCapacityCommitmentsRequest.
432 }
433 resp, err := c.MergeCapacityCommitments(ctx, req)
434 if err != nil {
435 // TODO: Handle error.
436 }
437 // TODO: Use resp.
438 _ = resp
439 }
440
441 func ExampleClient_MoveAssignment() {
442 ctx := context.Background()
443 // This snippet has been automatically generated and should be regarded as a code template only.
444 // It will require modifications to work:
445 // - It may require correct/in-range values for request initialization.
446 // - It may require specifying regional endpoints when creating the service client as shown in:
447 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
448 c, err := reservation.NewClient(ctx)
449 if err != nil {
450 // TODO: Handle error.
451 }
452 defer c.Close()
453
454 req := &reservationpb.MoveAssignmentRequest{
455 // TODO: Fill request struct fields.
456 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#MoveAssignmentRequest.
457 }
458 resp, err := c.MoveAssignment(ctx, req)
459 if err != nil {
460 // TODO: Handle error.
461 }
462 // TODO: Use resp.
463 _ = resp
464 }
465
466 func ExampleClient_SearchAllAssignments() {
467 ctx := context.Background()
468 // This snippet has been automatically generated and should be regarded as a code template only.
469 // It will require modifications to work:
470 // - It may require correct/in-range values for request initialization.
471 // - It may require specifying regional endpoints when creating the service client as shown in:
472 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
473 c, err := reservation.NewClient(ctx)
474 if err != nil {
475 // TODO: Handle error.
476 }
477 defer c.Close()
478
479 req := &reservationpb.SearchAllAssignmentsRequest{
480 // TODO: Fill request struct fields.
481 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#SearchAllAssignmentsRequest.
482 }
483 it := c.SearchAllAssignments(ctx, req)
484 for {
485 resp, err := it.Next()
486 if err == iterator.Done {
487 break
488 }
489 if err != nil {
490 // TODO: Handle error.
491 }
492 // TODO: Use resp.
493 _ = resp
494
495 // If you need to access the underlying RPC response,
496 // you can do so by casting the `Response` as below.
497 // Otherwise, remove this line. Only populated after
498 // first call to Next(). Not safe for concurrent access.
499 _ = it.Response.(*reservationpb.SearchAllAssignmentsResponse)
500 }
501 }
502
503 func ExampleClient_SearchAssignments() {
504 ctx := context.Background()
505 // This snippet has been automatically generated and should be regarded as a code template only.
506 // It will require modifications to work:
507 // - It may require correct/in-range values for request initialization.
508 // - It may require specifying regional endpoints when creating the service client as shown in:
509 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
510 c, err := reservation.NewClient(ctx)
511 if err != nil {
512 // TODO: Handle error.
513 }
514 defer c.Close()
515
516 req := &reservationpb.SearchAssignmentsRequest{
517 // TODO: Fill request struct fields.
518 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#SearchAssignmentsRequest.
519 }
520 it := c.SearchAssignments(ctx, req)
521 for {
522 resp, err := it.Next()
523 if err == iterator.Done {
524 break
525 }
526 if err != nil {
527 // TODO: Handle error.
528 }
529 // TODO: Use resp.
530 _ = resp
531
532 // If you need to access the underlying RPC response,
533 // you can do so by casting the `Response` as below.
534 // Otherwise, remove this line. Only populated after
535 // first call to Next(). Not safe for concurrent access.
536 _ = it.Response.(*reservationpb.SearchAssignmentsResponse)
537 }
538 }
539
540 func ExampleClient_SplitCapacityCommitment() {
541 ctx := context.Background()
542 // This snippet has been automatically generated and should be regarded as a code template only.
543 // It will require modifications to work:
544 // - It may require correct/in-range values for request initialization.
545 // - It may require specifying regional endpoints when creating the service client as shown in:
546 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
547 c, err := reservation.NewClient(ctx)
548 if err != nil {
549 // TODO: Handle error.
550 }
551 defer c.Close()
552
553 req := &reservationpb.SplitCapacityCommitmentRequest{
554 // TODO: Fill request struct fields.
555 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#SplitCapacityCommitmentRequest.
556 }
557 resp, err := c.SplitCapacityCommitment(ctx, req)
558 if err != nil {
559 // TODO: Handle error.
560 }
561 // TODO: Use resp.
562 _ = resp
563 }
564
565 func ExampleClient_UpdateAssignment() {
566 ctx := context.Background()
567 // This snippet has been automatically generated and should be regarded as a code template only.
568 // It will require modifications to work:
569 // - It may require correct/in-range values for request initialization.
570 // - It may require specifying regional endpoints when creating the service client as shown in:
571 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
572 c, err := reservation.NewClient(ctx)
573 if err != nil {
574 // TODO: Handle error.
575 }
576 defer c.Close()
577
578 req := &reservationpb.UpdateAssignmentRequest{
579 // TODO: Fill request struct fields.
580 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#UpdateAssignmentRequest.
581 }
582 resp, err := c.UpdateAssignment(ctx, req)
583 if err != nil {
584 // TODO: Handle error.
585 }
586 // TODO: Use resp.
587 _ = resp
588 }
589
590 func ExampleClient_UpdateBiReservation() {
591 ctx := context.Background()
592 // This snippet has been automatically generated and should be regarded as a code template only.
593 // It will require modifications to work:
594 // - It may require correct/in-range values for request initialization.
595 // - It may require specifying regional endpoints when creating the service client as shown in:
596 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
597 c, err := reservation.NewClient(ctx)
598 if err != nil {
599 // TODO: Handle error.
600 }
601 defer c.Close()
602
603 req := &reservationpb.UpdateBiReservationRequest{
604 // TODO: Fill request struct fields.
605 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#UpdateBiReservationRequest.
606 }
607 resp, err := c.UpdateBiReservation(ctx, req)
608 if err != nil {
609 // TODO: Handle error.
610 }
611 // TODO: Use resp.
612 _ = resp
613 }
614
615 func ExampleClient_UpdateCapacityCommitment() {
616 ctx := context.Background()
617 // This snippet has been automatically generated and should be regarded as a code template only.
618 // It will require modifications to work:
619 // - It may require correct/in-range values for request initialization.
620 // - It may require specifying regional endpoints when creating the service client as shown in:
621 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
622 c, err := reservation.NewClient(ctx)
623 if err != nil {
624 // TODO: Handle error.
625 }
626 defer c.Close()
627
628 req := &reservationpb.UpdateCapacityCommitmentRequest{
629 // TODO: Fill request struct fields.
630 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#UpdateCapacityCommitmentRequest.
631 }
632 resp, err := c.UpdateCapacityCommitment(ctx, req)
633 if err != nil {
634 // TODO: Handle error.
635 }
636 // TODO: Use resp.
637 _ = resp
638 }
639
640 func ExampleClient_UpdateReservation() {
641 ctx := context.Background()
642 // This snippet has been automatically generated and should be regarded as a code template only.
643 // It will require modifications to work:
644 // - It may require correct/in-range values for request initialization.
645 // - It may require specifying regional endpoints when creating the service client as shown in:
646 // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
647 c, err := reservation.NewClient(ctx)
648 if err != nil {
649 // TODO: Handle error.
650 }
651 defer c.Close()
652
653 req := &reservationpb.UpdateReservationRequest{
654 // TODO: Fill request struct fields.
655 // See https://pkg.go.dev/cloud.google.com/go/bigquery/reservation/apiv1/reservationpb#UpdateReservationRequest.
656 }
657 resp, err := c.UpdateReservation(ctx, req)
658 if err != nil {
659 // TODO: Handle error.
660 }
661 // TODO: Use resp.
662 _ = resp
663 }