test_weak.pb.go 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: test/weak/test_weak.proto
  3. package weak
  4. import (
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoregistry "google.golang.org/protobuf/reflect/protoregistry"
  7. protoiface "google.golang.org/protobuf/runtime/protoiface"
  8. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  9. sync "sync"
  10. )
  11. const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
  12. type WeakImportMessage struct {
  13. A *int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
  14. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  15. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  16. XXX_sizecache protoimpl.SizeCache `json:"-"`
  17. }
  18. func (x *WeakImportMessage) Reset() {
  19. *x = WeakImportMessage{}
  20. }
  21. func (x *WeakImportMessage) String() string {
  22. return protoimpl.X.MessageStringOf(x)
  23. }
  24. func (*WeakImportMessage) ProtoMessage() {}
  25. func (x *WeakImportMessage) ProtoReflect() protoreflect.Message {
  26. return file_test_weak_test_weak_proto_msgTypes[0].MessageOf(x)
  27. }
  28. func (m *WeakImportMessage) XXX_Methods() *protoiface.Methods {
  29. return file_test_weak_test_weak_proto_msgTypes[0].Methods()
  30. }
  31. // Deprecated: Use WeakImportMessage.ProtoReflect.Type instead.
  32. func (*WeakImportMessage) Descriptor() ([]byte, []int) {
  33. return file_test_weak_test_weak_proto_rawDescGZIP(), []int{0}
  34. }
  35. func (x *WeakImportMessage) GetA() int32 {
  36. if x != nil && x.A != nil {
  37. return *x.A
  38. }
  39. return 0
  40. }
  41. var File_test_weak_test_weak_proto protoreflect.FileDescriptor
  42. var file_test_weak_test_weak_proto_rawDesc = []byte{
  43. 0x0a, 0x19, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x77, 0x65, 0x61, 0x6b, 0x2f, 0x74, 0x65, 0x73, 0x74,
  44. 0x5f, 0x77, 0x65, 0x61, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70,
  45. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e,
  46. 0x77, 0x65, 0x61, 0x6b, 0x22, 0x21, 0x0a, 0x11, 0x57, 0x65, 0x61, 0x6b, 0x49, 0x6d, 0x70, 0x6f,
  47. 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x61, 0x18, 0x01,
  48. 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x61, 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  49. 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f,
  50. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74,
  51. 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x77,
  52. 0x65, 0x61, 0x6b,
  53. }
  54. var (
  55. file_test_weak_test_weak_proto_rawDescOnce sync.Once
  56. file_test_weak_test_weak_proto_rawDescData = file_test_weak_test_weak_proto_rawDesc
  57. )
  58. func file_test_weak_test_weak_proto_rawDescGZIP() []byte {
  59. file_test_weak_test_weak_proto_rawDescOnce.Do(func() {
  60. file_test_weak_test_weak_proto_rawDescData = protoimpl.X.CompressGZIP(file_test_weak_test_weak_proto_rawDescData)
  61. })
  62. return file_test_weak_test_weak_proto_rawDescData
  63. }
  64. var file_test_weak_test_weak_proto_msgTypes = make([]protoimpl.MessageType, 1)
  65. var file_test_weak_test_weak_proto_goTypes = []interface{}{
  66. (*WeakImportMessage)(nil), // 0: goproto.proto.test.weak.WeakImportMessage
  67. }
  68. var file_test_weak_test_weak_proto_depIdxs = []int32{}
  69. func init() { file_test_weak_test_weak_proto_init() }
  70. func file_test_weak_test_weak_proto_init() {
  71. if File_test_weak_test_weak_proto != nil {
  72. return
  73. }
  74. File_test_weak_test_weak_proto = protoimpl.FileBuilder{
  75. RawDescriptor: file_test_weak_test_weak_proto_rawDesc,
  76. GoTypes: file_test_weak_test_weak_proto_goTypes,
  77. DependencyIndexes: file_test_weak_test_weak_proto_depIdxs,
  78. MessageOutputTypes: file_test_weak_test_weak_proto_msgTypes,
  79. FilesRegistry: protoregistry.GlobalFiles,
  80. TypesRegistry: protoregistry.GlobalTypes,
  81. }.Init()
  82. file_test_weak_test_weak_proto_rawDesc = nil
  83. file_test_weak_test_weak_proto_goTypes = nil
  84. file_test_weak_test_weak_proto_depIdxs = nil
  85. }