Debian Codegraph @

cmd/protoc-gen-go/testdata/imports/test_a_1/m1.pb.go

raw
1 // Copyright 2018 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 // Code generated by protoc-gen-go. DO NOT EDIT.
6 // source: cmd/protoc-gen-go/testdata/imports/test_a_1/m1.proto
7
8 package test_a_1
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 unsafe "unsafe"
16 )
17
18 type E1 int32
19
20 const (
21 E1_E1_ZERO E1 = 0
22 )
23
24 // Enum value maps for E1.
25 var (
26 E1_name = map[int32]string{
27 0: "E1_ZERO",
28 }
29 E1_value = map[string]int32{
30 "E1_ZERO": 0,
31 }
32 )
33
34 func (x E1) Enum() *E1 {
35 p := new(E1)
36 *p = x
37 return p
38 }
39
40 func (x E1) String() string {
41 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
42 }
43
44 func (E1) Descriptor() protoreflect.EnumDescriptor {
45 return file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_enumTypes[0].Descriptor()
46 }
47
48 func (E1) Type() protoreflect.EnumType {
49 return &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_enumTypes[0]
50 }
51
52 func (x E1) Number() protoreflect.EnumNumber {
53 return protoreflect.EnumNumber(x)
54 }
55
56 // Deprecated: Use E1.Descriptor instead.
57 func (E1) EnumDescriptor() ([]byte, []int) {
58 return file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescGZIP(), []int{0}
59 }
60
61 type M1 struct {
62 state protoimpl.MessageState `protogen:"open.v1"`
63 unknownFields protoimpl.UnknownFields
64 sizeCache protoimpl.SizeCache
65 }
66
67 func (x *M1) Reset() {
68 *x = M1{}
69 mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[0]
70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
71 ms.StoreMessageInfo(mi)
72 }
73
74 func (x *M1) String() string {
75 return protoimpl.X.MessageStringOf(x)
76 }
77
78 func (*M1) ProtoMessage() {}
79
80 func (x *M1) ProtoReflect() protoreflect.Message {
81 mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[0]
82 if x != nil {
83 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
84 if ms.LoadMessageInfo() == nil {
85 ms.StoreMessageInfo(mi)
86 }
87 return ms
88 }
89 return mi.MessageOf(x)
90 }
91
92 // Deprecated: Use M1.ProtoReflect.Descriptor instead.
93 func (*M1) Descriptor() ([]byte, []int) {
94 return file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescGZIP(), []int{0}
95 }
96
97 type M1_1 struct {
98 state protoimpl.MessageState `protogen:"open.v1"`
99 M1 *M1 `protobuf:"bytes,1,opt,name=m1,proto3" json:"m1,omitempty"`
100 unknownFields protoimpl.UnknownFields
101 sizeCache protoimpl.SizeCache
102 }
103
104 func (x *M1_1) Reset() {
105 *x = M1_1{}
106 mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[1]
107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
108 ms.StoreMessageInfo(mi)
109 }
110
111 func (x *M1_1) String() string {
112 return protoimpl.X.MessageStringOf(x)
113 }
114
115 func (*M1_1) ProtoMessage() {}
116
117 func (x *M1_1) ProtoReflect() protoreflect.Message {
118 mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[1]
119 if x != nil {
120 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
121 if ms.LoadMessageInfo() == nil {
122 ms.StoreMessageInfo(mi)
123 }
124 return ms
125 }
126 return mi.MessageOf(x)
127 }
128
129 // Deprecated: Use M1_1.ProtoReflect.Descriptor instead.
130 func (*M1_1) Descriptor() ([]byte, []int) {
131 return file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescGZIP(), []int{1}
132 }
133
134 func (x *M1_1) GetM1() *M1 {
135 if x != nil {
136 return x.M1
137 }
138 return nil
139 }
140
141 var File_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto protoreflect.FileDescriptor
142
143 const file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDesc = "" +
144 "\n" +
145 "4cmd/protoc-gen-go/testdata/imports/test_a_1/m1.proto\x12\x06test.a\"\x04\n" +
146 "\x02M1\"\"\n" +
147 "\x04M1_1\x12\x1a\n" +
148 "\x02m1\x18\x01 \x01(\v2\n" +
149 ".test.a.M1R\x02m1*\x11\n" +
150 "\x02E1\x12\v\n" +
151 "\aE1_ZERO\x10\x00BHZFgoogle.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1b\x06proto3"
152
153 var (
154 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescOnce sync.Once
155 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescData []byte
156 )
157
158 func file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescGZIP() []byte {
159 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescOnce.Do(func() {
160 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDesc)))
161 })
162 return file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescData
163 }
164
165 var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
166 var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
167 var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_goTypes = []any{
168 (E1)(0), // 0: test.a.E1
169 (*M1)(nil), // 1: test.a.M1
170 (*M1_1)(nil), // 2: test.a.M1_1
171 }
172 var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_depIdxs = []int32{
173 1, // 0: test.a.M1_1.m1:type_name -> test.a.M1
174 1, // [1:1] is the sub-list for method output_type
175 1, // [1:1] is the sub-list for method input_type
176 1, // [1:1] is the sub-list for extension type_name
177 1, // [1:1] is the sub-list for extension extendee
178 0, // [0:1] is the sub-list for field type_name
179 }
180
181 func init() { file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_init() }
182 func file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_init() {
183 if File_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto != nil {
184 return
185 }
186 type x struct{}
187 out := protoimpl.TypeBuilder{
188 File: protoimpl.DescBuilder{
189 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
190 RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDesc)),
191 NumEnums: 1,
192 NumMessages: 2,
193 NumExtensions: 0,
194 NumServices: 0,
195 },
196 GoTypes: file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_goTypes,
197 DependencyIndexes: file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_depIdxs,
198 EnumInfos: file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_enumTypes,
199 MessageInfos: file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes,
200 }.Build()
201 File_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto = out.File
202 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_goTypes = nil
203 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_depIdxs = nil
204 }