1
2
3
4
5
6
7
8 package weak2
9
10 import (
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13 reflect "reflect"
14 sync "sync"
15 )
16
17 type WeakImportMessage2 struct {
18 state protoimpl.MessageState
19 sizeCache protoimpl.SizeCache
20 unknownFields protoimpl.UnknownFields
21
22 A *int32 `protobuf:"varint,1,req,name=a" json:"a,omitempty"`
23 }
24
25 func (x *WeakImportMessage2) Reset() {
26 *x = WeakImportMessage2{}
27 if protoimpl.UnsafeEnabled {
28 mi := &file_internal_testprotos_test_weak2_test_weak_proto_msgTypes[0]
29 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
30 ms.StoreMessageInfo(mi)
31 }
32 }
33
34 func (x *WeakImportMessage2) String() string {
35 return protoimpl.X.MessageStringOf(x)
36 }
37
38 func (*WeakImportMessage2) ProtoMessage() {}
39
40 func (x *WeakImportMessage2) ProtoReflect() protoreflect.Message {
41 mi := &file_internal_testprotos_test_weak2_test_weak_proto_msgTypes[0]
42 if protoimpl.UnsafeEnabled && x != nil {
43 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
44 if ms.LoadMessageInfo() == nil {
45 ms.StoreMessageInfo(mi)
46 }
47 return ms
48 }
49 return mi.MessageOf(x)
50 }
51
52
53 func (*WeakImportMessage2) Descriptor() ([]byte, []int) {
54 return file_internal_testprotos_test_weak2_test_weak_proto_rawDescGZIP(), []int{0}
55 }
56
57 func (x *WeakImportMessage2) GetA() int32 {
58 if x != nil && x.A != nil {
59 return *x.A
60 }
61 return 0
62 }
63
64 var File_internal_testprotos_test_weak2_test_weak_proto protoreflect.FileDescriptor
65
66 var file_internal_testprotos_test_weak2_test_weak_proto_rawDesc = []byte{
67 0x0a, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
68 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x77, 0x65, 0x61, 0x6b, 0x32,
69 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x77, 0x65, 0x61, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
70 0x12, 0x17, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
71 0x74, 0x65, 0x73, 0x74, 0x2e, 0x77, 0x65, 0x61, 0x6b, 0x22, 0x22, 0x0a, 0x12, 0x57, 0x65, 0x61,
72 0x6b, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x12,
73 0x0c, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x02, 0x28, 0x05, 0x52, 0x01, 0x61, 0x42, 0x3b, 0x5a,
74 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
75 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65,
76 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f,
77 0x74, 0x65, 0x73, 0x74, 0x2f, 0x77, 0x65, 0x61, 0x6b, 0x32,
78 }
79
80 var (
81 file_internal_testprotos_test_weak2_test_weak_proto_rawDescOnce sync.Once
82 file_internal_testprotos_test_weak2_test_weak_proto_rawDescData = file_internal_testprotos_test_weak2_test_weak_proto_rawDesc
83 )
84
85 func file_internal_testprotos_test_weak2_test_weak_proto_rawDescGZIP() []byte {
86 file_internal_testprotos_test_weak2_test_weak_proto_rawDescOnce.Do(func() {
87 file_internal_testprotos_test_weak2_test_weak_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_testprotos_test_weak2_test_weak_proto_rawDescData)
88 })
89 return file_internal_testprotos_test_weak2_test_weak_proto_rawDescData
90 }
91
92 var file_internal_testprotos_test_weak2_test_weak_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
93 var file_internal_testprotos_test_weak2_test_weak_proto_goTypes = []interface{}{
94 (*WeakImportMessage2)(nil),
95 }
96 var file_internal_testprotos_test_weak2_test_weak_proto_depIdxs = []int32{
97 0,
98 0,
99 0,
100 0,
101 0,
102 }
103
104 func init() { file_internal_testprotos_test_weak2_test_weak_proto_init() }
105 func file_internal_testprotos_test_weak2_test_weak_proto_init() {
106 if File_internal_testprotos_test_weak2_test_weak_proto != nil {
107 return
108 }
109 if !protoimpl.UnsafeEnabled {
110 file_internal_testprotos_test_weak2_test_weak_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
111 switch v := v.(*WeakImportMessage2); i {
112 case 0:
113 return &v.state
114 case 1:
115 return &v.sizeCache
116 case 2:
117 return &v.unknownFields
118 default:
119 return nil
120 }
121 }
122 }
123 type x struct{}
124 out := protoimpl.TypeBuilder{
125 File: protoimpl.DescBuilder{
126 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
127 RawDescriptor: file_internal_testprotos_test_weak2_test_weak_proto_rawDesc,
128 NumEnums: 0,
129 NumMessages: 1,
130 NumExtensions: 0,
131 NumServices: 0,
132 },
133 GoTypes: file_internal_testprotos_test_weak2_test_weak_proto_goTypes,
134 DependencyIndexes: file_internal_testprotos_test_weak2_test_weak_proto_depIdxs,
135 MessageInfos: file_internal_testprotos_test_weak2_test_weak_proto_msgTypes,
136 }.Build()
137 File_internal_testprotos_test_weak2_test_weak_proto = out.File
138 file_internal_testprotos_test_weak2_test_weak_proto_rawDesc = nil
139 file_internal_testprotos_test_weak2_test_weak_proto_goTypes = nil
140 file_internal_testprotos_test_weak2_test_weak_proto_depIdxs = nil
141 }
142
View as plain text