proto2.pb.go 2.8 KB

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