importing.pb.go 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: import_public/importing/importing.proto
  3. package importing
  4. import (
  5. fmt "fmt"
  6. proto "github.com/golang/protobuf/proto"
  7. _ "github.com/golang/protobuf/protoc-gen-go/testdata/import_public"
  8. sub "github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub"
  9. math "math"
  10. )
  11. // Reference imports to suppress errors if they are not otherwise used.
  12. var _ = proto.Marshal
  13. var _ = fmt.Errorf
  14. var _ = math.Inf
  15. // This is a compile-time assertion to ensure that this generated file
  16. // is compatible with the proto package it is being compiled against.
  17. // A compilation error at this line likely means your copy of the
  18. // proto package needs to be updated.
  19. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  20. type M struct {
  21. // Message type defined in a file publicly imported by a file we import.
  22. M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
  23. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  24. XXX_unrecognized []byte `json:"-"`
  25. XXX_sizecache int32 `json:"-"`
  26. }
  27. func (m *M) Reset() { *m = M{} }
  28. func (m *M) String() string { return proto.CompactTextString(m) }
  29. func (*M) ProtoMessage() {}
  30. func (*M) Descriptor() ([]byte, []int) {
  31. return fileDescriptor_36b835b3b8f6171a, []int{0}
  32. }
  33. func (m *M) XXX_Unmarshal(b []byte) error {
  34. return xxx_messageInfo_M.Unmarshal(m, b)
  35. }
  36. func (m *M) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  37. return xxx_messageInfo_M.Marshal(b, m, deterministic)
  38. }
  39. func (m *M) XXX_Merge(src proto.Message) {
  40. xxx_messageInfo_M.Merge(m, src)
  41. }
  42. func (m *M) XXX_Size() int {
  43. return xxx_messageInfo_M.Size(m)
  44. }
  45. func (m *M) XXX_DiscardUnknown() {
  46. xxx_messageInfo_M.DiscardUnknown(m)
  47. }
  48. var xxx_messageInfo_M proto.InternalMessageInfo
  49. func (m *M) GetM() *sub.M {
  50. if m != nil {
  51. return m.M
  52. }
  53. return nil
  54. }
  55. func init() {
  56. proto.RegisterType((*M)(nil), "goproto.test.import_public.importing.M")
  57. }
  58. func init() {
  59. proto.RegisterFile("import_public/importing/importing.proto", fileDescriptor_36b835b3b8f6171a)
  60. }
  61. var fileDescriptor_36b835b3b8f6171a = []byte{
  62. // 153 bytes of a gzipped FileDescriptorProto
  63. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcf, 0xcc, 0x2d, 0xc8,
  64. 0x2f, 0x2a, 0x89, 0x2f, 0x28, 0x4d, 0xca, 0xc9, 0x4c, 0xd6, 0x87, 0xf0, 0x32, 0xf3, 0xd2, 0x11,
  65. 0x2c, 0xbd, 0x82, 0xa2, 0xfc, 0x92, 0x7c, 0x21, 0x95, 0xf4, 0x7c, 0x30, 0x43, 0xaf, 0x24, 0xb5,
  66. 0xb8, 0x44, 0x0f, 0x45, 0x97, 0x1e, 0x5c, 0xad, 0x94, 0x28, 0xaa, 0x71, 0x89, 0x10, 0xcd, 0x4a,
  67. 0x26, 0x5c, 0x8c, 0xbe, 0x42, 0xfa, 0x5c, 0x8c, 0xb9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46,
  68. 0x8a, 0x7a, 0x78, 0x4c, 0x2b, 0x2e, 0x4d, 0xd2, 0xf3, 0x0d, 0x62, 0xcc, 0x75, 0xf2, 0x8e, 0xf2,
  69. 0x4c, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0xcf, 0x49, 0xcc,
  70. 0x4b, 0xd7, 0x07, 0x6b, 0x4b, 0x2a, 0x4d, 0x83, 0x30, 0x92, 0x75, 0xd3, 0x53, 0xf3, 0x74, 0xd3,
  71. 0xf3, 0xf5, 0x41, 0xe6, 0xa4, 0x24, 0x96, 0x24, 0xea, 0xe3, 0xf0, 0x0f, 0x20, 0x00, 0x00, 0xff,
  72. 0xff, 0xd8, 0x7e, 0x58, 0x1c, 0xe9, 0x00, 0x00, 0x00,
  73. }