proto3.pb.go 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: proto3/proto3.proto
  3. package proto3
  4. import (
  5. fmt "fmt"
  6. proto "github.com/golang/protobuf/proto"
  7. math "math"
  8. )
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  18. type Request_Flavour int32
  19. const (
  20. Request_SWEET Request_Flavour = 0
  21. Request_SOUR Request_Flavour = 1
  22. Request_UMAMI Request_Flavour = 2
  23. Request_GOPHERLICIOUS Request_Flavour = 3
  24. )
  25. var Request_Flavour_name = map[int32]string{
  26. 0: "SWEET",
  27. 1: "SOUR",
  28. 2: "UMAMI",
  29. 3: "GOPHERLICIOUS",
  30. }
  31. var Request_Flavour_value = map[string]int32{
  32. "SWEET": 0,
  33. "SOUR": 1,
  34. "UMAMI": 2,
  35. "GOPHERLICIOUS": 3,
  36. }
  37. func (x Request_Flavour) String() string {
  38. return proto.EnumName(Request_Flavour_name, int32(x))
  39. }
  40. func (Request_Flavour) EnumDescriptor() ([]byte, []int) {
  41. return fileDescriptor_ab04eb4084a521db, []int{0, 0}
  42. }
  43. type Request struct {
  44. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  45. Key []int64 `protobuf:"varint,2,rep,packed,name=key,proto3" json:"key,omitempty"`
  46. Taste Request_Flavour `protobuf:"varint,3,opt,name=taste,proto3,enum=proto3.Request_Flavour" json:"taste,omitempty"`
  47. Book *Book `protobuf:"bytes,4,opt,name=book,proto3" json:"book,omitempty"`
  48. Unpacked []int64 `protobuf:"varint,5,rep,name=unpacked,proto3" json:"unpacked,omitempty"`
  49. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  50. XXX_unrecognized []byte `json:"-"`
  51. XXX_sizecache int32 `json:"-"`
  52. }
  53. func (m *Request) Reset() { *m = Request{} }
  54. func (m *Request) String() string { return proto.CompactTextString(m) }
  55. func (*Request) ProtoMessage() {}
  56. func (*Request) Descriptor() ([]byte, []int) {
  57. return fileDescriptor_ab04eb4084a521db, []int{0}
  58. }
  59. func (m *Request) XXX_Unmarshal(b []byte) error {
  60. return xxx_messageInfo_Request.Unmarshal(m, b)
  61. }
  62. func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  63. return xxx_messageInfo_Request.Marshal(b, m, deterministic)
  64. }
  65. func (m *Request) XXX_Merge(src proto.Message) {
  66. xxx_messageInfo_Request.Merge(m, src)
  67. }
  68. func (m *Request) XXX_Size() int {
  69. return xxx_messageInfo_Request.Size(m)
  70. }
  71. func (m *Request) XXX_DiscardUnknown() {
  72. xxx_messageInfo_Request.DiscardUnknown(m)
  73. }
  74. var xxx_messageInfo_Request proto.InternalMessageInfo
  75. func (m *Request) GetName() string {
  76. if m != nil {
  77. return m.Name
  78. }
  79. return ""
  80. }
  81. func (m *Request) GetKey() []int64 {
  82. if m != nil {
  83. return m.Key
  84. }
  85. return nil
  86. }
  87. func (m *Request) GetTaste() Request_Flavour {
  88. if m != nil {
  89. return m.Taste
  90. }
  91. return Request_SWEET
  92. }
  93. func (m *Request) GetBook() *Book {
  94. if m != nil {
  95. return m.Book
  96. }
  97. return nil
  98. }
  99. func (m *Request) GetUnpacked() []int64 {
  100. if m != nil {
  101. return m.Unpacked
  102. }
  103. return nil
  104. }
  105. type Book struct {
  106. Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
  107. RawData []byte `protobuf:"bytes,2,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"`
  108. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  109. XXX_unrecognized []byte `json:"-"`
  110. XXX_sizecache int32 `json:"-"`
  111. }
  112. func (m *Book) Reset() { *m = Book{} }
  113. func (m *Book) String() string { return proto.CompactTextString(m) }
  114. func (*Book) ProtoMessage() {}
  115. func (*Book) Descriptor() ([]byte, []int) {
  116. return fileDescriptor_ab04eb4084a521db, []int{1}
  117. }
  118. func (m *Book) XXX_Unmarshal(b []byte) error {
  119. return xxx_messageInfo_Book.Unmarshal(m, b)
  120. }
  121. func (m *Book) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  122. return xxx_messageInfo_Book.Marshal(b, m, deterministic)
  123. }
  124. func (m *Book) XXX_Merge(src proto.Message) {
  125. xxx_messageInfo_Book.Merge(m, src)
  126. }
  127. func (m *Book) XXX_Size() int {
  128. return xxx_messageInfo_Book.Size(m)
  129. }
  130. func (m *Book) XXX_DiscardUnknown() {
  131. xxx_messageInfo_Book.DiscardUnknown(m)
  132. }
  133. var xxx_messageInfo_Book proto.InternalMessageInfo
  134. func (m *Book) GetTitle() string {
  135. if m != nil {
  136. return m.Title
  137. }
  138. return ""
  139. }
  140. func (m *Book) GetRawData() []byte {
  141. if m != nil {
  142. return m.RawData
  143. }
  144. return nil
  145. }
  146. func init() {
  147. proto.RegisterEnum("proto3.Request_Flavour", Request_Flavour_name, Request_Flavour_value)
  148. proto.RegisterType((*Request)(nil), "proto3.Request")
  149. proto.RegisterType((*Book)(nil), "proto3.Book")
  150. }
  151. func init() { proto.RegisterFile("proto3/proto3.proto", fileDescriptor_ab04eb4084a521db) }
  152. var fileDescriptor_ab04eb4084a521db = []byte{
  153. // 306 bytes of a gzipped FileDescriptorProto
  154. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x90, 0xcf, 0x4e, 0xf2, 0x40,
  155. 0x14, 0xc5, 0x99, 0xfe, 0xf9, 0x80, 0xfb, 0xa1, 0x19, 0xaf, 0x26, 0x8e, 0x1b, 0x33, 0x61, 0xd5,
  156. 0x0d, 0x25, 0xc1, 0x85, 0xc6, 0xb8, 0x11, 0x45, 0x25, 0x91, 0x60, 0x06, 0x89, 0x89, 0x1b, 0x33,
  157. 0x85, 0xb1, 0x92, 0x42, 0x07, 0xcb, 0x54, 0xe2, 0xcb, 0xfa, 0x2c, 0xa6, 0x9d, 0xe2, 0xea, 0x9e,
  158. 0x7b, 0xe7, 0xe4, 0x77, 0x32, 0x07, 0x0e, 0xd7, 0x99, 0x36, 0xfa, 0xac, 0x6b, 0x47, 0x58, 0x0e,
  159. 0xfc, 0x67, 0xb7, 0xf6, 0x0f, 0x81, 0xba, 0x50, 0x9f, 0xb9, 0xda, 0x18, 0x44, 0xf0, 0x52, 0xb9,
  160. 0x52, 0x8c, 0x70, 0x12, 0x34, 0x45, 0xa9, 0x91, 0x82, 0x9b, 0xa8, 0x6f, 0xe6, 0x70, 0x37, 0x70,
  161. 0x45, 0x21, 0xb1, 0x03, 0xbe, 0x91, 0x1b, 0xa3, 0x98, 0xcb, 0x49, 0xb0, 0xdf, 0x3b, 0x0e, 0x2b,
  162. 0x6e, 0x45, 0x09, 0xef, 0x96, 0xf2, 0x4b, 0xe7, 0x99, 0xb0, 0x2e, 0xe4, 0xe0, 0x45, 0x5a, 0x27,
  163. 0xcc, 0xe3, 0x24, 0xf8, 0xdf, 0x6b, 0xed, 0xdc, 0x7d, 0xad, 0x13, 0x51, 0xbe, 0xe0, 0x29, 0x34,
  164. 0xf2, 0x74, 0x2d, 0x67, 0x89, 0x9a, 0x33, 0xbf, 0xc8, 0xe9, 0x3b, 0xb4, 0x26, 0xfe, 0x6e, 0xed,
  165. 0x2b, 0xa8, 0x57, 0x4c, 0x6c, 0x82, 0x3f, 0x79, 0x19, 0x0c, 0x9e, 0x69, 0x0d, 0x1b, 0xe0, 0x4d,
  166. 0xc6, 0x53, 0x41, 0x49, 0x71, 0x9c, 0x8e, 0xae, 0x47, 0x43, 0xea, 0xe0, 0x01, 0xec, 0xdd, 0x8f,
  167. 0x9f, 0x1e, 0x06, 0xe2, 0x71, 0x78, 0x33, 0x1c, 0x4f, 0x27, 0xd4, 0x6d, 0x9f, 0x83, 0x57, 0x64,
  168. 0xe1, 0x11, 0xf8, 0x66, 0x61, 0x96, 0xbb, 0xdf, 0xd9, 0x05, 0x4f, 0xa0, 0x91, 0xc9, 0xed, 0xdb,
  169. 0x5c, 0x1a, 0xc9, 0x1c, 0x4e, 0x82, 0x96, 0xa8, 0x67, 0x72, 0x7b, 0x2b, 0x8d, 0xec, 0x5f, 0xbe,
  170. 0x5e, 0xc4, 0x0b, 0xf3, 0x91, 0x47, 0xe1, 0x4c, 0xaf, 0xba, 0xb1, 0x5e, 0xca, 0x34, 0xb6, 0x1d,
  171. 0x46, 0xf9, 0xbb, 0x15, 0xb3, 0x4e, 0xac, 0xd2, 0x4e, 0xac, 0xbb, 0x46, 0x6d, 0x4c, 0xc1, 0xa8,
  172. 0x3a, 0x8e, 0xaa, 0x76, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xec, 0x71, 0xee, 0xdb, 0x7b, 0x01,
  173. 0x00, 0x00,
  174. }