api.gen.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: api_proto/api.proto
  3. /*
  4. Package devtools_buildozer is a generated protocol buffer package.
  5. It is generated from these files:
  6. api_proto/api.proto
  7. It has these top-level messages:
  8. Output
  9. RepeatedString
  10. */
  11. package devtools_buildozer
  12. import proto "github.com/golang/protobuf/proto"
  13. import fmt "fmt"
  14. import math "math"
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  24. type Output_Record_Field_ERROR int32
  25. const (
  26. Output_Record_Field_UNKNOWN Output_Record_Field_ERROR = 0
  27. Output_Record_Field_MISSING Output_Record_Field_ERROR = 1
  28. )
  29. var Output_Record_Field_ERROR_name = map[int32]string{
  30. 0: "UNKNOWN",
  31. 1: "MISSING",
  32. }
  33. var Output_Record_Field_ERROR_value = map[string]int32{
  34. "UNKNOWN": 0,
  35. "MISSING": 1,
  36. }
  37. func (x Output_Record_Field_ERROR) String() string {
  38. return proto.EnumName(Output_Record_Field_ERROR_name, int32(x))
  39. }
  40. func (Output_Record_Field_ERROR) EnumDescriptor() ([]byte, []int) {
  41. return fileDescriptor0, []int{0, 0, 0, 0}
  42. }
  43. type Output struct {
  44. Records []*Output_Record `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"`
  45. }
  46. func (m *Output) Reset() { *m = Output{} }
  47. func (m *Output) String() string { return proto.CompactTextString(m) }
  48. func (*Output) ProtoMessage() {}
  49. func (*Output) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  50. func (m *Output) GetRecords() []*Output_Record {
  51. if m != nil {
  52. return m.Records
  53. }
  54. return nil
  55. }
  56. type Output_Record struct {
  57. Fields []*Output_Record_Field `protobuf:"bytes,1,rep,name=fields" json:"fields,omitempty"`
  58. }
  59. func (m *Output_Record) Reset() { *m = Output_Record{} }
  60. func (m *Output_Record) String() string { return proto.CompactTextString(m) }
  61. func (*Output_Record) ProtoMessage() {}
  62. func (*Output_Record) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
  63. func (m *Output_Record) GetFields() []*Output_Record_Field {
  64. if m != nil {
  65. return m.Fields
  66. }
  67. return nil
  68. }
  69. type Output_Record_Field struct {
  70. // Types that are valid to be assigned to Value:
  71. // *Output_Record_Field_Text
  72. // *Output_Record_Field_Number
  73. // *Output_Record_Field_Error
  74. // *Output_Record_Field_List
  75. Value isOutput_Record_Field_Value `protobuf_oneof:"value"`
  76. // Used internally by Buildozer to decide whether a field should be quoted
  77. // when printing. This does not affect the contents of 'value'.
  78. QuoteWhenPrinting bool `protobuf:"varint,7,opt,name=quote_when_printing,json=quoteWhenPrinting" json:"quote_when_printing,omitempty"`
  79. }
  80. func (m *Output_Record_Field) Reset() { *m = Output_Record_Field{} }
  81. func (m *Output_Record_Field) String() string { return proto.CompactTextString(m) }
  82. func (*Output_Record_Field) ProtoMessage() {}
  83. func (*Output_Record_Field) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0, 0} }
  84. type isOutput_Record_Field_Value interface{ isOutput_Record_Field_Value() }
  85. type Output_Record_Field_Text struct {
  86. Text string `protobuf:"bytes,1,opt,name=text,oneof"`
  87. }
  88. type Output_Record_Field_Number struct {
  89. Number int32 `protobuf:"varint,2,opt,name=number,oneof"`
  90. }
  91. type Output_Record_Field_Error struct {
  92. Error Output_Record_Field_ERROR `protobuf:"varint,3,opt,name=error,enum=devtools.buildozer.Output_Record_Field_ERROR,oneof"`
  93. }
  94. type Output_Record_Field_List struct {
  95. List *RepeatedString `protobuf:"bytes,5,opt,name=list,oneof"`
  96. }
  97. func (*Output_Record_Field_Text) isOutput_Record_Field_Value() {}
  98. func (*Output_Record_Field_Number) isOutput_Record_Field_Value() {}
  99. func (*Output_Record_Field_Error) isOutput_Record_Field_Value() {}
  100. func (*Output_Record_Field_List) isOutput_Record_Field_Value() {}
  101. func (m *Output_Record_Field) GetValue() isOutput_Record_Field_Value {
  102. if m != nil {
  103. return m.Value
  104. }
  105. return nil
  106. }
  107. func (m *Output_Record_Field) GetText() string {
  108. if x, ok := m.GetValue().(*Output_Record_Field_Text); ok {
  109. return x.Text
  110. }
  111. return ""
  112. }
  113. func (m *Output_Record_Field) GetNumber() int32 {
  114. if x, ok := m.GetValue().(*Output_Record_Field_Number); ok {
  115. return x.Number
  116. }
  117. return 0
  118. }
  119. func (m *Output_Record_Field) GetError() Output_Record_Field_ERROR {
  120. if x, ok := m.GetValue().(*Output_Record_Field_Error); ok {
  121. return x.Error
  122. }
  123. return Output_Record_Field_UNKNOWN
  124. }
  125. func (m *Output_Record_Field) GetList() *RepeatedString {
  126. if x, ok := m.GetValue().(*Output_Record_Field_List); ok {
  127. return x.List
  128. }
  129. return nil
  130. }
  131. func (m *Output_Record_Field) GetQuoteWhenPrinting() bool {
  132. if m != nil {
  133. return m.QuoteWhenPrinting
  134. }
  135. return false
  136. }
  137. // XXX_OneofFuncs is for the internal use of the proto package.
  138. func (*Output_Record_Field) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  139. return _Output_Record_Field_OneofMarshaler, _Output_Record_Field_OneofUnmarshaler, _Output_Record_Field_OneofSizer, []interface{}{
  140. (*Output_Record_Field_Text)(nil),
  141. (*Output_Record_Field_Number)(nil),
  142. (*Output_Record_Field_Error)(nil),
  143. (*Output_Record_Field_List)(nil),
  144. }
  145. }
  146. func _Output_Record_Field_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  147. m := msg.(*Output_Record_Field)
  148. // value
  149. switch x := m.Value.(type) {
  150. case *Output_Record_Field_Text:
  151. b.EncodeVarint(1<<3 | proto.WireBytes)
  152. b.EncodeStringBytes(x.Text)
  153. case *Output_Record_Field_Number:
  154. b.EncodeVarint(2<<3 | proto.WireVarint)
  155. b.EncodeVarint(uint64(x.Number))
  156. case *Output_Record_Field_Error:
  157. b.EncodeVarint(3<<3 | proto.WireVarint)
  158. b.EncodeVarint(uint64(x.Error))
  159. case *Output_Record_Field_List:
  160. b.EncodeVarint(5<<3 | proto.WireBytes)
  161. if err := b.EncodeMessage(x.List); err != nil {
  162. return err
  163. }
  164. case nil:
  165. default:
  166. return fmt.Errorf("Output_Record_Field.Value has unexpected type %T", x)
  167. }
  168. return nil
  169. }
  170. func _Output_Record_Field_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  171. m := msg.(*Output_Record_Field)
  172. switch tag {
  173. case 1: // value.text
  174. if wire != proto.WireBytes {
  175. return true, proto.ErrInternalBadWireType
  176. }
  177. x, err := b.DecodeStringBytes()
  178. m.Value = &Output_Record_Field_Text{x}
  179. return true, err
  180. case 2: // value.number
  181. if wire != proto.WireVarint {
  182. return true, proto.ErrInternalBadWireType
  183. }
  184. x, err := b.DecodeVarint()
  185. m.Value = &Output_Record_Field_Number{int32(x)}
  186. return true, err
  187. case 3: // value.error
  188. if wire != proto.WireVarint {
  189. return true, proto.ErrInternalBadWireType
  190. }
  191. x, err := b.DecodeVarint()
  192. m.Value = &Output_Record_Field_Error{Output_Record_Field_ERROR(x)}
  193. return true, err
  194. case 5: // value.list
  195. if wire != proto.WireBytes {
  196. return true, proto.ErrInternalBadWireType
  197. }
  198. msg := new(RepeatedString)
  199. err := b.DecodeMessage(msg)
  200. m.Value = &Output_Record_Field_List{msg}
  201. return true, err
  202. default:
  203. return false, nil
  204. }
  205. }
  206. func _Output_Record_Field_OneofSizer(msg proto.Message) (n int) {
  207. m := msg.(*Output_Record_Field)
  208. // value
  209. switch x := m.Value.(type) {
  210. case *Output_Record_Field_Text:
  211. n += proto.SizeVarint(1<<3 | proto.WireBytes)
  212. n += proto.SizeVarint(uint64(len(x.Text)))
  213. n += len(x.Text)
  214. case *Output_Record_Field_Number:
  215. n += proto.SizeVarint(2<<3 | proto.WireVarint)
  216. n += proto.SizeVarint(uint64(x.Number))
  217. case *Output_Record_Field_Error:
  218. n += proto.SizeVarint(3<<3 | proto.WireVarint)
  219. n += proto.SizeVarint(uint64(x.Error))
  220. case *Output_Record_Field_List:
  221. s := proto.Size(x.List)
  222. n += proto.SizeVarint(5<<3 | proto.WireBytes)
  223. n += proto.SizeVarint(uint64(s))
  224. n += s
  225. case nil:
  226. default:
  227. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  228. }
  229. return n
  230. }
  231. type RepeatedString struct {
  232. Strings []string `protobuf:"bytes,1,rep,name=strings" json:"strings,omitempty"`
  233. }
  234. func (m *RepeatedString) Reset() { *m = RepeatedString{} }
  235. func (m *RepeatedString) String() string { return proto.CompactTextString(m) }
  236. func (*RepeatedString) ProtoMessage() {}
  237. func (*RepeatedString) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  238. func (m *RepeatedString) GetStrings() []string {
  239. if m != nil {
  240. return m.Strings
  241. }
  242. return nil
  243. }
  244. func init() {
  245. proto.RegisterType((*Output)(nil), "devtools.buildozer.Output")
  246. proto.RegisterType((*Output_Record)(nil), "devtools.buildozer.Output.Record")
  247. proto.RegisterType((*Output_Record_Field)(nil), "devtools.buildozer.Output.Record.Field")
  248. proto.RegisterType((*RepeatedString)(nil), "devtools.buildozer.RepeatedString")
  249. proto.RegisterEnum("devtools.buildozer.Output_Record_Field_ERROR", Output_Record_Field_ERROR_name, Output_Record_Field_ERROR_value)
  250. }
  251. func init() { proto.RegisterFile("api_proto/api.proto", fileDescriptor0) }
  252. var fileDescriptor0 = []byte{
  253. // 336 bytes of a gzipped FileDescriptorProto
  254. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xc1, 0x4a, 0xf3, 0x40,
  255. 0x14, 0x85, 0x33, 0x6d, 0x93, 0xfc, 0xbd, 0x85, 0xd2, 0x7f, 0xea, 0x62, 0xe8, 0x2a, 0xcd, 0xc6,
  256. 0x20, 0x38, 0x42, 0xdd, 0x08, 0x2e, 0x04, 0xa1, 0xda, 0x22, 0xa6, 0x32, 0x45, 0xba, 0x2c, 0xa9,
  257. 0x19, 0xdb, 0x81, 0x98, 0x89, 0x93, 0x49, 0x15, 0x9f, 0xc3, 0x87, 0xf0, 0xb1, 0x7c, 0x14, 0xc9,
  258. 0x24, 0x15, 0x44, 0x41, 0x77, 0xf7, 0xdc, 0x7b, 0xbe, 0x73, 0x42, 0x06, 0xfa, 0x51, 0x26, 0x96,
  259. 0x99, 0x92, 0x5a, 0x1e, 0x45, 0x99, 0xa0, 0x66, 0xc2, 0x38, 0xe6, 0x5b, 0x2d, 0x65, 0x92, 0xd3,
  260. 0x55, 0x21, 0x92, 0x58, 0xbe, 0x70, 0xe5, 0xbf, 0x35, 0xc1, 0x99, 0x15, 0x3a, 0x2b, 0x34, 0x3e,
  261. 0x05, 0x57, 0xf1, 0x3b, 0xa9, 0xe2, 0x9c, 0x20, 0xaf, 0x19, 0x74, 0x46, 0x43, 0xfa, 0x1d, 0xa0,
  262. 0x95, 0x99, 0x32, 0xe3, 0x64, 0x3b, 0x62, 0xf0, 0xde, 0x00, 0xa7, 0xda, 0xe1, 0x33, 0x70, 0xee,
  263. 0x05, 0x4f, 0x3e, 0x63, 0xf6, 0x7f, 0x8d, 0xa1, 0x17, 0xa5, 0x9f, 0xd5, 0xd8, 0xe0, 0xb5, 0x01,
  264. 0xb6, 0xd9, 0xe0, 0x3d, 0x68, 0x69, 0xfe, 0xac, 0x09, 0xf2, 0x50, 0xd0, 0x9e, 0x58, 0xcc, 0x28,
  265. 0x4c, 0xc0, 0x49, 0x8b, 0x87, 0x15, 0x57, 0xa4, 0xe1, 0xa1, 0xc0, 0x9e, 0x58, 0xac, 0xd6, 0x78,
  266. 0x0c, 0x36, 0x57, 0x4a, 0x2a, 0xd2, 0xf4, 0x50, 0xd0, 0x1d, 0x1d, 0xfe, 0xb1, 0x99, 0x8e, 0x19,
  267. 0x9b, 0xb1, 0x89, 0xc5, 0x2a, 0x1a, 0x9f, 0x40, 0x2b, 0x11, 0xb9, 0x26, 0xb6, 0x87, 0x82, 0xce,
  268. 0xc8, 0xff, 0x29, 0x85, 0xf1, 0x8c, 0x47, 0x9a, 0xc7, 0x73, 0xad, 0x44, 0xba, 0x2e, 0x3f, 0xad,
  269. 0x24, 0x30, 0x85, 0xfe, 0x63, 0x21, 0x35, 0x5f, 0x3e, 0x6d, 0x78, 0xba, 0xcc, 0x94, 0x48, 0xb5,
  270. 0x48, 0xd7, 0xc4, 0xf5, 0x50, 0xf0, 0x8f, 0xfd, 0x37, 0xa7, 0xc5, 0x86, 0xa7, 0x37, 0xf5, 0xc1,
  271. 0x1f, 0x82, 0x6d, 0xba, 0x71, 0x07, 0xdc, 0xdb, 0xf0, 0x2a, 0x9c, 0x2d, 0xc2, 0x9e, 0x55, 0x8a,
  272. 0xeb, 0xe9, 0x7c, 0x3e, 0x0d, 0x2f, 0x7b, 0xe8, 0xdc, 0x05, 0x7b, 0x1b, 0x25, 0x05, 0xf7, 0x0f,
  273. 0xa0, 0xfb, 0xb5, 0x15, 0x13, 0x70, 0x73, 0x33, 0x55, 0xbf, 0xba, 0xcd, 0x76, 0x72, 0xe5, 0x98,
  274. 0x17, 0x3f, 0xfe, 0x08, 0x00, 0x00, 0xff, 0xff, 0x8d, 0x62, 0x58, 0xc4, 0x08, 0x02, 0x00, 0x00,
  275. }