1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package inventorypb
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 kmspb "cloud.google.com/go/kms/apiv1/kmspb"
29 _ "google.golang.org/genproto/googleapis/api/annotations"
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 )
36
37 const (
38
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 )
43
44
45
46 type ListCryptoKeysRequest struct {
47 state protoimpl.MessageState
48 sizeCache protoimpl.SizeCache
49 unknownFields protoimpl.UnknownFields
50
51
52
53 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
54
55
56
57 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
58
59
60 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
61 }
62
63 func (x *ListCryptoKeysRequest) Reset() {
64 *x = ListCryptoKeysRequest{}
65 if protoimpl.UnsafeEnabled {
66 mi := &file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_msgTypes[0]
67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68 ms.StoreMessageInfo(mi)
69 }
70 }
71
72 func (x *ListCryptoKeysRequest) String() string {
73 return protoimpl.X.MessageStringOf(x)
74 }
75
76 func (*ListCryptoKeysRequest) ProtoMessage() {}
77
78 func (x *ListCryptoKeysRequest) ProtoReflect() protoreflect.Message {
79 mi := &file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_msgTypes[0]
80 if protoimpl.UnsafeEnabled && x != nil {
81 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
82 if ms.LoadMessageInfo() == nil {
83 ms.StoreMessageInfo(mi)
84 }
85 return ms
86 }
87 return mi.MessageOf(x)
88 }
89
90
91 func (*ListCryptoKeysRequest) Descriptor() ([]byte, []int) {
92 return file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescGZIP(), []int{0}
93 }
94
95 func (x *ListCryptoKeysRequest) GetParent() string {
96 if x != nil {
97 return x.Parent
98 }
99 return ""
100 }
101
102 func (x *ListCryptoKeysRequest) GetPageSize() int32 {
103 if x != nil {
104 return x.PageSize
105 }
106 return 0
107 }
108
109 func (x *ListCryptoKeysRequest) GetPageToken() string {
110 if x != nil {
111 return x.PageToken
112 }
113 return ""
114 }
115
116
117
118 type ListCryptoKeysResponse struct {
119 state protoimpl.MessageState
120 sizeCache protoimpl.SizeCache
121 unknownFields protoimpl.UnknownFields
122
123
124 CryptoKeys []*kmspb.CryptoKey `protobuf:"bytes,1,rep,name=crypto_keys,json=cryptoKeys,proto3" json:"crypto_keys,omitempty"`
125
126
127 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
128 }
129
130 func (x *ListCryptoKeysResponse) Reset() {
131 *x = ListCryptoKeysResponse{}
132 if protoimpl.UnsafeEnabled {
133 mi := &file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_msgTypes[1]
134 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
135 ms.StoreMessageInfo(mi)
136 }
137 }
138
139 func (x *ListCryptoKeysResponse) String() string {
140 return protoimpl.X.MessageStringOf(x)
141 }
142
143 func (*ListCryptoKeysResponse) ProtoMessage() {}
144
145 func (x *ListCryptoKeysResponse) ProtoReflect() protoreflect.Message {
146 mi := &file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_msgTypes[1]
147 if protoimpl.UnsafeEnabled && x != nil {
148 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
149 if ms.LoadMessageInfo() == nil {
150 ms.StoreMessageInfo(mi)
151 }
152 return ms
153 }
154 return mi.MessageOf(x)
155 }
156
157
158 func (*ListCryptoKeysResponse) Descriptor() ([]byte, []int) {
159 return file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescGZIP(), []int{1}
160 }
161
162 func (x *ListCryptoKeysResponse) GetCryptoKeys() []*kmspb.CryptoKey {
163 if x != nil {
164 return x.CryptoKeys
165 }
166 return nil
167 }
168
169 func (x *ListCryptoKeysResponse) GetNextPageToken() string {
170 if x != nil {
171 return x.NextPageToken
172 }
173 return ""
174 }
175
176 var File_google_cloud_kms_inventory_v1_key_dashboard_service_proto protoreflect.FileDescriptor
177
178 var file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDesc = []byte{
179 0x0a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6b,
180 0x6d, 0x73, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f,
181 0x6b, 0x65, 0x79, 0x5f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x73, 0x65,
182 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f, 0x6f,
183 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x69, 0x6e,
184 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,
185 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
186 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
187 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
188 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69,
189 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f,
190 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72,
191 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67,
192 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6b, 0x6d, 0x73, 0x2f,
193 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
194 0x74, 0x6f, 0x22, 0xaa, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74,
195 0x6f, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x06,
196 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xe0, 0x41,
197 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x72, 0x65, 0x73, 0x6f, 0x75,
198 0x72, 0x63, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
199 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,
200 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67,
201 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41,
202 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70,
203 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42,
204 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22,
205 0x81, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65,
206 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x63, 0x72,
207 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
208 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6b,
209 0x6d, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x52,
210 0x0a, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e,
211 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,
212 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f,
213 0x6b, 0x65, 0x6e, 0x32, 0x9b, 0x02, 0x0a, 0x13, 0x4b, 0x65, 0x79, 0x44, 0x61, 0x73, 0x68, 0x62,
214 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb2, 0x01, 0x0a, 0x0e,
215 0x4c, 0x69, 0x73, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x34,
216 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6b, 0x6d,
217 0x73, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
218 0x69, 0x73, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71,
219 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
220 0x6f, 0x75, 0x64, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72,
221 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b,
222 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0xda, 0x41, 0x06,
223 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76,
224 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
225 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x73,
226 0x1a, 0x4f, 0xca, 0x41, 0x1b, 0x6b, 0x6d, 0x73, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72,
227 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
228 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67,
229 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75,
230 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
231 0x6d, 0x42, 0xc3, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
232 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e,
233 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x18, 0x4b, 0x65, 0x79, 0x44, 0x61, 0x73, 0x68,
234 0x62, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74,
235 0x6f, 0x50, 0x01, 0x5a, 0x3f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
236 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6b, 0x6d, 0x73, 0x2f, 0x69, 0x6e, 0x76,
237 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76,
238 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x3b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f,
239 0x72, 0x79, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
240 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4b, 0x6d, 0x73, 0x2e, 0x49, 0x6e, 0x76, 0x65, 0x6e,
241 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
242 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x4b, 0x6d, 0x73, 0x5c, 0x49, 0x6e, 0x76, 0x65, 0x6e,
243 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
244 }
245
246 var (
247 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescOnce sync.Once
248 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescData = file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDesc
249 )
250
251 func file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescGZIP() []byte {
252 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescOnce.Do(func() {
253 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)
254 })
255 return file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDescData
256 }
257
258 var file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
259 var file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_goTypes = []interface{}{
260 (*ListCryptoKeysRequest)(nil),
261 (*ListCryptoKeysResponse)(nil),
262 (*kmspb.CryptoKey)(nil),
263 }
264 var file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_depIdxs = []int32{
265 2,
266 0,
267 1,
268 2,
269 1,
270 1,
271 1,
272 0,
273 }
274
275 func init() { file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_init() }
276 func file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_init() {
277 if File_google_cloud_kms_inventory_v1_key_dashboard_service_proto != nil {
278 return
279 }
280 if !protoimpl.UnsafeEnabled {
281 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
282 switch v := v.(*ListCryptoKeysRequest); i {
283 case 0:
284 return &v.state
285 case 1:
286 return &v.sizeCache
287 case 2:
288 return &v.unknownFields
289 default:
290 return nil
291 }
292 }
293 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
294 switch v := v.(*ListCryptoKeysResponse); i {
295 case 0:
296 return &v.state
297 case 1:
298 return &v.sizeCache
299 case 2:
300 return &v.unknownFields
301 default:
302 return nil
303 }
304 }
305 }
306 type x struct{}
307 out := protoimpl.TypeBuilder{
308 File: protoimpl.DescBuilder{
309 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
310 RawDescriptor: file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDesc,
311 NumEnums: 0,
312 NumMessages: 2,
313 NumExtensions: 0,
314 NumServices: 1,
315 },
316 GoTypes: file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_goTypes,
317 DependencyIndexes: file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_depIdxs,
318 MessageInfos: file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_msgTypes,
319 }.Build()
320 File_google_cloud_kms_inventory_v1_key_dashboard_service_proto = out.File
321 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_rawDesc = nil
322 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_goTypes = nil
323 file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_depIdxs = nil
324 }
325
326
327 var _ context.Context
328 var _ grpc.ClientConnInterface
329
330
331
332 const _ = grpc.SupportPackageIsVersion6
333
334
335
336
337 type KeyDashboardServiceClient interface {
338
339
340
341 ListCryptoKeys(ctx context.Context, in *ListCryptoKeysRequest, opts ...grpc.CallOption) (*ListCryptoKeysResponse, error)
342 }
343
344 type keyDashboardServiceClient struct {
345 cc grpc.ClientConnInterface
346 }
347
348 func NewKeyDashboardServiceClient(cc grpc.ClientConnInterface) KeyDashboardServiceClient {
349 return &keyDashboardServiceClient{cc}
350 }
351
352 func (c *keyDashboardServiceClient) ListCryptoKeys(ctx context.Context, in *ListCryptoKeysRequest, opts ...grpc.CallOption) (*ListCryptoKeysResponse, error) {
353 out := new(ListCryptoKeysResponse)
354 err := c.cc.Invoke(ctx, "/google.cloud.kms.inventory.v1.KeyDashboardService/ListCryptoKeys", in, out, opts...)
355 if err != nil {
356 return nil, err
357 }
358 return out, nil
359 }
360
361
362 type KeyDashboardServiceServer interface {
363
364
365
366 ListCryptoKeys(context.Context, *ListCryptoKeysRequest) (*ListCryptoKeysResponse, error)
367 }
368
369
370 type UnimplementedKeyDashboardServiceServer struct {
371 }
372
373 func (*UnimplementedKeyDashboardServiceServer) ListCryptoKeys(context.Context, *ListCryptoKeysRequest) (*ListCryptoKeysResponse, error) {
374 return nil, status.Errorf(codes.Unimplemented, "method ListCryptoKeys not implemented")
375 }
376
377 func RegisterKeyDashboardServiceServer(s *grpc.Server, srv KeyDashboardServiceServer) {
378 s.RegisterService(&_KeyDashboardService_serviceDesc, srv)
379 }
380
381 func _KeyDashboardService_ListCryptoKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
382 in := new(ListCryptoKeysRequest)
383 if err := dec(in); err != nil {
384 return nil, err
385 }
386 if interceptor == nil {
387 return srv.(KeyDashboardServiceServer).ListCryptoKeys(ctx, in)
388 }
389 info := &grpc.UnaryServerInfo{
390 Server: srv,
391 FullMethod: "/google.cloud.kms.inventory.v1.KeyDashboardService/ListCryptoKeys",
392 }
393 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
394 return srv.(KeyDashboardServiceServer).ListCryptoKeys(ctx, req.(*ListCryptoKeysRequest))
395 }
396 return interceptor(ctx, in, info, handler)
397 }
398
399 var _KeyDashboardService_serviceDesc = grpc.ServiceDesc{
400 ServiceName: "google.cloud.kms.inventory.v1.KeyDashboardService",
401 HandlerType: (*KeyDashboardServiceServer)(nil),
402 Methods: []grpc.MethodDesc{
403 {
404 MethodName: "ListCryptoKeys",
405 Handler: _KeyDashboardService_ListCryptoKeys_Handler,
406 },
407 },
408 Streams: []grpc.StreamDesc{},
409 Metadata: "google/cloud/kms/inventory/v1/key_dashboard_service.proto",
410 }
411
View as plain text