proto2_ext.pb.go 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: proto2_ext.proto
  3. package grpc_testing
  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. type Extension struct {
  19. Whatzit *int32 `protobuf:"varint,1,opt,name=whatzit" json:"whatzit,omitempty"`
  20. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  21. XXX_unrecognized []byte `json:"-"`
  22. XXX_sizecache int32 `json:"-"`
  23. }
  24. func (m *Extension) Reset() { *m = Extension{} }
  25. func (m *Extension) String() string { return proto.CompactTextString(m) }
  26. func (*Extension) ProtoMessage() {}
  27. func (*Extension) Descriptor() ([]byte, []int) {
  28. return fileDescriptor_85b2817ade17959b, []int{0}
  29. }
  30. func (m *Extension) XXX_Unmarshal(b []byte) error {
  31. return xxx_messageInfo_Extension.Unmarshal(m, b)
  32. }
  33. func (m *Extension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  34. return xxx_messageInfo_Extension.Marshal(b, m, deterministic)
  35. }
  36. func (m *Extension) XXX_Merge(src proto.Message) {
  37. xxx_messageInfo_Extension.Merge(m, src)
  38. }
  39. func (m *Extension) XXX_Size() int {
  40. return xxx_messageInfo_Extension.Size(m)
  41. }
  42. func (m *Extension) XXX_DiscardUnknown() {
  43. xxx_messageInfo_Extension.DiscardUnknown(m)
  44. }
  45. var xxx_messageInfo_Extension proto.InternalMessageInfo
  46. func (m *Extension) GetWhatzit() int32 {
  47. if m != nil && m.Whatzit != nil {
  48. return *m.Whatzit
  49. }
  50. return 0
  51. }
  52. var E_Foo = &proto.ExtensionDesc{
  53. ExtendedType: (*ToBeExtended)(nil),
  54. ExtensionType: (*int32)(nil),
  55. Field: 13,
  56. Name: "grpc.testing.foo",
  57. Tag: "varint,13,opt,name=foo",
  58. Filename: "proto2_ext.proto",
  59. }
  60. var E_Bar = &proto.ExtensionDesc{
  61. ExtendedType: (*ToBeExtended)(nil),
  62. ExtensionType: (*Extension)(nil),
  63. Field: 17,
  64. Name: "grpc.testing.bar",
  65. Tag: "bytes,17,opt,name=bar",
  66. Filename: "proto2_ext.proto",
  67. }
  68. var E_Baz = &proto.ExtensionDesc{
  69. ExtendedType: (*ToBeExtended)(nil),
  70. ExtensionType: (*SearchRequest)(nil),
  71. Field: 19,
  72. Name: "grpc.testing.baz",
  73. Tag: "bytes,19,opt,name=baz",
  74. Filename: "proto2_ext.proto",
  75. }
  76. func init() {
  77. proto.RegisterType((*Extension)(nil), "grpc.testing.Extension")
  78. proto.RegisterExtension(E_Foo)
  79. proto.RegisterExtension(E_Bar)
  80. proto.RegisterExtension(E_Baz)
  81. }
  82. func init() { proto.RegisterFile("proto2_ext.proto", fileDescriptor_85b2817ade17959b) }
  83. var fileDescriptor_85b2817ade17959b = []byte{
  84. // 179 bytes of a gzipped FileDescriptorProto
  85. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x28, 0x28, 0xca, 0x2f,
  86. 0xc9, 0x37, 0x8a, 0x4f, 0xad, 0x28, 0xd1, 0x03, 0x33, 0x85, 0x78, 0xd2, 0x8b, 0x0a, 0x92, 0xf5,
  87. 0x4a, 0x52, 0x8b, 0x4b, 0x32, 0xf3, 0xd2, 0xa5, 0x78, 0x20, 0xf2, 0x10, 0x39, 0x29, 0x2e, 0x90,
  88. 0x30, 0x84, 0xad, 0xa4, 0xca, 0xc5, 0xe9, 0x5a, 0x51, 0x92, 0x9a, 0x57, 0x9c, 0x99, 0x9f, 0x27,
  89. 0x24, 0xc1, 0xc5, 0x5e, 0x9e, 0x91, 0x58, 0x52, 0x95, 0x59, 0x22, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1,
  90. 0x1a, 0x04, 0xe3, 0x5a, 0xe9, 0x70, 0x31, 0xa7, 0xe5, 0xe7, 0x0b, 0x49, 0xe9, 0x21, 0x1b, 0xab,
  91. 0x17, 0x92, 0xef, 0x94, 0x0a, 0xd6, 0x9d, 0x92, 0x9a, 0x22, 0xc1, 0x0b, 0xd6, 0x01, 0x52, 0x66,
  92. 0xe5, 0xca, 0xc5, 0x9c, 0x94, 0x58, 0x84, 0x57, 0xb5, 0xa0, 0x02, 0xa3, 0x06, 0xb7, 0x91, 0x38,
  93. 0xaa, 0x0a, 0xb8, 0x4b, 0x82, 0x40, 0xfa, 0xad, 0x3c, 0x41, 0xc6, 0x54, 0xe1, 0x35, 0x46, 0x18,
  94. 0x6c, 0x8c, 0x34, 0xaa, 0x8a, 0xe0, 0xd4, 0xc4, 0xa2, 0xe4, 0x8c, 0xa0, 0xd4, 0xc2, 0xd2, 0xd4,
  95. 0xe2, 0x12, 0x90, 0x51, 0x55, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x71, 0x6b, 0x94, 0x9f, 0x21,
  96. 0x01, 0x00, 0x00,
  97. }