Debian Codegraph @

kms/inventory/apiv1/inventorypb/key_dashboard_service.pb.go

raw symbols SCIP
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 // 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.35.2
18 // protoc v4.25.7
19 // source: google/cloud/kms/inventory/v1/key_dashboard_service.proto
20
21 package inventorypb
22
23 import (
24 kmspb "cloud.google.com/go/kms/apiv1/kmspb"
25 context "context"
26 _ "google.golang.org/genproto/googleapis/api/annotations"
27 grpc "google.golang.org/grpc"
28 codes "google.golang.org/grpc/codes"
29 status "google.golang.org/grpc/status"
30 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
31 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
32 reflect "reflect"
33 sync "sync"
34 )
35
36 const (
37 // Verify that this generated code is sufficiently up-to-date.
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39 // Verify that runtime/protoimpl is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43 // Request message for
44 // [KeyDashboardService.ListCryptoKeys][google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys].
45 type ListCryptoKeysRequest struct {
46 state protoimpl.MessageState
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
49
50 // Required. The Google Cloud project for which to retrieve key metadata, in
51 // the format `projects/*`
52 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
53 // Optional. The maximum number of keys to return. The service may return
54 // fewer than this value. If unspecified, at most 1000 keys will be returned.
55 // The maximum value is 1000; values above 1000 will be coerced to 1000.
56 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
57 // Optional. Pass this into a subsequent request in order to receive the next
58 // page of results.
59 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
60 }
61
62 func (x *ListCryptoKeysRequest) Reset() {
63 *x = ListCryptoKeysRequest{}
64 mi := &file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_msgTypes[0]
65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
66 ms.StoreMessageInfo(mi)
67 }
68
69 func (x *ListCryptoKeysRequest) String() string {
70 return protoimpl.X.MessageStringOf(x)
71 }
72
73 func (*ListCryptoKeysRequest) ProtoMessage() {}
74
75 func (x *ListCryptoKeysRequest) ProtoReflect() protoreflect.Message {
76 mi := &file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_msgTypes[0]
77 if x != nil {
78 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
79 if ms.LoadMessageInfo() == nil {
80 ms.StoreMessageInfo(mi)
81 }
82 return ms
83 }
84 return mi.MessageOf(x)
85 }
86
87 // Deprecated: Use ListCryptoKeysRequest.ProtoReflect.Descriptor instead.
88 func (*ListCryptoKeysRequest) Descriptor() ([]byte, []int) {
89 return file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescGZIP(), []int{0}
90 }
91
92 func (x *ListCryptoKeysRequest) GetParent() string {
93 if x != nil {
94 return x.Parent
95 }
96 return ""
97 }
98
99 func (x *ListCryptoKeysRequest) GetPageSize() int32 {
100 if x != nil {
101 return x.PageSize
102 }
103 return 0
104 }
105
106 func (x *ListCryptoKeysRequest) GetPageToken() string {
107 if x != nil {
108 return x.PageToken
109 }
110 return ""
111 }
112
113 // Response message for
114 // [KeyDashboardService.ListCryptoKeys][google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys].
115 type ListCryptoKeysResponse struct {
116 state protoimpl.MessageState
117 sizeCache protoimpl.SizeCache
118 unknownFields protoimpl.UnknownFields
119
120 // The list of [CryptoKeys][google.cloud.kms.v1.CryptoKey].
121 CryptoKeys []*kmspb.CryptoKey `protobuf:"bytes,1,rep,name=crypto_keys,json=cryptoKeys,proto3" json:"crypto_keys,omitempty"`
122 // The page token returned from the previous response if the next page is
123 // desired.
124 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
125 }
126
127 func (x *ListCryptoKeysResponse) Reset() {
128 *x = ListCryptoKeysResponse{}
129 mi := &file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_msgTypes[1]
130 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
131 ms.StoreMessageInfo(mi)
132 }
133
134 func (x *ListCryptoKeysResponse) String() string {
135 return protoimpl.X.MessageStringOf(x)
136 }
137
138 func (*ListCryptoKeysResponse) ProtoMessage() {}
139
140 func (x *ListCryptoKeysResponse) ProtoReflect() protoreflect.Message {
141 mi := &file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_msgTypes[1]
142 if x != nil {
143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
144 if ms.LoadMessageInfo() == nil {
145 ms.StoreMessageInfo(mi)
146 }
147 return ms
148 }
149 return mi.MessageOf(x)
150 }
151
152 // Deprecated: Use ListCryptoKeysResponse.ProtoReflect.Descriptor instead.
153 func (*ListCryptoKeysResponse) Descriptor() ([]byte, []int) {
154 return file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescGZIP(), []int{1}
155 }
156
157 func (x *ListCryptoKeysResponse) GetCryptoKeys() []*kmspb.CryptoKey {
158 if x != nil {
159 return x.CryptoKeys
160 }
161 return nil
162 }
163
164 func (x *ListCryptoKeysResponse) GetNextPageToken() string {
165 if x != nil {
166 return x.NextPageToken
167 }
168 return ""
169 }
170
171 var File_google_cloud_kms_inventory_v1_key_dashboard_service_proto protoreflect.FileDescriptor
172
173 var file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDesc = []byte{
174 0x0a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6b,
175 0x6d, 0x73, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f,
176 0x6b, 0x65, 0x79, 0x5f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x73, 0x65,
177 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f, 0x6f,
178 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x69, 0x6e,
179 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,
180 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
181 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
182 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
183 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69,
184 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f,
185 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72,
186 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67,
187 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6b, 0x6d, 0x73, 0x2f,
188 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
189 0x74, 0x6f, 0x22, 0xaa, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74,
190 0x6f, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x06,
191 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xe0, 0x41,
192 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x72, 0x65, 0x73, 0x6f, 0x75,
193 0x72, 0x63, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
194 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,
195 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67,
196 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41,
197 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70,
198 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42,
199 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22,
200 0x81, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65,
201 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x63, 0x72,
202 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
203 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6b,
204 0x6d, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x52,
205 0x0a, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e,
206 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,
207 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f,
208 0x6b, 0x65, 0x6e, 0x32, 0x9b, 0x02, 0x0a, 0x13, 0x4b, 0x65, 0x79, 0x44, 0x61, 0x73, 0x68, 0x62,
209 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb2, 0x01, 0x0a, 0x0e,
210 0x4c, 0x69, 0x73, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x34,
211 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6b, 0x6d,
212 0x73, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
213 0x69, 0x73, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71,
214 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
215 0x6f, 0x75, 0x64, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72,
216 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b,
217 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0xda, 0x41, 0x06,
218 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76,
219 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
220 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x73,
221 0x1a, 0x4f, 0xca, 0x41, 0x1b, 0x6b, 0x6d, 0x73, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72,
222 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
223 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67,
224 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75,
225 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
226 0x6d, 0x42, 0xc3, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
227 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e,
228 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x18, 0x4b, 0x65, 0x79, 0x44, 0x61, 0x73, 0x68,
229 0x62, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74,
230 0x6f, 0x50, 0x01, 0x5a, 0x3f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
231 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6b, 0x6d, 0x73, 0x2f, 0x69, 0x6e, 0x76,
232 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76,
233 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x3b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f,
234 0x72, 0x79, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
235 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4b, 0x6d, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x65, 0x6e,
236 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
237 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x4b, 0x6d, 0x73, 0x5c, 0x49, 0x6e, 0x76, 0x65, 0x6e,
238 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
239 }
240
241 var (
242 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescOnce sync.Once
243 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescData = file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDesc
244 )
245
246 func file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescGZIP() []byte {
247 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescOnce.Do(func() {
248 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescData)
249 })
250 return file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescData
251 }
252
253 var file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
254 var file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_goTypes = []any{
255 (*ListCryptoKeysRequest)(nil), // 0: google.cloud.kms.inventory.v1.ListCryptoKeysRequest
256 (*ListCryptoKeysResponse)(nil), // 1: google.cloud.kms.inventory.v1.ListCryptoKeysResponse
257 (*kmspb.CryptoKey)(nil), // 2: google.cloud.kms.v1.CryptoKey
258 }
259 var file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_depIdxs = []int32{
260 2, // 0: google.cloud.kms.inventory.v1.ListCryptoKeysResponse.crypto_keys:type_name -> google.cloud.kms.v1.CryptoKey
261 0, // 1: google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys:input_type -> google.cloud.kms.inventory.v1.ListCryptoKeysRequest
262 1, // 2: google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys:output_type -> google.cloud.kms.inventory.v1.ListCryptoKeysResponse
263 2, // [2:3] is the sub-list for method output_type
264 1, // [1:2] is the sub-list for method input_type
265 1, // [1:1] is the sub-list for extension type_name
266 1, // [1:1] is the sub-list for extension extendee
267 0, // [0:1] is the sub-list for field type_name
268 }
269
270 func init() { file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_init() }
271 func file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_init() {
272 if File_google_cloud_kms_inventory_v1_key_dashboard_service_proto != nil {
273 return
274 }
275 type x struct{}
276 out := protoimpl.TypeBuilder{
277 File: protoimpl.DescBuilder{
278 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
279 RawDescriptor: file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDesc,
280 NumEnums: 0,
281 NumMessages: 2,
282 NumExtensions: 0,
283 NumServices: 1,
284 },
285 GoTypes: file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_goTypes,
286 DependencyIndexes: file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_depIdxs,
287 MessageInfos: file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_msgTypes,
288 }.Build()
289 File_google_cloud_kms_inventory_v1_key_dashboard_service_proto = out.File
290 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDesc = nil
291 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_goTypes = nil
292 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_depIdxs = nil
293 }
294
295 // Reference imports to suppress errors if they are not otherwise used.
296 var _ context.Context
297 var _ grpc.ClientConnInterface
298
299 // This is a compile-time assertion to ensure that this generated file
300 // is compatible with the grpc package it is being compiled against.
301 const _ = grpc.SupportPackageIsVersion6
302
303 // KeyDashboardServiceClient is the client API for KeyDashboardService service.
304 //
305 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
306 type KeyDashboardServiceClient interface {
307 // Returns cryptographic keys managed by Cloud KMS in a given Cloud project.
308 // Note that this data is sourced from snapshots, meaning it may not
309 // completely reflect the actual state of key metadata at call time.
310 ListCryptoKeys(ctx context.Context, in *ListCryptoKeysRequest, opts ...grpc.CallOption) (*ListCryptoKeysResponse, error)
311 }
312
313 type keyDashboardServiceClient struct {
314 cc grpc.ClientConnInterface
315 }
316
317 func NewKeyDashboardServiceClient(cc grpc.ClientConnInterface) KeyDashboardServiceClient {
318 return &keyDashboardServiceClient{cc}
319 }
320
321 func (c *keyDashboardServiceClient) ListCryptoKeys(ctx context.Context, in *ListCryptoKeysRequest, opts ...grpc.CallOption) (*ListCryptoKeysResponse, error) {
322 out := new(ListCryptoKeysResponse)
323 err := c.cc.Invoke(ctx, "/google.cloud.kms.inventory.v1.KeyDashboardService/ListCryptoKeys", in, out, opts...)
324 if err != nil {
325 return nil, err
326 }
327 return out, nil
328 }
329
330 // KeyDashboardServiceServer is the server API for KeyDashboardService service.
331 type KeyDashboardServiceServer interface {
332 // Returns cryptographic keys managed by Cloud KMS in a given Cloud project.
333 // Note that this data is sourced from snapshots, meaning it may not
334 // completely reflect the actual state of key metadata at call time.
335 ListCryptoKeys(context.Context, *ListCryptoKeysRequest) (*ListCryptoKeysResponse, error)
336 }
337
338 // UnimplementedKeyDashboardServiceServer can be embedded to have forward compatible implementations.
339 type UnimplementedKeyDashboardServiceServer struct {
340 }
341
342 func (*UnimplementedKeyDashboardServiceServer) ListCryptoKeys(context.Context, *ListCryptoKeysRequest) (*ListCryptoKeysResponse, error) {
343 return nil, status.Errorf(codes.Unimplemented, "method ListCryptoKeys not implemented")
344 }
345
346 func RegisterKeyDashboardServiceServer(s *grpc.Server, srv KeyDashboardServiceServer) {
347 s.RegisterService(&_KeyDashboardService_serviceDesc, srv)
348 }
349
350 func _KeyDashboardService_ListCryptoKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
351 in := new(ListCryptoKeysRequest)
352 if err := dec(in); err != nil {
353 return nil, err
354 }
355 if interceptor == nil {
356 return srv.(KeyDashboardServiceServer).ListCryptoKeys(ctx, in)
357 }
358 info := &grpc.UnaryServerInfo{
359 Server: srv,
360 FullMethod: "/google.cloud.kms.inventory.v1.KeyDashboardService/ListCryptoKeys",
361 }
362 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
363 return srv.(KeyDashboardServiceServer).ListCryptoKeys(ctx, req.(*ListCryptoKeysRequest))
364 }
365 return interceptor(ctx, in, info, handler)
366 }
367
368 var _KeyDashboardService_serviceDesc = grpc.ServiceDesc{
369 ServiceName: "google.cloud.kms.inventory.v1.KeyDashboardService",
370 HandlerType: (*KeyDashboardServiceServer)(nil),
371 Methods: []grpc.MethodDesc{
372 {
373 MethodName: "ListCryptoKeys",
374 Handler: _KeyDashboardService_ListCryptoKeys_Handler,
375 },
376 },
377 Streams: []grpc.StreamDesc{},
378 Metadata: "google/cloud/kms/inventory/v1/key_dashboard_service.proto",
379 }