blob: c8ef2c410b2567d4efe0e2d129aaeae2d7734d90 [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 protoiface "google.golang.org/protobuf/runtime/protoiface"
9 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
10 sync "sync"
11)
12
13const (
14 // Verify that runtime/protoimpl is sufficiently up-to-date.
15 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
16 // Verify that this generated code is sufficiently up-to-date.
17 _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
18)
19
20type Message struct {
21 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
27 Union isMessage_Union `protobuf_oneof:"union"`
28 XXX_NoUnkeyedLiteral struct{} `json:"-"`
29 XXX_unrecognized protoimpl.UnknownFields `json:"-"`
30 XXX_sizecache protoimpl.SizeCache `json:"-"`
31}
32
33func (x *Message) Reset() {
34 *x = Message{}
35}
36
37func (x *Message) String() string {
38 return protoimpl.X.MessageStringOf(x)
39}
40
41func (*Message) ProtoMessage() {}
42
43func (x *Message) ProtoReflect() protoreflect.Message {
44 return file_irregular_test_proto_msgTypes[0].MessageOf(x)
45}
46
47func (m *Message) XXX_Methods() *protoiface.Methods {
48 return file_irregular_test_proto_msgTypes[0].Methods()
49}
50
51// Deprecated: Use Message.ProtoReflect.Type instead.
52func (*Message) Descriptor() ([]byte, []int) {
53 return file_irregular_test_proto_rawDescGZIP(), []int{0}
54}
55
56func (x *Message) GetOptionalMessage() *IrregularMessage {
57 if x != nil {
58 return x.OptionalMessage
59 }
60 return nil
61}
62
63func (x *Message) GetRepeatedMessage() []*IrregularMessage {
64 if x != nil {
65 return x.RepeatedMessage
66 }
67 return nil
68}
69
70func (x *Message) GetRequiredMessage() *IrregularMessage {
71 if x != nil {
72 return x.RequiredMessage
73 }
74 return nil
75}
76
77func (x *Message) GetMapMessage() map[string]*IrregularMessage {
78 if x != nil {
79 return x.MapMessage
80 }
81 return nil
82}
83
84func (m *Message) GetUnion() isMessage_Union {
85 if m != nil {
86 return m.Union
87 }
88 return nil
89}
90
91func (x *Message) GetOneofMessage() *IrregularMessage {
92 if x, ok := x.GetUnion().(*Message_OneofMessage); ok {
93 return x.OneofMessage
94 }
95 return nil
96}
97
Damien Neil5b6d0472019-06-14 11:54:07 -070098type isMessage_Union interface {
99 isMessage_Union()
100}
101
102type Message_OneofMessage struct {
103 OneofMessage *IrregularMessage `protobuf:"bytes,5,opt,name=oneof_message,json=oneofMessage,oneof"`
104}
105
106func (*Message_OneofMessage) isMessage_Union() {}
107
108var File_irregular_test_proto protoreflect.FileDescriptor
109
110var file_irregular_test_proto_rawDesc = []byte{
111 0x0a, 0x14, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74,
112 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
113 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x1a,
114 0x19, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2f, 0x69, 0x72, 0x72, 0x65, 0x67,
115 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x04, 0x0a, 0x07, 0x4d,
116 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
117 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
118 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
119 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67,
120 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x6f, 0x70, 0x74,
121 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10,
122 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
123 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
124 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
125 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
126 0x65, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61,
127 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x6d,
128 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67,
129 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72,
130 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
131 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
132 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x51, 0x0a, 0x0b, 0x6d, 0x61, 0x70, 0x5f,
133 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e,
134 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72,
135 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
136 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
137 0x0a, 0x6d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x50, 0x0a, 0x0d, 0x6f,
138 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01,
139 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
140 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72,
141 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52,
142 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x68, 0x0a,
143 0x0f, 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79,
144 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
145 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
146 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
147 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65,
148 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x76, 0x61,
149 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e,
150 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
151 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69,
152 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
153 0x6f, 0x73, 0x2f, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
154}
155
156var (
157 file_irregular_test_proto_rawDescOnce sync.Once
158 file_irregular_test_proto_rawDescData = file_irregular_test_proto_rawDesc
159)
160
161func file_irregular_test_proto_rawDescGZIP() []byte {
162 file_irregular_test_proto_rawDescOnce.Do(func() {
163 file_irregular_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_irregular_test_proto_rawDescData)
164 })
165 return file_irregular_test_proto_rawDescData
166}
167
168var file_irregular_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
169var file_irregular_test_proto_goTypes = []interface{}{
170 (*Message)(nil), // 0: goproto.proto.irregular.Message
171 nil, // 1: goproto.proto.irregular.Message.MapMessageEntry
172 (*IrregularMessage)(nil), // 2: goproto.proto.irregular.IrregularMessage
173}
174var file_irregular_test_proto_depIdxs = []int32{
175 2, // goproto.proto.irregular.Message.optional_message:type_name -> goproto.proto.irregular.IrregularMessage
176 2, // goproto.proto.irregular.Message.repeated_message:type_name -> goproto.proto.irregular.IrregularMessage
177 2, // goproto.proto.irregular.Message.required_message:type_name -> goproto.proto.irregular.IrregularMessage
178 1, // goproto.proto.irregular.Message.map_message:type_name -> goproto.proto.irregular.Message.MapMessageEntry
179 2, // goproto.proto.irregular.Message.oneof_message:type_name -> goproto.proto.irregular.IrregularMessage
180 2, // goproto.proto.irregular.Message.MapMessageEntry.value:type_name -> goproto.proto.irregular.IrregularMessage
Joe Tsaid8881392019-06-06 13:01:53 -0700181 6, // starting offset of method output_type sub-list
182 6, // starting offset of method input_type sub-list
183 6, // starting offset of extension type_name sub-list
184 6, // starting offset of extension extendee sub-list
185 0, // starting offset of field type_name sub-list
Damien Neil5b6d0472019-06-14 11:54:07 -0700186}
187
188func init() { file_irregular_test_proto_init() }
189func file_irregular_test_proto_init() {
190 if File_irregular_test_proto != nil {
191 return
192 }
193 file_irregular_irregular_proto_init()
Joe Tsai09912272019-07-08 10:38:11 -0700194 file_irregular_test_proto_msgTypes[0].OneofWrappers = []interface{}{
195 (*Message_OneofMessage)(nil),
196 }
Joe Tsaid8881392019-06-06 13:01:53 -0700197 out := protoimpl.TypeBuilder{
198 File: protoimpl.DescBuilder{
199 RawDescriptor: file_irregular_test_proto_rawDesc,
200 NumEnums: 0,
201 NumMessages: 2,
202 NumExtensions: 0,
203 NumServices: 0,
204 },
205 GoTypes: file_irregular_test_proto_goTypes,
206 DependencyIndexes: file_irregular_test_proto_depIdxs,
207 MessageInfos: file_irregular_test_proto_msgTypes,
208 }.Build()
209 File_irregular_test_proto = out.File
Damien Neil5b6d0472019-06-14 11:54:07 -0700210 file_irregular_test_proto_rawDesc = nil
211 file_irregular_test_proto_goTypes = nil
212 file_irregular_test_proto_depIdxs = nil
213}