more_test_objects.pb.go 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. // A compilation error at this line likely means your copy of the
  32. // proto package needs to be updated.
  33. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  34. type Numeral int32
  35. const (
  36. Numeral_UNKNOWN Numeral = 0
  37. Numeral_ARABIC Numeral = 1
  38. Numeral_ROMAN Numeral = 2
  39. )
  40. var Numeral_name = map[int32]string{
  41. 0: "UNKNOWN",
  42. 1: "ARABIC",
  43. 2: "ROMAN",
  44. }
  45. var Numeral_value = map[string]int32{
  46. "UNKNOWN": 0,
  47. "ARABIC": 1,
  48. "ROMAN": 2,
  49. }
  50. func (x Numeral) String() string {
  51. return proto.EnumName(Numeral_name, int32(x))
  52. }
  53. func (Numeral) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  54. type Simple3 struct {
  55. Dub float64 `protobuf:"fixed64,1,opt,name=dub" json:"dub,omitempty"`
  56. }
  57. func (m *Simple3) Reset() { *m = Simple3{} }
  58. func (m *Simple3) String() string { return proto.CompactTextString(m) }
  59. func (*Simple3) ProtoMessage() {}
  60. func (*Simple3) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  61. type Mappy struct {
  62. 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"`
  63. 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"`
  64. 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"`
  65. 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"`
  66. 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"`
  67. 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"`
  68. S32Booly map[int32]bool `protobuf:"bytes,7,rep,name=s32booly" json:"s32booly,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  69. S64Booly map[int64]bool `protobuf:"bytes,8,rep,name=s64booly" json:"s64booly,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  70. U32Booly map[uint32]bool `protobuf:"bytes,9,rep,name=u32booly" json:"u32booly,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  71. U64Booly map[uint64]bool `protobuf:"bytes,10,rep,name=u64booly" json:"u64booly,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  72. }
  73. func (m *Mappy) Reset() { *m = Mappy{} }
  74. func (m *Mappy) String() string { return proto.CompactTextString(m) }
  75. func (*Mappy) ProtoMessage() {}
  76. func (*Mappy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  77. func (m *Mappy) GetNummy() map[int64]int32 {
  78. if m != nil {
  79. return m.Nummy
  80. }
  81. return nil
  82. }
  83. func (m *Mappy) GetStrry() map[string]string {
  84. if m != nil {
  85. return m.Strry
  86. }
  87. return nil
  88. }
  89. func (m *Mappy) GetObjjy() map[int32]*Simple3 {
  90. if m != nil {
  91. return m.Objjy
  92. }
  93. return nil
  94. }
  95. func (m *Mappy) GetBuggy() map[int64]string {
  96. if m != nil {
  97. return m.Buggy
  98. }
  99. return nil
  100. }
  101. func (m *Mappy) GetBooly() map[bool]bool {
  102. if m != nil {
  103. return m.Booly
  104. }
  105. return nil
  106. }
  107. func (m *Mappy) GetEnumy() map[string]Numeral {
  108. if m != nil {
  109. return m.Enumy
  110. }
  111. return nil
  112. }
  113. func (m *Mappy) GetS32Booly() map[int32]bool {
  114. if m != nil {
  115. return m.S32Booly
  116. }
  117. return nil
  118. }
  119. func (m *Mappy) GetS64Booly() map[int64]bool {
  120. if m != nil {
  121. return m.S64Booly
  122. }
  123. return nil
  124. }
  125. func (m *Mappy) GetU32Booly() map[uint32]bool {
  126. if m != nil {
  127. return m.U32Booly
  128. }
  129. return nil
  130. }
  131. func (m *Mappy) GetU64Booly() map[uint64]bool {
  132. if m != nil {
  133. return m.U64Booly
  134. }
  135. return nil
  136. }
  137. func init() {
  138. proto.RegisterType((*Simple3)(nil), "jsonpb.Simple3")
  139. proto.RegisterType((*Mappy)(nil), "jsonpb.Mappy")
  140. proto.RegisterEnum("jsonpb.Numeral", Numeral_name, Numeral_value)
  141. }
  142. func init() { proto.RegisterFile("more_test_objects.proto", fileDescriptor0) }
  143. var fileDescriptor0 = []byte{
  144. // 444 bytes of a gzipped FileDescriptorProto
  145. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x94, 0xc1, 0x6b, 0xdb, 0x30,
  146. 0x14, 0x87, 0xe7, 0xa4, 0x4e, 0xec, 0x17, 0xba, 0x19, 0x31, 0x98, 0x58, 0x2f, 0xa1, 0x30, 0x08,
  147. 0x83, 0xf9, 0x90, 0x8c, 0xad, 0x6c, 0xa7, 0x74, 0xf4, 0x50, 0x46, 0x1d, 0x70, 0x09, 0x3b, 0x96,
  148. 0x78, 0x13, 0x65, 0x9e, 0x6d, 0x19, 0xdb, 0x1a, 0xe8, 0x8f, 0x1f, 0x8c, 0x27, 0xcb, 0xb5, 0x6c,
  149. 0x14, 0xd2, 0x9b, 0xcc, 0xef, 0xfb, 0xf2, 0x9e, 0xf4, 0x1e, 0x81, 0x37, 0x39, 0xaf, 0xd8, 0x43,
  150. 0xc3, 0xea, 0xe6, 0x81, 0x27, 0x29, 0xfb, 0xd9, 0xd4, 0x61, 0x59, 0xf1, 0x86, 0x93, 0x59, 0x5a,
  151. 0xf3, 0xa2, 0x4c, 0x2e, 0x2f, 0x60, 0x7e, 0xff, 0x3b, 0x2f, 0x33, 0xb6, 0x21, 0x01, 0x4c, 0x7f,
  152. 0x89, 0x84, 0x3a, 0x4b, 0x67, 0xe5, 0xc4, 0x78, 0xbc, 0xfc, 0xe7, 0x81, 0x7b, 0x77, 0x28, 0x4b,
  153. 0x49, 0x42, 0x70, 0x0b, 0x91, 0xe7, 0x92, 0x3a, 0xcb, 0xe9, 0x6a, 0xb1, 0xa6, 0x61, 0xab, 0x87,
  154. 0x2a, 0x0d, 0x23, 0x8c, 0x6e, 0x8a, 0xa6, 0x92, 0x71, 0x8b, 0x21, 0x5f, 0x37, 0x55, 0x25, 0xe9,
  155. 0xc4, 0xc6, 0xdf, 0x63, 0xa4, 0x79, 0x85, 0x21, 0xcf, 0x93, 0x34, 0x95, 0x74, 0x6a, 0xe3,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