github.com/RomiChan/protobuf@v0.1.1-0.20230204044148-2ed269a2e54d/proto/internal/testproto/proto2.pb.go (about) 1 // Code generated by protoc-gen-golite. DO NOT EDIT. 2 // source: proto2.proto 3 4 package testproto 5 6 import ( 7 proto "github.com/RomiChan/protobuf/proto" 8 ) 9 10 type Proto2 struct { 11 BoolValue proto.Option[bool] `protobuf:"varint,1,opt"` 12 Int32Val proto.Option[int32] `protobuf:"varint,2,opt"` 13 Uint32Val proto.Option[uint32] `protobuf:"varint,3,opt"` 14 Int64Val proto.Option[int64] `protobuf:"varint,4,opt"` 15 Uint64Val proto.Option[uint64] `protobuf:"varint,5,opt"` 16 FloatVal proto.Option[float32] `protobuf:"fixed32,6,opt"` 17 DoubleVal proto.Option[float64] `protobuf:"fixed64,7,opt"` 18 StringVal proto.Option[string] `protobuf:"bytes,8,opt"` 19 BytesVal []byte `protobuf:"bytes,9,opt"` 20 Fixed32Val proto.Option[uint32] `protobuf:"fixed32,10,opt"` 21 Fixed64Val proto.Option[uint64] `protobuf:"fixed64,11,opt"` 22 Sint32Val proto.Option[int32] `protobuf:"zigzag32,12,opt"` 23 Sint64Val proto.Option[int64] `protobuf:"zigzag64,13,opt"` 24 Nested *Proto2_NestedMessage `protobuf:"bytes,14,opt"` 25 } 26 27 type Proto2_NestedMessage struct { 28 Int32Val proto.Option[int32] `protobuf:"varint,1,opt"` 29 Int64Val proto.Option[int64] `protobuf:"varint,2,opt"` 30 StringVal proto.Option[string] `protobuf:"bytes,3,opt"` 31 }