proto2_ext2.pb.go 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: proto2_ext2.proto
  3. package grpc_testing
  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 AnotherExtension struct {
  17. Whatchamacallit *int32 `protobuf:"varint,1,opt,name=whatchamacallit" json:"whatchamacallit,omitempty"`
  18. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  19. XXX_unrecognized []byte `json:"-"`
  20. XXX_sizecache int32 `json:"-"`
  21. }
  22. func (m *AnotherExtension) Reset() { *m = AnotherExtension{} }
  23. func (m *AnotherExtension) String() string { return proto.CompactTextString(m) }
  24. func (*AnotherExtension) ProtoMessage() {}
  25. func (*AnotherExtension) Descriptor() ([]byte, []int) {
  26. return fileDescriptor_proto2_ext2_039d342873655470, []int{0}
  27. }
  28. func (m *AnotherExtension) XXX_Unmarshal(b []byte) error {
  29. return xxx_messageInfo_AnotherExtension.Unmarshal(m, b)
  30. }
  31. func (m *AnotherExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  32. return xxx_messageInfo_AnotherExtension.Marshal(b, m, deterministic)
  33. }
  34. func (dst *AnotherExtension) XXX_Merge(src proto.Message) {
  35. xxx_messageInfo_AnotherExtension.Merge(dst, src)
  36. }
  37. func (m *AnotherExtension) XXX_Size() int {
  38. return xxx_messageInfo_AnotherExtension.Size(m)
  39. }
  40. func (m *AnotherExtension) XXX_DiscardUnknown() {
  41. xxx_messageInfo_AnotherExtension.DiscardUnknown(m)
  42. }
  43. var xxx_messageInfo_AnotherExtension proto.InternalMessageInfo
  44. func (m *AnotherExtension) GetWhatchamacallit() int32 {
  45. if m != nil && m.Whatchamacallit != nil {
  46. return *m.Whatchamacallit
  47. }
  48. return 0
  49. }
  50. var E_Frob = &proto.ExtensionDesc{
  51. ExtendedType: (*ToBeExtended)(nil),
  52. ExtensionType: (*string)(nil),
  53. Field: 23,
  54. Name: "grpc.testing.frob",
  55. Tag: "bytes,23,opt,name=frob",
  56. Filename: "proto2_ext2.proto",
  57. }
  58. var E_Nitz = &proto.ExtensionDesc{
  59. ExtendedType: (*ToBeExtended)(nil),
  60. ExtensionType: (*AnotherExtension)(nil),
  61. Field: 29,
  62. Name: "grpc.testing.nitz",
  63. Tag: "bytes,29,opt,name=nitz",
  64. Filename: "proto2_ext2.proto",
  65. }
  66. func init() {
  67. proto.RegisterType((*AnotherExtension)(nil), "grpc.testing.AnotherExtension")
  68. proto.RegisterExtension(E_Frob)
  69. proto.RegisterExtension(E_Nitz)
  70. }
  71. func init() { proto.RegisterFile("proto2_ext2.proto", fileDescriptor_proto2_ext2_039d342873655470) }
  72. var fileDescriptor_proto2_ext2_039d342873655470 = []byte{
  73. // 165 bytes of a gzipped FileDescriptorProto
  74. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2c, 0x28, 0xca, 0x2f,
  75. 0xc9, 0x37, 0x8a, 0x4f, 0xad, 0x28, 0x31, 0xd2, 0x03, 0xb3, 0x85, 0x78, 0xd2, 0x8b, 0x0a, 0x92,
  76. 0xf5, 0x4a, 0x52, 0x8b, 0x4b, 0x32, 0xf3, 0xd2, 0xa5, 0x78, 0x20, 0x0a, 0x20, 0x72, 0x4a, 0x36,
  77. 0x5c, 0x02, 0x8e, 0x79, 0xf9, 0x25, 0x19, 0xa9, 0x45, 0xae, 0x15, 0x25, 0xa9, 0x79, 0xc5, 0x99,
  78. 0xf9, 0x79, 0x42, 0x1a, 0x5c, 0xfc, 0xe5, 0x19, 0x89, 0x25, 0xc9, 0x19, 0x89, 0xb9, 0x89, 0xc9,
  79. 0x89, 0x39, 0x39, 0x99, 0x25, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xac, 0x41, 0xe8, 0xc2, 0x56, 0x7a,
  80. 0x5c, 0x2c, 0x69, 0x45, 0xf9, 0x49, 0x42, 0x52, 0x7a, 0xc8, 0x56, 0xe8, 0x85, 0xe4, 0x3b, 0xa5,
  81. 0x82, 0x8d, 0x4b, 0x49, 0x4d, 0x91, 0x10, 0x57, 0x60, 0xd4, 0xe0, 0x0c, 0x02, 0xab, 0xb3, 0xf2,
  82. 0xe3, 0x62, 0xc9, 0xcb, 0x2c, 0xa9, 0xc2, 0xab, 0x5e, 0x56, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x0e,
  83. 0x55, 0x05, 0xba, 0x1b, 0x83, 0xc0, 0xe6, 0x00, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf0, 0x7e, 0x0d,
  84. 0x26, 0xed, 0x00, 0x00, 0x00,
  85. }