proto2.pb.go 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: proto2.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 ToBeExtended struct {
  17. Foo *int32 `protobuf:"varint,1,req,name=foo" json:"foo,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 *ToBeExtended) Reset() { *m = ToBeExtended{} }
  24. func (m *ToBeExtended) String() string { return proto.CompactTextString(m) }
  25. func (*ToBeExtended) ProtoMessage() {}
  26. func (*ToBeExtended) Descriptor() ([]byte, []int) {
  27. return fileDescriptor_proto2_b16f7a513d0acdc0, []int{0}
  28. }
  29. var extRange_ToBeExtended = []proto.ExtensionRange{
  30. {Start: 10, End: 30},
  31. }
  32. func (*ToBeExtended) ExtensionRangeArray() []proto.ExtensionRange {
  33. return extRange_ToBeExtended
  34. }
  35. func (m *ToBeExtended) XXX_Unmarshal(b []byte) error {
  36. return xxx_messageInfo_ToBeExtended.Unmarshal(m, b)
  37. }
  38. func (m *ToBeExtended) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  39. return xxx_messageInfo_ToBeExtended.Marshal(b, m, deterministic)
  40. }
  41. func (dst *ToBeExtended) XXX_Merge(src proto.Message) {
  42. xxx_messageInfo_ToBeExtended.Merge(dst, src)
  43. }
  44. func (m *ToBeExtended) XXX_Size() int {
  45. return xxx_messageInfo_ToBeExtended.Size(m)
  46. }
  47. func (m *ToBeExtended) XXX_DiscardUnknown() {
  48. xxx_messageInfo_ToBeExtended.DiscardUnknown(m)
  49. }
  50. var xxx_messageInfo_ToBeExtended proto.InternalMessageInfo
  51. func (m *ToBeExtended) GetFoo() int32 {
  52. if m != nil && m.Foo != nil {
  53. return *m.Foo
  54. }
  55. return 0
  56. }
  57. func init() {
  58. proto.RegisterType((*ToBeExtended)(nil), "grpc.testing.ToBeExtended")
  59. }
  60. func init() { proto.RegisterFile("proto2.proto", fileDescriptor_proto2_b16f7a513d0acdc0) }
  61. var fileDescriptor_proto2_b16f7a513d0acdc0 = []byte{
  62. // 86 bytes of a gzipped FileDescriptorProto
  63. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0x28, 0xca, 0x2f,
  64. 0xc9, 0x37, 0xd2, 0x03, 0x53, 0x42, 0x3c, 0xe9, 0x45, 0x05, 0xc9, 0x7a, 0x25, 0xa9, 0xc5, 0x25,
  65. 0x99, 0x79, 0xe9, 0x4a, 0x6a, 0x5c, 0x3c, 0x21, 0xf9, 0x4e, 0xa9, 0xae, 0x15, 0x25, 0xa9, 0x79,
  66. 0x29, 0xa9, 0x29, 0x42, 0x02, 0x5c, 0xcc, 0x69, 0xf9, 0xf9, 0x12, 0x8c, 0x0a, 0x4c, 0x1a, 0xac,
  67. 0x41, 0x20, 0xa6, 0x16, 0x0b, 0x07, 0x97, 0x80, 0x3c, 0x20, 0x00, 0x00, 0xff, 0xff, 0x74, 0x86,
  68. 0x9c, 0x08, 0x44, 0x00, 0x00, 0x00,
  69. }