github.com/microsoft/moc@v0.17.1/rpc/common/moc_common_networkcommon.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: moc_common_networkcommon.proto 3 4 package common 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 math "math" 10 ) 11 12 // Reference imports to suppress errors if they are not otherwise used. 13 var _ = proto.Marshal 14 var _ = fmt.Errorf 15 var _ = math.Inf 16 17 // This is a compile-time assertion to ensure that this generated file 18 // is compatible with the proto package it is being compiled against. 19 // A compilation error at this line likely means your copy of the 20 // proto package needs to be updated. 21 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 23 type Protocol int32 24 25 const ( 26 Protocol_All Protocol = 0 27 Protocol_Tcp Protocol = 1 28 Protocol_Udp Protocol = 2 29 Protocol_Icmpv4 Protocol = 3 30 Protocol_Icmpv6 Protocol = 4 31 ) 32 33 var Protocol_name = map[int32]string{ 34 0: "All", 35 1: "Tcp", 36 2: "Udp", 37 3: "Icmpv4", 38 4: "Icmpv6", 39 } 40 41 var Protocol_value = map[string]int32{ 42 "All": 0, 43 "Tcp": 1, 44 "Udp": 2, 45 "Icmpv4": 3, 46 "Icmpv6": 4, 47 } 48 49 func (x Protocol) String() string { 50 return proto.EnumName(Protocol_name, int32(x)) 51 } 52 53 func (Protocol) EnumDescriptor() ([]byte, []int) { 54 return fileDescriptor_ba09ae1dfdbe03d2, []int{0} 55 } 56 57 type IPAllocationMethod int32 58 59 const ( 60 IPAllocationMethod_Invalid IPAllocationMethod = 0 61 IPAllocationMethod_Dynamic IPAllocationMethod = 1 62 IPAllocationMethod_Static IPAllocationMethod = 2 63 ) 64 65 var IPAllocationMethod_name = map[int32]string{ 66 0: "Invalid", 67 1: "Dynamic", 68 2: "Static", 69 } 70 71 var IPAllocationMethod_value = map[string]int32{ 72 "Invalid": 0, 73 "Dynamic": 1, 74 "Static": 2, 75 } 76 77 func (x IPAllocationMethod) String() string { 78 return proto.EnumName(IPAllocationMethod_name, int32(x)) 79 } 80 81 func (IPAllocationMethod) EnumDescriptor() ([]byte, []int) { 82 return fileDescriptor_ba09ae1dfdbe03d2, []int{1} 83 } 84 85 type IPPoolType int32 86 87 const ( 88 IPPoolType_VM IPPoolType = 0 89 IPPoolType_VIPPool IPPoolType = 1 90 ) 91 92 var IPPoolType_name = map[int32]string{ 93 0: "VM", 94 1: "VIPPool", 95 } 96 97 var IPPoolType_value = map[string]int32{ 98 "VM": 0, 99 "VIPPool": 1, 100 } 101 102 func (x IPPoolType) String() string { 103 return proto.EnumName(IPPoolType_name, int32(x)) 104 } 105 106 func (IPPoolType) EnumDescriptor() ([]byte, []int) { 107 return fileDescriptor_ba09ae1dfdbe03d2, []int{2} 108 } 109 110 type Dns struct { 111 Servers []string `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"` 112 Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` 113 Search []string `protobuf:"bytes,3,rep,name=search,proto3" json:"search,omitempty"` 114 Options []string `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"` 115 XXX_NoUnkeyedLiteral struct{} `json:"-"` 116 XXX_unrecognized []byte `json:"-"` 117 XXX_sizecache int32 `json:"-"` 118 } 119 120 func (m *Dns) Reset() { *m = Dns{} } 121 func (m *Dns) String() string { return proto.CompactTextString(m) } 122 func (*Dns) ProtoMessage() {} 123 func (*Dns) Descriptor() ([]byte, []int) { 124 return fileDescriptor_ba09ae1dfdbe03d2, []int{0} 125 } 126 127 func (m *Dns) XXX_Unmarshal(b []byte) error { 128 return xxx_messageInfo_Dns.Unmarshal(m, b) 129 } 130 func (m *Dns) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 131 return xxx_messageInfo_Dns.Marshal(b, m, deterministic) 132 } 133 func (m *Dns) XXX_Merge(src proto.Message) { 134 xxx_messageInfo_Dns.Merge(m, src) 135 } 136 func (m *Dns) XXX_Size() int { 137 return xxx_messageInfo_Dns.Size(m) 138 } 139 func (m *Dns) XXX_DiscardUnknown() { 140 xxx_messageInfo_Dns.DiscardUnknown(m) 141 } 142 143 var xxx_messageInfo_Dns proto.InternalMessageInfo 144 145 func (m *Dns) GetServers() []string { 146 if m != nil { 147 return m.Servers 148 } 149 return nil 150 } 151 152 func (m *Dns) GetDomain() string { 153 if m != nil { 154 return m.Domain 155 } 156 return "" 157 } 158 159 func (m *Dns) GetSearch() []string { 160 if m != nil { 161 return m.Search 162 } 163 return nil 164 } 165 166 func (m *Dns) GetOptions() []string { 167 if m != nil { 168 return m.Options 169 } 170 return nil 171 } 172 173 type IPPoolInfo struct { 174 Used string `protobuf:"bytes,1,opt,name=used,proto3" json:"used,omitempty"` 175 Available string `protobuf:"bytes,2,opt,name=available,proto3" json:"available,omitempty"` 176 XXX_NoUnkeyedLiteral struct{} `json:"-"` 177 XXX_unrecognized []byte `json:"-"` 178 XXX_sizecache int32 `json:"-"` 179 } 180 181 func (m *IPPoolInfo) Reset() { *m = IPPoolInfo{} } 182 func (m *IPPoolInfo) String() string { return proto.CompactTextString(m) } 183 func (*IPPoolInfo) ProtoMessage() {} 184 func (*IPPoolInfo) Descriptor() ([]byte, []int) { 185 return fileDescriptor_ba09ae1dfdbe03d2, []int{1} 186 } 187 188 func (m *IPPoolInfo) XXX_Unmarshal(b []byte) error { 189 return xxx_messageInfo_IPPoolInfo.Unmarshal(m, b) 190 } 191 func (m *IPPoolInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 192 return xxx_messageInfo_IPPoolInfo.Marshal(b, m, deterministic) 193 } 194 func (m *IPPoolInfo) XXX_Merge(src proto.Message) { 195 xxx_messageInfo_IPPoolInfo.Merge(m, src) 196 } 197 func (m *IPPoolInfo) XXX_Size() int { 198 return xxx_messageInfo_IPPoolInfo.Size(m) 199 } 200 func (m *IPPoolInfo) XXX_DiscardUnknown() { 201 xxx_messageInfo_IPPoolInfo.DiscardUnknown(m) 202 } 203 204 var xxx_messageInfo_IPPoolInfo proto.InternalMessageInfo 205 206 func (m *IPPoolInfo) GetUsed() string { 207 if m != nil { 208 return m.Used 209 } 210 return "" 211 } 212 213 func (m *IPPoolInfo) GetAvailable() string { 214 if m != nil { 215 return m.Available 216 } 217 return "" 218 } 219 220 type IPPool struct { 221 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 222 Type IPPoolType `protobuf:"varint,2,opt,name=type,proto3,enum=moc.IPPoolType" json:"type,omitempty"` 223 Start string `protobuf:"bytes,3,opt,name=start,proto3" json:"start,omitempty"` 224 End string `protobuf:"bytes,4,opt,name=end,proto3" json:"end,omitempty"` 225 Info *IPPoolInfo `protobuf:"bytes,5,opt,name=info,proto3" json:"info,omitempty"` 226 Tags *Tags `protobuf:"bytes,6,opt,name=tags,proto3" json:"tags,omitempty"` 227 XXX_NoUnkeyedLiteral struct{} `json:"-"` 228 XXX_unrecognized []byte `json:"-"` 229 XXX_sizecache int32 `json:"-"` 230 } 231 232 func (m *IPPool) Reset() { *m = IPPool{} } 233 func (m *IPPool) String() string { return proto.CompactTextString(m) } 234 func (*IPPool) ProtoMessage() {} 235 func (*IPPool) Descriptor() ([]byte, []int) { 236 return fileDescriptor_ba09ae1dfdbe03d2, []int{2} 237 } 238 239 func (m *IPPool) XXX_Unmarshal(b []byte) error { 240 return xxx_messageInfo_IPPool.Unmarshal(m, b) 241 } 242 func (m *IPPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 243 return xxx_messageInfo_IPPool.Marshal(b, m, deterministic) 244 } 245 func (m *IPPool) XXX_Merge(src proto.Message) { 246 xxx_messageInfo_IPPool.Merge(m, src) 247 } 248 func (m *IPPool) XXX_Size() int { 249 return xxx_messageInfo_IPPool.Size(m) 250 } 251 func (m *IPPool) XXX_DiscardUnknown() { 252 xxx_messageInfo_IPPool.DiscardUnknown(m) 253 } 254 255 var xxx_messageInfo_IPPool proto.InternalMessageInfo 256 257 func (m *IPPool) GetName() string { 258 if m != nil { 259 return m.Name 260 } 261 return "" 262 } 263 264 func (m *IPPool) GetType() IPPoolType { 265 if m != nil { 266 return m.Type 267 } 268 return IPPoolType_VM 269 } 270 271 func (m *IPPool) GetStart() string { 272 if m != nil { 273 return m.Start 274 } 275 return "" 276 } 277 278 func (m *IPPool) GetEnd() string { 279 if m != nil { 280 return m.End 281 } 282 return "" 283 } 284 285 func (m *IPPool) GetInfo() *IPPoolInfo { 286 if m != nil { 287 return m.Info 288 } 289 return nil 290 } 291 292 func (m *IPPool) GetTags() *Tags { 293 if m != nil { 294 return m.Tags 295 } 296 return nil 297 } 298 299 type Route struct { 300 NextHop string `protobuf:"bytes,1,opt,name=nextHop,proto3" json:"nextHop,omitempty"` 301 DestinationPrefix string `protobuf:"bytes,2,opt,name=destinationPrefix,proto3" json:"destinationPrefix,omitempty"` 302 Metric uint32 `protobuf:"varint,3,opt,name=metric,proto3" json:"metric,omitempty"` 303 XXX_NoUnkeyedLiteral struct{} `json:"-"` 304 XXX_unrecognized []byte `json:"-"` 305 XXX_sizecache int32 `json:"-"` 306 } 307 308 func (m *Route) Reset() { *m = Route{} } 309 func (m *Route) String() string { return proto.CompactTextString(m) } 310 func (*Route) ProtoMessage() {} 311 func (*Route) Descriptor() ([]byte, []int) { 312 return fileDescriptor_ba09ae1dfdbe03d2, []int{3} 313 } 314 315 func (m *Route) XXX_Unmarshal(b []byte) error { 316 return xxx_messageInfo_Route.Unmarshal(m, b) 317 } 318 func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 319 return xxx_messageInfo_Route.Marshal(b, m, deterministic) 320 } 321 func (m *Route) XXX_Merge(src proto.Message) { 322 xxx_messageInfo_Route.Merge(m, src) 323 } 324 func (m *Route) XXX_Size() int { 325 return xxx_messageInfo_Route.Size(m) 326 } 327 func (m *Route) XXX_DiscardUnknown() { 328 xxx_messageInfo_Route.DiscardUnknown(m) 329 } 330 331 var xxx_messageInfo_Route proto.InternalMessageInfo 332 333 func (m *Route) GetNextHop() string { 334 if m != nil { 335 return m.NextHop 336 } 337 return "" 338 } 339 340 func (m *Route) GetDestinationPrefix() string { 341 if m != nil { 342 return m.DestinationPrefix 343 } 344 return "" 345 } 346 347 func (m *Route) GetMetric() uint32 { 348 if m != nil { 349 return m.Metric 350 } 351 return 0 352 } 353 354 // Resource reference is intended to be used as a general component of specific, named resource references 355 type ResourceReference struct { 356 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 357 XXX_NoUnkeyedLiteral struct{} `json:"-"` 358 XXX_unrecognized []byte `json:"-"` 359 XXX_sizecache int32 `json:"-"` 360 } 361 362 func (m *ResourceReference) Reset() { *m = ResourceReference{} } 363 func (m *ResourceReference) String() string { return proto.CompactTextString(m) } 364 func (*ResourceReference) ProtoMessage() {} 365 func (*ResourceReference) Descriptor() ([]byte, []int) { 366 return fileDescriptor_ba09ae1dfdbe03d2, []int{4} 367 } 368 369 func (m *ResourceReference) XXX_Unmarshal(b []byte) error { 370 return xxx_messageInfo_ResourceReference.Unmarshal(m, b) 371 } 372 func (m *ResourceReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 373 return xxx_messageInfo_ResourceReference.Marshal(b, m, deterministic) 374 } 375 func (m *ResourceReference) XXX_Merge(src proto.Message) { 376 xxx_messageInfo_ResourceReference.Merge(m, src) 377 } 378 func (m *ResourceReference) XXX_Size() int { 379 return xxx_messageInfo_ResourceReference.Size(m) 380 } 381 func (m *ResourceReference) XXX_DiscardUnknown() { 382 xxx_messageInfo_ResourceReference.DiscardUnknown(m) 383 } 384 385 var xxx_messageInfo_ResourceReference proto.InternalMessageInfo 386 387 func (m *ResourceReference) GetName() string { 388 if m != nil { 389 return m.Name 390 } 391 return "" 392 } 393 394 type NetworkSecurityGroupReference struct { 395 ResourceRef *ResourceReference `protobuf:"bytes,1,opt,name=resourceRef,proto3" json:"resourceRef,omitempty"` 396 XXX_NoUnkeyedLiteral struct{} `json:"-"` 397 XXX_unrecognized []byte `json:"-"` 398 XXX_sizecache int32 `json:"-"` 399 } 400 401 func (m *NetworkSecurityGroupReference) Reset() { *m = NetworkSecurityGroupReference{} } 402 func (m *NetworkSecurityGroupReference) String() string { return proto.CompactTextString(m) } 403 func (*NetworkSecurityGroupReference) ProtoMessage() {} 404 func (*NetworkSecurityGroupReference) Descriptor() ([]byte, []int) { 405 return fileDescriptor_ba09ae1dfdbe03d2, []int{5} 406 } 407 408 func (m *NetworkSecurityGroupReference) XXX_Unmarshal(b []byte) error { 409 return xxx_messageInfo_NetworkSecurityGroupReference.Unmarshal(m, b) 410 } 411 func (m *NetworkSecurityGroupReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 412 return xxx_messageInfo_NetworkSecurityGroupReference.Marshal(b, m, deterministic) 413 } 414 func (m *NetworkSecurityGroupReference) XXX_Merge(src proto.Message) { 415 xxx_messageInfo_NetworkSecurityGroupReference.Merge(m, src) 416 } 417 func (m *NetworkSecurityGroupReference) XXX_Size() int { 418 return xxx_messageInfo_NetworkSecurityGroupReference.Size(m) 419 } 420 func (m *NetworkSecurityGroupReference) XXX_DiscardUnknown() { 421 xxx_messageInfo_NetworkSecurityGroupReference.DiscardUnknown(m) 422 } 423 424 var xxx_messageInfo_NetworkSecurityGroupReference proto.InternalMessageInfo 425 426 func (m *NetworkSecurityGroupReference) GetResourceRef() *ResourceReference { 427 if m != nil { 428 return m.ResourceRef 429 } 430 return nil 431 } 432 433 func init() { 434 proto.RegisterEnum("moc.Protocol", Protocol_name, Protocol_value) 435 proto.RegisterEnum("moc.IPAllocationMethod", IPAllocationMethod_name, IPAllocationMethod_value) 436 proto.RegisterEnum("moc.IPPoolType", IPPoolType_name, IPPoolType_value) 437 proto.RegisterType((*Dns)(nil), "moc.Dns") 438 proto.RegisterType((*IPPoolInfo)(nil), "moc.IPPoolInfo") 439 proto.RegisterType((*IPPool)(nil), "moc.IPPool") 440 proto.RegisterType((*Route)(nil), "moc.Route") 441 proto.RegisterType((*ResourceReference)(nil), "moc.ResourceReference") 442 proto.RegisterType((*NetworkSecurityGroupReference)(nil), "moc.NetworkSecurityGroupReference") 443 } 444 445 func init() { proto.RegisterFile("moc_common_networkcommon.proto", fileDescriptor_ba09ae1dfdbe03d2) } 446 447 var fileDescriptor_ba09ae1dfdbe03d2 = []byte{ 448 // 517 bytes of a gzipped FileDescriptorProto 449 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x53, 0xf1, 0x6b, 0xd3, 0x40, 450 0x14, 0x5e, 0x9a, 0x2c, 0xb3, 0xaf, 0xa8, 0xd9, 0x21, 0x33, 0x88, 0x93, 0x99, 0x21, 0x96, 0x22, 451 0x2d, 0x4c, 0x11, 0x11, 0x14, 0x26, 0x03, 0xed, 0x0f, 0x93, 0x92, 0xd5, 0x81, 0xfe, 0x32, 0xae, 452 0x97, 0x6b, 0x7b, 0x98, 0xbb, 0x17, 0xee, 0x2e, 0x75, 0xfd, 0xa3, 0xfc, 0x1f, 0xe5, 0x2e, 0xa9, 453 0xad, 0xcc, 0xdf, 0xbe, 0xef, 0xbd, 0xef, 0xfb, 0x72, 0xf7, 0xf2, 0x0e, 0x9e, 0x49, 0x64, 0x37, 454 0x0c, 0xa5, 0x44, 0x75, 0xa3, 0xb8, 0xfd, 0x85, 0xfa, 0x67, 0xc3, 0x86, 0x95, 0x46, 0x8b, 0x24, 455 0x94, 0xc8, 0x9e, 0x3c, 0xde, 0x11, 0xed, 0x76, 0x33, 0x01, 0xe1, 0x85, 0x32, 0x24, 0x85, 0x03, 456 0xc3, 0xf5, 0x8a, 0x6b, 0x93, 0x06, 0x27, 0x61, 0xbf, 0x9b, 0x6f, 0x28, 0x39, 0x82, 0xb8, 0x40, 457 0x49, 0x85, 0x4a, 0x3b, 0x27, 0x41, 0xbf, 0x9b, 0xb7, 0xcc, 0xd5, 0x0d, 0xa7, 0x9a, 0x2d, 0xd3, 458 0xd0, 0x1b, 0x5a, 0xe6, 0x92, 0xb0, 0xb2, 0x02, 0x95, 0x49, 0xa3, 0x26, 0xa9, 0xa5, 0xd9, 0x47,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 0x88, 0xb2, 0xef, 0x70, 0xfc, 0xb5, 0xd9, 0x90, 0x2b, 0xce, 0x6a, 0x2d, 0xec, 471 0xfa, 0xb3, 0xc6, 0xba, 0xda, 0x9a, 0xde, 0x41, 0x4f, 0x6f, 0x93, 0xbc, 0xb7, 0x77, 0x76, 0xe4, 472 0x2f, 0x76, 0xe7, 0x0b, 0xf9, 0xae, 0x74, 0xf0, 0x01, 0xee, 0x4d, 0xdc, 0x42, 0x31, 0x2c, 0xc9, 473 0x01, 0x84, 0xe7, 0x65, 0x99, 0xec, 0x39, 0x30, 0x65, 0x55, 0x12, 0x38, 0xf0, 0xad, 0xa8, 0x92, 474 0x0e, 0x01, 0x88, 0xc7, 0x4c, 0x56, 0xab, 0x37, 0x49, 0xf8, 0x17, 0xbf, 0x4d, 0xa2, 0xc1, 0x7b, 475 0x20, 0xe3, 0xc9, 0x79, 0x59, 0x22, 0xf3, 0x17, 0xbe, 0xe4, 0x76, 0x89, 0x05, 0xe9, 0xc1, 0xc1, 476 0x58, 0xad, 0x68, 0x29, 0x8a, 0x64, 0xcf, 0x91, 0x8b, 0xb5, 0xa2, 0x52, 0xb0, 0x24, 0x70, 0xde, 477 0x2b, 0x4b, 0xad, 0x60, 0x49, 0x67, 0xf0, 0x7c, 0xb3, 0x57, 0xee, 0x3f, 0x93, 0x18, 0x3a, 0xd7, 478 0x97, 0x8d, 0xfc, 0xba, 0x29, 0x27, 0xc1, 0xa7, 0x17, 0x3f, 0x4e, 0x17, 0xc2, 0x2e, 0xeb, 0xd9, 479 0x90, 0xa1, 0x1c, 0x49, 0xc1, 0x34, 0x1a, 0x9c, 0xdb, 0x91, 0x44, 0x36, 0xd2, 0x15, 0x1b, 0x35, 480 0x4f, 0x62, 0x16, 0xfb, 0x37, 0xf1, 0xfa, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1e, 0x10, 0x51, 481 0xe6, 0x53, 0x03, 0x00, 0x00, 482 }