blob: 93092dcadfd6e936d1fbe6781e1a454866875f4c [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
98// XXX_OneofWrappers is for the internal use of the proto package.
99func (*Message) XXX_OneofWrappers() []interface{} {
100 return []interface{}{
101 (*Message_OneofMessage)(nil),
102 }
103}
104
105type isMessage_Union interface {
106 isMessage_Union()
107}
108
109type Message_OneofMessage struct {
110 OneofMessage *IrregularMessage `protobuf:"bytes,5,opt,name=oneof_message,json=oneofMessage,oneof"`
111}
112
113func (*Message_OneofMessage) isMessage_Union() {}
114
115var File_irregular_test_proto protoreflect.FileDescriptor
116
117var file_irregular_test_proto_rawDesc = []byte{
118 0x0a, 0x14, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74,
119 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
120 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x1a,
121 0x19, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2f, 0x69, 0x72, 0x72, 0x65, 0x67,
122 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x04, 0x0a, 0x07, 0x4d,
123 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
124 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
125 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
126 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67,
127 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x6f, 0x70, 0x74,
128 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10,
129 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
130 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
131 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
132 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
133 0x65, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61,
134 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x6d,
135 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67,
136 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72,
137 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
138 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
139 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x51, 0x0a, 0x0b, 0x6d, 0x61, 0x70, 0x5f,
140 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e,
141 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72,
142 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
143 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
144 0x0a, 0x6d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x50, 0x0a, 0x0d, 0x6f,
145 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01,
146 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
147 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72,
148 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52,
149 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x68, 0x0a,
150 0x0f, 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79,
151 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
152 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
153 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
154 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65,
155 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x76, 0x61,
156 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e,
157 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
158 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69,
159 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
160 0x6f, 0x73, 0x2f, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
161}
162
163var (
164 file_irregular_test_proto_rawDescOnce sync.Once
165 file_irregular_test_proto_rawDescData = file_irregular_test_proto_rawDesc
166)
167
168func file_irregular_test_proto_rawDescGZIP() []byte {
169 file_irregular_test_proto_rawDescOnce.Do(func() {
170 file_irregular_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_irregular_test_proto_rawDescData)
171 })
172 return file_irregular_test_proto_rawDescData
173}
174
175var file_irregular_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
176var file_irregular_test_proto_goTypes = []interface{}{
177 (*Message)(nil), // 0: goproto.proto.irregular.Message
178 nil, // 1: goproto.proto.irregular.Message.MapMessageEntry
179 (*IrregularMessage)(nil), // 2: goproto.proto.irregular.IrregularMessage
180}
181var file_irregular_test_proto_depIdxs = []int32{
182 2, // goproto.proto.irregular.Message.optional_message:type_name -> goproto.proto.irregular.IrregularMessage
183 2, // goproto.proto.irregular.Message.repeated_message:type_name -> goproto.proto.irregular.IrregularMessage
184 2, // goproto.proto.irregular.Message.required_message:type_name -> goproto.proto.irregular.IrregularMessage
185 1, // goproto.proto.irregular.Message.map_message:type_name -> goproto.proto.irregular.Message.MapMessageEntry
186 2, // goproto.proto.irregular.Message.oneof_message:type_name -> goproto.proto.irregular.IrregularMessage
187 2, // goproto.proto.irregular.Message.MapMessageEntry.value:type_name -> goproto.proto.irregular.IrregularMessage
Joe Tsaid8881392019-06-06 13:01:53 -0700188 6, // starting offset of method output_type sub-list
189 6, // starting offset of method input_type sub-list
190 6, // starting offset of extension type_name sub-list
191 6, // starting offset of extension extendee sub-list
192 0, // starting offset of field type_name sub-list
Damien Neil5b6d0472019-06-14 11:54:07 -0700193}
194
195func init() { file_irregular_test_proto_init() }
196func file_irregular_test_proto_init() {
197 if File_irregular_test_proto != nil {
198 return
199 }
200 file_irregular_irregular_proto_init()
Joe Tsaid8881392019-06-06 13:01:53 -0700201 out := protoimpl.TypeBuilder{
202 File: protoimpl.DescBuilder{
203 RawDescriptor: file_irregular_test_proto_rawDesc,
204 NumEnums: 0,
205 NumMessages: 2,
206 NumExtensions: 0,
207 NumServices: 0,
208 },
209 GoTypes: file_irregular_test_proto_goTypes,
210 DependencyIndexes: file_irregular_test_proto_depIdxs,
211 MessageInfos: file_irregular_test_proto_msgTypes,
212 }.Build()
213 File_irregular_test_proto = out.File
Damien Neil5b6d0472019-06-14 11:54:07 -0700214 file_irregular_test_proto_rawDesc = nil
215 file_irregular_test_proto_goTypes = nil
216 file_irregular_test_proto_depIdxs = nil
217}