| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: api_proto/api.proto |
| |
| /* |
| Package api_proto is a generated protocol buffer package. |
| |
| It is generated from these files: |
| api_proto/api.proto |
| |
| It has these top-level messages: |
| Output |
| RepeatedString |
| */ |
| package api_proto |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| |
| type Output_Record_Field_ERROR int32 |
| |
| const ( |
| Output_Record_Field_UNKNOWN Output_Record_Field_ERROR = 0 |
| Output_Record_Field_MISSING Output_Record_Field_ERROR = 1 |
| ) |
| |
| var Output_Record_Field_ERROR_name = map[int32]string{ |
| 0: "UNKNOWN", |
| 1: "MISSING", |
| } |
| var Output_Record_Field_ERROR_value = map[string]int32{ |
| "UNKNOWN": 0, |
| "MISSING": 1, |
| } |
| |
| func (x Output_Record_Field_ERROR) String() string { |
| return proto.EnumName(Output_Record_Field_ERROR_name, int32(x)) |
| } |
| func (Output_Record_Field_ERROR) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor0, []int{0, 0, 0, 0} |
| } |
| |
| type Output struct { |
| Records []*Output_Record `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"` |
| } |
| |
| func (m *Output) Reset() { *m = Output{} } |
| func (m *Output) String() string { return proto.CompactTextString(m) } |
| func (*Output) ProtoMessage() {} |
| func (*Output) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } |
| |
| func (m *Output) GetRecords() []*Output_Record { |
| if m != nil { |
| return m.Records |
| } |
| return nil |
| } |
| |
| type Output_Record struct { |
| Fields []*Output_Record_Field `protobuf:"bytes,1,rep,name=fields" json:"fields,omitempty"` |
| } |
| |
| func (m *Output_Record) Reset() { *m = Output_Record{} } |
| func (m *Output_Record) String() string { return proto.CompactTextString(m) } |
| func (*Output_Record) ProtoMessage() {} |
| func (*Output_Record) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } |
| |
| func (m *Output_Record) GetFields() []*Output_Record_Field { |
| if m != nil { |
| return m.Fields |
| } |
| return nil |
| } |
| |
| type Output_Record_Field struct { |
| // Types that are valid to be assigned to Value: |
| // *Output_Record_Field_Text |
| // *Output_Record_Field_Number |
| // *Output_Record_Field_Error |
| // *Output_Record_Field_List |
| Value isOutput_Record_Field_Value `protobuf_oneof:"value"` |
| QuoteWhenPrinting bool `protobuf:"varint,7,opt,name=quote_when_printing,json=quoteWhenPrinting" json:"quote_when_printing,omitempty"` |
| } |
| |
| func (m *Output_Record_Field) Reset() { *m = Output_Record_Field{} } |
| func (m *Output_Record_Field) String() string { return proto.CompactTextString(m) } |
| func (*Output_Record_Field) ProtoMessage() {} |
| func (*Output_Record_Field) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0, 0} } |
| |
| type isOutput_Record_Field_Value interface{ isOutput_Record_Field_Value() } |
| |
| type Output_Record_Field_Text struct { |
| Text string `protobuf:"bytes,1,opt,name=text,oneof"` |
| } |
| type Output_Record_Field_Number struct { |
| Number int32 `protobuf:"varint,2,opt,name=number,oneof"` |
| } |
| type Output_Record_Field_Error struct { |
| Error Output_Record_Field_ERROR `protobuf:"varint,3,opt,name=error,enum=devtools.buildozer.Output_Record_Field_ERROR,oneof"` |
| } |
| type Output_Record_Field_List struct { |
| List *RepeatedString `protobuf:"bytes,5,opt,name=list,oneof"` |
| } |
| |
| func (*Output_Record_Field_Text) isOutput_Record_Field_Value() {} |
| func (*Output_Record_Field_Number) isOutput_Record_Field_Value() {} |
| func (*Output_Record_Field_Error) isOutput_Record_Field_Value() {} |
| func (*Output_Record_Field_List) isOutput_Record_Field_Value() {} |
| |
| func (m *Output_Record_Field) GetValue() isOutput_Record_Field_Value { |
| if m != nil { |
| return m.Value |
| } |
| return nil |
| } |
| |
| func (m *Output_Record_Field) GetText() string { |
| if x, ok := m.GetValue().(*Output_Record_Field_Text); ok { |
| return x.Text |
| } |
| return "" |
| } |
| |
| func (m *Output_Record_Field) GetNumber() int32 { |
| if x, ok := m.GetValue().(*Output_Record_Field_Number); ok { |
| return x.Number |
| } |
| return 0 |
| } |
| |
| func (m *Output_Record_Field) GetError() Output_Record_Field_ERROR { |
| if x, ok := m.GetValue().(*Output_Record_Field_Error); ok { |
| return x.Error |
| } |
| return Output_Record_Field_UNKNOWN |
| } |
| |
| func (m *Output_Record_Field) GetList() *RepeatedString { |
| if x, ok := m.GetValue().(*Output_Record_Field_List); ok { |
| return x.List |
| } |
| return nil |
| } |
| |
| func (m *Output_Record_Field) GetQuoteWhenPrinting() bool { |
| if m != nil { |
| return m.QuoteWhenPrinting |
| } |
| return false |
| } |
| |
| // XXX_OneofFuncs is for the internal use of the proto package. |
| 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{}) { |
| return _Output_Record_Field_OneofMarshaler, _Output_Record_Field_OneofUnmarshaler, _Output_Record_Field_OneofSizer, []interface{}{ |
| (*Output_Record_Field_Text)(nil), |
| (*Output_Record_Field_Number)(nil), |
| (*Output_Record_Field_Error)(nil), |
| (*Output_Record_Field_List)(nil), |
| } |
| } |
| |
| func _Output_Record_Field_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
| m := msg.(*Output_Record_Field) |
| // value |
| switch x := m.Value.(type) { |
| case *Output_Record_Field_Text: |
| b.EncodeVarint(1<<3 | proto.WireBytes) |
| b.EncodeStringBytes(x.Text) |
| case *Output_Record_Field_Number: |
| b.EncodeVarint(2<<3 | proto.WireVarint) |
| b.EncodeVarint(uint64(x.Number)) |
| case *Output_Record_Field_Error: |
| b.EncodeVarint(3<<3 | proto.WireVarint) |
| b.EncodeVarint(uint64(x.Error)) |
| case *Output_Record_Field_List: |
| b.EncodeVarint(5<<3 | proto.WireBytes) |
| if err := b.EncodeMessage(x.List); err != nil { |
| return err |
| } |
| case nil: |
| default: |
| return fmt.Errorf("Output_Record_Field.Value has unexpected type %T", x) |
| } |
| return nil |
| } |
| |
| func _Output_Record_Field_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
| m := msg.(*Output_Record_Field) |
| switch tag { |
| case 1: // value.text |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| x, err := b.DecodeStringBytes() |
| m.Value = &Output_Record_Field_Text{x} |
| return true, err |
| case 2: // value.number |
| if wire != proto.WireVarint { |
| return true, proto.ErrInternalBadWireType |
| } |
| x, err := b.DecodeVarint() |
| m.Value = &Output_Record_Field_Number{int32(x)} |
| return true, err |
| case 3: // value.error |
| if wire != proto.WireVarint { |
| return true, proto.ErrInternalBadWireType |
| } |
| x, err := b.DecodeVarint() |
| m.Value = &Output_Record_Field_Error{Output_Record_Field_ERROR(x)} |
| return true, err |
| case 5: // value.list |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| msg := new(RepeatedString) |
| err := b.DecodeMessage(msg) |
| m.Value = &Output_Record_Field_List{msg} |
| return true, err |
| default: |
| return false, nil |
| } |
| } |
| |
| func _Output_Record_Field_OneofSizer(msg proto.Message) (n int) { |
| m := msg.(*Output_Record_Field) |
| // value |
| switch x := m.Value.(type) { |
| case *Output_Record_Field_Text: |
| n += proto.SizeVarint(1<<3 | proto.WireBytes) |
| n += proto.SizeVarint(uint64(len(x.Text))) |
| n += len(x.Text) |
| case *Output_Record_Field_Number: |
| n += proto.SizeVarint(2<<3 | proto.WireVarint) |
| n += proto.SizeVarint(uint64(x.Number)) |
| case *Output_Record_Field_Error: |
| n += proto.SizeVarint(3<<3 | proto.WireVarint) |
| n += proto.SizeVarint(uint64(x.Error)) |
| case *Output_Record_Field_List: |
| s := proto.Size(x.List) |
| n += proto.SizeVarint(5<<3 | proto.WireBytes) |
| n += proto.SizeVarint(uint64(s)) |
| n += s |
| case nil: |
| default: |
| panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) |
| } |
| return n |
| } |
| |
| type RepeatedString struct { |
| Strings []string `protobuf:"bytes,1,rep,name=strings" json:"strings,omitempty"` |
| } |
| |
| func (m *RepeatedString) Reset() { *m = RepeatedString{} } |
| func (m *RepeatedString) String() string { return proto.CompactTextString(m) } |
| func (*RepeatedString) ProtoMessage() {} |
| func (*RepeatedString) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } |
| |
| func (m *RepeatedString) GetStrings() []string { |
| if m != nil { |
| return m.Strings |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*Output)(nil), "devtools.buildozer.Output") |
| proto.RegisterType((*Output_Record)(nil), "devtools.buildozer.Output.Record") |
| proto.RegisterType((*Output_Record_Field)(nil), "devtools.buildozer.Output.Record.Field") |
| proto.RegisterType((*RepeatedString)(nil), "devtools.buildozer.RepeatedString") |
| proto.RegisterEnum("devtools.buildozer.Output_Record_Field_ERROR", Output_Record_Field_ERROR_name, Output_Record_Field_ERROR_value) |
| } |
| |
| func init() { proto.RegisterFile("api_proto/api.proto", fileDescriptor0) } |
| |
| var fileDescriptor0 = []byte{ |
| // 346 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6a, 0xe3, 0x30, |
| 0x10, 0x86, 0xad, 0x24, 0xb6, 0x37, 0x63, 0x08, 0x59, 0x65, 0x0f, 0x22, 0x27, 0xc7, 0x97, 0x35, |
| 0x0b, 0xab, 0x85, 0xec, 0xa5, 0xd0, 0x43, 0x21, 0x90, 0x36, 0xa1, 0xd4, 0x29, 0x0a, 0x25, 0xd0, |
| 0x4b, 0x70, 0x6a, 0x35, 0x11, 0xb8, 0x96, 0x2b, 0x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