extension_base.pb.go 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: extension_base/extension_base.proto
  3. package extension_base // import "github.com/golang/protobuf/protoc-gen-go/testdata/extension_base"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. type BaseMessage struct {
  17. Height *int32 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
  18. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  19. proto.XXX_InternalExtensions `json:"-"`
  20. XXX_unrecognized []byte `json:"-"`
  21. XXX_sizecache int32 `json:"-"`
  22. }
  23. func (m *BaseMessage) Reset() { *m = BaseMessage{} }
  24. func (m *BaseMessage) String() string { return proto.CompactTextString(m) }
  25. func (*BaseMessage) ProtoMessage() {}
  26. func (*BaseMessage) Descriptor() ([]byte, []int) {
  27. return fileDescriptor_extension_base_41d3c712c9fc37fc, []int{0}
  28. }
  29. var extRange_BaseMessage = []proto.ExtensionRange{
  30. {Start: 4, End: 9},
  31. {Start: 16, End: 536870911},
  32. }
  33. func (*BaseMessage) ExtensionRangeArray() []proto.ExtensionRange {
  34. return extRange_BaseMessage
  35. }
  36. func (m *BaseMessage) XXX_Unmarshal(b []byte) error {
  37. return xxx_messageInfo_BaseMessage.Unmarshal(m, b)
  38. }
  39. func (m *BaseMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  40. return xxx_messageInfo_BaseMessage.Marshal(b, m, deterministic)
  41. }
  42. func (dst *BaseMessage) XXX_Merge(src proto.Message) {
  43. xxx_messageInfo_BaseMessage.Merge(dst, src)
  44. }
  45. func (m *BaseMessage) XXX_Size() int {
  46. return xxx_messageInfo_BaseMessage.Size(m)
  47. }
  48. func (m *BaseMessage) XXX_DiscardUnknown() {
  49. xxx_messageInfo_BaseMessage.DiscardUnknown(m)
  50. }
  51. var xxx_messageInfo_BaseMessage proto.InternalMessageInfo
  52. func (m *BaseMessage) GetHeight() int32 {
  53. if m != nil && m.Height != nil {
  54. return *m.Height
  55. }
  56. return 0
  57. }
  58. // Another message that may be extended, using message_set_wire_format.
  59. type OldStyleMessage struct {
  60. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  61. proto.XXX_InternalExtensions `protobuf_messageset:"1" json:"-"`
  62. XXX_unrecognized []byte `json:"-"`
  63. XXX_sizecache int32 `json:"-"`
  64. }
  65. func (m *OldStyleMessage) Reset() { *m = OldStyleMessage{} }
  66. func (m *OldStyleMessage) String() string { return proto.CompactTextString(m) }
  67. func (*OldStyleMessage) ProtoMessage() {}
  68. func (*OldStyleMessage) Descriptor() ([]byte, []int) {
  69. return fileDescriptor_extension_base_41d3c712c9fc37fc, []int{1}
  70. }
  71. func (m *OldStyleMessage) MarshalJSON() ([]byte, error) {
  72. return proto.MarshalMessageSetJSON(&m.XXX_InternalExtensions)
  73. }
  74. func (m *OldStyleMessage) UnmarshalJSON(buf []byte) error {
  75. return proto.UnmarshalMessageSetJSON(buf, &m.XXX_InternalExtensions)
  76. }
  77. var extRange_OldStyleMessage = []proto.ExtensionRange{
  78. {Start: 100, End: 2147483646},
  79. }
  80. func (*OldStyleMessage) ExtensionRangeArray() []proto.ExtensionRange {
  81. return extRange_OldStyleMessage
  82. }
  83. func (m *OldStyleMessage) XXX_Unmarshal(b []byte) error {
  84. return xxx_messageInfo_OldStyleMessage.Unmarshal(m, b)
  85. }
  86. func (m *OldStyleMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  87. return xxx_messageInfo_OldStyleMessage.Marshal(b, m, deterministic)
  88. }
  89. func (dst *OldStyleMessage) XXX_Merge(src proto.Message) {
  90. xxx_messageInfo_OldStyleMessage.Merge(dst, src)
  91. }
  92. func (m *OldStyleMessage) XXX_Size() int {
  93. return xxx_messageInfo_OldStyleMessage.Size(m)
  94. }
  95. func (m *OldStyleMessage) XXX_DiscardUnknown() {
  96. xxx_messageInfo_OldStyleMessage.DiscardUnknown(m)
  97. }
  98. var xxx_messageInfo_OldStyleMessage proto.InternalMessageInfo
  99. func init() {
  100. proto.RegisterType((*BaseMessage)(nil), "extension_base.BaseMessage")
  101. proto.RegisterType((*OldStyleMessage)(nil), "extension_base.OldStyleMessage")
  102. }
  103. func init() {
  104. proto.RegisterFile("extension_base/extension_base.proto", fileDescriptor_extension_base_41d3c712c9fc37fc)
  105. }
  106. var fileDescriptor_extension_base_41d3c712c9fc37fc = []byte{
  107. // 179 bytes of a gzipped FileDescriptorProto
  108. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4e, 0xad, 0x28, 0x49,
  109. 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x8b, 0x4f, 0x4a, 0x2c, 0x4e, 0xd5, 0x47, 0xe5, 0xea, 0x15, 0x14,
  110. 0xe5, 0x97, 0xe4, 0x0b, 0xf1, 0xa1, 0x8a, 0x2a, 0x99, 0x72, 0x71, 0x3b, 0x25, 0x16, 0xa7, 0xfa,
  111. 0xa6, 0x16, 0x17, 0x27, 0xa6, 0xa7, 0x0a, 0x89, 0x71, 0xb1, 0x65, 0xa4, 0x66, 0xa6, 0x67, 0x94,
  112. 0x48, 0x30, 0x2a, 0x30, 0x6a, 0xb0, 0x06, 0x41, 0x79, 0x5a, 0x2c, 0x1c, 0x2c, 0x02, 0x5c, 0x5a,
  113. 0x1c, 0x1c, 0x02, 0x02, 0x0d, 0x0d, 0x0d, 0x0d, 0x4c, 0x4a, 0xf2, 0x5c, 0xfc, 0xfe, 0x39, 0x29,
  114. 0xc1, 0x25, 0x95, 0x39, 0x30, 0xad, 0x5a, 0x1c, 0x1c, 0x29, 0x02, 0xff, 0xff, 0xff, 0xff, 0xcf,
  115. 0x6e, 0xc5, 0xc4, 0xc1, 0xe8, 0xe4, 0x14, 0xe5, 0x90, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97,
  116. 0x9c, 0x9f, 0xab, 0x9f, 0x9e, 0x9f, 0x93, 0x98, 0x97, 0xae, 0x0f, 0x76, 0x42, 0x52, 0x69, 0x1a,
  117. 0x84, 0x91, 0xac, 0x9b, 0x9e, 0x9a, 0xa7, 0x9b, 0x9e, 0xaf, 0x5f, 0x92, 0x5a, 0x5c, 0x92, 0x92,
  118. 0x58, 0x92, 0x88, 0xe6, 0x62, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x7f, 0xb7, 0x2a, 0xd1,
  119. 0x00, 0x00, 0x00,
  120. }