perf.pb.go 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: test/codec_perf/perf.proto
  3. package codec_perf
  4. import (
  5. fmt "fmt"
  6. proto "github.com/golang/protobuf/proto"
  7. math "math"
  8. )
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  18. // Buffer is a message that contains a body of bytes that is used to exercise
  19. // encoding and decoding overheads.
  20. type Buffer struct {
  21. Body []byte `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
  22. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  23. XXX_unrecognized []byte `json:"-"`
  24. XXX_sizecache int32 `json:"-"`
  25. }
  26. func (m *Buffer) Reset() { *m = Buffer{} }
  27. func (m *Buffer) String() string { return proto.CompactTextString(m) }
  28. func (*Buffer) ProtoMessage() {}
  29. func (*Buffer) Descriptor() ([]byte, []int) {
  30. return fileDescriptor_a913550de912e506, []int{0}
  31. }
  32. func (m *Buffer) XXX_Unmarshal(b []byte) error {
  33. return xxx_messageInfo_Buffer.Unmarshal(m, b)
  34. }
  35. func (m *Buffer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  36. return xxx_messageInfo_Buffer.Marshal(b, m, deterministic)
  37. }
  38. func (m *Buffer) XXX_Merge(src proto.Message) {
  39. xxx_messageInfo_Buffer.Merge(m, src)
  40. }
  41. func (m *Buffer) XXX_Size() int {
  42. return xxx_messageInfo_Buffer.Size(m)
  43. }
  44. func (m *Buffer) XXX_DiscardUnknown() {
  45. xxx_messageInfo_Buffer.DiscardUnknown(m)
  46. }
  47. var xxx_messageInfo_Buffer proto.InternalMessageInfo
  48. func (m *Buffer) GetBody() []byte {
  49. if m != nil {
  50. return m.Body
  51. }
  52. return nil
  53. }
  54. func init() {
  55. proto.RegisterType((*Buffer)(nil), "codec.perf.Buffer")
  56. }
  57. func init() { proto.RegisterFile("test/codec_perf/perf.proto", fileDescriptor_a913550de912e506) }
  58. var fileDescriptor_a913550de912e506 = []byte{
  59. // 118 bytes of a gzipped FileDescriptorProto
  60. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2a, 0x49, 0x2d, 0x2e,
  61. 0xd1, 0x4f, 0xce, 0x4f, 0x49, 0x4d, 0x8e, 0x2f, 0x48, 0x2d, 0x4a, 0xd3, 0x07, 0x11, 0x7a, 0x05,
  62. 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x5c, 0x60, 0x61, 0x3d, 0x90, 0x88, 0x92, 0x0c, 0x17, 0x9b, 0x53,
  63. 0x69, 0x5a, 0x5a, 0x6a, 0x91, 0x90, 0x10, 0x17, 0x4b, 0x52, 0x7e, 0x4a, 0xa5, 0x04, 0xa3, 0x02,
  64. 0xa3, 0x06, 0x4f, 0x10, 0x98, 0xed, 0xa4, 0x11, 0xa5, 0x96, 0x9e, 0x9f, 0x9f, 0x9e, 0x93, 0xaa,
  65. 0x97, 0x9e, 0x9f, 0x93, 0x98, 0x97, 0xae, 0x97, 0x5f, 0x94, 0xae, 0x9f, 0x5e, 0x54, 0x90, 0xac,
  66. 0x8f, 0x66, 0x7c, 0x12, 0x1b, 0xd8, 0x68, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0c, 0xdb,
  67. 0x49, 0x8b, 0x78, 0x00, 0x00, 0x00,
  68. }