Protobuf model and library code for oaktree
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

floating_ip.pb.go 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. // Code generated by protoc-gen-go.
  2. // source: floating_ip.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package oaktree is a generated protocol buffer package.
  6. It is generated from these files:
  7. floating_ip.proto
  8. It has these top-level messages:
  9. FloatingIP
  10. FloatingIPList
  11. */
  12. package oaktree
  13. import proto "github.com/golang/protobuf/proto"
  14. import fmt "fmt"
  15. import math "math"
  16. import oaktree1 "."
  17. // Reference imports to suppress errors if they are not otherwise used.
  18. var _ = proto.Marshal
  19. var _ = fmt.Errorf
  20. var _ = math.Inf
  21. // This is a compile-time assertion to ensure that this generated file
  22. // is compatible with the proto package it is being compiled against.
  23. // A compilation error at this line likely means your copy of the
  24. // proto package needs to be updated.
  25. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  26. type FloatingIP_Status int32
  27. const (
  28. FloatingIP_active FloatingIP_Status = 0
  29. FloatingIP_down FloatingIP_Status = 1
  30. FloatingIP_error FloatingIP_Status = 2
  31. )
  32. var FloatingIP_Status_name = map[int32]string{
  33. 0: "active",
  34. 1: "down",
  35. 2: "error",
  36. }
  37. var FloatingIP_Status_value = map[string]int32{
  38. "active": 0,
  39. "down": 1,
  40. "error": 2,
  41. }
  42. func (x FloatingIP_Status) String() string {
  43. return proto.EnumName(FloatingIP_Status_name, int32(x))
  44. }
  45. func (FloatingIP_Status) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
  46. type FloatingIP struct {
  47. Location *oaktree1.Location `protobuf:"bytes,1,opt,name=location" json:"location,omitempty"`
  48. Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
  49. IsAttached bool `protobuf:"varint,3,opt,name=is_attached,json=isAttached" json:"is_attached,omitempty"`
  50. FixedIpAddress string `protobuf:"bytes,4,opt,name=fixed_ip_address,json=fixedIpAddress" json:"fixed_ip_address,omitempty"`
  51. FloatingIpAddress string `protobuf:"bytes,5,opt,name=floating_ip_address,json=floatingIpAddress" json:"floating_ip_address,omitempty"`
  52. Network string `protobuf:"bytes,6,opt,name=network" json:"network,omitempty"`
  53. Port string `protobuf:"bytes,7,opt,name=port" json:"port,omitempty"`
  54. Status FloatingIP_Status `protobuf:"varint,8,opt,name=status,enum=oaktree.FloatingIP_Status" json:"status,omitempty"`
  55. Properties map[string]string `protobuf:"bytes,99,rep,name=properties" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  56. }
  57. func (m *FloatingIP) Reset() { *m = FloatingIP{} }
  58. func (m *FloatingIP) String() string { return proto.CompactTextString(m) }
  59. func (*FloatingIP) ProtoMessage() {}
  60. func (*FloatingIP) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  61. func (m *FloatingIP) GetLocation() *oaktree1.Location {
  62. if m != nil {
  63. return m.Location
  64. }
  65. return nil
  66. }
  67. func (m *FloatingIP) GetProperties() map[string]string {
  68. if m != nil {
  69. return m.Properties
  70. }
  71. return nil
  72. }
  73. type FloatingIPList struct {
  74. FloatingIps []*FloatingIP `protobuf:"bytes,1,rep,name=floating_ips,json=floatingIps" json:"floating_ips,omitempty"`
  75. }
  76. func (m *FloatingIPList) Reset() { *m = FloatingIPList{} }
  77. func (m *FloatingIPList) String() string { return proto.CompactTextString(m) }
  78. func (*FloatingIPList) ProtoMessage() {}
  79. func (*FloatingIPList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  80. func (m *FloatingIPList) GetFloatingIps() []*FloatingIP {
  81. if m != nil {
  82. return m.FloatingIps
  83. }
  84. return nil
  85. }
  86. func init() {
  87. proto.RegisterType((*FloatingIP)(nil), "oaktree.FloatingIP")
  88. proto.RegisterType((*FloatingIPList)(nil), "oaktree.FloatingIPList")
  89. proto.RegisterEnum("oaktree.FloatingIP_Status", FloatingIP_Status_name, FloatingIP_Status_value)
  90. }
  91. func init() { proto.RegisterFile("floating_ip.proto", fileDescriptor0) }
  92. var fileDescriptor0 = []byte{
  93. // 365 bytes of a gzipped FileDescriptorProto
  94. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x92, 0xc1, 0x8e, 0xda, 0x30,
  95. 0x10, 0x86, 0x9b, 0x04, 0x42, 0x18, 0x50, 0x1a, 0x86, 0x1e, 0x2c, 0x2e, 0x45, 0xf4, 0x42, 0x0f,
  96. 0xcd, 0x81, 0x4a, 0x55, 0x55, 0xa9, 0x07, 0x54, 0x75, 0xb5, 0x48, 0x1c, 0x50, 0xf6, 0x01, 0x90,
  97. 0x37, 0x31, 0xbb, 0x16, 0x10, 0x47, 0xb6, 0x81, 0xe5, 0x49, 0xf7, 0x75, 0xd6, 0x38, 0xd9, 0x04,
  98. 0xad, 0xb8, 0xcd, 0xfc, 0xf3, 0x8d, 0x3c, 0xff, 0x2f, 0xc3, 0x60, 0xb3, 0x13, 0x54, 0xf3, 0xfc,
  99. 0x69, 0xcd, 0x8b, 0xb8, 0x90, 0x42, 0x0b, 0xec, 0x08, 0xba, 0xd5, 0x92, 0xb1, 0x51, 0x3f, 0x15,
  100. 0xfb, 0xbd, 0xc8, 0x4b, 0x79, 0xf2, 0xea, 0x01, 0xdc, 0x55, 0xf0, 0x62, 0x85, 0x3f, 0x20, 0xd8,
  101. 0x89, 0xd4, 0x74, 0x22, 0x27, 0xce, 0xd8, 0x99, 0xf6, 0x66, 0x83, 0xb8, 0x5a, 0x8c, 0x97, 0xd5,
  102. 0x20, 0xa9, 0x11, 0x0c, 0xc1, 0xe5, 0x19, 0x71, 0x0d, 0xd8, 0x4d, 0x4c, 0x85, 0x5f, 0xa1, 0xc7,
  103. 0xd5, 0x9a, 0x6a, 0x4d, 0xd3, 0x67, 0x96, 0x11, 0xcf, 0x0c, 0x82, 0x04, 0xb8, 0x9a, 0x57, 0x0a,
  104. 0x4e, 0x21, 0xda, 0xf0, 0x17, 0x96, 0x99, 0xbb, 0xd6, 0x34, 0xcb, 0x24, 0x53, 0x8a, 0xb4, 0xec,
  105. 0x7a, 0x68, 0xf5, 0x45, 0x31, 0x2f, 0x55, 0x8c, 0x61, 0x78, 0x65, 0xa2, 0x86, 0xdb, 0x16, 0xae,
  106. 0xfd, 0x35, 0x3c, 0x81, 0x4e, 0xce, 0xf4, 0x49, 0xc8, 0x2d, 0xf1, 0x2d, 0xf3, 0xde, 0x22, 0x42,
  107. 0xab, 0x10, 0x52, 0x93, 0x8e, 0x95, 0x6d, 0x8d, 0x33, 0xf0, 0x95, 0xa6, 0xfa, 0xa0, 0x48, 0x60,
  108. 0xd4, 0x70, 0x36, 0xaa, 0x5d, 0x36, 0x61, 0xc4, 0x0f, 0x96, 0x48, 0x2a, 0x12, 0xff, 0x01, 0x98,
  109. 0xcc, 0x0a, 0x26, 0x35, 0x67, 0x8a, 0xa4, 0x63, 0xcf, 0xa4, 0xf3, 0xed, 0xd6, 0xde, 0xaa, 0xa6,
  110. 0xfe, 0xe7, 0x5a, 0x9e, 0x93, 0xab, 0xb5, 0xd1, 0x5f, 0xf8, 0xfc, 0x61, 0x8c, 0x11, 0x78, 0x5b,
  111. 0x76, 0xb6, 0x71, 0x77, 0x93, 0x4b, 0x89, 0x5f, 0xa0, 0x7d, 0xa4, 0xbb, 0x03, 0xab, 0x92, 0x2d,
  112. 0x9b, 0x3f, 0xee, 0x6f, 0x67, 0xf2, 0x1d, 0xfc, 0xf2, 0x2a, 0x04, 0xf0, 0x69, 0xaa, 0xf9, 0x91,
  113. 0x45, 0x9f, 0x30, 0x80, 0x56, 0x26, 0x4e, 0x79, 0xe4, 0x60, 0x17, 0xda, 0x4c, 0x4a, 0x21, 0x23,
  114. 0x77, 0x72, 0x0f, 0x61, 0x73, 0xd3, 0x92, 0x2b, 0x8d, 0xbf, 0xa0, 0x7f, 0x15, 0xa9, 0x32, 0x2f,
  115. 0x5e, 0x2c, 0x0c, 0x6f, 0x58, 0x48, 0x7a, 0x4d, 0xc0, 0xea, 0xd1, 0xb7, 0x5f, 0xe5, 0xe7, 0x5b,
  116. 0x00, 0x00, 0x00, 0xff, 0xff, 0x1d, 0x8d, 0x18, 0x49, 0x56, 0x02, 0x00, 0x00,
  117. }