test_weak.pb.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: test_weak.proto
  3. package test
  4. import (
  5. bytes "bytes"
  6. gzip "compress/gzip"
  7. proto "github.com/golang/protobuf/proto"
  8. protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
  9. protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
  10. reflect "reflect"
  11. )
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  17. type WeakImportMessage struct {
  18. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  19. XXX_unrecognized []byte `json:"-"`
  20. XXX_sizecache int32 `json:"-"`
  21. }
  22. func (m *WeakImportMessage) ProtoReflect() protoreflect.Message {
  23. return xxx_TestWeak_protoFile_messageTypes[0].MessageOf(m)
  24. }
  25. func (m *WeakImportMessage) Reset() { *m = WeakImportMessage{} }
  26. func (m *WeakImportMessage) String() string { return proto.CompactTextString(m) }
  27. func (*WeakImportMessage) ProtoMessage() {}
  28. func (*WeakImportMessage) Descriptor() ([]byte, []int) {
  29. return fileDescriptor_c2b8edfebc4f71b3_gzipped, []int{0}
  30. }
  31. func (m *WeakImportMessage) XXX_Unmarshal(b []byte) error {
  32. return xxx_messageInfo_WeakImportMessage.Unmarshal(m, b)
  33. }
  34. func (m *WeakImportMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  35. return xxx_messageInfo_WeakImportMessage.Marshal(b, m, deterministic)
  36. }
  37. func (m *WeakImportMessage) XXX_Merge(src proto.Message) {
  38. xxx_messageInfo_WeakImportMessage.Merge(m, src)
  39. }
  40. func (m *WeakImportMessage) XXX_Size() int {
  41. return xxx_messageInfo_WeakImportMessage.Size(m)
  42. }
  43. func (m *WeakImportMessage) XXX_DiscardUnknown() {
  44. xxx_messageInfo_WeakImportMessage.DiscardUnknown(m)
  45. }
  46. var xxx_messageInfo_WeakImportMessage proto.InternalMessageInfo
  47. func init() {
  48. proto.RegisterFile("test_weak.proto", fileDescriptor_c2b8edfebc4f71b3_gzipped)
  49. proto.RegisterType((*WeakImportMessage)(nil), "goproto.proto.test.WeakImportMessage")
  50. }
  51. var fileDescriptor_c2b8edfebc4f71b3 = []byte{
  52. // 116 bytes of the wire-encoded FileDescriptorProto
  53. 0x0a, 0x0f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x77, 0x65, 0x61, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  54. 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  55. 0x2e, 0x74, 0x65, 0x73, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x57, 0x65, 0x61, 0x6b, 0x49, 0x6d, 0x70,
  56. 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69,
  57. 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f,
  58. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  59. 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f,
  60. 0x74, 0x65, 0x73, 0x74,
  61. }
  62. var fileDescriptor_c2b8edfebc4f71b3_gzipped = func() []byte {
  63. bb := new(bytes.Buffer)
  64. zw, _ := gzip.NewWriterLevel(bb, gzip.NoCompression)
  65. zw.Write(fileDescriptor_c2b8edfebc4f71b3)
  66. zw.Close()
  67. return bb.Bytes()
  68. }()
  69. const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
  70. var TestWeak_protoFile protoreflect.FileDescriptor
  71. var xxx_TestWeak_protoFile_messageTypes [1]protoimpl.MessageType
  72. var xxx_TestWeak_protoFile_goTypes = []interface{}{
  73. (*WeakImportMessage)(nil), // 0: goproto.proto.test.WeakImportMessage
  74. }
  75. var xxx_TestWeak_protoFile_depIdxs = []int32{}
  76. func init() {
  77. var messageTypes [1]protoreflect.MessageType
  78. TestWeak_protoFile = protoimpl.FileBuilder{
  79. RawDescriptor: fileDescriptor_c2b8edfebc4f71b3,
  80. GoTypes: xxx_TestWeak_protoFile_goTypes,
  81. DependencyIndexes: xxx_TestWeak_protoFile_depIdxs,
  82. MessageOutputTypes: messageTypes[:],
  83. }.Init()
  84. messageGoTypes := xxx_TestWeak_protoFile_goTypes[0:][:1]
  85. for i, mt := range messageTypes[:] {
  86. xxx_TestWeak_protoFile_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i])
  87. xxx_TestWeak_protoFile_messageTypes[i].PBType = mt
  88. }
  89. xxx_TestWeak_protoFile_goTypes = nil
  90. xxx_TestWeak_protoFile_depIdxs = nil
  91. }