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.

flavor.pb.go 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. // Code generated by protoc-gen-go.
  2. // source: flavor.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package oaktree is a generated protocol buffer package.
  6. It is generated from these files:
  7. flavor.proto
  8. It has these top-level messages:
  9. Flavor
  10. FlavorList
  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 Flavor struct {
  27. Location *oaktree1.Location `protobuf:"bytes,1,opt,name=location" json:"location,omitempty"`
  28. Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
  29. Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
  30. IsPublic bool `protobuf:"varint,4,opt,name=is_public,json=isPublic" json:"is_public,omitempty"`
  31. Disabled bool `protobuf:"varint,5,opt,name=disabled" json:"disabled,omitempty"`
  32. Ram uint32 `protobuf:"varint,6,opt,name=ram" json:"ram,omitempty"`
  33. Vcpus uint32 `protobuf:"varint,7,opt,name=vcpus" json:"vcpus,omitempty"`
  34. Disk uint64 `protobuf:"varint,8,opt,name=disk" json:"disk,omitempty"`
  35. Ephemeral uint32 `protobuf:"varint,9,opt,name=ephemeral" json:"ephemeral,omitempty"`
  36. Swap uint64 `protobuf:"varint,10,opt,name=swap" json:"swap,omitempty"`
  37. RxtxFactor float32 `protobuf:"fixed32,11,opt,name=rxtx_factor,json=rxtxFactor" json:"rxtx_factor,omitempty"`
  38. 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"`
  39. }
  40. func (m *Flavor) Reset() { *m = Flavor{} }
  41. func (m *Flavor) String() string { return proto.CompactTextString(m) }
  42. func (*Flavor) ProtoMessage() {}
  43. func (*Flavor) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  44. func (m *Flavor) GetLocation() *oaktree1.Location {
  45. if m != nil {
  46. return m.Location
  47. }
  48. return nil
  49. }
  50. func (m *Flavor) GetProperties() map[string]string {
  51. if m != nil {
  52. return m.Properties
  53. }
  54. return nil
  55. }
  56. type FlavorList struct {
  57. Flavors []*Flavor `protobuf:"bytes,1,rep,name=flavors" json:"flavors,omitempty"`
  58. }
  59. func (m *FlavorList) Reset() { *m = FlavorList{} }
  60. func (m *FlavorList) String() string { return proto.CompactTextString(m) }
  61. func (*FlavorList) ProtoMessage() {}
  62. func (*FlavorList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  63. func (m *FlavorList) GetFlavors() []*Flavor {
  64. if m != nil {
  65. return m.Flavors
  66. }
  67. return nil
  68. }
  69. func init() {
  70. proto.RegisterType((*Flavor)(nil), "oaktree.Flavor")
  71. proto.RegisterType((*FlavorList)(nil), "oaktree.FlavorList")
  72. }
  73. func init() { proto.RegisterFile("flavor.proto", fileDescriptor0) }
  74. var fileDescriptor0 = []byte{
  75. // 334 bytes of a gzipped FileDescriptorProto
  76. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x5c, 0x51, 0x4d, 0x4f, 0xc2, 0x30,
  77. 0x18, 0x0e, 0x1b, 0x1f, 0xdb, 0x0b, 0x8a, 0xbe, 0xf1, 0xd0, 0xa0, 0x09, 0x84, 0x93, 0x1e, 0xdc,
  78. 0x41, 0x0f, 0x1a, 0x13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