github.com/s7techlab/cckit@v0.10.5/extensions/debug/debug_state.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc (unknown) 5 // source: debug/debug_state.proto 6 7 package debug 8 9 import ( 10 context "context" 11 _ "google.golang.org/genproto/googleapis/api/annotations" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 16 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 17 reflect "reflect" 18 sync "sync" 19 ) 20 21 const ( 22 // Verify that this generated code is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 24 // Verify that runtime/protoimpl is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 26 ) 27 28 // State key prefix 29 type Prefix struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 // parts of key 35 Key []string `protobuf:"bytes,1,rep,name=key,proto3" json:"key,omitempty"` 36 } 37 38 func (x *Prefix) Reset() { 39 *x = Prefix{} 40 if protoimpl.UnsafeEnabled { 41 mi := &file_debug_debug_state_proto_msgTypes[0] 42 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 43 ms.StoreMessageInfo(mi) 44 } 45 } 46 47 func (x *Prefix) String() string { 48 return protoimpl.X.MessageStringOf(x) 49 } 50 51 func (*Prefix) ProtoMessage() {} 52 53 func (x *Prefix) ProtoReflect() protoreflect.Message { 54 mi := &file_debug_debug_state_proto_msgTypes[0] 55 if protoimpl.UnsafeEnabled && x != nil { 56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 57 if ms.LoadMessageInfo() == nil { 58 ms.StoreMessageInfo(mi) 59 } 60 return ms 61 } 62 return mi.MessageOf(x) 63 } 64 65 // Deprecated: Use Prefix.ProtoReflect.Descriptor instead. 66 func (*Prefix) Descriptor() ([]byte, []int) { 67 return file_debug_debug_state_proto_rawDescGZIP(), []int{0} 68 } 69 70 func (x *Prefix) GetKey() []string { 71 if x != nil { 72 return x.Key 73 } 74 return nil 75 } 76 77 type Prefixes struct { 78 state protoimpl.MessageState 79 sizeCache protoimpl.SizeCache 80 unknownFields protoimpl.UnknownFields 81 82 Prefixes []*Prefix `protobuf:"bytes,1,rep,name=prefixes,proto3" json:"prefixes,omitempty"` 83 } 84 85 func (x *Prefixes) Reset() { 86 *x = Prefixes{} 87 if protoimpl.UnsafeEnabled { 88 mi := &file_debug_debug_state_proto_msgTypes[1] 89 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 90 ms.StoreMessageInfo(mi) 91 } 92 } 93 94 func (x *Prefixes) String() string { 95 return protoimpl.X.MessageStringOf(x) 96 } 97 98 func (*Prefixes) ProtoMessage() {} 99 100 func (x *Prefixes) ProtoReflect() protoreflect.Message { 101 mi := &file_debug_debug_state_proto_msgTypes[1] 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 Prefixes.ProtoReflect.Descriptor instead. 113 func (*Prefixes) Descriptor() ([]byte, []int) { 114 return file_debug_debug_state_proto_rawDescGZIP(), []int{1} 115 } 116 117 func (x *Prefixes) GetPrefixes() []*Prefix { 118 if x != nil { 119 return x.Prefixes 120 } 121 return nil 122 } 123 124 // State key prefix match count 125 type PrefixesMatchCount struct { 126 state protoimpl.MessageState 127 sizeCache protoimpl.SizeCache 128 unknownFields protoimpl.UnknownFields 129 130 Matches map[string]uint32 `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` 131 } 132 133 func (x *PrefixesMatchCount) Reset() { 134 *x = PrefixesMatchCount{} 135 if protoimpl.UnsafeEnabled { 136 mi := &file_debug_debug_state_proto_msgTypes[2] 137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 138 ms.StoreMessageInfo(mi) 139 } 140 } 141 142 func (x *PrefixesMatchCount) String() string { 143 return protoimpl.X.MessageStringOf(x) 144 } 145 146 func (*PrefixesMatchCount) ProtoMessage() {} 147 148 func (x *PrefixesMatchCount) ProtoReflect() protoreflect.Message { 149 mi := &file_debug_debug_state_proto_msgTypes[2] 150 if protoimpl.UnsafeEnabled && x != nil { 151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 152 if ms.LoadMessageInfo() == nil { 153 ms.StoreMessageInfo(mi) 154 } 155 return ms 156 } 157 return mi.MessageOf(x) 158 } 159 160 // Deprecated: Use PrefixesMatchCount.ProtoReflect.Descriptor instead. 161 func (*PrefixesMatchCount) Descriptor() ([]byte, []int) { 162 return file_debug_debug_state_proto_rawDescGZIP(), []int{2} 163 } 164 165 func (x *PrefixesMatchCount) GetMatches() map[string]uint32 { 166 if x != nil { 167 return x.Matches 168 } 169 return nil 170 } 171 172 // State keys 173 type CompositeKeys struct { 174 state protoimpl.MessageState 175 sizeCache protoimpl.SizeCache 176 unknownFields protoimpl.UnknownFields 177 178 Keys []*CompositeKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` 179 } 180 181 func (x *CompositeKeys) Reset() { 182 *x = CompositeKeys{} 183 if protoimpl.UnsafeEnabled { 184 mi := &file_debug_debug_state_proto_msgTypes[3] 185 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 186 ms.StoreMessageInfo(mi) 187 } 188 } 189 190 func (x *CompositeKeys) String() string { 191 return protoimpl.X.MessageStringOf(x) 192 } 193 194 func (*CompositeKeys) ProtoMessage() {} 195 196 func (x *CompositeKeys) ProtoReflect() protoreflect.Message { 197 mi := &file_debug_debug_state_proto_msgTypes[3] 198 if protoimpl.UnsafeEnabled && x != nil { 199 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 200 if ms.LoadMessageInfo() == nil { 201 ms.StoreMessageInfo(mi) 202 } 203 return ms 204 } 205 return mi.MessageOf(x) 206 } 207 208 // Deprecated: Use CompositeKeys.ProtoReflect.Descriptor instead. 209 func (*CompositeKeys) Descriptor() ([]byte, []int) { 210 return file_debug_debug_state_proto_rawDescGZIP(), []int{3} 211 } 212 213 func (x *CompositeKeys) GetKeys() []*CompositeKey { 214 if x != nil { 215 return x.Keys 216 } 217 return nil 218 } 219 220 // State key 221 type CompositeKey struct { 222 state protoimpl.MessageState 223 sizeCache protoimpl.SizeCache 224 unknownFields protoimpl.UnknownFields 225 226 Key []string `protobuf:"bytes,1,rep,name=key,proto3" json:"key,omitempty"` 227 } 228 229 func (x *CompositeKey) Reset() { 230 *x = CompositeKey{} 231 if protoimpl.UnsafeEnabled { 232 mi := &file_debug_debug_state_proto_msgTypes[4] 233 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 234 ms.StoreMessageInfo(mi) 235 } 236 } 237 238 func (x *CompositeKey) String() string { 239 return protoimpl.X.MessageStringOf(x) 240 } 241 242 func (*CompositeKey) ProtoMessage() {} 243 244 func (x *CompositeKey) ProtoReflect() protoreflect.Message { 245 mi := &file_debug_debug_state_proto_msgTypes[4] 246 if protoimpl.UnsafeEnabled && x != nil { 247 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 248 if ms.LoadMessageInfo() == nil { 249 ms.StoreMessageInfo(mi) 250 } 251 return ms 252 } 253 return mi.MessageOf(x) 254 } 255 256 // Deprecated: Use CompositeKey.ProtoReflect.Descriptor instead. 257 func (*CompositeKey) Descriptor() ([]byte, []int) { 258 return file_debug_debug_state_proto_rawDescGZIP(), []int{4} 259 } 260 261 func (x *CompositeKey) GetKey() []string { 262 if x != nil { 263 return x.Key 264 } 265 return nil 266 } 267 268 // State value 269 type Value struct { 270 state protoimpl.MessageState 271 sizeCache protoimpl.SizeCache 272 unknownFields protoimpl.UnknownFields 273 274 Key []string `protobuf:"bytes,1,rep,name=key,proto3" json:"key,omitempty"` 275 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 276 Json string `protobuf:"bytes,3,opt,name=json,proto3" json:"json,omitempty"` 277 } 278 279 func (x *Value) Reset() { 280 *x = Value{} 281 if protoimpl.UnsafeEnabled { 282 mi := &file_debug_debug_state_proto_msgTypes[5] 283 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 284 ms.StoreMessageInfo(mi) 285 } 286 } 287 288 func (x *Value) String() string { 289 return protoimpl.X.MessageStringOf(x) 290 } 291 292 func (*Value) ProtoMessage() {} 293 294 func (x *Value) ProtoReflect() protoreflect.Message { 295 mi := &file_debug_debug_state_proto_msgTypes[5] 296 if protoimpl.UnsafeEnabled && x != nil { 297 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 298 if ms.LoadMessageInfo() == nil { 299 ms.StoreMessageInfo(mi) 300 } 301 return ms 302 } 303 return mi.MessageOf(x) 304 } 305 306 // Deprecated: Use Value.ProtoReflect.Descriptor instead. 307 func (*Value) Descriptor() ([]byte, []int) { 308 return file_debug_debug_state_proto_rawDescGZIP(), []int{5} 309 } 310 311 func (x *Value) GetKey() []string { 312 if x != nil { 313 return x.Key 314 } 315 return nil 316 } 317 318 func (x *Value) GetValue() []byte { 319 if x != nil { 320 return x.Value 321 } 322 return nil 323 } 324 325 func (x *Value) GetJson() string { 326 if x != nil { 327 return x.Json 328 } 329 return "" 330 } 331 332 var File_debug_debug_state_proto protoreflect.FileDescriptor 333 334 var file_debug_debug_state_proto_rawDesc = []byte{ 335 0x0a, 0x17, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, 0x73, 0x74, 336 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x65, 0x78, 0x74, 0x65, 0x6e, 337 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 338 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 339 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1a, 0x0a, 0x06, 0x50, 0x72, 0x65, 340 0x66, 0x69, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 341 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x40, 0x0a, 0x08, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x65, 342 0x73, 0x12, 0x34, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x65, 0x73, 0x18, 0x01, 0x20, 343 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 344 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x52, 0x08, 0x70, 345 0x72, 0x65, 0x66, 0x69, 0x78, 0x65, 0x73, 0x22, 0x9d, 0x01, 0x0a, 0x12, 0x50, 0x72, 0x65, 0x66, 346 0x69, 0x78, 0x65, 0x73, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x4b, 347 0x0a, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 348 0x31, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x62, 349 0x75, 0x67, 0x2e, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x65, 0x73, 0x4d, 0x61, 0x74, 0x63, 0x68, 350 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x45, 0x6e, 0x74, 351 0x72, 0x79, 0x52, 0x07, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4d, 352 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 353 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 354 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 355 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x43, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 356 0x73, 0x69, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x32, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 357 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 358 0x6f, 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 359 0x69, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x22, 0x20, 0x0a, 0x0c, 360 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x10, 0x0a, 0x03, 361 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x43, 362 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 363 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 364 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 365 0x12, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6a, 366 0x73, 0x6f, 0x6e, 0x32, 0x88, 0x04, 0x0a, 0x11, 0x44, 0x65, 0x62, 0x75, 0x67, 0x53, 0x74, 0x61, 367 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x66, 0x0a, 0x08, 0x4c, 0x69, 0x73, 368 0x74, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x18, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 369 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x1a, 370 0x1f, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x62, 371 0x75, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 372 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 373 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x2f, 0x7b, 0x6b, 0x65, 0x79, 374 0x7d, 0x12, 0x5f, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x2e, 375 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 376 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x1a, 0x17, 0x2e, 377 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 378 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 379 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2f, 0x7b, 0x6b, 0x65, 380 0x79, 0x7d, 0x12, 0x55, 0x0a, 0x08, 0x50, 0x75, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x17, 381 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x62, 0x75, 382 0x67, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x17, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 383 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 384 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x1a, 0x0c, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 385 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x62, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 386 0x65, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 387 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 388 0x6f, 0x73, 0x69, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x1a, 0x17, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 389 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x56, 0x61, 0x6c, 0x75, 390 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x2a, 0x12, 0x2f, 0x64, 0x65, 0x62, 0x75, 391 0x67, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2f, 0x7b, 0x6b, 0x65, 0x79, 0x7d, 0x12, 0x6f, 0x0a, 392 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x2e, 393 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 394 0x2e, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x65, 0x73, 0x1a, 0x24, 0x2e, 0x65, 0x78, 0x74, 0x65, 395 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x50, 0x72, 0x65, 396 0x66, 0x69, 0x78, 0x65, 0x73, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 397 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x12, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2f, 398 0x73, 0x74, 0x61, 0x74, 0x65, 0x2f, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x3a, 0x01, 0x2a, 0x42, 0x2d, 399 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x37, 0x74, 400 0x65, 0x63, 0x68, 0x6c, 0x61, 0x62, 0x2f, 0x63, 0x63, 0x6b, 0x69, 0x74, 0x2f, 0x65, 0x78, 0x74, 401 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x62, 0x06, 0x70, 402 0x72, 0x6f, 0x74, 0x6f, 0x33, 403 } 404 405 var ( 406 file_debug_debug_state_proto_rawDescOnce sync.Once 407 file_debug_debug_state_proto_rawDescData = file_debug_debug_state_proto_rawDesc 408 ) 409 410 func file_debug_debug_state_proto_rawDescGZIP() []byte { 411 file_debug_debug_state_proto_rawDescOnce.Do(func() { 412 file_debug_debug_state_proto_rawDescData = protoimpl.X.CompressGZIP(file_debug_debug_state_proto_rawDescData) 413 }) 414 return file_debug_debug_state_proto_rawDescData 415 } 416 417 var file_debug_debug_state_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 418 var file_debug_debug_state_proto_goTypes = []interface{}{ 419 (*Prefix)(nil), // 0: extensions.debug.Prefix 420 (*Prefixes)(nil), // 1: extensions.debug.Prefixes 421 (*PrefixesMatchCount)(nil), // 2: extensions.debug.PrefixesMatchCount 422 (*CompositeKeys)(nil), // 3: extensions.debug.CompositeKeys 423 (*CompositeKey)(nil), // 4: extensions.debug.CompositeKey 424 (*Value)(nil), // 5: extensions.debug.Value 425 nil, // 6: extensions.debug.PrefixesMatchCount.MatchesEntry 426 } 427 var file_debug_debug_state_proto_depIdxs = []int32{ 428 0, // 0: extensions.debug.Prefixes.prefixes:type_name -> extensions.debug.Prefix 429 6, // 1: extensions.debug.PrefixesMatchCount.matches:type_name -> extensions.debug.PrefixesMatchCount.MatchesEntry 430 4, // 2: extensions.debug.CompositeKeys.keys:type_name -> extensions.debug.CompositeKey 431 0, // 3: extensions.debug.DebugStateService.ListKeys:input_type -> extensions.debug.Prefix 432 4, // 4: extensions.debug.DebugStateService.GetState:input_type -> extensions.debug.CompositeKey 433 5, // 5: extensions.debug.DebugStateService.PutState:input_type -> extensions.debug.Value 434 4, // 6: extensions.debug.DebugStateService.DeleteState:input_type -> extensions.debug.CompositeKey 435 1, // 7: extensions.debug.DebugStateService.DeleteStates:input_type -> extensions.debug.Prefixes 436 3, // 8: extensions.debug.DebugStateService.ListKeys:output_type -> extensions.debug.CompositeKeys 437 5, // 9: extensions.debug.DebugStateService.GetState:output_type -> extensions.debug.Value 438 5, // 10: extensions.debug.DebugStateService.PutState:output_type -> extensions.debug.Value 439 5, // 11: extensions.debug.DebugStateService.DeleteState:output_type -> extensions.debug.Value 440 2, // 12: extensions.debug.DebugStateService.DeleteStates:output_type -> extensions.debug.PrefixesMatchCount 441 8, // [8:13] is the sub-list for method output_type 442 3, // [3:8] is the sub-list for method input_type 443 3, // [3:3] is the sub-list for extension type_name 444 3, // [3:3] is the sub-list for extension extendee 445 0, // [0:3] is the sub-list for field type_name 446 } 447 448 func init() { file_debug_debug_state_proto_init() } 449 func file_debug_debug_state_proto_init() { 450 if File_debug_debug_state_proto != nil { 451 return 452 } 453 if !protoimpl.UnsafeEnabled { 454 file_debug_debug_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 455 switch v := v.(*Prefix); i { 456 case 0: 457 return &v.state 458 case 1: 459 return &v.sizeCache 460 case 2: 461 return &v.unknownFields 462 default: 463 return nil 464 } 465 } 466 file_debug_debug_state_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 467 switch v := v.(*Prefixes); i { 468 case 0: 469 return &v.state 470 case 1: 471 return &v.sizeCache 472 case 2: 473 return &v.unknownFields 474 default: 475 return nil 476 } 477 } 478 file_debug_debug_state_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 479 switch v := v.(*PrefixesMatchCount); i { 480 case 0: 481 return &v.state 482 case 1: 483 return &v.sizeCache 484 case 2: 485 return &v.unknownFields 486 default: 487 return nil 488 } 489 } 490 file_debug_debug_state_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 491 switch v := v.(*CompositeKeys); i { 492 case 0: 493 return &v.state 494 case 1: 495 return &v.sizeCache 496 case 2: 497 return &v.unknownFields 498 default: 499 return nil 500 } 501 } 502 file_debug_debug_state_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 503 switch v := v.(*CompositeKey); i { 504 case 0: 505 return &v.state 506 case 1: 507 return &v.sizeCache 508 case 2: 509 return &v.unknownFields 510 default: 511 return nil 512 } 513 } 514 file_debug_debug_state_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 515 switch v := v.(*Value); i { 516 case 0: 517 return &v.state 518 case 1: 519 return &v.sizeCache 520 case 2: 521 return &v.unknownFields 522 default: 523 return nil 524 } 525 } 526 } 527 type x struct{} 528 out := protoimpl.TypeBuilder{ 529 File: protoimpl.DescBuilder{ 530 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 531 RawDescriptor: file_debug_debug_state_proto_rawDesc, 532 NumEnums: 0, 533 NumMessages: 7, 534 NumExtensions: 0, 535 NumServices: 1, 536 }, 537 GoTypes: file_debug_debug_state_proto_goTypes, 538 DependencyIndexes: file_debug_debug_state_proto_depIdxs, 539 MessageInfos: file_debug_debug_state_proto_msgTypes, 540 }.Build() 541 File_debug_debug_state_proto = out.File 542 file_debug_debug_state_proto_rawDesc = nil 543 file_debug_debug_state_proto_goTypes = nil 544 file_debug_debug_state_proto_depIdxs = nil 545 } 546 547 // Reference imports to suppress errors if they are not otherwise used. 548 var _ context.Context 549 var _ grpc.ClientConnInterface 550 551 // This is a compile-time assertion to ensure that this generated file 552 // is compatible with the grpc package it is being compiled against. 553 const _ = grpc.SupportPackageIsVersion6 554 555 // DebugStateServiceClient is the client API for DebugStateService service. 556 // 557 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 558 type DebugStateServiceClient interface { 559 // Get keys list, returns all keys or, if prefixes are defined, only prefix matched 560 ListKeys(ctx context.Context, in *Prefix, opts ...grpc.CallOption) (*CompositeKeys, error) 561 // Get state value by key 562 GetState(ctx context.Context, in *CompositeKey, opts ...grpc.CallOption) (*Value, error) 563 // Put state value 564 PutState(ctx context.Context, in *Value, opts ...grpc.CallOption) (*Value, error) 565 // Delete state value 566 DeleteState(ctx context.Context, in *CompositeKey, opts ...grpc.CallOption) (*Value, error) 567 // Delete all states or, if prefixes are defined, only prefix matched 568 DeleteStates(ctx context.Context, in *Prefixes, opts ...grpc.CallOption) (*PrefixesMatchCount, error) 569 } 570 571 type debugStateServiceClient struct { 572 cc grpc.ClientConnInterface 573 } 574 575 func NewDebugStateServiceClient(cc grpc.ClientConnInterface) DebugStateServiceClient { 576 return &debugStateServiceClient{cc} 577 } 578 579 func (c *debugStateServiceClient) ListKeys(ctx context.Context, in *Prefix, opts ...grpc.CallOption) (*CompositeKeys, error) { 580 out := new(CompositeKeys) 581 err := c.cc.Invoke(ctx, "/extensions.debug.DebugStateService/ListKeys", in, out, opts...) 582 if err != nil { 583 return nil, err 584 } 585 return out, nil 586 } 587 588 func (c *debugStateServiceClient) GetState(ctx context.Context, in *CompositeKey, opts ...grpc.CallOption) (*Value, error) { 589 out := new(Value) 590 err := c.cc.Invoke(ctx, "/extensions.debug.DebugStateService/GetState", in, out, opts...) 591 if err != nil { 592 return nil, err 593 } 594 return out, nil 595 } 596 597 func (c *debugStateServiceClient) PutState(ctx context.Context, in *Value, opts ...grpc.CallOption) (*Value, error) { 598 out := new(Value) 599 err := c.cc.Invoke(ctx, "/extensions.debug.DebugStateService/PutState", in, out, opts...) 600 if err != nil { 601 return nil, err 602 } 603 return out, nil 604 } 605 606 func (c *debugStateServiceClient) DeleteState(ctx context.Context, in *CompositeKey, opts ...grpc.CallOption) (*Value, error) { 607 out := new(Value) 608 err := c.cc.Invoke(ctx, "/extensions.debug.DebugStateService/DeleteState", in, out, opts...) 609 if err != nil { 610 return nil, err 611 } 612 return out, nil 613 } 614 615 func (c *debugStateServiceClient) DeleteStates(ctx context.Context, in *Prefixes, opts ...grpc.CallOption) (*PrefixesMatchCount, error) { 616 out := new(PrefixesMatchCount) 617 err := c.cc.Invoke(ctx, "/extensions.debug.DebugStateService/DeleteStates", in, out, opts...) 618 if err != nil { 619 return nil, err 620 } 621 return out, nil 622 } 623 624 // DebugStateServiceServer is the server API for DebugStateService service. 625 type DebugStateServiceServer interface { 626 // Get keys list, returns all keys or, if prefixes are defined, only prefix matched 627 ListKeys(context.Context, *Prefix) (*CompositeKeys, error) 628 // Get state value by key 629 GetState(context.Context, *CompositeKey) (*Value, error) 630 // Put state value 631 PutState(context.Context, *Value) (*Value, error) 632 // Delete state value 633 DeleteState(context.Context, *CompositeKey) (*Value, error) 634 // Delete all states or, if prefixes are defined, only prefix matched 635 DeleteStates(context.Context, *Prefixes) (*PrefixesMatchCount, error) 636 } 637 638 // UnimplementedDebugStateServiceServer can be embedded to have forward compatible implementations. 639 type UnimplementedDebugStateServiceServer struct { 640 } 641 642 func (*UnimplementedDebugStateServiceServer) ListKeys(context.Context, *Prefix) (*CompositeKeys, error) { 643 return nil, status.Errorf(codes.Unimplemented, "method ListKeys not implemented") 644 } 645 func (*UnimplementedDebugStateServiceServer) GetState(context.Context, *CompositeKey) (*Value, error) { 646 return nil, status.Errorf(codes.Unimplemented, "method GetState not implemented") 647 } 648 func (*UnimplementedDebugStateServiceServer) PutState(context.Context, *Value) (*Value, error) { 649 return nil, status.Errorf(codes.Unimplemented, "method PutState not implemented") 650 } 651 func (*UnimplementedDebugStateServiceServer) DeleteState(context.Context, *CompositeKey) (*Value, error) { 652 return nil, status.Errorf(codes.Unimplemented, "method DeleteState not implemented") 653 } 654 func (*UnimplementedDebugStateServiceServer) DeleteStates(context.Context, *Prefixes) (*PrefixesMatchCount, error) { 655 return nil, status.Errorf(codes.Unimplemented, "method DeleteStates not implemented") 656 } 657 658 func RegisterDebugStateServiceServer(s *grpc.Server, srv DebugStateServiceServer) { 659 s.RegisterService(&_DebugStateService_serviceDesc, srv) 660 } 661 662 func _DebugStateService_ListKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 663 in := new(Prefix) 664 if err := dec(in); err != nil { 665 return nil, err 666 } 667 if interceptor == nil { 668 return srv.(DebugStateServiceServer).ListKeys(ctx, in) 669 } 670 info := &grpc.UnaryServerInfo{ 671 Server: srv, 672 FullMethod: "/extensions.debug.DebugStateService/ListKeys", 673 } 674 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 675 return srv.(DebugStateServiceServer).ListKeys(ctx, req.(*Prefix)) 676 } 677 return interceptor(ctx, in, info, handler) 678 } 679 680 func _DebugStateService_GetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 681 in := new(CompositeKey) 682 if err := dec(in); err != nil { 683 return nil, err 684 } 685 if interceptor == nil { 686 return srv.(DebugStateServiceServer).GetState(ctx, in) 687 } 688 info := &grpc.UnaryServerInfo{ 689 Server: srv, 690 FullMethod: "/extensions.debug.DebugStateService/GetState", 691 } 692 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 693 return srv.(DebugStateServiceServer).GetState(ctx, req.(*CompositeKey)) 694 } 695 return interceptor(ctx, in, info, handler) 696 } 697 698 func _DebugStateService_PutState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 699 in := new(Value) 700 if err := dec(in); err != nil { 701 return nil, err 702 } 703 if interceptor == nil { 704 return srv.(DebugStateServiceServer).PutState(ctx, in) 705 } 706 info := &grpc.UnaryServerInfo{ 707 Server: srv, 708 FullMethod: "/extensions.debug.DebugStateService/PutState", 709 } 710 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 711 return srv.(DebugStateServiceServer).PutState(ctx, req.(*Value)) 712 } 713 return interceptor(ctx, in, info, handler) 714 } 715 716 func _DebugStateService_DeleteState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 717 in := new(CompositeKey) 718 if err := dec(in); err != nil { 719 return nil, err 720 } 721 if interceptor == nil { 722 return srv.(DebugStateServiceServer).DeleteState(ctx, in) 723 } 724 info := &grpc.UnaryServerInfo{ 725 Server: srv, 726 FullMethod: "/extensions.debug.DebugStateService/DeleteState", 727 } 728 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 729 return srv.(DebugStateServiceServer).DeleteState(ctx, req.(*CompositeKey)) 730 } 731 return interceptor(ctx, in, info, handler) 732 } 733 734 func _DebugStateService_DeleteStates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 735 in := new(Prefixes) 736 if err := dec(in); err != nil { 737 return nil, err 738 } 739 if interceptor == nil { 740 return srv.(DebugStateServiceServer).DeleteStates(ctx, in) 741 } 742 info := &grpc.UnaryServerInfo{ 743 Server: srv, 744 FullMethod: "/extensions.debug.DebugStateService/DeleteStates", 745 } 746 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 747 return srv.(DebugStateServiceServer).DeleteStates(ctx, req.(*Prefixes)) 748 } 749 return interceptor(ctx, in, info, handler) 750 } 751 752 var _DebugStateService_serviceDesc = grpc.ServiceDesc{ 753 ServiceName: "extensions.debug.DebugStateService", 754 HandlerType: (*DebugStateServiceServer)(nil), 755 Methods: []grpc.MethodDesc{ 756 { 757 MethodName: "ListKeys", 758 Handler: _DebugStateService_ListKeys_Handler, 759 }, 760 { 761 MethodName: "GetState", 762 Handler: _DebugStateService_GetState_Handler, 763 }, 764 { 765 MethodName: "PutState", 766 Handler: _DebugStateService_PutState_Handler, 767 }, 768 { 769 MethodName: "DeleteState", 770 Handler: _DebugStateService_DeleteState_Handler, 771 }, 772 { 773 MethodName: "DeleteStates", 774 Handler: _DebugStateService_DeleteStates_Handler, 775 }, 776 }, 777 Streams: []grpc.StreamDesc{}, 778 Metadata: "debug/debug_state.proto", 779 }