blob: efe5728aeab6563e03c506b419ab6e7e078e7cad [file] [log] [blame]
Damien Neil5b6d0472019-06-14 11:54:07 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: irregular/test.proto
3
4package irregular
5
6import (
7 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
Damien Neil5b6d0472019-06-14 11:54:07 -07008 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
9 sync "sync"
10)
11
12const (
13 // Verify that runtime/protoimpl is sufficiently up-to-date.
14 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
15 // Verify that this generated code is sufficiently up-to-date.
16 _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
17)
18
19type Message struct {
Joe Tsai82760ce2019-06-20 03:09:57 -070020 state protoimpl.MessageState
Damien Neil5b6d0472019-06-14 11:54:07 -070021 OptionalMessage *IrregularMessage `protobuf:"bytes,1,opt,name=optional_message,json=optionalMessage" json:"optional_message,omitempty"`
22 RepeatedMessage []*IrregularMessage `protobuf:"bytes,2,rep,name=repeated_message,json=repeatedMessage" json:"repeated_message,omitempty"`
23 RequiredMessage *IrregularMessage `protobuf:"bytes,3,req,name=required_message,json=requiredMessage" json:"required_message,omitempty"`
24 MapMessage map[string]*IrregularMessage `protobuf:"bytes,4,rep,name=map_message,json=mapMessage" json:"map_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
25 // Types that are valid to be assigned to Union:
26 // *Message_OneofMessage
Joe Tsaic0e4bb22019-07-06 13:05:11 -070027 Union isMessage_Union `protobuf_oneof:"union"`
28 sizeCache protoimpl.SizeCache
29 unknownFields protoimpl.UnknownFields
Damien Neil5b6d0472019-06-14 11:54:07 -070030}
31
32func (x *Message) Reset() {
33 *x = Message{}
34}
35
36func (x *Message) String() string {
37 return protoimpl.X.MessageStringOf(x)
38}
39
40func (*Message) ProtoMessage() {}
41
42func (x *Message) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -070043 mi := &file_irregular_test_proto_msgTypes[0]
44 if protoimpl.UnsafeEnabled && x != nil {
45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
46 if ms.LoadMessageInfo() == nil {
47 ms.StoreMessageInfo(mi)
48 }
49 return ms
50 }
51 return mi.MessageOf(x)
Damien Neil5b6d0472019-06-14 11:54:07 -070052}
53
Damien Neil5b6d0472019-06-14 11:54:07 -070054// Deprecated: Use Message.ProtoReflect.Type instead.
55func (*Message) Descriptor() ([]byte, []int) {
56 return file_irregular_test_proto_rawDescGZIP(), []int{0}
57}
58
59func (x *Message) GetOptionalMessage() *IrregularMessage {
60 if x != nil {
61 return x.OptionalMessage
62 }
63 return nil
64}
65
66func (x *Message) GetRepeatedMessage() []*IrregularMessage {
67 if x != nil {
68 return x.RepeatedMessage
69 }
70 return nil
71}
72
73func (x *Message) GetRequiredMessage() *IrregularMessage {
74 if x != nil {
75 return x.RequiredMessage
76 }
77 return nil
78}
79
80func (x *Message) GetMapMessage() map[string]*IrregularMessage {
81 if x != nil {
82 return x.MapMessage
83 }
84 return nil
85}
86
87func (m *Message) GetUnion() isMessage_Union {
88 if m != nil {
89 return m.Union
90 }
91 return nil
92}
93
94func (x *Message) GetOneofMessage() *IrregularMessage {
95 if x, ok := x.GetUnion().(*Message_OneofMessage); ok {
96 return x.OneofMessage
97 }
98 return nil
99}
100
Damien Neil5b6d0472019-06-14 11:54:07 -0700101type isMessage_Union interface {
102 isMessage_Union()
103}
104
105type Message_OneofMessage struct {
106 OneofMessage *IrregularMessage `protobuf:"bytes,5,opt,name=oneof_message,json=oneofMessage,oneof"`
107}
108
109func (*Message_OneofMessage) isMessage_Union() {}
110
111var File_irregular_test_proto protoreflect.FileDescriptor
112
113var file_irregular_test_proto_rawDesc = []byte{
114 0x0a, 0x14, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74,
115 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
116 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x1a,
117 0x19, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2f, 0x69, 0x72, 0x72, 0x65, 0x67,
118 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x04, 0x0a, 0x07, 0x4d,
119 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
120 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
121 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
122 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67,
123 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x6f, 0x70, 0x74,
124 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10,
125 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
126 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
127 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
128 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
129 0x65, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61,
130 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x6d,
131 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67,
132 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72,
133 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
134 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
135 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x51, 0x0a, 0x0b, 0x6d, 0x61, 0x70, 0x5f,
136 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e,
137 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72,
138 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
139 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
140 0x0a, 0x6d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x50, 0x0a, 0x0d, 0x6f,
141 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01,
142 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
143 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72,
144 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52,
145 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x68, 0x0a,
146 0x0f, 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79,
147 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
148 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
149 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
150 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65,
151 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x76, 0x61,
152 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e,
153 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
154 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69,
155 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
156 0x6f, 0x73, 0x2f, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
157}
158
159var (
160 file_irregular_test_proto_rawDescOnce sync.Once
161 file_irregular_test_proto_rawDescData = file_irregular_test_proto_rawDesc
162)
163
164func file_irregular_test_proto_rawDescGZIP() []byte {
165 file_irregular_test_proto_rawDescOnce.Do(func() {
166 file_irregular_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_irregular_test_proto_rawDescData)
167 })
168 return file_irregular_test_proto_rawDescData
169}
170
171var file_irregular_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
172var file_irregular_test_proto_goTypes = []interface{}{
173 (*Message)(nil), // 0: goproto.proto.irregular.Message
174 nil, // 1: goproto.proto.irregular.Message.MapMessageEntry
175 (*IrregularMessage)(nil), // 2: goproto.proto.irregular.IrregularMessage
176}
177var file_irregular_test_proto_depIdxs = []int32{
178 2, // goproto.proto.irregular.Message.optional_message:type_name -> goproto.proto.irregular.IrregularMessage
179 2, // goproto.proto.irregular.Message.repeated_message:type_name -> goproto.proto.irregular.IrregularMessage
180 2, // goproto.proto.irregular.Message.required_message:type_name -> goproto.proto.irregular.IrregularMessage
181 1, // goproto.proto.irregular.Message.map_message:type_name -> goproto.proto.irregular.Message.MapMessageEntry
182 2, // goproto.proto.irregular.Message.oneof_message:type_name -> goproto.proto.irregular.IrregularMessage
183 2, // goproto.proto.irregular.Message.MapMessageEntry.value:type_name -> goproto.proto.irregular.IrregularMessage
Joe Tsaid8881392019-06-06 13:01:53 -0700184 6, // starting offset of method output_type sub-list
185 6, // starting offset of method input_type sub-list
186 6, // starting offset of extension type_name sub-list
187 6, // starting offset of extension extendee sub-list
188 0, // starting offset of field type_name sub-list
Damien Neil5b6d0472019-06-14 11:54:07 -0700189}
190
191func init() { file_irregular_test_proto_init() }
192func file_irregular_test_proto_init() {
193 if File_irregular_test_proto != nil {
194 return
195 }
196 file_irregular_irregular_proto_init()
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700197 if !protoimpl.UnsafeEnabled {
198 file_irregular_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
199 switch v := v.(*Message); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700200 case 0:
201 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700202 case 6:
Joe Tsai82760ce2019-06-20 03:09:57 -0700203 return &v.sizeCache
204 case 7:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700205 return &v.unknownFields
206 default:
207 return nil
208 }
209 }
210 }
Joe Tsai09912272019-07-08 10:38:11 -0700211 file_irregular_test_proto_msgTypes[0].OneofWrappers = []interface{}{
212 (*Message_OneofMessage)(nil),
213 }
Joe Tsaid8881392019-06-06 13:01:53 -0700214 out := protoimpl.TypeBuilder{
215 File: protoimpl.DescBuilder{
216 RawDescriptor: file_irregular_test_proto_rawDesc,
217 NumEnums: 0,
218 NumMessages: 2,
219 NumExtensions: 0,
220 NumServices: 0,
221 },
222 GoTypes: file_irregular_test_proto_goTypes,
223 DependencyIndexes: file_irregular_test_proto_depIdxs,
224 MessageInfos: file_irregular_test_proto_msgTypes,
225 }.Build()
226 File_irregular_test_proto = out.File
Damien Neil5b6d0472019-06-14 11:54:07 -0700227 file_irregular_test_proto_rawDesc = nil
228 file_irregular_test_proto_goTypes = nil
229 file_irregular_test_proto_depIdxs = nil
230}