more_test_objects.pb.go 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. // Code generated by protoc-gen-go.
  2. // source: more_test_objects.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package jsonpb is a generated protocol buffer package.
  6. It is generated from these files:
  7. more_test_objects.proto
  8. test_objects.proto
  9. It has these top-level messages:
  10. Simple3
  11. Mappy
  12. Simple
  13. Repeats
  14. Widget
  15. Maps
  16. MsgWithOneof
  17. Real
  18. Complex
  19. KnownTypes
  20. */
  21. package jsonpb
  22. import proto "github.com/golang/protobuf/proto"
  23. import fmt "fmt"
  24. import math "math"
  25. // Reference imports to suppress errors if they are not otherwise used.
  26. var _ = proto.Marshal
  27. var _ = fmt.Errorf
  28. var _ = math.Inf
  29. // This is a compile-time assertion to ensure that this generated file
  30. // is compatible with the proto package it is being compiled against.
  31. const _ = proto.ProtoPackageIsVersion1
  32. type Numeral int32
  33. const (
  34. Numeral_UNKNOWN Numeral = 0
  35. Numeral_ARABIC Numeral = 1
  36. Numeral_ROMAN Numeral = 2
  37. )
  38. var Numeral_name = map[int32]string{
  39. 0: "UNKNOWN",
  40. 1: "ARABIC",
  41. 2: "ROMAN",
  42. }
  43. var Numeral_value = map[string]int32{
  44. "UNKNOWN": 0,
  45. "ARABIC": 1,
  46. "ROMAN": 2,
  47. }
  48. func (x Numeral) String() string {
  49. return proto.EnumName(Numeral_name, int32(x))
  50. }
  51. func (Numeral) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  52. type Simple3 struct {
  53. Dub float64 `protobuf:"fixed64,1,opt,name=dub" json:"dub,omitempty"`
  54. }
  55. func (m *Simple3) Reset() { *m = Simple3{} }
  56. func (m *Simple3) String() string { return proto.CompactTextString(m) }
  57. func (*Simple3) ProtoMessage() {}
  58. func (*Simple3) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  59. type Mappy struct {
  60. Nummy map[int64]int32 `protobuf:"bytes,1,rep,name=nummy" json:"nummy,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  61. Strry map[string]string `protobuf:"bytes,2,rep,name=strry" json:"strry,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  62. Objjy map[int32]*Simple3 `protobuf:"bytes,3,rep,name=objjy" json:"objjy,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  63. Buggy map[int64]string `protobuf:"bytes,4,rep,name=buggy" json:"buggy,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  64. Booly map[bool]bool `protobuf:"bytes,5,rep,name=booly" json:"booly,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  65. Enumy map[string]Numeral `protobuf:"bytes,6,rep,name=enumy" json:"enumy,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=jsonpb.Numeral"`
  66. }
  67. func (m *Mappy) Reset() { *m = Mappy{} }
  68. func (m *Mappy) String() string { return proto.CompactTextString(m) }
  69. func (*Mappy) ProtoMessage() {}
  70. func (*Mappy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  71. func (m *Mappy) GetNummy() map[int64]int32 {
  72. if m != nil {
  73. return m.Nummy
  74. }
  75. return nil
  76. }
  77. func (m *Mappy) GetStrry() map[string]string {
  78. if m != nil {
  79. return m.Strry
  80. }
  81. return nil
  82. }
  83. func (m *Mappy) GetObjjy() map[int32]*Simple3 {
  84. if m != nil {
  85. return m.Objjy
  86. }
  87. return nil
  88. }
  89. func (m *Mappy) GetBuggy() map[int64]string {
  90. if m != nil {
  91. return m.Buggy
  92. }
  93. return nil
  94. }
  95. func (m *Mappy) GetBooly() map[bool]bool {
  96. if m != nil {
  97. return m.Booly
  98. }
  99. return nil
  100. }
  101. func (m *Mappy) GetEnumy() map[string]Numeral {
  102. if m != nil {
  103. return m.Enumy
  104. }
  105. return nil
  106. }
  107. func init() {
  108. proto.RegisterType((*Simple3)(nil), "jsonpb.Simple3")
  109. proto.RegisterType((*Mappy)(nil), "jsonpb.Mappy")
  110. proto.RegisterEnum("jsonpb.Numeral", Numeral_name, Numeral_value)
  111. }
  112. var fileDescriptor0 = []byte{
  113. // 357 bytes of a gzipped FileDescriptorProto
  114. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x93, 0x4d, 0x4b, 0xc3, 0x40,
  115. 0x10, 0x86, 0x4d, 0xe2, 0xa6, 0xcd, 0x14, 0x34, 0x2c, 0x82, 0x8b, 0x5e, 0x4a, 0x41, 0x28, 0x82,
  116. 0x39, 0xb4, 0x97, 0xe2, 0xad, 0x95, 0x1e, 0x8a, 0x34, 0x85, 0x14, 0xf1, 0x58, 0x1a, 0x5d, 0x8a,
  117. 0x31, 0xc9, 0x86, 0x7c, 0x08, 0xfb, 0x83, 0xfc, 0x9f, 0x32, 0x9b, 0xd4, 0xc4, 0xb2, 0xe0, 0x6d,
  118. 0x92, 0xf7, 0x79, 0xc2, 0xec, 0x1b, 0x16, 0xae, 0x13, 0x91, 0xf3, 0x5d, 0xc9, 0x8b, 0x72, 0x27,
  119. 0xc2, 0x88, 0xbf, 0x95, 0x85, 0x97, 0xe5, 0xa2, 0x14, 0xd4, 0x8e, 0x0a, 0x91, 0x66, 0xe1, 0xe8,
  120. 0x16, 0x7a, 0xdb, 0x8f, 0x24, 0x8b, 0xf9, 0x94, 0xba, 0x60, 0xbd, 0x57, 0x21, 0x33, 0x86, 0xc6,
  121. 0xd8, 0x08, 0x70, 0x1c, 0x7d, 0x13, 0x20, 0xeb, 0x7d, 0x96, 0x49, 0xea, 0x01, 0x49, 0xab, 0x24,
  122. 0x91, 0xcc, 0x18, 0x5a, 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x07, 0xe8, 0x35, 0x6f, 0xe9, 0x00, 0x7a, 0x2f, 0xfe, 0xb3, 0xbf, 0x79, 0xf5, 0xdd,
  134. 0x33, 0x0a, 0x60, 0xcf, 0x83, 0xf9, 0x62, 0xf5, 0xe4, 0x1a, 0xd4, 0x01, 0x12, 0x6c, 0xd6, 0x73,
  135. 0xdf, 0x35, 0x43, 0x5b, 0x5d, 0x81, 0xe9, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3d, 0x04, 0xff,
  136. 0x62, 0x1d, 0x03, 0x00, 0x00,
  137. }