1// Copyright 2019 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// Messages in this file are used to test wire encoding order.
6
7// Code generated by protoc-gen-go. DO NOT EDIT.
8// source: internal/testprotos/order/order.proto
9
10package order
11
12import (
13	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
14	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
15	reflect "reflect"
16	sync "sync"
17)
18
19type Message struct {
20	state           protoimpl.MessageState
21	sizeCache       protoimpl.SizeCache
22	unknownFields   protoimpl.UnknownFields
23	extensionFields protoimpl.ExtensionFields
24
25	Field_2 *string `protobuf:"bytes,2,opt,name=field_2,json=field2" json:"field_2,omitempty"`
26	Field_1 *string `protobuf:"bytes,1,opt,name=field_1,json=field1" json:"field_1,omitempty"`
27	// Types that are assignable to Oneof_1:
28	//	*Message_Field_10
29	Oneof_1  isMessage_Oneof_1 `protobuf_oneof:"oneof_1"`
30	Field_20 *string           `protobuf:"bytes,20,opt,name=field_20,json=field20" json:"field_20,omitempty"`
31}
32
33func (x *Message) Reset() {
34	*x = Message{}
35	if protoimpl.UnsafeEnabled {
36		mi := &file_internal_testprotos_order_order_proto_msgTypes[0]
37		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
38		ms.StoreMessageInfo(mi)
39	}
40}
41
42func (x *Message) String() string {
43	return protoimpl.X.MessageStringOf(x)
44}
45
46func (*Message) ProtoMessage() {}
47
48func (x *Message) ProtoReflect() protoreflect.Message {
49	mi := &file_internal_testprotos_order_order_proto_msgTypes[0]
50	if protoimpl.UnsafeEnabled && x != nil {
51		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
52		if ms.LoadMessageInfo() == nil {
53			ms.StoreMessageInfo(mi)
54		}
55		return ms
56	}
57	return mi.MessageOf(x)
58}
59
60// Deprecated: Use Message.ProtoReflect.Descriptor instead.
61func (*Message) Descriptor() ([]byte, []int) {
62	return file_internal_testprotos_order_order_proto_rawDescGZIP(), []int{0}
63}
64
65func (x *Message) GetField_2() string {
66	if x != nil && x.Field_2 != nil {
67		return *x.Field_2
68	}
69	return ""
70}
71
72func (x *Message) GetField_1() string {
73	if x != nil && x.Field_1 != nil {
74		return *x.Field_1
75	}
76	return ""
77}
78
79func (m *Message) GetOneof_1() isMessage_Oneof_1 {
80	if m != nil {
81		return m.Oneof_1
82	}
83	return nil
84}
85
86func (x *Message) GetField_10() string {
87	if x, ok := x.GetOneof_1().(*Message_Field_10); ok {
88		return x.Field_10
89	}
90	return ""
91}
92
93func (x *Message) GetField_20() string {
94	if x != nil && x.Field_20 != nil {
95		return *x.Field_20
96	}
97	return ""
98}
99
100type isMessage_Oneof_1 interface {
101	isMessage_Oneof_1()
102}
103
104type Message_Field_10 struct {
105	Field_10 string `protobuf:"bytes,10,opt,name=field_10,json=field10,oneof"`
106}
107
108func (*Message_Field_10) isMessage_Oneof_1() {}
109
110var file_internal_testprotos_order_order_proto_extTypes = []protoimpl.ExtensionInfo{
111	{
112		ExtendedType:  (*Message)(nil),
113		ExtensionType: (*string)(nil),
114		Field:         30,
115		Name:          "goproto.proto.order.field_30",
116		Tag:           "bytes,30,opt,name=field_30",
117		Filename:      "internal/testprotos/order/order.proto",
118	},
119	{
120		ExtendedType:  (*Message)(nil),
121		ExtensionType: (*string)(nil),
122		Field:         31,
123		Name:          "goproto.proto.order.field_31",
124		Tag:           "bytes,31,opt,name=field_31",
125		Filename:      "internal/testprotos/order/order.proto",
126	},
127	{
128		ExtendedType:  (*Message)(nil),
129		ExtensionType: (*string)(nil),
130		Field:         32,
131		Name:          "goproto.proto.order.field_32",
132		Tag:           "bytes,32,opt,name=field_32",
133		Filename:      "internal/testprotos/order/order.proto",
134	},
135}
136
137// Extension fields to Message.
138var (
139	// optional string field_30 = 30;
140	E_Field_30 = &file_internal_testprotos_order_order_proto_extTypes[0]
141	// optional string field_31 = 31;
142	E_Field_31 = &file_internal_testprotos_order_order_proto_extTypes[1]
143	// optional string field_32 = 32;
144	E_Field_32 = &file_internal_testprotos_order_order_proto_extTypes[2]
145)
146
147var File_internal_testprotos_order_order_proto protoreflect.FileDescriptor
148
149var file_internal_testprotos_order_order_proto_rawDesc = []byte{
150	0x0a, 0x25, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
151	0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2f, 0x6f, 0x72, 0x64, 0x65,
152	0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
153	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x84, 0x01, 0x0a,
154	0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c,
155	0x64, 0x5f, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64,
156	0x32, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x31, 0x18, 0x01, 0x20, 0x01,
157	0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x12, 0x1b, 0x0a, 0x08, 0x66, 0x69,
158	0x65, 0x6c, 0x64, 0x5f, 0x31, 0x30, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07,
159	0x66, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x30, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x69, 0x65, 0x6c, 0x64,
160	0x5f, 0x32, 0x30, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64,
161	0x32, 0x30, 0x2a, 0x04, 0x08, 0x1e, 0x10, 0x29, 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x6e, 0x65, 0x6f,
162	0x66, 0x5f, 0x31, 0x3a, 0x37, 0x0a, 0x08, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x33, 0x30, 0x12,
163	0x1c, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
164	0x6f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x1e, 0x20,
165	0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x33, 0x30, 0x3a, 0x37, 0x0a, 0x08,
166	0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x33, 0x31, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f,
167	0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x4d,
168	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69,
169	0x65, 0x6c, 0x64, 0x33, 0x31, 0x3a, 0x37, 0x0a, 0x08, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x33,
170	0x32, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
171	0x6f, 0x2e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
172	0x20, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x33, 0x32, 0x42, 0x36,
173	0x5a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
174	0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74,
175	0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
176	0x2f, 0x6f, 0x72, 0x64, 0x65, 0x72,
177}
178
179var (
180	file_internal_testprotos_order_order_proto_rawDescOnce sync.Once
181	file_internal_testprotos_order_order_proto_rawDescData = file_internal_testprotos_order_order_proto_rawDesc
182)
183
184func file_internal_testprotos_order_order_proto_rawDescGZIP() []byte {
185	file_internal_testprotos_order_order_proto_rawDescOnce.Do(func() {
186		file_internal_testprotos_order_order_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_testprotos_order_order_proto_rawDescData)
187	})
188	return file_internal_testprotos_order_order_proto_rawDescData
189}
190
191var file_internal_testprotos_order_order_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
192var file_internal_testprotos_order_order_proto_goTypes = []interface{}{
193	(*Message)(nil), // 0: goproto.proto.order.Message
194}
195var file_internal_testprotos_order_order_proto_depIdxs = []int32{
196	0, // 0: goproto.proto.order.field_30:extendee -> goproto.proto.order.Message
197	0, // 1: goproto.proto.order.field_31:extendee -> goproto.proto.order.Message
198	0, // 2: goproto.proto.order.field_32:extendee -> goproto.proto.order.Message
199	3, // [3:3] is the sub-list for method output_type
200	3, // [3:3] is the sub-list for method input_type
201	3, // [3:3] is the sub-list for extension type_name
202	0, // [0:3] is the sub-list for extension extendee
203	0, // [0:0] is the sub-list for field type_name
204}
205
206func init() { file_internal_testprotos_order_order_proto_init() }
207func file_internal_testprotos_order_order_proto_init() {
208	if File_internal_testprotos_order_order_proto != nil {
209		return
210	}
211	if !protoimpl.UnsafeEnabled {
212		file_internal_testprotos_order_order_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
213			switch v := v.(*Message); i {
214			case 0:
215				return &v.state
216			case 1:
217				return &v.sizeCache
218			case 2:
219				return &v.unknownFields
220			case 3:
221				return &v.extensionFields
222			default:
223				return nil
224			}
225		}
226	}
227	file_internal_testprotos_order_order_proto_msgTypes[0].OneofWrappers = []interface{}{
228		(*Message_Field_10)(nil),
229	}
230	type x struct{}
231	out := protoimpl.TypeBuilder{
232		File: protoimpl.DescBuilder{
233			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
234			RawDescriptor: file_internal_testprotos_order_order_proto_rawDesc,
235			NumEnums:      0,
236			NumMessages:   1,
237			NumExtensions: 3,
238			NumServices:   0,
239		},
240		GoTypes:           file_internal_testprotos_order_order_proto_goTypes,
241		DependencyIndexes: file_internal_testprotos_order_order_proto_depIdxs,
242		MessageInfos:      file_internal_testprotos_order_order_proto_msgTypes,
243		ExtensionInfos:    file_internal_testprotos_order_order_proto_extTypes,
244	}.Build()
245	File_internal_testprotos_order_order_proto = out.File
246	file_internal_testprotos_order_order_proto_rawDesc = nil
247	file_internal_testprotos_order_order_proto_goTypes = nil
248	file_internal_testprotos_order_order_proto_depIdxs = nil
249}
250