blob: 26d8165b5f016a6568fec221c4afe8919f1e5ac5 [file] [log] [blame]
Damien Neil658051b2018-09-10 12:26:21 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: proto3/fields.proto
3
4package proto3
5
Damien Neil1ec33152018-09-13 13:12:36 -07006import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
9 math "math"
10)
11
12// Reference imports to suppress errors if they are not otherwise used.
13var _ = proto.Marshal
14var _ = fmt.Errorf
15var _ = math.Inf
Damien Neil658051b2018-09-10 12:26:21 -070016
Damien Neild4127922018-09-12 11:13:49 -070017// This is a compile-time assertion to ensure that this generated file
18// is compatible with the proto package it is being compiled against.
19// A compilation error at this line likely means your copy of the
20// proto package needs to be updated.
21const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
22
Damien Neil658051b2018-09-10 12:26:21 -070023type FieldTestMessage_Enum int32
24
25const (
26 FieldTestMessage_ZERO FieldTestMessage_Enum = 0
27)
28
29var FieldTestMessage_Enum_name = map[int32]string{
30 0: "ZERO",
31}
32
33var FieldTestMessage_Enum_value = map[string]int32{
34 "ZERO": 0,
35}
36
37func (x FieldTestMessage_Enum) String() string {
38 return proto.EnumName(FieldTestMessage_Enum_name, int32(x))
39}
40
41func (FieldTestMessage_Enum) EnumDescriptor() ([]byte, []int) {
42 return fileDescriptor_f1e3ea068187307c, []int{0, 0}
43}
44
45type FieldTestMessage struct {
Damien Neil0bd5a382018-09-13 15:07:10 -070046 OptionalBool string `protobuf:"bytes,1,opt,name=optional_bool,json=optionalBool,proto3" json:"optional_bool,omitempty"`
47 OptionalEnum FieldTestMessage_Enum `protobuf:"varint,2,opt,name=optional_enum,json=optionalEnum,proto3,enum=goproto.protoc.proto3.FieldTestMessage_Enum" json:"optional_enum,omitempty"`
48 OptionalInt32 int32 `protobuf:"varint,3,opt,name=optional_int32,json=optionalInt32,proto3" json:"optional_int32,omitempty"`
49 OptionalSint32 int32 `protobuf:"zigzag32,4,opt,name=optional_sint32,json=optionalSint32,proto3" json:"optional_sint32,omitempty"`
50 OptionalUint32 uint32 `protobuf:"varint,5,opt,name=optional_uint32,json=optionalUint32,proto3" json:"optional_uint32,omitempty"`
51 OptionalInt64 int64 `protobuf:"varint,6,opt,name=optional_int64,json=optionalInt64,proto3" json:"optional_int64,omitempty"`
52 OptionalSint64 int64 `protobuf:"zigzag64,7,opt,name=optional_sint64,json=optionalSint64,proto3" json:"optional_sint64,omitempty"`
53 OptionalUint64 uint64 `protobuf:"varint,8,opt,name=optional_uint64,json=optionalUint64,proto3" json:"optional_uint64,omitempty"`
54 OptionalSfixed32 int32 `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32,proto3" json:"optional_sfixed32,omitempty"`
55 OptionalFixed32 uint32 `protobuf:"fixed32,10,opt,name=optional_fixed32,json=optionalFixed32,proto3" json:"optional_fixed32,omitempty"`
56 OptionalFloat float32 `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat,proto3" json:"optional_float,omitempty"`
57 OptionalSfixed64 int64 `protobuf:"fixed64,12,opt,name=optional_sfixed64,json=optionalSfixed64,proto3" json:"optional_sfixed64,omitempty"`
58 OptionalFixed64 uint64 `protobuf:"fixed64,13,opt,name=optional_fixed64,json=optionalFixed64,proto3" json:"optional_fixed64,omitempty"`
59 OptionalDouble float64 `protobuf:"fixed64,14,opt,name=optional_double,json=optionalDouble,proto3" json:"optional_double,omitempty"`
60 OptionalString string `protobuf:"bytes,15,opt,name=optional_string,json=optionalString,proto3" json:"optional_string,omitempty"`
61 OptionalBytes []byte `protobuf:"bytes,16,opt,name=optional_bytes,json=optionalBytes,proto3" json:"optional_bytes,omitempty"`
62 Optional_Message *FieldTestMessage_Message `protobuf:"bytes,17,opt,name=optional_Message,json=optionalMessage,proto3" json:"optional_Message,omitempty"`
63 MapInt32Int64 map[int32]int64 `protobuf:"bytes,500,rep,name=map_int32_int64,json=mapInt32Int64,proto3" json:"map_int32_int64,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
64 MapStringMessage map[string]*FieldTestMessage_Message `protobuf:"bytes,501,rep,name=map_string_message,json=mapStringMessage,proto3" json:"map_string_message,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
65 MapFixed64Enum map[uint64]FieldTestMessage_Enum `protobuf:"bytes,502,rep,name=map_fixed64_enum,json=mapFixed64Enum,proto3" json:"map_fixed64_enum,omitempty" protobuf_key:"fixed64,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=goproto.protoc.proto3.FieldTestMessage_Enum"`
66 XXX_NoUnkeyedLiteral struct{} `json:"-"`
67 XXX_unrecognized []byte `json:"-"`
68 XXX_sizecache int32 `json:"-"`
Damien Neil658051b2018-09-10 12:26:21 -070069}
70
Damien Neila1c6abc2018-09-12 13:36:34 -070071func (m *FieldTestMessage) Reset() { *m = FieldTestMessage{} }
72func (m *FieldTestMessage) String() string { return proto.CompactTextString(m) }
73func (*FieldTestMessage) ProtoMessage() {}
74func (*FieldTestMessage) Descriptor() ([]byte, []int) {
75 return fileDescriptor_f1e3ea068187307c, []int{0}
76}
77func (m *FieldTestMessage) XXX_Unmarshal(b []byte) error {
78 return xxx_messageInfo_FieldTestMessage.Unmarshal(m, b)
79}
80func (m *FieldTestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
81 return xxx_messageInfo_FieldTestMessage.Marshal(b, m, deterministic)
82}
83func (m *FieldTestMessage) XXX_Merge(src proto.Message) {
84 xxx_messageInfo_FieldTestMessage.Merge(m, src)
85}
86func (m *FieldTestMessage) XXX_Size() int {
87 return xxx_messageInfo_FieldTestMessage.Size(m)
88}
89func (m *FieldTestMessage) XXX_DiscardUnknown() {
90 xxx_messageInfo_FieldTestMessage.DiscardUnknown(m)
91}
92
93var xxx_messageInfo_FieldTestMessage proto.InternalMessageInfo
94
Damien Neil77f82fe2018-09-13 10:59:17 -070095func (m *FieldTestMessage) GetOptionalBool() string {
96 if m != nil {
97 return m.OptionalBool
98 }
99 return ""
100}
101
102func (m *FieldTestMessage) GetOptionalEnum() FieldTestMessage_Enum {
103 if m != nil {
104 return m.OptionalEnum
105 }
106 return FieldTestMessage_ZERO
107}
108
109func (m *FieldTestMessage) GetOptionalInt32() int32 {
110 if m != nil {
111 return m.OptionalInt32
112 }
113 return 0
114}
115
116func (m *FieldTestMessage) GetOptionalSint32() int32 {
117 if m != nil {
118 return m.OptionalSint32
119 }
120 return 0
121}
122
123func (m *FieldTestMessage) GetOptionalUint32() uint32 {
124 if m != nil {
125 return m.OptionalUint32
126 }
127 return 0
128}
129
130func (m *FieldTestMessage) GetOptionalInt64() int64 {
131 if m != nil {
132 return m.OptionalInt64
133 }
134 return 0
135}
136
137func (m *FieldTestMessage) GetOptionalSint64() int64 {
138 if m != nil {
139 return m.OptionalSint64
140 }
141 return 0
142}
143
144func (m *FieldTestMessage) GetOptionalUint64() uint64 {
145 if m != nil {
146 return m.OptionalUint64
147 }
148 return 0
149}
150
151func (m *FieldTestMessage) GetOptionalSfixed32() int32 {
152 if m != nil {
153 return m.OptionalSfixed32
154 }
155 return 0
156}
157
158func (m *FieldTestMessage) GetOptionalFixed32() uint32 {
159 if m != nil {
160 return m.OptionalFixed32
161 }
162 return 0
163}
164
165func (m *FieldTestMessage) GetOptionalFloat() float32 {
166 if m != nil {
167 return m.OptionalFloat
168 }
169 return 0
170}
171
172func (m *FieldTestMessage) GetOptionalSfixed64() int64 {
173 if m != nil {
174 return m.OptionalSfixed64
175 }
176 return 0
177}
178
179func (m *FieldTestMessage) GetOptionalFixed64() uint64 {
180 if m != nil {
181 return m.OptionalFixed64
182 }
183 return 0
184}
185
186func (m *FieldTestMessage) GetOptionalDouble() float64 {
187 if m != nil {
188 return m.OptionalDouble
189 }
190 return 0
191}
192
193func (m *FieldTestMessage) GetOptionalString() string {
194 if m != nil {
195 return m.OptionalString
196 }
197 return ""
198}
199
200func (m *FieldTestMessage) GetOptionalBytes() []byte {
201 if m != nil {
202 return m.OptionalBytes
203 }
204 return nil
205}
206
207func (m *FieldTestMessage) GetOptional_Message() *FieldTestMessage_Message {
208 if m != nil {
209 return m.Optional_Message
210 }
211 return nil
212}
213
Damien Neil0bd5a382018-09-13 15:07:10 -0700214func (m *FieldTestMessage) GetMapInt32Int64() map[int32]int64 {
215 if m != nil {
216 return m.MapInt32Int64
217 }
218 return nil
219}
220
221func (m *FieldTestMessage) GetMapStringMessage() map[string]*FieldTestMessage_Message {
222 if m != nil {
223 return m.MapStringMessage
224 }
225 return nil
226}
227
228func (m *FieldTestMessage) GetMapFixed64Enum() map[uint64]FieldTestMessage_Enum {
229 if m != nil {
230 return m.MapFixed64Enum
231 }
232 return nil
233}
234
Damien Neil658051b2018-09-10 12:26:21 -0700235type FieldTestMessage_Message struct {
236 XXX_NoUnkeyedLiteral struct{} `json:"-"`
237 XXX_unrecognized []byte `json:"-"`
238 XXX_sizecache int32 `json:"-"`
239}
240
Damien Neila1c6abc2018-09-12 13:36:34 -0700241func (m *FieldTestMessage_Message) Reset() { *m = FieldTestMessage_Message{} }
242func (m *FieldTestMessage_Message) String() string { return proto.CompactTextString(m) }
243func (*FieldTestMessage_Message) ProtoMessage() {}
244func (*FieldTestMessage_Message) Descriptor() ([]byte, []int) {
Damien Neil0bd5a382018-09-13 15:07:10 -0700245 return fileDescriptor_f1e3ea068187307c, []int{0, 3}
Damien Neila1c6abc2018-09-12 13:36:34 -0700246}
247func (m *FieldTestMessage_Message) XXX_Unmarshal(b []byte) error {
248 return xxx_messageInfo_FieldTestMessage_Message.Unmarshal(m, b)
249}
250func (m *FieldTestMessage_Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
251 return xxx_messageInfo_FieldTestMessage_Message.Marshal(b, m, deterministic)
252}
253func (m *FieldTestMessage_Message) XXX_Merge(src proto.Message) {
254 xxx_messageInfo_FieldTestMessage_Message.Merge(m, src)
255}
256func (m *FieldTestMessage_Message) XXX_Size() int {
257 return xxx_messageInfo_FieldTestMessage_Message.Size(m)
258}
259func (m *FieldTestMessage_Message) XXX_DiscardUnknown() {
260 xxx_messageInfo_FieldTestMessage_Message.DiscardUnknown(m)
261}
262
263var xxx_messageInfo_FieldTestMessage_Message proto.InternalMessageInfo
264
Damien Neil658051b2018-09-10 12:26:21 -0700265func init() {
Damien Neilce36f8d2018-09-13 15:19:08 -0700266 proto.RegisterType((*FieldTestMessage)(nil), "goproto.protoc.proto3.FieldTestMessage")
267 proto.RegisterMapType((map[uint64]FieldTestMessage_Enum)(nil), "goproto.protoc.proto3.FieldTestMessage.MapFixed64EnumEntry")
268 proto.RegisterMapType((map[int32]int64)(nil), "goproto.protoc.proto3.FieldTestMessage.MapInt32Int64Entry")
269 proto.RegisterMapType((map[string]*FieldTestMessage_Message)(nil), "goproto.protoc.proto3.FieldTestMessage.MapStringMessageEntry")
270 proto.RegisterType((*FieldTestMessage_Message)(nil), "goproto.protoc.proto3.FieldTestMessage.Message")
Damien Neil658051b2018-09-10 12:26:21 -0700271 proto.RegisterEnum("goproto.protoc.proto3.FieldTestMessage_Enum", FieldTestMessage_Enum_name, FieldTestMessage_Enum_value)
272}
273
274func init() { proto.RegisterFile("proto3/fields.proto", fileDescriptor_f1e3ea068187307c) }
275
276var fileDescriptor_f1e3ea068187307c = []byte{
Damien Neil0bd5a382018-09-13 15:07:10 -0700277 // 596 bytes of a gzipped FileDescriptorProto
278 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0x4b, 0x8f, 0xd3, 0x3c,
279 0x18, 0x85, 0x3f, 0x4f, 0x7a, 0x99, 0xba, 0xb7, 0xd4, 0xf3, 0x8d, 0x64, 0xcd, 0xca, 0x1a, 0x84,
280 0x30, 0x82, 0x49, 0xa5, 0x36, 0x8a, 0x60, 0x46, 0x48, 0xa8, 0xa2, 0x95, 0x58, 0x20, 0x44, 0x80,
281 0x4d, 0x37, 0x55, 0xda, 0xba, 0x51, 0x44, 0x12, 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304 0x69, 0x84, 0xdf, 0x8a, 0xf3, 0xe6, 0x0c, 0x8e, 0xda, 0xb7, 0x54, 0x50, 0x28, 0x3d, 0xa8, 0xc8,
305 0x68, 0x03, 0x13, 0xed, 0x70, 0x9a, 0xea, 0x1a, 0xff, 0x51, 0xac, 0x87, 0x33, 0x58, 0xe9, 0xb1,
306 0x27, 0x77, 0x58, 0x91, 0x7a, 0x41, 0x49, 0xbc, 0x79, 0x0b, 0xd1, 0x71, 0x74, 0xa4, 0x43, 0xed,
307 0x1b, 0xdb, 0xcb, 0xc7, 0xa5, 0x6e, 0x27, 0x53, 0xf4, 0x3f, 0xac, 0x7f, 0x77, 0xfc, 0x98, 0xc9,
308 0xb7, 0x44, 0xb3, 0xd5, 0xe2, 0xfe, 0xe2, 0x15, 0xb8, 0x11, 0xf0, 0xfa, 0x64, 0xa8, 0x62, 0x91,
309 0x96, 0x2a, 0x32, 0x2d, 0x16, 0xf9, 0x87, 0x83, 0x2f, 0x50, 0x39, 0xbc, 0x3a, 0x11, 0xaf, 0xc8,
310 0x6c, 0x28, 0xe6, 0xa4, 0xc8, 0x3c, 0xf7, 0x11, 0x2c, 0x00, 0x5b, 0xb0, 0x99, 0xfe, 0x74, 0xab,
311 0xc3, 0x9a, 0x7c, 0x14, 0x2f, 0x61, 0x6d, 0x3e, 0xb5, 0x3f, 0xea, 0xff, 0x4d, 0x1e, 0xe6, 0xaf,
312 0x5d, 0xce, 0x5d, 0x9f, 0x19, 0x2e, 0xf7, 0x9d, 0xd0, 0x35, 0xf8, 0xce, 0x1d, 0xca, 0xca, 0xc3,
313 0x55, 0xb0, 0x56, 0xb3, 0xd5, 0x9d, 0xcb, 0xc2, 0x3b, 0x97, 0x0f, 0x05, 0x8b, 0xc4, 0xda, 0x11,
314 0x8e, 0x92, 0xc7, 0xcb, 0x86, 0x1a, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x3e, 0xd2, 0xfc, 0xf5,
315 0x1d, 0x06, 0x00, 0x00,
Damien Neil658051b2018-09-10 12:26:21 -0700316}