| 1 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 |
// versions: |
| 3 |
// protoc-gen-go v1.23.0 |
| 4 |
// protoc v3.11.4 |
| 5 |
// source: fixtures.proto |
| 6 |
|
| 7 |
package fixtures |
| 8 |
|
| 9 |
import ( |
| 10 |
proto "github.com/golang/protobuf/proto" |
| 11 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 12 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 13 |
reflect "reflect" |
| 14 |
sync "sync" |
| 15 |
) |
| 16 |
|
| 17 |
const ( |
| 18 |
// Verify that this generated code is sufficiently up-to-date. |
| 19 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 20 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 21 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 22 |
) |
| 23 |
|
| 24 |
// This is a compile-time assertion that a sufficiently up-to-date version |
| 25 |
// of the legacy proto package is being used. |
| 26 |
const _ = proto.ProtoPackageIsVersion4 |
| 27 |
|
| 28 |
type Message struct { |
| 29 |
state protoimpl.MessageState |
| 30 |
sizeCache protoimpl.SizeCache |
| 31 |
unknownFields protoimpl.UnknownFields |
| 32 |
|
| 33 |
A int64 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"` |
| 34 |
B uint32 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"` |
| 35 |
C uint64 `protobuf:"varint,3,opt,name=c,proto3" json:"c,omitempty"` |
| 36 |
D string `protobuf:"bytes,4,opt,name=d,proto3" json:"d,omitempty"` |
| 37 |
Signed_1 int32 `protobuf:"zigzag32,10,opt,name=signed_1,json=signed1,proto3" json:"signed_1,omitempty"` |
| 38 |
Signed_2 int64 `protobuf:"zigzag64,11,opt,name=signed_2,json=signed2,proto3" json:"signed_2,omitempty"` |
| 39 |
Fixed_1 uint32 `protobuf:"fixed32,20,opt,name=fixed_1,json=fixed1,proto3" json:"fixed_1,omitempty"` |
| 40 |
Fixed_2 uint64 `protobuf:"fixed64,21,opt,name=fixed_2,json=fixed2,proto3" json:"fixed_2,omitempty"` |
| 41 |
SignedFixed_1 int32 `protobuf:"fixed32,30,opt,name=signed_fixed_1,json=signedFixed1,proto3" json:"signed_fixed_1,omitempty"` |
| 42 |
SignedFixed_2 int64 `protobuf:"fixed64,31,opt,name=signed_fixed_2,json=signedFixed2,proto3" json:"signed_fixed_2,omitempty"` |
| 43 |
Float32 float32 `protobuf:"fixed32,40,opt,name=float32,proto3" json:"float32,omitempty"` |
| 44 |
Float64 float64 `protobuf:"fixed64,41,opt,name=float64,proto3" json:"float64,omitempty"` |
| 45 |
} |
| 46 |
|
| 47 |
func (x *Message) Reset() { |
| 48 |
*x = Message{} |
| 49 |
if protoimpl.UnsafeEnabled { |
| 50 |
mi := &file_fixtures_proto_msgTypes[0] |
| 51 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 52 |
ms.StoreMessageInfo(mi) |
| 53 |
} |
| 54 |
} |
| 55 |
|
| 56 |
func (x *Message) String() string { |
| 57 |
return protoimpl.X.MessageStringOf(x) |
| 58 |
} |
| 59 |
|
| 60 |
func (*Message) ProtoMessage() {} |
| 61 |
|
| 62 |
func (x *Message) ProtoReflect() protoreflect.Message { |
| 63 |
mi := &file_fixtures_proto_msgTypes[0] |
| 64 |
if protoimpl.UnsafeEnabled && x != nil { |
| 65 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 66 |
if ms.LoadMessageInfo() == nil { |
| 67 |
ms.StoreMessageInfo(mi) |
| 68 |
} |
| 69 |
return ms |
| 70 |
} |
| 71 |
return mi.MessageOf(x) |
| 72 |
} |
| 73 |
|
| 74 |
// Deprecated: Use Message.ProtoReflect.Descriptor instead. |
| 75 |
func (*Message) Descriptor() ([]byte, []int) { |
| 76 |
return file_fixtures_proto_rawDescGZIP(), []int{0} |
| 77 |
} |
| 78 |
|
| 79 |
func (x *Message) GetA() int64 { |
| 80 |
if x != nil { |
| 81 |
return x.A |
| 82 |
} |
| 83 |
return 0 |
| 84 |
} |
| 85 |
|
| 86 |
func (x *Message) GetB() uint32 { |
| 87 |
if x != nil { |
| 88 |
return x.B |
| 89 |
} |
| 90 |
return 0 |
| 91 |
} |
| 92 |
|
| 93 |
func (x *Message) GetC() uint64 { |
| 94 |
if x != nil { |
| 95 |
return x.C |
| 96 |
} |
| 97 |
return 0 |
| 98 |
} |
| 99 |
|
| 100 |
func (x *Message) GetD() string { |
| 101 |
if x != nil { |
| 102 |
return x.D |
| 103 |
} |
| 104 |
return "" |
| 105 |
} |
| 106 |
|
| 107 |
func (x *Message) GetSigned_1() int32 { |
| 108 |
if x != nil { |
| 109 |
return x.Signed_1 |
| 110 |
} |
| 111 |
return 0 |
| 112 |
} |
| 113 |
|
| 114 |
func (x *Message) GetSigned_2() int64 { |
| 115 |
if x != nil { |
| 116 |
return x.Signed_2 |
| 117 |
} |
| 118 |
return 0 |
| 119 |
} |
| 120 |
|
| 121 |
func (x *Message) GetFixed_1() uint32 { |
| 122 |
if x != nil { |
| 123 |
return x.Fixed_1 |
| 124 |
} |
| 125 |
return 0 |
| 126 |
} |
| 127 |
|
| 128 |
func (x *Message) GetFixed_2() uint64 { |
| 129 |
if x != nil { |
| 130 |
return x.Fixed_2 |
| 131 |
} |
| 132 |
return 0 |
| 133 |
} |
| 134 |
|
| 135 |
func (x *Message) GetSignedFixed_1() int32 { |
| 136 |
if x != nil { |
| 137 |
return x.SignedFixed_1 |
| 138 |
} |
| 139 |
return 0 |
| 140 |
} |
| 141 |
|
| 142 |
func (x *Message) GetSignedFixed_2() int64 { |
| 143 |
if x != nil { |
| 144 |
return x.SignedFixed_2 |
| 145 |
} |
| 146 |
return 0 |
| 147 |
} |
| 148 |
|
| 149 |
func (x *Message) GetFloat32() float32 { |
| 150 |
if x != nil { |
| 151 |
return x.Float32 |
| 152 |
} |
| 153 |
return 0 |
| 154 |
} |
| 155 |
|
| 156 |
func (x *Message) GetFloat64() float64 { |
| 157 |
if x != nil { |
| 158 |
return x.Float64 |
| 159 |
} |
| 160 |
return 0 |
| 161 |
} |
| 162 |
|
| 163 |
var File_fixtures_proto protoreflect.FileDescriptor |
| 164 |
|
| 165 |
var file_fixtures_proto_rawDesc = []byte{ |
| 166 |
0x0a, 0x0e, 0x66, 0x69, 0x78, 0x74, 0x75, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 167 |
0x12, 0x08, 0x66, 0x69, 0x78, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0xa9, 0x02, 0x0a, 0x07, 0x4d, |
| 168 |
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 169 |
0x03, 0x52, 0x01, 0x61, 0x12, 0x0c, 0x0a, 0x01, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, |
| 170 |
0x01, 0x62, 0x12, 0x0c, 0x0a, 0x01, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x01, 0x63, |
| 171 |
0x12, 0x0c, 0x0a, 0x01, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x64, 0x12, 0x19, |
| 172 |
0x0a, 0x08, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x31, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x11, |
| 173 |
0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x31, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x69, 0x67, |
| 174 |
0x6e, 0x65, 0x64, 0x5f, 0x32, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73, 0x69, 0x67, |
| 175 |
0x6e, 0x65, 0x64, 0x32, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x31, 0x18, |
| 176 |
0x14, 0x20, 0x01, 0x28, 0x07, 0x52, 0x06, 0x66, 0x69, 0x78, 0x65, 0x64, 0x31, 0x12, 0x17, 0x0a, |
| 177 |
0x07, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x32, 0x18, 0x15, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, |
| 178 |
0x66, 0x69, 0x78, 0x65, 0x64, 0x32, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, |
| 179 |
0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x31, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0f, 0x52, 0x0c, |
| 180 |
0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x46, 0x69, 0x78, 0x65, 0x64, 0x31, 0x12, 0x24, 0x0a, 0x0e, |
| 181 |
0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x32, 0x18, 0x1f, |
| 182 |
0x20, 0x01, 0x28, 0x10, 0x52, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x46, 0x69, 0x78, 0x65, |
| 183 |
0x64, 0x32, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x18, 0x28, 0x20, |
| 184 |
0x01, 0x28, 0x02, 0x52, 0x07, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x12, 0x18, 0x0a, 0x07, |
| 185 |
0x66, 0x6c, 0x6f, 0x61, 0x74, 0x36, 0x34, 0x18, 0x29, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x66, |
| 186 |
0x6c, 0x6f, 0x61, 0x74, 0x36, 0x34, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, |
| 187 |
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x2f, 0x65, |
| 188 |
0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x66, 0x69, |
| 189 |
0x78, 0x74, 0x75, 0x72, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 190 |
} |
| 191 |
|
| 192 |
var ( |
| 193 |
file_fixtures_proto_rawDescOnce sync.Once |
| 194 |
file_fixtures_proto_rawDescData = file_fixtures_proto_rawDesc |
| 195 |
) |
| 196 |
|
| 197 |
func file_fixtures_proto_rawDescGZIP() []byte { |
| 198 |
file_fixtures_proto_rawDescOnce.Do(func() { |
| 199 |
file_fixtures_proto_rawDescData = protoimpl.X.CompressGZIP(file_fixtures_proto_rawDescData) |
| 200 |
}) |
| 201 |
return file_fixtures_proto_rawDescData |
| 202 |
} |
| 203 |
|
| 204 |
var file_fixtures_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 205 |
var file_fixtures_proto_goTypes = []any{ |
| 206 |
(*Message)(nil), // 0: fixtures.Message |
| 207 |
} |
| 208 |
var file_fixtures_proto_depIdxs = []int32{ |
| 209 |
0, // [0:0] is the sub-list for method output_type |
| 210 |
0, // [0:0] is the sub-list for method input_type |
| 211 |
0, // [0:0] is the sub-list for extension type_name |
| 212 |
0, // [0:0] is the sub-list for extension extendee |
| 213 |
0, // [0:0] is the sub-list for field type_name |
| 214 |
} |
| 215 |
|
| 216 |
func init() { file_fixtures_proto_init() } |
| 217 |
func file_fixtures_proto_init() { |
| 218 |
if File_fixtures_proto != nil { |
| 219 |
return |
| 220 |
} |
| 221 |
if !protoimpl.UnsafeEnabled { |
| 222 |
file_fixtures_proto_msgTypes[0].Exporter = func(v any, i int) any { |
| 223 |
switch v := v.(*Message); i { |
| 224 |
case 0: |
| 225 |
return &v.state |
| 226 |
case 1: |
| 227 |
return &v.sizeCache |
| 228 |
case 2: |
| 229 |
return &v.unknownFields |
| 230 |
default: |
| 231 |
return nil |
| 232 |
} |
| 233 |
} |
| 234 |
} |
| 235 |
type x struct{} |
| 236 |
out := protoimpl.TypeBuilder{ |
| 237 |
File: protoimpl.DescBuilder{ |
| 238 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 239 |
RawDescriptor: file_fixtures_proto_rawDesc, |
| 240 |
NumEnums: 0, |
| 241 |
NumMessages: 1, |
| 242 |
NumExtensions: 0, |
| 243 |
NumServices: 0, |
| 244 |
}, |
| 245 |
GoTypes: file_fixtures_proto_goTypes, |
| 246 |
DependencyIndexes: file_fixtures_proto_depIdxs, |
| 247 |
MessageInfos: file_fixtures_proto_msgTypes, |
| 248 |
}.Build() |
| 249 |
File_fixtures_proto = out.File |
| 250 |
file_fixtures_proto_rawDesc = nil |
| 251 |
file_fixtures_proto_goTypes = nil |
| 252 |
file_fixtures_proto_depIdxs = nil |
| 253 |
} |