github.com/google/cloudprober@v0.11.3/common/message/proto/message.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.26.0 4 // protoc v3.17.3 5 // source: github.com/google/cloudprober/common/message/proto/message.proto 6 7 package proto 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type DataNode_Type int32 24 25 const ( 26 DataNode_UNKNOWN DataNode_Type = 0 27 DataNode_CLIENT DataNode_Type = 1 28 DataNode_SERVER DataNode_Type = 2 29 ) 30 31 // Enum value maps for DataNode_Type. 32 var ( 33 DataNode_Type_name = map[int32]string{ 34 0: "UNKNOWN", 35 1: "CLIENT", 36 2: "SERVER", 37 } 38 DataNode_Type_value = map[string]int32{ 39 "UNKNOWN": 0, 40 "CLIENT": 1, 41 "SERVER": 2, 42 } 43 ) 44 45 func (x DataNode_Type) Enum() *DataNode_Type { 46 p := new(DataNode_Type) 47 *p = x 48 return p 49 } 50 51 func (x DataNode_Type) String() string { 52 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 53 } 54 55 func (DataNode_Type) Descriptor() protoreflect.EnumDescriptor { 56 return file_github_com_google_cloudprober_common_message_proto_message_proto_enumTypes[0].Descriptor() 57 } 58 59 func (DataNode_Type) Type() protoreflect.EnumType { 60 return &file_github_com_google_cloudprober_common_message_proto_message_proto_enumTypes[0] 61 } 62 63 func (x DataNode_Type) Number() protoreflect.EnumNumber { 64 return protoreflect.EnumNumber(x) 65 } 66 67 // Deprecated: Do not use. 68 func (x *DataNode_Type) UnmarshalJSON(b []byte) error { 69 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) 70 if err != nil { 71 return err 72 } 73 *x = DataNode_Type(num) 74 return nil 75 } 76 77 // Deprecated: Use DataNode_Type.Descriptor instead. 78 func (DataNode_Type) EnumDescriptor() ([]byte, []int) { 79 return file_github_com_google_cloudprober_common_message_proto_message_proto_rawDescGZIP(), []int{1, 0} 80 } 81 82 // Constants defines constants with default values. 83 type Constants struct { 84 state protoimpl.MessageState 85 sizeCache protoimpl.SizeCache 86 unknownFields protoimpl.UnknownFields 87 88 Magic *uint64 `protobuf:"varint,1,opt,name=magic,def=257787339638762" json:"magic,omitempty"` 89 } 90 91 // Default values for Constants fields. 92 const ( 93 Default_Constants_Magic = uint64(257787339638762) 94 ) 95 96 func (x *Constants) Reset() { 97 *x = Constants{} 98 if protoimpl.UnsafeEnabled { 99 mi := &file_github_com_google_cloudprober_common_message_proto_message_proto_msgTypes[0] 100 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 101 ms.StoreMessageInfo(mi) 102 } 103 } 104 105 func (x *Constants) String() string { 106 return protoimpl.X.MessageStringOf(x) 107 } 108 109 func (*Constants) ProtoMessage() {} 110 111 func (x *Constants) ProtoReflect() protoreflect.Message { 112 mi := &file_github_com_google_cloudprober_common_message_proto_message_proto_msgTypes[0] 113 if protoimpl.UnsafeEnabled && x != nil { 114 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 115 if ms.LoadMessageInfo() == nil { 116 ms.StoreMessageInfo(mi) 117 } 118 return ms 119 } 120 return mi.MessageOf(x) 121 } 122 123 // Deprecated: Use Constants.ProtoReflect.Descriptor instead. 124 func (*Constants) Descriptor() ([]byte, []int) { 125 return file_github_com_google_cloudprober_common_message_proto_message_proto_rawDescGZIP(), []int{0} 126 } 127 128 func (x *Constants) GetMagic() uint64 { 129 if x != nil && x.Magic != nil { 130 return *x.Magic 131 } 132 return Default_Constants_Magic 133 } 134 135 // Datanode is something that see's a message AND can modify it. 136 type DataNode struct { 137 state protoimpl.MessageState 138 sizeCache protoimpl.SizeCache 139 unknownFields protoimpl.UnknownFields 140 141 Type *DataNode_Type `protobuf:"varint,1,opt,name=type,enum=message.DataNode_Type,def=1" json:"type,omitempty"` 142 Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` 143 Port *string `protobuf:"bytes,4,opt,name=port" json:"port,omitempty"` 144 // 8 bytes of timestamp in pcap-friendly network byte order. 145 TimestampUsec []byte `protobuf:"bytes,3,opt,name=timestamp_usec,json=timestampUsec" json:"timestamp_usec,omitempty"` 146 } 147 148 // Default values for DataNode fields. 149 const ( 150 Default_DataNode_Type = DataNode_CLIENT 151 ) 152 153 func (x *DataNode) Reset() { 154 *x = DataNode{} 155 if protoimpl.UnsafeEnabled { 156 mi := &file_github_com_google_cloudprober_common_message_proto_message_proto_msgTypes[1] 157 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 158 ms.StoreMessageInfo(mi) 159 } 160 } 161 162 func (x *DataNode) String() string { 163 return protoimpl.X.MessageStringOf(x) 164 } 165 166 func (*DataNode) ProtoMessage() {} 167 168 func (x *DataNode) ProtoReflect() protoreflect.Message { 169 mi := &file_github_com_google_cloudprober_common_message_proto_message_proto_msgTypes[1] 170 if protoimpl.UnsafeEnabled && x != nil { 171 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 172 if ms.LoadMessageInfo() == nil { 173 ms.StoreMessageInfo(mi) 174 } 175 return ms 176 } 177 return mi.MessageOf(x) 178 } 179 180 // Deprecated: Use DataNode.ProtoReflect.Descriptor instead. 181 func (*DataNode) Descriptor() ([]byte, []int) { 182 return file_github_com_google_cloudprober_common_message_proto_message_proto_rawDescGZIP(), []int{1} 183 } 184 185 func (x *DataNode) GetType() DataNode_Type { 186 if x != nil && x.Type != nil { 187 return *x.Type 188 } 189 return Default_DataNode_Type 190 } 191 192 func (x *DataNode) GetName() string { 193 if x != nil && x.Name != nil { 194 return *x.Name 195 } 196 return "" 197 } 198 199 func (x *DataNode) GetPort() string { 200 if x != nil && x.Port != nil { 201 return *x.Port 202 } 203 return "" 204 } 205 206 func (x *DataNode) GetTimestampUsec() []byte { 207 if x != nil { 208 return x.TimestampUsec 209 } 210 return nil 211 } 212 213 // Msg is a message sent over the network. 214 // magic, seq, src and dst are required fields. 215 type Msg struct { 216 state protoimpl.MessageState 217 sizeCache protoimpl.SizeCache 218 unknownFields protoimpl.UnknownFields 219 220 Magic *uint64 `protobuf:"fixed64,1,opt,name=magic" json:"magic,omitempty"` // required. 221 // 8 bytes of sequence in pcap-friendly network byte order. 222 Seq []byte `protobuf:"bytes,2,opt,name=seq" json:"seq,omitempty"` // required. 223 // Datanodes seen by this message. 224 Src *DataNode `protobuf:"bytes,3,opt,name=src" json:"src,omitempty"` // required. 225 Dst *DataNode `protobuf:"bytes,4,opt,name=dst" json:"dst,omitempty"` // required. 226 Nodes []*DataNode `protobuf:"bytes,5,rep,name=nodes" json:"nodes,omitempty"` // Intermediate nodes. 227 // Optional payload. 228 Payload []byte `protobuf:"bytes,99,opt,name=payload" json:"payload,omitempty"` 229 } 230 231 func (x *Msg) Reset() { 232 *x = Msg{} 233 if protoimpl.UnsafeEnabled { 234 mi := &file_github_com_google_cloudprober_common_message_proto_message_proto_msgTypes[2] 235 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 236 ms.StoreMessageInfo(mi) 237 } 238 } 239 240 func (x *Msg) String() string { 241 return protoimpl.X.MessageStringOf(x) 242 } 243 244 func (*Msg) ProtoMessage() {} 245 246 func (x *Msg) ProtoReflect() protoreflect.Message { 247 mi := &file_github_com_google_cloudprober_common_message_proto_message_proto_msgTypes[2] 248 if protoimpl.UnsafeEnabled && x != nil { 249 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 250 if ms.LoadMessageInfo() == nil { 251 ms.StoreMessageInfo(mi) 252 } 253 return ms 254 } 255 return mi.MessageOf(x) 256 } 257 258 // Deprecated: Use Msg.ProtoReflect.Descriptor instead. 259 func (*Msg) Descriptor() ([]byte, []int) { 260 return file_github_com_google_cloudprober_common_message_proto_message_proto_rawDescGZIP(), []int{2} 261 } 262 263 func (x *Msg) GetMagic() uint64 { 264 if x != nil && x.Magic != nil { 265 return *x.Magic 266 } 267 return 0 268 } 269 270 func (x *Msg) GetSeq() []byte { 271 if x != nil { 272 return x.Seq 273 } 274 return nil 275 } 276 277 func (x *Msg) GetSrc() *DataNode { 278 if x != nil { 279 return x.Src 280 } 281 return nil 282 } 283 284 func (x *Msg) GetDst() *DataNode { 285 if x != nil { 286 return x.Dst 287 } 288 return nil 289 } 290 291 func (x *Msg) GetNodes() []*DataNode { 292 if x != nil { 293 return x.Nodes 294 } 295 return nil 296 } 297 298 func (x *Msg) GetPayload() []byte { 299 if x != nil { 300 return x.Payload 301 } 302 return nil 303 } 304 305 var File_github_com_google_cloudprober_common_message_proto_message_proto protoreflect.FileDescriptor 306 307 var file_github_com_google_cloudprober_common_message_proto_message_proto_rawDesc = []byte{ 308 0x0a, 0x40, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 309 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 310 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2f, 0x70, 311 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 312 0x74, 0x6f, 0x12, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x32, 0x0a, 0x09, 0x43, 313 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x05, 0x6d, 0x61, 0x67, 0x69, 314 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x3a, 0x0f, 0x32, 0x35, 0x37, 0x37, 0x38, 0x37, 0x33, 315 0x33, 0x39, 0x36, 0x33, 0x38, 0x37, 0x36, 0x32, 0x52, 0x05, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x22, 316 0xba, 0x01, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x32, 0x0a, 0x04, 317 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x6d, 0x65, 0x73, 318 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x54, 0x79, 319 0x70, 0x65, 0x3a, 0x06, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 320 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 321 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 322 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x69, 0x6d, 0x65, 323 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x75, 0x73, 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 324 0x52, 0x0d, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x55, 0x73, 0x65, 0x63, 0x22, 325 0x2b, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 326 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x10, 0x01, 327 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x10, 0x02, 0x22, 0xba, 0x01, 0x0a, 328 0x03, 0x4d, 0x73, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x18, 0x01, 0x20, 329 0x01, 0x28, 0x06, 0x52, 0x05, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 330 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x23, 0x0a, 0x03, 331 0x73, 0x72, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 332 0x61, 0x67, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x03, 0x73, 0x72, 333 0x63, 0x12, 0x23, 0x0a, 0x03, 0x64, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 334 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x4e, 0x6f, 0x64, 335 0x65, 0x52, 0x03, 0x64, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 336 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 337 0x44, 0x61, 0x74, 0x61, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 338 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0c, 339 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 340 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 341 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 342 0x6e, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 343 } 344 345 var ( 346 file_github_com_google_cloudprober_common_message_proto_message_proto_rawDescOnce sync.Once 347 file_github_com_google_cloudprober_common_message_proto_message_proto_rawDescData = file_github_com_google_cloudprober_common_message_proto_message_proto_rawDesc 348 ) 349 350 func file_github_com_google_cloudprober_common_message_proto_message_proto_rawDescGZIP() []byte { 351 file_github_com_google_cloudprober_common_message_proto_message_proto_rawDescOnce.Do(func() { 352 file_github_com_google_cloudprober_common_message_proto_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_common_message_proto_message_proto_rawDescData) 353 }) 354 return file_github_com_google_cloudprober_common_message_proto_message_proto_rawDescData 355 } 356 357 var file_github_com_google_cloudprober_common_message_proto_message_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 358 var file_github_com_google_cloudprober_common_message_proto_message_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 359 var file_github_com_google_cloudprober_common_message_proto_message_proto_goTypes = []interface{}{ 360 (DataNode_Type)(0), // 0: message.DataNode.Type 361 (*Constants)(nil), // 1: message.Constants 362 (*DataNode)(nil), // 2: message.DataNode 363 (*Msg)(nil), // 3: message.Msg 364 } 365 var file_github_com_google_cloudprober_common_message_proto_message_proto_depIdxs = []int32{ 366 0, // 0: message.DataNode.type:type_name -> message.DataNode.Type 367 2, // 1: message.Msg.src:type_name -> message.DataNode 368 2, // 2: message.Msg.dst:type_name -> message.DataNode 369 2, // 3: message.Msg.nodes:type_name -> message.DataNode 370 4, // [4:4] is the sub-list for method output_type 371 4, // [4:4] is the sub-list for method input_type 372 4, // [4:4] is the sub-list for extension type_name 373 4, // [4:4] is the sub-list for extension extendee 374 0, // [0:4] is the sub-list for field type_name 375 } 376 377 func init() { file_github_com_google_cloudprober_common_message_proto_message_proto_init() } 378 func file_github_com_google_cloudprober_common_message_proto_message_proto_init() { 379 if File_github_com_google_cloudprober_common_message_proto_message_proto != nil { 380 return 381 } 382 if !protoimpl.UnsafeEnabled { 383 file_github_com_google_cloudprober_common_message_proto_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 384 switch v := v.(*Constants); i { 385 case 0: 386 return &v.state 387 case 1: 388 return &v.sizeCache 389 case 2: 390 return &v.unknownFields 391 default: 392 return nil 393 } 394 } 395 file_github_com_google_cloudprober_common_message_proto_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 396 switch v := v.(*DataNode); i { 397 case 0: 398 return &v.state 399 case 1: 400 return &v.sizeCache 401 case 2: 402 return &v.unknownFields 403 default: 404 return nil 405 } 406 } 407 file_github_com_google_cloudprober_common_message_proto_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 408 switch v := v.(*Msg); i { 409 case 0: 410 return &v.state 411 case 1: 412 return &v.sizeCache 413 case 2: 414 return &v.unknownFields 415 default: 416 return nil 417 } 418 } 419 } 420 type x struct{} 421 out := protoimpl.TypeBuilder{ 422 File: protoimpl.DescBuilder{ 423 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 424 RawDescriptor: file_github_com_google_cloudprober_common_message_proto_message_proto_rawDesc, 425 NumEnums: 1, 426 NumMessages: 3, 427 NumExtensions: 0, 428 NumServices: 0, 429 }, 430 GoTypes: file_github_com_google_cloudprober_common_message_proto_message_proto_goTypes, 431 DependencyIndexes: file_github_com_google_cloudprober_common_message_proto_message_proto_depIdxs, 432 EnumInfos: file_github_com_google_cloudprober_common_message_proto_message_proto_enumTypes, 433 MessageInfos: file_github_com_google_cloudprober_common_message_proto_message_proto_msgTypes, 434 }.Build() 435 File_github_com_google_cloudprober_common_message_proto_message_proto = out.File 436 file_github_com_google_cloudprober_common_message_proto_message_proto_rawDesc = nil 437 file_github_com_google_cloudprober_common_message_proto_message_proto_goTypes = nil 438 file_github_com_google_cloudprober_common_message_proto_message_proto_depIdxs = nil 439 }