github.com/asynkron/protoactor-go@v0.0.0-20240308120642-ef91a6abee75/cluster/gossip.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v4.24.3 5 // source: gossip.proto 6 7 package cluster 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 anypb "google.golang.org/protobuf/types/known/anypb" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 type GossipRequest struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 MemberId string `protobuf:"bytes,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` 30 State *GossipState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` 31 } 32 33 func (x *GossipRequest) Reset() { 34 *x = GossipRequest{} 35 if protoimpl.UnsafeEnabled { 36 mi := &file_gossip_proto_msgTypes[0] 37 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 38 ms.StoreMessageInfo(mi) 39 } 40 } 41 42 func (x *GossipRequest) String() string { 43 return protoimpl.X.MessageStringOf(x) 44 } 45 46 func (*GossipRequest) ProtoMessage() {} 47 48 func (x *GossipRequest) ProtoReflect() protoreflect.Message { 49 mi := &file_gossip_proto_msgTypes[0] 50 if protoimpl.UnsafeEnabled && x != nil { 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 if ms.LoadMessageInfo() == nil { 53 ms.StoreMessageInfo(mi) 54 } 55 return ms 56 } 57 return mi.MessageOf(x) 58 } 59 60 // Deprecated: Use GossipRequest.ProtoReflect.Descriptor instead. 61 func (*GossipRequest) Descriptor() ([]byte, []int) { 62 return file_gossip_proto_rawDescGZIP(), []int{0} 63 } 64 65 func (x *GossipRequest) GetMemberId() string { 66 if x != nil { 67 return x.MemberId 68 } 69 return "" 70 } 71 72 func (x *GossipRequest) GetState() *GossipState { 73 if x != nil { 74 return x.State 75 } 76 return nil 77 } 78 79 // Ack a gossip request 80 type GossipResponse struct { 81 state protoimpl.MessageState 82 sizeCache protoimpl.SizeCache 83 unknownFields protoimpl.UnknownFields 84 85 State *GossipState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` 86 } 87 88 func (x *GossipResponse) Reset() { 89 *x = GossipResponse{} 90 if protoimpl.UnsafeEnabled { 91 mi := &file_gossip_proto_msgTypes[1] 92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 93 ms.StoreMessageInfo(mi) 94 } 95 } 96 97 func (x *GossipResponse) String() string { 98 return protoimpl.X.MessageStringOf(x) 99 } 100 101 func (*GossipResponse) ProtoMessage() {} 102 103 func (x *GossipResponse) ProtoReflect() protoreflect.Message { 104 mi := &file_gossip_proto_msgTypes[1] 105 if protoimpl.UnsafeEnabled && x != nil { 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 if ms.LoadMessageInfo() == nil { 108 ms.StoreMessageInfo(mi) 109 } 110 return ms 111 } 112 return mi.MessageOf(x) 113 } 114 115 // Deprecated: Use GossipResponse.ProtoReflect.Descriptor instead. 116 func (*GossipResponse) Descriptor() ([]byte, []int) { 117 return file_gossip_proto_rawDescGZIP(), []int{1} 118 } 119 120 func (x *GossipResponse) GetState() *GossipState { 121 if x != nil { 122 return x.State 123 } 124 return nil 125 } 126 127 // two GossipState objects can be merged 128 // key + member_id gets it's own entry, if collision, highest version is selected 129 type GossipState struct { 130 state protoimpl.MessageState 131 sizeCache protoimpl.SizeCache 132 unknownFields protoimpl.UnknownFields 133 134 Members map[string]*GossipState_GossipMemberState `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 135 } 136 137 func (x *GossipState) Reset() { 138 *x = GossipState{} 139 if protoimpl.UnsafeEnabled { 140 mi := &file_gossip_proto_msgTypes[2] 141 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 142 ms.StoreMessageInfo(mi) 143 } 144 } 145 146 func (x *GossipState) String() string { 147 return protoimpl.X.MessageStringOf(x) 148 } 149 150 func (*GossipState) ProtoMessage() {} 151 152 func (x *GossipState) ProtoReflect() protoreflect.Message { 153 mi := &file_gossip_proto_msgTypes[2] 154 if protoimpl.UnsafeEnabled && x != nil { 155 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 156 if ms.LoadMessageInfo() == nil { 157 ms.StoreMessageInfo(mi) 158 } 159 return ms 160 } 161 return mi.MessageOf(x) 162 } 163 164 // Deprecated: Use GossipState.ProtoReflect.Descriptor instead. 165 func (*GossipState) Descriptor() ([]byte, []int) { 166 return file_gossip_proto_rawDescGZIP(), []int{2} 167 } 168 169 func (x *GossipState) GetMembers() map[string]*GossipState_GossipMemberState { 170 if x != nil { 171 return x.Members 172 } 173 return nil 174 } 175 176 // a known key might be heartbeat. if we locally tag each entry with a local timestamp 177 // this means that we can measure if we have not received a new heartbeat from one member in some time 178 // even if we don't know the exact time the heartbeat was issued, due to clock differences. 179 // we still know when _we_ as in this node, got this data. 180 // and we can measure time from then til now. 181 // 182 // if we got a hear-beat from another node, and X seconds pass, we can assume it to be dead 183 type GossipKeyValue struct { 184 state protoimpl.MessageState 185 sizeCache protoimpl.SizeCache 186 unknownFields protoimpl.UnknownFields 187 188 SequenceNumber int64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` //version is local to the owner member 189 Value *anypb.Any `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` //value is any format 190 LocalTimestampUnixMilliseconds int64 `protobuf:"varint,5,opt,name=local_timestamp_unix_milliseconds,json=localTimestampUnixMilliseconds,proto3" json:"local_timestamp_unix_milliseconds,omitempty"` 191 } 192 193 func (x *GossipKeyValue) Reset() { 194 *x = GossipKeyValue{} 195 if protoimpl.UnsafeEnabled { 196 mi := &file_gossip_proto_msgTypes[3] 197 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 198 ms.StoreMessageInfo(mi) 199 } 200 } 201 202 func (x *GossipKeyValue) String() string { 203 return protoimpl.X.MessageStringOf(x) 204 } 205 206 func (*GossipKeyValue) ProtoMessage() {} 207 208 func (x *GossipKeyValue) ProtoReflect() protoreflect.Message { 209 mi := &file_gossip_proto_msgTypes[3] 210 if protoimpl.UnsafeEnabled && x != nil { 211 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 212 if ms.LoadMessageInfo() == nil { 213 ms.StoreMessageInfo(mi) 214 } 215 return ms 216 } 217 return mi.MessageOf(x) 218 } 219 220 // Deprecated: Use GossipKeyValue.ProtoReflect.Descriptor instead. 221 func (*GossipKeyValue) Descriptor() ([]byte, []int) { 222 return file_gossip_proto_rawDescGZIP(), []int{3} 223 } 224 225 func (x *GossipKeyValue) GetSequenceNumber() int64 { 226 if x != nil { 227 return x.SequenceNumber 228 } 229 return 0 230 } 231 232 func (x *GossipKeyValue) GetValue() *anypb.Any { 233 if x != nil { 234 return x.Value 235 } 236 return nil 237 } 238 239 func (x *GossipKeyValue) GetLocalTimestampUnixMilliseconds() int64 { 240 if x != nil { 241 return x.LocalTimestampUnixMilliseconds 242 } 243 return 0 244 } 245 246 // represents a value that can be sent in form of a delta change 247 // instead of a full value replace 248 type GossipDeltaValue struct { 249 state protoimpl.MessageState 250 sizeCache protoimpl.SizeCache 251 unknownFields protoimpl.UnknownFields 252 253 Entries []*GossipDeltaValue_GossipDeltaEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` 254 } 255 256 func (x *GossipDeltaValue) Reset() { 257 *x = GossipDeltaValue{} 258 if protoimpl.UnsafeEnabled { 259 mi := &file_gossip_proto_msgTypes[4] 260 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 261 ms.StoreMessageInfo(mi) 262 } 263 } 264 265 func (x *GossipDeltaValue) String() string { 266 return protoimpl.X.MessageStringOf(x) 267 } 268 269 func (*GossipDeltaValue) ProtoMessage() {} 270 271 func (x *GossipDeltaValue) ProtoReflect() protoreflect.Message { 272 mi := &file_gossip_proto_msgTypes[4] 273 if protoimpl.UnsafeEnabled && x != nil { 274 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 275 if ms.LoadMessageInfo() == nil { 276 ms.StoreMessageInfo(mi) 277 } 278 return ms 279 } 280 return mi.MessageOf(x) 281 } 282 283 // Deprecated: Use GossipDeltaValue.ProtoReflect.Descriptor instead. 284 func (*GossipDeltaValue) Descriptor() ([]byte, []int) { 285 return file_gossip_proto_rawDescGZIP(), []int{4} 286 } 287 288 func (x *GossipDeltaValue) GetEntries() []*GossipDeltaValue_GossipDeltaEntry { 289 if x != nil { 290 return x.Entries 291 } 292 return nil 293 } 294 295 type GossipState_GossipMemberState struct { 296 state protoimpl.MessageState 297 sizeCache protoimpl.SizeCache 298 unknownFields protoimpl.UnknownFields 299 300 Values map[string]*GossipKeyValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 301 } 302 303 func (x *GossipState_GossipMemberState) Reset() { 304 *x = GossipState_GossipMemberState{} 305 if protoimpl.UnsafeEnabled { 306 mi := &file_gossip_proto_msgTypes[5] 307 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 308 ms.StoreMessageInfo(mi) 309 } 310 } 311 312 func (x *GossipState_GossipMemberState) String() string { 313 return protoimpl.X.MessageStringOf(x) 314 } 315 316 func (*GossipState_GossipMemberState) ProtoMessage() {} 317 318 func (x *GossipState_GossipMemberState) ProtoReflect() protoreflect.Message { 319 mi := &file_gossip_proto_msgTypes[5] 320 if protoimpl.UnsafeEnabled && x != nil { 321 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 322 if ms.LoadMessageInfo() == nil { 323 ms.StoreMessageInfo(mi) 324 } 325 return ms 326 } 327 return mi.MessageOf(x) 328 } 329 330 // Deprecated: Use GossipState_GossipMemberState.ProtoReflect.Descriptor instead. 331 func (*GossipState_GossipMemberState) Descriptor() ([]byte, []int) { 332 return file_gossip_proto_rawDescGZIP(), []int{2, 0} 333 } 334 335 func (x *GossipState_GossipMemberState) GetValues() map[string]*GossipKeyValue { 336 if x != nil { 337 return x.Values 338 } 339 return nil 340 } 341 342 // these are the entries of a delta value 343 // this can be seen as an array with data, where each element in the array is tagged with a sequence number 344 type GossipDeltaValue_GossipDeltaEntry struct { 345 state protoimpl.MessageState 346 sizeCache protoimpl.SizeCache 347 unknownFields protoimpl.UnknownFields 348 349 SequenceNumber int64 `protobuf:"varint,1,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` 350 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 351 } 352 353 func (x *GossipDeltaValue_GossipDeltaEntry) Reset() { 354 *x = GossipDeltaValue_GossipDeltaEntry{} 355 if protoimpl.UnsafeEnabled { 356 mi := &file_gossip_proto_msgTypes[8] 357 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 358 ms.StoreMessageInfo(mi) 359 } 360 } 361 362 func (x *GossipDeltaValue_GossipDeltaEntry) String() string { 363 return protoimpl.X.MessageStringOf(x) 364 } 365 366 func (*GossipDeltaValue_GossipDeltaEntry) ProtoMessage() {} 367 368 func (x *GossipDeltaValue_GossipDeltaEntry) ProtoReflect() protoreflect.Message { 369 mi := &file_gossip_proto_msgTypes[8] 370 if protoimpl.UnsafeEnabled && x != nil { 371 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 372 if ms.LoadMessageInfo() == nil { 373 ms.StoreMessageInfo(mi) 374 } 375 return ms 376 } 377 return mi.MessageOf(x) 378 } 379 380 // Deprecated: Use GossipDeltaValue_GossipDeltaEntry.ProtoReflect.Descriptor instead. 381 func (*GossipDeltaValue_GossipDeltaEntry) Descriptor() ([]byte, []int) { 382 return file_gossip_proto_rawDescGZIP(), []int{4, 0} 383 } 384 385 func (x *GossipDeltaValue_GossipDeltaEntry) GetSequenceNumber() int64 { 386 if x != nil { 387 return x.SequenceNumber 388 } 389 return 0 390 } 391 392 func (x *GossipDeltaValue_GossipDeltaEntry) GetData() []byte { 393 if x != nil { 394 return x.Data 395 } 396 return nil 397 } 398 399 var File_gossip_proto protoreflect.FileDescriptor 400 401 var file_gossip_proto_rawDesc = []byte{ 402 0x0a, 0x0c, 0x67, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 403 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 404 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 405 0x74, 0x6f, 0x22, 0x58, 0x0a, 0x0d, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 406 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x69, 0x64, 407 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x64, 408 0x12, 0x2a, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 409 0x14, 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 410 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3c, 0x0a, 0x0e, 411 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 412 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 413 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x74, 414 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xe4, 0x02, 0x0a, 0x0b, 0x47, 415 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x07, 0x6d, 0x65, 416 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x6c, 417 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x74, 0x61, 0x74, 418 0x65, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 419 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x1a, 0xb3, 0x01, 0x0a, 0x11, 0x47, 0x6f, 0x73, 0x73, 420 0x69, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x4a, 0x0a, 421 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 422 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 0x74, 423 0x61, 0x74, 0x65, 0x2e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 424 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 425 0x79, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x52, 0x0a, 0x0b, 0x56, 0x61, 0x6c, 426 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 427 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x05, 0x76, 0x61, 428 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x6c, 0x75, 0x73, 429 0x74, 0x65, 0x72, 0x2e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 430 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x62, 0x0a, 431 0x0c, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 432 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 433 0x3c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 434 0x2e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x53, 435 0x74, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 436 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 437 0x01, 0x22, 0xb0, 0x01, 0x0a, 0x0e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x4b, 0x65, 0x79, 0x56, 438 0x61, 0x6c, 0x75, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 439 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 440 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2a, 0x0a, 441 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 442 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 443 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x49, 0x0a, 0x21, 0x6c, 0x6f, 0x63, 444 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x75, 0x6e, 0x69, 445 0x78, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x05, 446 0x20, 0x01, 0x28, 0x03, 0x52, 0x1e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x73, 447 0x74, 0x61, 0x6d, 0x70, 0x55, 0x6e, 0x69, 0x78, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 448 0x6f, 0x6e, 0x64, 0x73, 0x22, 0xa9, 0x01, 0x0a, 0x10, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x44, 449 0x65, 0x6c, 0x74, 0x61, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x07, 0x65, 0x6e, 0x74, 450 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x6c, 0x75, 451 0x73, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x44, 0x65, 0x6c, 0x74, 0x61, 452 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x44, 0x65, 0x6c, 0x74, 453 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x1a, 454 0x4f, 0x0a, 0x10, 0x47, 0x6f, 0x73, 0x73, 0x69, 0x70, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x45, 0x6e, 455 0x74, 0x72, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x5f, 456 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x65, 457 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 458 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 459 0x42, 0x2c, 0x5a, 0x2a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 460 0x61, 0x73, 0x79, 0x6e, 0x6b, 0x72, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x61, 0x63, 461 0x74, 0x6f, 0x72, 0x2d, 0x67, 0x6f, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x62, 0x06, 462 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 463 } 464 465 var ( 466 file_gossip_proto_rawDescOnce sync.Once 467 file_gossip_proto_rawDescData = file_gossip_proto_rawDesc 468 ) 469 470 func file_gossip_proto_rawDescGZIP() []byte { 471 file_gossip_proto_rawDescOnce.Do(func() { 472 file_gossip_proto_rawDescData = protoimpl.X.CompressGZIP(file_gossip_proto_rawDescData) 473 }) 474 return file_gossip_proto_rawDescData 475 } 476 477 var file_gossip_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 478 var file_gossip_proto_goTypes = []interface{}{ 479 (*GossipRequest)(nil), // 0: cluster.GossipRequest 480 (*GossipResponse)(nil), // 1: cluster.GossipResponse 481 (*GossipState)(nil), // 2: cluster.GossipState 482 (*GossipKeyValue)(nil), // 3: cluster.GossipKeyValue 483 (*GossipDeltaValue)(nil), // 4: cluster.GossipDeltaValue 484 (*GossipState_GossipMemberState)(nil), // 5: cluster.GossipState.GossipMemberState 485 nil, // 6: cluster.GossipState.MembersEntry 486 nil, // 7: cluster.GossipState.GossipMemberState.ValuesEntry 487 (*GossipDeltaValue_GossipDeltaEntry)(nil), // 8: cluster.GossipDeltaValue.GossipDeltaEntry 488 (*anypb.Any)(nil), // 9: google.protobuf.Any 489 } 490 var file_gossip_proto_depIdxs = []int32{ 491 2, // 0: cluster.GossipRequest.state:type_name -> cluster.GossipState 492 2, // 1: cluster.GossipResponse.state:type_name -> cluster.GossipState 493 6, // 2: cluster.GossipState.members:type_name -> cluster.GossipState.MembersEntry 494 9, // 3: cluster.GossipKeyValue.value:type_name -> google.protobuf.Any 495 8, // 4: cluster.GossipDeltaValue.entries:type_name -> cluster.GossipDeltaValue.GossipDeltaEntry 496 7, // 5: cluster.GossipState.GossipMemberState.values:type_name -> cluster.GossipState.GossipMemberState.ValuesEntry 497 5, // 6: cluster.GossipState.MembersEntry.value:type_name -> cluster.GossipState.GossipMemberState 498 3, // 7: cluster.GossipState.GossipMemberState.ValuesEntry.value:type_name -> cluster.GossipKeyValue 499 8, // [8:8] is the sub-list for method output_type 500 8, // [8:8] is the sub-list for method input_type 501 8, // [8:8] is the sub-list for extension type_name 502 8, // [8:8] is the sub-list for extension extendee 503 0, // [0:8] is the sub-list for field type_name 504 } 505 506 func init() { file_gossip_proto_init() } 507 func file_gossip_proto_init() { 508 if File_gossip_proto != nil { 509 return 510 } 511 if !protoimpl.UnsafeEnabled { 512 file_gossip_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 513 switch v := v.(*GossipRequest); i { 514 case 0: 515 return &v.state 516 case 1: 517 return &v.sizeCache 518 case 2: 519 return &v.unknownFields 520 default: 521 return nil 522 } 523 } 524 file_gossip_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 525 switch v := v.(*GossipResponse); i { 526 case 0: 527 return &v.state 528 case 1: 529 return &v.sizeCache 530 case 2: 531 return &v.unknownFields 532 default: 533 return nil 534 } 535 } 536 file_gossip_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 537 switch v := v.(*GossipState); i { 538 case 0: 539 return &v.state 540 case 1: 541 return &v.sizeCache 542 case 2: 543 return &v.unknownFields 544 default: 545 return nil 546 } 547 } 548 file_gossip_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 549 switch v := v.(*GossipKeyValue); i { 550 case 0: 551 return &v.state 552 case 1: 553 return &v.sizeCache 554 case 2: 555 return &v.unknownFields 556 default: 557 return nil 558 } 559 } 560 file_gossip_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 561 switch v := v.(*GossipDeltaValue); i { 562 case 0: 563 return &v.state 564 case 1: 565 return &v.sizeCache 566 case 2: 567 return &v.unknownFields 568 default: 569 return nil 570 } 571 } 572 file_gossip_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 573 switch v := v.(*GossipState_GossipMemberState); i { 574 case 0: 575 return &v.state 576 case 1: 577 return &v.sizeCache 578 case 2: 579 return &v.unknownFields 580 default: 581 return nil 582 } 583 } 584 file_gossip_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 585 switch v := v.(*GossipDeltaValue_GossipDeltaEntry); i { 586 case 0: 587 return &v.state 588 case 1: 589 return &v.sizeCache 590 case 2: 591 return &v.unknownFields 592 default: 593 return nil 594 } 595 } 596 } 597 type x struct{} 598 out := protoimpl.TypeBuilder{ 599 File: protoimpl.DescBuilder{ 600 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 601 RawDescriptor: file_gossip_proto_rawDesc, 602 NumEnums: 0, 603 NumMessages: 9, 604 NumExtensions: 0, 605 NumServices: 0, 606 }, 607 GoTypes: file_gossip_proto_goTypes, 608 DependencyIndexes: file_gossip_proto_depIdxs, 609 MessageInfos: file_gossip_proto_msgTypes, 610 }.Build() 611 File_gossip_proto = out.File 612 file_gossip_proto_rawDesc = nil 613 file_gossip_proto_goTypes = nil 614 file_gossip_proto_depIdxs = nil 615 }