| 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 |
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 |
|
| 38 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 39 |
|
| 40 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 41 |
) |
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
type ListCryptoKeysRequest struct { |
| 46 |
state protoimpl.MessageState |
| 47 |
sizeCache protoimpl.SizeCache |
| 48 |
unknownFields protoimpl.UnknownFields |
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| 57 |
|
| 58 |
|
| 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 |
|
| 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 |
|
| 114 |
|
| 115 |
type ListCryptoKeysResponse struct { |
| 116 |
state protoimpl.MessageState |
| 117 |
sizeCache protoimpl.SizeCache |
| 118 |
unknownFields protoimpl.UnknownFields |
| 119 |
|
| 120 |
|
| 121 |
CryptoKeys []*kmspb.CryptoKey `protobuf:"bytes,1,rep,name=crypto_keys,json=cryptoKeys,proto3" json:"crypto_keys,omitempty"` |
| 122 |
|
| 123 |
|
| 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 |
|
| 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), |
| 256 |
(*ListCryptoKeysResponse)(nil), |
| 257 |
(*kmspb.CryptoKey)(nil), |
| 258 |
} |
| 259 |
var file_google_cloud_kms_inventory_v1_key_dashboard_service_proto_depIdxs = []int32{ |
| 260 |
2, |
| 261 |
0, |
| 262 |
1, |
| 263 |
2, |
| 264 |
1, |
| 265 |
1, |
| 266 |
1, |
| 267 |
0, |
| 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 |
|
| 296 |
var _ context.Context |
| 297 |
var _ grpc.ClientConnInterface |
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
const _ = grpc.SupportPackageIsVersion6 |
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
type KeyDashboardServiceClient interface { |
| 307 |
|
| 308 |
|
| 309 |
|
| 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 |
|
| 331 |
type KeyDashboardServiceServer interface { |
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
ListCryptoKeys(context.Context, *ListCryptoKeysRequest) (*ListCryptoKeysResponse, error) |
| 336 |
} |
| 337 |
|
| 338 |
|
| 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 |
} |