Debian Codegraph @

googleapis/cloud/gkehub/v1alpha/service.pb.go

raw
1 // Copyright 2021 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 // http://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. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v3.12.2
19 // source: google/cloud/gkehub/v1alpha/service.proto
20
21 package gkehub
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 longrunning "google.golang.org/genproto/googleapis/longrunning"
30 grpc "google.golang.org/grpc"
31 codes "google.golang.org/grpc/codes"
32 status "google.golang.org/grpc/status"
33 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
34 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
35 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
36 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
37 )
38
39 const (
40 // Verify that this generated code is sufficiently up-to-date.
41 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
42 // Verify that runtime/protoimpl is sufficiently up-to-date.
43 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
44 )
45
46 // Request message for `GkeHub.ListFeatures` method.
47 type ListFeaturesRequest struct {
48 state protoimpl.MessageState
49 sizeCache protoimpl.SizeCache
50 unknownFields protoimpl.UnknownFields
51
52 // The parent (project and location) where the Features will be listed.
53 // Specified in the format `projects/*/locations/*`.
54 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
55 // When requesting a 'page' of resources, `page_size` specifies number of
56 // resources to return. If unspecified or set to 0, all resources will
57 // be returned.
58 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
59 // Token returned by previous call to `ListFeatures` which
60 // specifies the position in the list from where to continue listing the
61 // resources.
62 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
63 // Lists Features that match the filter expression, following the syntax
64 // outlined in https://google.aip.dev/160.
65 //
66 // Examples:
67 //
68 // - Feature with the name "servicemesh" in project "foo-proj":
69 //
70 // name = "projects/foo-proj/locations/global/features/servicemesh"
71 //
72 // - Features that have a label called `foo`:
73 //
74 // labels.foo:*
75 //
76 // - Features that have a label called `foo` whose value is `bar`:
77 //
78 // labels.foo = bar
79 Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
80 // One or more fields to compare and use to sort the output.
81 // See https://google.aip.dev/132#ordering.
82 OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
83 }
84
85 func (x *ListFeaturesRequest) Reset() {
86 *x = ListFeaturesRequest{}
87 if protoimpl.UnsafeEnabled {
88 mi := &file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[0]
89 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
90 ms.StoreMessageInfo(mi)
91 }
92 }
93
94 func (x *ListFeaturesRequest) String() string {
95 return protoimpl.X.MessageStringOf(x)
96 }
97
98 func (*ListFeaturesRequest) ProtoMessage() {}
99
100 func (x *ListFeaturesRequest) ProtoReflect() protoreflect.Message {
101 mi := &file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[0]
102 if protoimpl.UnsafeEnabled && x != nil {
103 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
104 if ms.LoadMessageInfo() == nil {
105 ms.StoreMessageInfo(mi)
106 }
107 return ms
108 }
109 return mi.MessageOf(x)
110 }
111
112 // Deprecated: Use ListFeaturesRequest.ProtoReflect.Descriptor instead.
113 func (*ListFeaturesRequest) Descriptor() ([]byte, []int) {
114 return file_google_cloud_gkehub_v1alpha_service_proto_rawDescGZIP(), []int{0}
115 }
116
117 func (x *ListFeaturesRequest) GetParent() string {
118 if x != nil {
119 return x.Parent
120 }
121 return ""
122 }
123
124 func (x *ListFeaturesRequest) GetPageSize() int32 {
125 if x != nil {
126 return x.PageSize
127 }
128 return 0
129 }
130
131 func (x *ListFeaturesRequest) GetPageToken() string {
132 if x != nil {
133 return x.PageToken
134 }
135 return ""
136 }
137
138 func (x *ListFeaturesRequest) GetFilter() string {
139 if x != nil {
140 return x.Filter
141 }
142 return ""
143 }
144
145 func (x *ListFeaturesRequest) GetOrderBy() string {
146 if x != nil {
147 return x.OrderBy
148 }
149 return ""
150 }
151
152 // Response message for the `GkeHub.ListFeatures` method.
153 type ListFeaturesResponse struct {
154 state protoimpl.MessageState
155 sizeCache protoimpl.SizeCache
156 unknownFields protoimpl.UnknownFields
157
158 // The list of matching Features
159 Resources []*Feature `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
160 // A token to request the next page of resources from the
161 // `ListFeatures` method. The value of an empty string means
162 // that there are no more resources to return.
163 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
164 }
165
166 func (x *ListFeaturesResponse) Reset() {
167 *x = ListFeaturesResponse{}
168 if protoimpl.UnsafeEnabled {
169 mi := &file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[1]
170 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
171 ms.StoreMessageInfo(mi)
172 }
173 }
174
175 func (x *ListFeaturesResponse) String() string {
176 return protoimpl.X.MessageStringOf(x)
177 }
178
179 func (*ListFeaturesResponse) ProtoMessage() {}
180
181 func (x *ListFeaturesResponse) ProtoReflect() protoreflect.Message {
182 mi := &file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[1]
183 if protoimpl.UnsafeEnabled && x != nil {
184 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
185 if ms.LoadMessageInfo() == nil {
186 ms.StoreMessageInfo(mi)
187 }
188 return ms
189 }
190 return mi.MessageOf(x)
191 }
192
193 // Deprecated: Use ListFeaturesResponse.ProtoReflect.Descriptor instead.
194 func (*ListFeaturesResponse) Descriptor() ([]byte, []int) {
195 return file_google_cloud_gkehub_v1alpha_service_proto_rawDescGZIP(), []int{1}
196 }
197
198 func (x *ListFeaturesResponse) GetResources() []*Feature {
199 if x != nil {
200 return x.Resources
201 }
202 return nil
203 }
204
205 func (x *ListFeaturesResponse) GetNextPageToken() string {
206 if x != nil {
207 return x.NextPageToken
208 }
209 return ""
210 }
211
212 // Request message for `GkeHub.GetFeature` method.
213 type GetFeatureRequest struct {
214 state protoimpl.MessageState
215 sizeCache protoimpl.SizeCache
216 unknownFields protoimpl.UnknownFields
217
218 // The Feature resource name in the format
219 // `projects/*/locations/*/features/*`
220 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
221 }
222
223 func (x *GetFeatureRequest) Reset() {
224 *x = GetFeatureRequest{}
225 if protoimpl.UnsafeEnabled {
226 mi := &file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[2]
227 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
228 ms.StoreMessageInfo(mi)
229 }
230 }
231
232 func (x *GetFeatureRequest) String() string {
233 return protoimpl.X.MessageStringOf(x)
234 }
235
236 func (*GetFeatureRequest) ProtoMessage() {}
237
238 func (x *GetFeatureRequest) ProtoReflect() protoreflect.Message {
239 mi := &file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[2]
240 if protoimpl.UnsafeEnabled && x != nil {
241 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
242 if ms.LoadMessageInfo() == nil {
243 ms.StoreMessageInfo(mi)
244 }
245 return ms
246 }
247 return mi.MessageOf(x)
248 }
249
250 // Deprecated: Use GetFeatureRequest.ProtoReflect.Descriptor instead.
251 func (*GetFeatureRequest) Descriptor() ([]byte, []int) {
252 return file_google_cloud_gkehub_v1alpha_service_proto_rawDescGZIP(), []int{2}
253 }
254
255 func (x *GetFeatureRequest) GetName() string {
256 if x != nil {
257 return x.Name
258 }
259 return ""
260 }
261
262 // Request message for the `GkeHub.CreateFeature` method.
263 type CreateFeatureRequest struct {
264 state protoimpl.MessageState
265 sizeCache protoimpl.SizeCache
266 unknownFields protoimpl.UnknownFields
267
268 // The parent (project and location) where the Feature will be created.
269 // Specified in the format `projects/*/locations/*`.
270 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
271 // The ID of the feature to create.
272 FeatureId string `protobuf:"bytes,2,opt,name=feature_id,json=featureId,proto3" json:"feature_id,omitempty"`
273 // The Feature resource to create.
274 Resource *Feature `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
275 // Optional. A request ID to identify requests. Specify a unique request ID
276 // so that if you must retry your request, the server will know to ignore
277 // the request if it has already been completed. The server will guarantee
278 // that for at least 60 minutes after the first request.
279 //
280 // For example, consider a situation where you make an initial request and
281 // the request times out. If you make the request again with the same request
282 // ID, the server can check if original operation with the same request ID
283 // was received, and if so, will ignore the second request. This prevents
284 // clients from accidentally creating duplicate commitments.
285 //
286 // The request ID must be a valid UUID with the exception that zero UUID is
287 // not supported (00000000-0000-0000-0000-000000000000).
288 RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
289 }
290
291 func (x *CreateFeatureRequest) Reset() {
292 *x = CreateFeatureRequest{}
293 if protoimpl.UnsafeEnabled {
294 mi := &file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[3]
295 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
296 ms.StoreMessageInfo(mi)
297 }
298 }
299
300 func (x *CreateFeatureRequest) String() string {
301 return protoimpl.X.MessageStringOf(x)
302 }
303
304 func (*CreateFeatureRequest) ProtoMessage() {}
305
306 func (x *CreateFeatureRequest) ProtoReflect() protoreflect.Message {
307 mi := &file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[3]
308 if protoimpl.UnsafeEnabled && x != nil {
309 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
310 if ms.LoadMessageInfo() == nil {
311 ms.StoreMessageInfo(mi)
312 }
313 return ms
314 }
315 return mi.MessageOf(x)
316 }
317
318 // Deprecated: Use CreateFeatureRequest.ProtoReflect.Descriptor instead.
319 func (*CreateFeatureRequest) Descriptor() ([]byte, []int) {
320 return file_google_cloud_gkehub_v1alpha_service_proto_rawDescGZIP(), []int{3}
321 }
322
323 func (x *CreateFeatureRequest) GetParent() string {
324 if x != nil {
325 return x.Parent
326 }
327 return ""
328 }
329
330 func (x *CreateFeatureRequest) GetFeatureId() string {
331 if x != nil {
332 return x.FeatureId
333 }
334 return ""
335 }
336
337 func (x *CreateFeatureRequest) GetResource() *Feature {
338 if x != nil {
339 return x.Resource
340 }
341 return nil
342 }
343
344 func (x *CreateFeatureRequest) GetRequestId() string {
345 if x != nil {
346 return x.RequestId
347 }
348 return ""
349 }
350
351 // Request message for `GkeHub.DeleteFeature` method.
352 type DeleteFeatureRequest struct {
353 state protoimpl.MessageState
354 sizeCache protoimpl.SizeCache
355 unknownFields protoimpl.UnknownFields
356
357 // The Feature resource name in the format
358 // `projects/*/locations/*/features/*`.
359 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
360 // If set to true, the delete will ignore any outstanding resources for
361 // this Feature (that is, `FeatureState.has_resources` is set to true). These
362 // resources will NOT be cleaned up or modified in any way.
363 Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
364 // Optional. A request ID to identify requests. Specify a unique request ID
365 // so that if you must retry your request, the server will know to ignore
366 // the request if it has already been completed. The server will guarantee
367 // that for at least 60 minutes after the first request.
368 //
369 // For example, consider a situation where you make an initial request and
370 // the request times out. If you make the request again with the same request
371 // ID, the server can check if original operation with the same request ID
372 // was received, and if so, will ignore the second request. This prevents
373 // clients from accidentally creating duplicate commitments.
374 //
375 // The request ID must be a valid UUID with the exception that zero UUID is
376 // not supported (00000000-0000-0000-0000-000000000000).
377 RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
378 }
379
380 func (x *DeleteFeatureRequest) Reset() {
381 *x = DeleteFeatureRequest{}
382 if protoimpl.UnsafeEnabled {
383 mi := &file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[4]
384 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
385 ms.StoreMessageInfo(mi)
386 }
387 }
388
389 func (x *DeleteFeatureRequest) String() string {
390 return protoimpl.X.MessageStringOf(x)
391 }
392
393 func (*DeleteFeatureRequest) ProtoMessage() {}
394
395 func (x *DeleteFeatureRequest) ProtoReflect() protoreflect.Message {
396 mi := &file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[4]
397 if protoimpl.UnsafeEnabled && x != nil {
398 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
399 if ms.LoadMessageInfo() == nil {
400 ms.StoreMessageInfo(mi)
401 }
402 return ms
403 }
404 return mi.MessageOf(x)
405 }
406
407 // Deprecated: Use DeleteFeatureRequest.ProtoReflect.Descriptor instead.
408 func (*DeleteFeatureRequest) Descriptor() ([]byte, []int) {
409 return file_google_cloud_gkehub_v1alpha_service_proto_rawDescGZIP(), []int{4}
410 }
411
412 func (x *DeleteFeatureRequest) GetName() string {
413 if x != nil {
414 return x.Name
415 }
416 return ""
417 }
418
419 func (x *DeleteFeatureRequest) GetForce() bool {
420 if x != nil {
421 return x.Force
422 }
423 return false
424 }
425
426 func (x *DeleteFeatureRequest) GetRequestId() string {
427 if x != nil {
428 return x.RequestId
429 }
430 return ""
431 }
432
433 // Request message for `GkeHub.UpdateFeature` method.
434 type UpdateFeatureRequest struct {
435 state protoimpl.MessageState
436 sizeCache protoimpl.SizeCache
437 unknownFields protoimpl.UnknownFields
438
439 // The Feature resource name in the format
440 // `projects/*/locations/*/features/*`.
441 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
442 // Mask of fields to update.
443 UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
444 // Only fields specified in update_mask are updated.
445 // If you specify a field in the update_mask but don't specify its value here
446 // that field will be deleted.
447 // If you are updating a map field, set the value of a key to null or empty
448 // string to delete the key from the map. It's not possible to update a key's
449 // value to the empty string.
450 // If you specify the update_mask to be a special path "*", fully replaces all
451 // user-modifiable fields to match `resource`.
452 Resource *Feature `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
453 // Optional. A request ID to identify requests. Specify a unique request ID
454 // so that if you must retry your request, the server will know to ignore
455 // the request if it has already been completed. The server will guarantee
456 // that for at least 60 minutes after the first request.
457 //
458 // For example, consider a situation where you make an initial request and
459 // the request times out. If you make the request again with the same request
460 // ID, the server can check if original operation with the same request ID
461 // was received, and if so, will ignore the second request. This prevents
462 // clients from accidentally creating duplicate commitments.
463 //
464 // The request ID must be a valid UUID with the exception that zero UUID is
465 // not supported (00000000-0000-0000-0000-000000000000).
466 RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
467 }
468
469 func (x *UpdateFeatureRequest) Reset() {
470 *x = UpdateFeatureRequest{}
471 if protoimpl.UnsafeEnabled {
472 mi := &file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[5]
473 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
474 ms.StoreMessageInfo(mi)
475 }
476 }
477
478 func (x *UpdateFeatureRequest) String() string {
479 return protoimpl.X.MessageStringOf(x)
480 }
481
482 func (*UpdateFeatureRequest) ProtoMessage() {}
483
484 func (x *UpdateFeatureRequest) ProtoReflect() protoreflect.Message {
485 mi := &file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[5]
486 if protoimpl.UnsafeEnabled && x != nil {
487 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
488 if ms.LoadMessageInfo() == nil {
489 ms.StoreMessageInfo(mi)
490 }
491 return ms
492 }
493 return mi.MessageOf(x)
494 }
495
496 // Deprecated: Use UpdateFeatureRequest.ProtoReflect.Descriptor instead.
497 func (*UpdateFeatureRequest) Descriptor() ([]byte, []int) {
498 return file_google_cloud_gkehub_v1alpha_service_proto_rawDescGZIP(), []int{5}
499 }
500
501 func (x *UpdateFeatureRequest) GetName() string {
502 if x != nil {
503 return x.Name
504 }
505 return ""
506 }
507
508 func (x *UpdateFeatureRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
509 if x != nil {
510 return x.UpdateMask
511 }
512 return nil
513 }
514
515 func (x *UpdateFeatureRequest) GetResource() *Feature {
516 if x != nil {
517 return x.Resource
518 }
519 return nil
520 }
521
522 func (x *UpdateFeatureRequest) GetRequestId() string {
523 if x != nil {
524 return x.RequestId
525 }
526 return ""
527 }
528
529 // Represents the metadata of the long-running operation.
530 type OperationMetadata struct {
531 state protoimpl.MessageState
532 sizeCache protoimpl.SizeCache
533 unknownFields protoimpl.UnknownFields
534
535 // Output only. The time the operation was created.
536 CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
537 // Output only. The time the operation finished running.
538 EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
539 // Output only. Server-defined resource path for the target of the operation.
540 Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
541 // Output only. Name of the verb executed by the operation.
542 Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
543 // Output only. Human-readable status of the operation, if any.
544 StatusDetail string `protobuf:"bytes,5,opt,name=status_detail,json=statusDetail,proto3" json:"status_detail,omitempty"`
545 // Output only. Identifies whether the user has requested cancellation
546 // of the operation. Operations that have successfully been cancelled
547 // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
548 // corresponding to `Code.CANCELLED`.
549 CancelRequested bool `protobuf:"varint,6,opt,name=cancel_requested,json=cancelRequested,proto3" json:"cancel_requested,omitempty"`
550 // Output only. API version used to start the operation.
551 ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
552 }
553
554 func (x *OperationMetadata) Reset() {
555 *x = OperationMetadata{}
556 if protoimpl.UnsafeEnabled {
557 mi := &file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[6]
558 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
559 ms.StoreMessageInfo(mi)
560 }
561 }
562
563 func (x *OperationMetadata) String() string {
564 return protoimpl.X.MessageStringOf(x)
565 }
566
567 func (*OperationMetadata) ProtoMessage() {}
568
569 func (x *OperationMetadata) ProtoReflect() protoreflect.Message {
570 mi := &file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[6]
571 if protoimpl.UnsafeEnabled && x != nil {
572 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
573 if ms.LoadMessageInfo() == nil {
574 ms.StoreMessageInfo(mi)
575 }
576 return ms
577 }
578 return mi.MessageOf(x)
579 }
580
581 // Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
582 func (*OperationMetadata) Descriptor() ([]byte, []int) {
583 return file_google_cloud_gkehub_v1alpha_service_proto_rawDescGZIP(), []int{6}
584 }
585
586 func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp {
587 if x != nil {
588 return x.CreateTime
589 }
590 return nil
591 }
592
593 func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp {
594 if x != nil {
595 return x.EndTime
596 }
597 return nil
598 }
599
600 func (x *OperationMetadata) GetTarget() string {
601 if x != nil {
602 return x.Target
603 }
604 return ""
605 }
606
607 func (x *OperationMetadata) GetVerb() string {
608 if x != nil {
609 return x.Verb
610 }
611 return ""
612 }
613
614 func (x *OperationMetadata) GetStatusDetail() string {
615 if x != nil {
616 return x.StatusDetail
617 }
618 return ""
619 }
620
621 func (x *OperationMetadata) GetCancelRequested() bool {
622 if x != nil {
623 return x.CancelRequested
624 }
625 return false
626 }
627
628 func (x *OperationMetadata) GetApiVersion() string {
629 if x != nil {
630 return x.ApiVersion
631 }
632 return ""
633 }
634
635 var File_google_cloud_gkehub_v1alpha_service_proto protoreflect.FileDescriptor
636
637 var file_google_cloud_gkehub_v1alpha_service_proto_rawDesc = []byte{
638 0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67,
639 0x6b, 0x65, 0x68, 0x75, 0x62, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x73, 0x65,
640 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x67, 0x6f, 0x6f,
641 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x68, 0x75, 0x62,
642 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
643 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
644 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
645 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
646 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c,
647 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
648 0x1a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67,
649 0x6b, 0x65, 0x68, 0x75, 0x62, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x66, 0x65,
650 0x61, 0x74, 0x75, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f,
651 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f,
652 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
653 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
654 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f,
655 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
656 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
657 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x65, 0x61, 0x74,
658 0x75, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70,
659 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72,
660 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65,
661 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
662 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03,
663 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
664 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
665 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72,
666 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72,
667 0x42, 0x79, 0x22, 0x82, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x65, 0x61, 0x74, 0x75,
668 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x09, 0x72,
669 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24,
670 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b,
671 0x65, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x46, 0x65, 0x61,
672 0x74, 0x75, 0x72, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12,
673 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
674 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61,
675 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x27, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x46, 0x65,
676 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04,
677 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
678 0x22, 0xb3, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x65, 0x61, 0x74, 0x75,
679 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72,
680 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
681 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x69, 0x64, 0x18,
682 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x49, 0x64,
683 0x12, 0x40, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01,
684 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
685 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
686 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
687 0x63, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64,
688 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x72, 0x65, 0x71,
689 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x64, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
690 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12,
691 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
692 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
693 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75,
694 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
695 0x01, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xcd, 0x01, 0x0a,
696 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65,
697 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
698 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64,
699 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
700 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
701 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61,
702 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x40, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
703 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
704 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x76,
705 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x08,
706 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75,
707 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
708 0x01, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xc7, 0x02, 0x0a,
709 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
710 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d,
711 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
712 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
713 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
714 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65,
715 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
716 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
717 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65,
718 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
719 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x17, 0x0a,
720 0x04, 0x76, 0x65, 0x72, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03,
721 0x52, 0x04, 0x76, 0x65, 0x72, 0x62, 0x12, 0x28, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
722 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
723 0x41, 0x03, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,
724 0x12, 0x2e, 0x0a, 0x10, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65,
725 0x73, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
726 0x0f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64,
727 0x12, 0x24, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
728 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x56,
729 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x32, 0xd0, 0x08, 0x0a, 0x06, 0x47, 0x6b, 0x65, 0x48, 0x75,
730 0x62, 0x12, 0xb7, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72,
731 0x65, 0x73, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
732 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
733 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52, 0x65, 0x71,
734 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
735 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70,
736 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x52,
737 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12,
738 0x31, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
739 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63,
740 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72,
741 0x65, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xa4, 0x01, 0x0a, 0x0a,
742 0x47, 0x65, 0x74, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f,
743 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x68, 0x75, 0x62,
744 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x65, 0x61, 0x74,
745 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x67, 0x6f, 0x6f,
746 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x68, 0x75, 0x62,
747 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65,
748 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70,
749 0x68, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
750 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f,
751 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61,
752 0x6d, 0x65, 0x12, 0xe2, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x65, 0x61,
753 0x74, 0x75, 0x72, 0x65, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
754 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70,
755 0x68, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65,
756 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
757 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65,
758 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x22, 0x31,
759 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
760 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61,
761 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65,
762 0x73, 0x3a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0xda, 0x41, 0x1a, 0x70, 0x61,
763 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2c, 0x66, 0x65,
764 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x69, 0x64, 0xca, 0x41, 0x1c, 0x0a, 0x07, 0x46, 0x65, 0x61,
765 0x74, 0x75, 0x72, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d,
766 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xd0, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65,
767 0x74, 0x65, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
768 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x68, 0x75, 0x62, 0x2e,
769 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x65,
770 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67,
771 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e,
772 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6d, 0x82, 0xd3, 0xe4,
773 0x93, 0x02, 0x33, 0x2a, 0x31, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x7b, 0x6e,
774 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c,
775 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x66, 0x65, 0x61, 0x74, 0x75,
776 0x72, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x2a,
777 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
778 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
779 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xe1, 0x01, 0x0a, 0x0d, 0x55,
780 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x31, 0x2e, 0x67,
781 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x68,
782 0x75, 0x62, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
783 0x65, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
784 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e,
785 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7e,
786 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x32, 0x31, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
787 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
788 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x66, 0x65,
789 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75,
790 0x72, 0x63, 0x65, 0xda, 0x41, 0x19, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x72, 0x65, 0x73, 0x6f, 0x75,
791 0x72, 0x63, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0xca,
792 0x41, 0x1c, 0x0a, 0x07, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65,
793 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x49,
794 0xca, 0x41, 0x15, 0x67, 0x6b, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
795 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73,
796 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
797 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64,
798 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xd1, 0x01, 0x0a, 0x1f, 0x63, 0x6f,
799 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67,
800 0x6b, 0x65, 0x68, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0c, 0x53,
801 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67,
802 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
803 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
804 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6b, 0x65, 0x68, 0x75,
805 0x62, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x67, 0x6b, 0x65, 0x68, 0x75, 0x62,
806 0xaa, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
807 0x47, 0x6b, 0x65, 0x48, 0x75, 0x62, 0x2e, 0x56, 0x31, 0x41, 0x6c, 0x70, 0x68, 0x61, 0xca, 0x02,
808 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x47, 0x6b,
809 0x65, 0x48, 0x75, 0x62, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xea, 0x02, 0x1e, 0x47,
810 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x47, 0x6b,
811 0x65, 0x48, 0x75, 0x62, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70,
812 0x72, 0x6f, 0x74, 0x6f, 0x33,
813 }
814
815 var (
816 file_google_cloud_gkehub_v1alpha_service_proto_rawDescOnce sync.Once
817 file_google_cloud_gkehub_v1alpha_service_proto_rawDescData = file_google_cloud_gkehub_v1alpha_service_proto_rawDesc
818 )
819
820 func file_google_cloud_gkehub_v1alpha_service_proto_rawDescGZIP() []byte {
821 file_google_cloud_gkehub_v1alpha_service_proto_rawDescOnce.Do(func() {
822 file_google_cloud_gkehub_v1alpha_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_gkehub_v1alpha_service_proto_rawDescData)
823 })
824 return file_google_cloud_gkehub_v1alpha_service_proto_rawDescData
825 }
826
827 var file_google_cloud_gkehub_v1alpha_service_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
828 var file_google_cloud_gkehub_v1alpha_service_proto_goTypes = []interface{}{
829 (*ListFeaturesRequest)(nil), // 0: google.cloud.gkehub.v1alpha.ListFeaturesRequest
830 (*ListFeaturesResponse)(nil), // 1: google.cloud.gkehub.v1alpha.ListFeaturesResponse
831 (*GetFeatureRequest)(nil), // 2: google.cloud.gkehub.v1alpha.GetFeatureRequest
832 (*CreateFeatureRequest)(nil), // 3: google.cloud.gkehub.v1alpha.CreateFeatureRequest
833 (*DeleteFeatureRequest)(nil), // 4: google.cloud.gkehub.v1alpha.DeleteFeatureRequest
834 (*UpdateFeatureRequest)(nil), // 5: google.cloud.gkehub.v1alpha.UpdateFeatureRequest
835 (*OperationMetadata)(nil), // 6: google.cloud.gkehub.v1alpha.OperationMetadata
836 (*Feature)(nil), // 7: google.cloud.gkehub.v1alpha.Feature
837 (*fieldmaskpb.FieldMask)(nil), // 8: google.protobuf.FieldMask
838 (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp
839 (*longrunning.Operation)(nil), // 10: google.longrunning.Operation
840 }
841 var file_google_cloud_gkehub_v1alpha_service_proto_depIdxs = []int32{
842 7, // 0: google.cloud.gkehub.v1alpha.ListFeaturesResponse.resources:type_name -> google.cloud.gkehub.v1alpha.Feature
843 7, // 1: google.cloud.gkehub.v1alpha.CreateFeatureRequest.resource:type_name -> google.cloud.gkehub.v1alpha.Feature
844 8, // 2: google.cloud.gkehub.v1alpha.UpdateFeatureRequest.update_mask:type_name -> google.protobuf.FieldMask
845 7, // 3: google.cloud.gkehub.v1alpha.UpdateFeatureRequest.resource:type_name -> google.cloud.gkehub.v1alpha.Feature
846 9, // 4: google.cloud.gkehub.v1alpha.OperationMetadata.create_time:type_name -> google.protobuf.Timestamp
847 9, // 5: google.cloud.gkehub.v1alpha.OperationMetadata.end_time:type_name -> google.protobuf.Timestamp
848 0, // 6: google.cloud.gkehub.v1alpha.GkeHub.ListFeatures:input_type -> google.cloud.gkehub.v1alpha.ListFeaturesRequest
849 2, // 7: google.cloud.gkehub.v1alpha.GkeHub.GetFeature:input_type -> google.cloud.gkehub.v1alpha.GetFeatureRequest
850 3, // 8: google.cloud.gkehub.v1alpha.GkeHub.CreateFeature:input_type -> google.cloud.gkehub.v1alpha.CreateFeatureRequest
851 4, // 9: google.cloud.gkehub.v1alpha.GkeHub.DeleteFeature:input_type -> google.cloud.gkehub.v1alpha.DeleteFeatureRequest
852 5, // 10: google.cloud.gkehub.v1alpha.GkeHub.UpdateFeature:input_type -> google.cloud.gkehub.v1alpha.UpdateFeatureRequest
853 1, // 11: google.cloud.gkehub.v1alpha.GkeHub.ListFeatures:output_type -> google.cloud.gkehub.v1alpha.ListFeaturesResponse
854 7, // 12: google.cloud.gkehub.v1alpha.GkeHub.GetFeature:output_type -> google.cloud.gkehub.v1alpha.Feature
855 10, // 13: google.cloud.gkehub.v1alpha.GkeHub.CreateFeature:output_type -> google.longrunning.Operation
856 10, // 14: google.cloud.gkehub.v1alpha.GkeHub.DeleteFeature:output_type -> google.longrunning.Operation
857 10, // 15: google.cloud.gkehub.v1alpha.GkeHub.UpdateFeature:output_type -> google.longrunning.Operation
858 11, // [11:16] is the sub-list for method output_type
859 6, // [6:11] is the sub-list for method input_type
860 6, // [6:6] is the sub-list for extension type_name
861 6, // [6:6] is the sub-list for extension extendee
862 0, // [0:6] is the sub-list for field type_name
863 }
864
865 func init() { file_google_cloud_gkehub_v1alpha_service_proto_init() }
866 func file_google_cloud_gkehub_v1alpha_service_proto_init() {
867 if File_google_cloud_gkehub_v1alpha_service_proto != nil {
868 return
869 }
870 file_google_cloud_gkehub_v1alpha_feature_proto_init()
871 if !protoimpl.UnsafeEnabled {
872 file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
873 switch v := v.(*ListFeaturesRequest); i {
874 case 0:
875 return &v.state
876 case 1:
877 return &v.sizeCache
878 case 2:
879 return &v.unknownFields
880 default:
881 return nil
882 }
883 }
884 file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
885 switch v := v.(*ListFeaturesResponse); i {
886 case 0:
887 return &v.state
888 case 1:
889 return &v.sizeCache
890 case 2:
891 return &v.unknownFields
892 default:
893 return nil
894 }
895 }
896 file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
897 switch v := v.(*GetFeatureRequest); i {
898 case 0:
899 return &v.state
900 case 1:
901 return &v.sizeCache
902 case 2:
903 return &v.unknownFields
904 default:
905 return nil
906 }
907 }
908 file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
909 switch v := v.(*CreateFeatureRequest); i {
910 case 0:
911 return &v.state
912 case 1:
913 return &v.sizeCache
914 case 2:
915 return &v.unknownFields
916 default:
917 return nil
918 }
919 }
920 file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
921 switch v := v.(*DeleteFeatureRequest); i {
922 case 0:
923 return &v.state
924 case 1:
925 return &v.sizeCache
926 case 2:
927 return &v.unknownFields
928 default:
929 return nil
930 }
931 }
932 file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
933 switch v := v.(*UpdateFeatureRequest); i {
934 case 0:
935 return &v.state
936 case 1:
937 return &v.sizeCache
938 case 2:
939 return &v.unknownFields
940 default:
941 return nil
942 }
943 }
944 file_google_cloud_gkehub_v1alpha_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
945 switch v := v.(*OperationMetadata); i {
946 case 0:
947 return &v.state
948 case 1:
949 return &v.sizeCache
950 case 2:
951 return &v.unknownFields
952 default:
953 return nil
954 }
955 }
956 }
957 type x struct{}
958 out := protoimpl.TypeBuilder{
959 File: protoimpl.DescBuilder{
960 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
961 RawDescriptor: file_google_cloud_gkehub_v1alpha_service_proto_rawDesc,
962 NumEnums: 0,
963 NumMessages: 7,
964 NumExtensions: 0,
965 NumServices: 1,
966 },
967 GoTypes: file_google_cloud_gkehub_v1alpha_service_proto_goTypes,
968 DependencyIndexes: file_google_cloud_gkehub_v1alpha_service_proto_depIdxs,
969 MessageInfos: file_google_cloud_gkehub_v1alpha_service_proto_msgTypes,
970 }.Build()
971 File_google_cloud_gkehub_v1alpha_service_proto = out.File
972 file_google_cloud_gkehub_v1alpha_service_proto_rawDesc = nil
973 file_google_cloud_gkehub_v1alpha_service_proto_goTypes = nil
974 file_google_cloud_gkehub_v1alpha_service_proto_depIdxs = nil
975 }
976
977 // Reference imports to suppress errors if they are not otherwise used.
978 var _ context.Context
979 var _ grpc.ClientConnInterface
980
981 // This is a compile-time assertion to ensure that this generated file
982 // is compatible with the grpc package it is being compiled against.
983 const _ = grpc.SupportPackageIsVersion6
984
985 // GkeHubClient is the client API for GkeHub service.
986 //
987 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
988 type GkeHubClient interface {
989 // Lists Features in a given project and location.
990 ListFeatures(ctx context.Context, in *ListFeaturesRequest, opts ...grpc.CallOption) (*ListFeaturesResponse, error)
991 // Gets details of a single Feature.
992 GetFeature(ctx context.Context, in *GetFeatureRequest, opts ...grpc.CallOption) (*Feature, error)
993 // Adds a new Feature.
994 CreateFeature(ctx context.Context, in *CreateFeatureRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
995 // Removes a Feature.
996 DeleteFeature(ctx context.Context, in *DeleteFeatureRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
997 // Updates an existing Feature.
998 UpdateFeature(ctx context.Context, in *UpdateFeatureRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
999 }
1000
1001 type gkeHubClient struct {
1002 cc grpc.ClientConnInterface
1003 }
1004
1005 func NewGkeHubClient(cc grpc.ClientConnInterface) GkeHubClient {
1006 return &gkeHubClient{cc}
1007 }
1008
1009 func (c *gkeHubClient) ListFeatures(ctx context.Context, in *ListFeaturesRequest, opts ...grpc.CallOption) (*ListFeaturesResponse, error) {
1010 out := new(ListFeaturesResponse)
1011 err := c.cc.Invoke(ctx, "/google.cloud.gkehub.v1alpha.GkeHub/ListFeatures", in, out, opts...)
1012 if err != nil {
1013 return nil, err
1014 }
1015 return out, nil
1016 }
1017
1018 func (c *gkeHubClient) GetFeature(ctx context.Context, in *GetFeatureRequest, opts ...grpc.CallOption) (*Feature, error) {
1019 out := new(Feature)
1020 err := c.cc.Invoke(ctx, "/google.cloud.gkehub.v1alpha.GkeHub/GetFeature", in, out, opts...)
1021 if err != nil {
1022 return nil, err
1023 }
1024 return out, nil
1025 }
1026
1027 func (c *gkeHubClient) CreateFeature(ctx context.Context, in *CreateFeatureRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
1028 out := new(longrunning.Operation)
1029 err := c.cc.Invoke(ctx, "/google.cloud.gkehub.v1alpha.GkeHub/CreateFeature", in, out, opts...)
1030 if err != nil {
1031 return nil, err
1032 }
1033 return out, nil
1034 }
1035
1036 func (c *gkeHubClient) DeleteFeature(ctx context.Context, in *DeleteFeatureRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
1037 out := new(longrunning.Operation)
1038 err := c.cc.Invoke(ctx, "/google.cloud.gkehub.v1alpha.GkeHub/DeleteFeature", in, out, opts...)
1039 if err != nil {
1040 return nil, err
1041 }
1042 return out, nil
1043 }
1044
1045 func (c *gkeHubClient) UpdateFeature(ctx context.Context, in *UpdateFeatureRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
1046 out := new(longrunning.Operation)
1047 err := c.cc.Invoke(ctx, "/google.cloud.gkehub.v1alpha.GkeHub/UpdateFeature", in, out, opts...)
1048 if err != nil {
1049 return nil, err
1050 }
1051 return out, nil
1052 }
1053
1054 // GkeHubServer is the server API for GkeHub service.
1055 type GkeHubServer interface {
1056 // Lists Features in a given project and location.
1057 ListFeatures(context.Context, *ListFeaturesRequest) (*ListFeaturesResponse, error)
1058 // Gets details of a single Feature.
1059 GetFeature(context.Context, *GetFeatureRequest) (*Feature, error)
1060 // Adds a new Feature.
1061 CreateFeature(context.Context, *CreateFeatureRequest) (*longrunning.Operation, error)
1062 // Removes a Feature.
1063 DeleteFeature(context.Context, *DeleteFeatureRequest) (*longrunning.Operation, error)
1064 // Updates an existing Feature.
1065 UpdateFeature(context.Context, *UpdateFeatureRequest) (*longrunning.Operation, error)
1066 }
1067
1068 // UnimplementedGkeHubServer can be embedded to have forward compatible implementations.
1069 type UnimplementedGkeHubServer struct {
1070 }
1071
1072 func (*UnimplementedGkeHubServer) ListFeatures(context.Context, *ListFeaturesRequest) (*ListFeaturesResponse, error) {
1073 return nil, status.Errorf(codes.Unimplemented, "method ListFeatures not implemented")
1074 }
1075 func (*UnimplementedGkeHubServer) GetFeature(context.Context, *GetFeatureRequest) (*Feature, error) {
1076 return nil, status.Errorf(codes.Unimplemented, "method GetFeature not implemented")
1077 }
1078 func (*UnimplementedGkeHubServer) CreateFeature(context.Context, *CreateFeatureRequest) (*longrunning.Operation, error) {
1079 return nil, status.Errorf(codes.Unimplemented, "method CreateFeature not implemented")
1080 }
1081 func (*UnimplementedGkeHubServer) DeleteFeature(context.Context, *DeleteFeatureRequest) (*longrunning.Operation, error) {
1082 return nil, status.Errorf(codes.Unimplemented, "method DeleteFeature not implemented")
1083 }
1084 func (*UnimplementedGkeHubServer) UpdateFeature(context.Context, *UpdateFeatureRequest) (*longrunning.Operation, error) {
1085 return nil, status.Errorf(codes.Unimplemented, "method UpdateFeature not implemented")
1086 }
1087
1088 func RegisterGkeHubServer(s *grpc.Server, srv GkeHubServer) {
1089 s.RegisterService(&_GkeHub_serviceDesc, srv)
1090 }
1091
1092 func _GkeHub_ListFeatures_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1093 in := new(ListFeaturesRequest)
1094 if err := dec(in); err != nil {
1095 return nil, err
1096 }
1097 if interceptor == nil {
1098 return srv.(GkeHubServer).ListFeatures(ctx, in)
1099 }
1100 info := &grpc.UnaryServerInfo{
1101 Server: srv,
1102 FullMethod: "/google.cloud.gkehub.v1alpha.GkeHub/ListFeatures",
1103 }
1104 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1105 return srv.(GkeHubServer).ListFeatures(ctx, req.(*ListFeaturesRequest))
1106 }
1107 return interceptor(ctx, in, info, handler)
1108 }
1109
1110 func _GkeHub_GetFeature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1111 in := new(GetFeatureRequest)
1112 if err := dec(in); err != nil {
1113 return nil, err
1114 }
1115 if interceptor == nil {
1116 return srv.(GkeHubServer).GetFeature(ctx, in)
1117 }
1118 info := &grpc.UnaryServerInfo{
1119 Server: srv,
1120 FullMethod: "/google.cloud.gkehub.v1alpha.GkeHub/GetFeature",
1121 }
1122 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1123 return srv.(GkeHubServer).GetFeature(ctx, req.(*GetFeatureRequest))
1124 }
1125 return interceptor(ctx, in, info, handler)
1126 }
1127
1128 func _GkeHub_CreateFeature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1129 in := new(CreateFeatureRequest)
1130 if err := dec(in); err != nil {
1131 return nil, err
1132 }
1133 if interceptor == nil {
1134 return srv.(GkeHubServer).CreateFeature(ctx, in)
1135 }
1136 info := &grpc.UnaryServerInfo{
1137 Server: srv,
1138 FullMethod: "/google.cloud.gkehub.v1alpha.GkeHub/CreateFeature",
1139 }
1140 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1141 return srv.(GkeHubServer).CreateFeature(ctx, req.(*CreateFeatureRequest))
1142 }
1143 return interceptor(ctx, in, info, handler)
1144 }
1145
1146 func _GkeHub_DeleteFeature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1147 in := new(DeleteFeatureRequest)
1148 if err := dec(in); err != nil {
1149 return nil, err
1150 }
1151 if interceptor == nil {
1152 return srv.(GkeHubServer).DeleteFeature(ctx, in)
1153 }
1154 info := &grpc.UnaryServerInfo{
1155 Server: srv,
1156 FullMethod: "/google.cloud.gkehub.v1alpha.GkeHub/DeleteFeature",
1157 }
1158 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1159 return srv.(GkeHubServer).DeleteFeature(ctx, req.(*DeleteFeatureRequest))
1160 }
1161 return interceptor(ctx, in, info, handler)
1162 }
1163
1164 func _GkeHub_UpdateFeature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1165 in := new(UpdateFeatureRequest)
1166 if err := dec(in); err != nil {
1167 return nil, err
1168 }
1169 if interceptor == nil {
1170 return srv.(GkeHubServer).UpdateFeature(ctx, in)
1171 }
1172 info := &grpc.UnaryServerInfo{
1173 Server: srv,
1174 FullMethod: "/google.cloud.gkehub.v1alpha.GkeHub/UpdateFeature",
1175 }
1176 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1177 return srv.(GkeHubServer).UpdateFeature(ctx, req.(*UpdateFeatureRequest))
1178 }
1179 return interceptor(ctx, in, info, handler)
1180 }
1181
1182 var _GkeHub_serviceDesc = grpc.ServiceDesc{
1183 ServiceName: "google.cloud.gkehub.v1alpha.GkeHub",
1184 HandlerType: (*GkeHubServer)(nil),
1185 Methods: []grpc.MethodDesc{
1186 {
1187 MethodName: "ListFeatures",
1188 Handler: _GkeHub_ListFeatures_Handler,
1189 },
1190 {
1191 MethodName: "GetFeature",
1192 Handler: _GkeHub_GetFeature_Handler,
1193 },
1194 {
1195 MethodName: "CreateFeature",
1196 Handler: _GkeHub_CreateFeature_Handler,
1197 },
1198 {
1199 MethodName: "DeleteFeature",
1200 Handler: _GkeHub_DeleteFeature_Handler,
1201 },
1202 {
1203 MethodName: "UpdateFeature",
1204 Handler: _GkeHub_UpdateFeature_Handler,
1205 },
1206 },
1207 Streams: []grpc.StreamDesc{},
1208 Metadata: "google/cloud/gkehub/v1alpha/service.proto",
1209 }