You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

76 lines
2.6 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: codec_perf/perf.proto
  3. package codec_perf
  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. // Buffer is a message that contains a body of bytes that is used to exercise
  17. // encoding and decoding overheads.
  18. type Buffer struct {
  19. Body []byte `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
  20. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  21. XXX_unrecognized []byte `json:"-"`
  22. XXX_sizecache int32 `json:"-"`
  23. }
  24. func (m *Buffer) Reset() { *m = Buffer{} }
  25. func (m *Buffer) String() string { return proto.CompactTextString(m) }
  26. func (*Buffer) ProtoMessage() {}
  27. func (*Buffer) Descriptor() ([]byte, []int) {
  28. return fileDescriptor_perf_6cc81a33b24d08e7, []int{0}
  29. }
  30. func (m *Buffer) XXX_Unmarshal(b []byte) error {
  31. return xxx_messageInfo_Buffer.Unmarshal(m, b)
  32. }
  33. func (m *Buffer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  34. return xxx_messageInfo_Buffer.Marshal(b, m, deterministic)
  35. }
  36. func (dst *Buffer) XXX_Merge(src proto.Message) {
  37. xxx_messageInfo_Buffer.Merge(dst, src)
  38. }
  39. func (m *Buffer) XXX_Size() int {
  40. return xxx_messageInfo_Buffer.Size(m)
  41. }
  42. func (m *Buffer) XXX_DiscardUnknown() {
  43. xxx_messageInfo_Buffer.DiscardUnknown(m)
  44. }
  45. var xxx_messageInfo_Buffer proto.InternalMessageInfo
  46. func (m *Buffer) GetBody() []byte {
  47. if m != nil {
  48. return m.Body
  49. }
  50. return nil
  51. }
  52. func init() {
  53. proto.RegisterType((*Buffer)(nil), "codec.perf.Buffer")
  54. }
  55. func init() { proto.RegisterFile("codec_perf/perf.proto", fileDescriptor_perf_6cc81a33b24d08e7) }
  56. var fileDescriptor_perf_6cc81a33b24d08e7 = []byte{
  57. // 83 bytes of a gzipped FileDescriptorProto
  58. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4d, 0xce, 0x4f, 0x49,
  59. 0x4d, 0x8e, 0x2f, 0x48, 0x2d, 0x4a, 0xd3, 0x07, 0x11, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42,
  60. 0x5c, 0x60, 0x61, 0x3d, 0x90, 0x88, 0x92, 0x0c, 0x17, 0x9b, 0x53, 0x69, 0x5a, 0x5a, 0x6a, 0x91,
  61. 0x90, 0x10, 0x17, 0x4b, 0x52, 0x7e, 0x4a, 0xa5, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x4f, 0x10, 0x98,
  62. 0x9d, 0xc4, 0x06, 0xd6, 0x60, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xa3, 0x5f, 0x4f, 0x3c, 0x49,
  63. 0x00, 0x00, 0x00,
  64. }