| 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // versions: |
| 3 | // protoc-gen-go v1.31.0 |
| 4 | // protoc v3.11.4 |
| 5 | // source: github.com/tonistiigi/fsutil/types/wire.proto |
| 6 | |
| 7 | package types |
| 8 | |
| 9 | import ( |
| 10 | _ "github.com/planetscale/vtprotobuf/vtproto" |
| 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 | type Packet_PacketType int32 |
| 25 | |
| 26 | const ( |
| 27 | Packet_PACKET_STAT Packet_PacketType = 0 |
| 28 | Packet_PACKET_REQ Packet_PacketType = 1 |
| 29 | Packet_PACKET_DATA Packet_PacketType = 2 |
| 30 | Packet_PACKET_FIN Packet_PacketType = 3 |
| 31 | Packet_PACKET_ERR Packet_PacketType = 4 |
| 32 | ) |
| 33 | |
| 34 | // Enum value maps for Packet_PacketType. |
| 35 | var ( |
| 36 | Packet_PacketType_name = map[int32]string{ |
| 37 | 0: "PACKET_STAT", |
| 38 | 1: "PACKET_REQ", |
| 39 | 2: "PACKET_DATA", |
| 40 | 3: "PACKET_FIN", |
| 41 | 4: "PACKET_ERR", |
| 42 | } |
| 43 | Packet_PacketType_value = map[string]int32{ |
| 44 | "PACKET_STAT": 0, |
| 45 | "PACKET_REQ": 1, |
| 46 | "PACKET_DATA": 2, |
| 47 | "PACKET_FIN": 3, |
| 48 | "PACKET_ERR": 4, |
| 49 | } |
| 50 | ) |
| 51 | |
| 52 | func (x Packet_PacketType) Enum() *Packet_PacketType { |
| 53 | p := new(Packet_PacketType) |
| 54 | *p = x |
| 55 | return p |
| 56 | } |
| 57 | |
| 58 | func (x Packet_PacketType) String() string { |
| 59 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 60 | } |
| 61 | |
| 62 | func (Packet_PacketType) Descriptor() protoreflect.EnumDescriptor { |
| 63 | return file_github_com_tonistiigi_fsutil_types_wire_proto_enumTypes[0].Descriptor() |
| 64 | } |
| 65 | |
| 66 | func (Packet_PacketType) Type() protoreflect.EnumType { |
| 67 | return &file_github_com_tonistiigi_fsutil_types_wire_proto_enumTypes[0] |
| 68 | } |
| 69 | |
| 70 | func (x Packet_PacketType) Number() protoreflect.EnumNumber { |
| 71 | return protoreflect.EnumNumber(x) |
| 72 | } |
| 73 | |
| 74 | // Deprecated: Use Packet_PacketType.Descriptor instead. |
| 75 | func (Packet_PacketType) EnumDescriptor() ([]byte, []int) { |
| 76 | return file_github_com_tonistiigi_fsutil_types_wire_proto_rawDescGZIP(), []int{0, 0} |
| 77 | } |
| 78 | |
| 79 | type Packet struct { |
| 80 | state protoimpl.MessageState |
| 81 | sizeCache protoimpl.SizeCache |
| 82 | unknownFields protoimpl.UnknownFields |
| 83 | |
| 84 | Type Packet_PacketType `protobuf:"varint,1,opt,name=type,proto3,enum=fsutil.types.Packet_PacketType" json:"type,omitempty"` |
| 85 | Stat *Stat `protobuf:"bytes,2,opt,name=stat,proto3" json:"stat,omitempty"` |
| 86 | ID uint32 `protobuf:"varint,3,opt,name=ID,proto3" json:"ID,omitempty"` |
| 87 | Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` |
| 88 | } |
| 89 | |
| 90 | func (x *Packet) Reset() { |
| 91 | *x = Packet{} |
| 92 | if protoimpl.UnsafeEnabled { |
| 93 | mi := &file_github_com_tonistiigi_fsutil_types_wire_proto_msgTypes[0] |
| 94 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 95 | ms.StoreMessageInfo(mi) |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | func (x *Packet) String() string { |
| 100 | return protoimpl.X.MessageStringOf(x) |
| 101 | } |
| 102 | |
| 103 | func (*Packet) ProtoMessage() {} |
| 104 | |
| 105 | func (x *Packet) ProtoReflect() protoreflect.Message { |
| 106 | mi := &file_github_com_tonistiigi_fsutil_types_wire_proto_msgTypes[0] |
| 107 | if protoimpl.UnsafeEnabled && x != nil { |
| 108 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 109 | if ms.LoadMessageInfo() == nil { |
| 110 | ms.StoreMessageInfo(mi) |
| 111 | } |
| 112 | return ms |
| 113 | } |
| 114 | return mi.MessageOf(x) |
| 115 | } |
| 116 | |
| 117 | // Deprecated: Use Packet.ProtoReflect.Descriptor instead. |
| 118 | func (*Packet) Descriptor() ([]byte, []int) { |
| 119 | return file_github_com_tonistiigi_fsutil_types_wire_proto_rawDescGZIP(), []int{0} |
| 120 | } |
| 121 | |
| 122 | func (x *Packet) GetType() Packet_PacketType { |
| 123 | if x != nil { |
| 124 | return x.Type |
| 125 | } |
| 126 | return Packet_PACKET_STAT |
| 127 | } |
| 128 | |
| 129 | func (x *Packet) GetStat() *Stat { |
| 130 | if x != nil { |
| 131 | return x.Stat |
| 132 | } |
| 133 | return nil |
| 134 | } |
| 135 | |
| 136 | func (x *Packet) GetID() uint32 { |
| 137 | if x != nil { |
| 138 | return x.ID |
| 139 | } |
| 140 | return 0 |
| 141 | } |
| 142 | |
| 143 | func (x *Packet) GetData() []byte { |
| 144 | if x != nil { |
| 145 | return x.Data |
| 146 | } |
| 147 | return nil |
| 148 | } |
| 149 | |
| 150 | var File_github_com_tonistiigi_fsutil_types_wire_proto protoreflect.FileDescriptor |
| 151 | |
| 152 | var file_github_com_tonistiigi_fsutil_types_wire_proto_rawDesc = []byte{ |
| 153 | 0x0a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x6f, 0x6e, |
| 154 | 0x69, 0x73, 0x74, 0x69, 0x69, 0x67, 0x69, 0x2f, 0x66, 0x73, 0x75, 0x74, 0x69, 0x6c, 0x2f, 0x74, |
| 155 | 0x79, 0x70, 0x65, 0x73, 0x2f, 0x77, 0x69, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, |
| 156 | 0x0c, 0x66, 0x73, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x1a, 0x33, 0x67, |
| 157 | 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x74, |
| 158 | 0x73, 0x63, 0x61, 0x6c, 0x65, 0x2f, 0x76, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, |
| 159 | 0x2f, 0x76, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, |
| 160 | 0x74, 0x6f, 0x1a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, |
| 161 | 0x6f, 0x6e, 0x69, 0x73, 0x74, 0x69, 0x69, 0x67, 0x69, 0x2f, 0x66, 0x73, 0x75, 0x74, 0x69, 0x6c, |
| 162 | 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 163 | 0x6f, 0x22, 0xef, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x33, 0x0a, 0x04, |
| 164 | 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x66, 0x73, 0x75, |
| 165 | 0x74, 0x69, 0x6c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, |
| 166 | 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, |
| 167 | 0x65, 0x12, 0x26, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 168 | 0x12, 0x2e, 0x66, 0x73, 0x75, 0x74, 0x69, 0x6c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x53, |
| 169 | 0x74, 0x61, 0x74, 0x52, 0x04, 0x73, 0x74, 0x61, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, |
| 170 | 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x49, 0x44, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, |
| 171 | 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5e, 0x0a, |
| 172 | 0x0a, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x50, |
| 173 | 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, |
| 174 | 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x52, 0x45, 0x51, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, |
| 175 | 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x10, 0x02, 0x12, 0x0e, 0x0a, |
| 176 | 0x0a, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x46, 0x49, 0x4e, 0x10, 0x03, 0x12, 0x0e, 0x0a, |
| 177 | 0x0a, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x45, 0x52, 0x52, 0x10, 0x04, 0x3a, 0x04, 0xa8, |
| 178 | 0xa6, 0x1f, 0x01, 0x42, 0x24, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, |
| 179 | 0x6d, 0x2f, 0x74, 0x6f, 0x6e, 0x69, 0x73, 0x74, 0x69, 0x69, 0x67, 0x69, 0x2f, 0x66, 0x73, 0x75, |
| 180 | 0x74, 0x69, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 181 | 0x33, |
| 182 | } |
| 183 | |
| 184 | var ( |
| 185 | file_github_com_tonistiigi_fsutil_types_wire_proto_rawDescOnce sync.Once |
| 186 | file_github_com_tonistiigi_fsutil_types_wire_proto_rawDescData = file_github_com_tonistiigi_fsutil_types_wire_proto_rawDesc |
| 187 | ) |
| 188 | |
| 189 | func file_github_com_tonistiigi_fsutil_types_wire_proto_rawDescGZIP() []byte { |
| 190 | file_github_com_tonistiigi_fsutil_types_wire_proto_rawDescOnce.Do(func() { |
| 191 | file_github_com_tonistiigi_fsutil_types_wire_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_tonistiigi_fsutil_types_wire_proto_rawDescData) |
| 192 | }) |
| 193 | return file_github_com_tonistiigi_fsutil_types_wire_proto_rawDescData |
| 194 | } |
| 195 | |
| 196 | var file_github_com_tonistiigi_fsutil_types_wire_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 197 | var file_github_com_tonistiigi_fsutil_types_wire_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 198 | var file_github_com_tonistiigi_fsutil_types_wire_proto_goTypes = []interface{}{ |
| 199 | (Packet_PacketType)(0), // 0: fsutil.types.Packet.PacketType |
| 200 | (*Packet)(nil), // 1: fsutil.types.Packet |
| 201 | (*Stat)(nil), // 2: fsutil.types.Stat |
| 202 | } |
| 203 | var file_github_com_tonistiigi_fsutil_types_wire_proto_depIdxs = []int32{ |
| 204 | 0, // 0: fsutil.types.Packet.type:type_name -> fsutil.types.Packet.PacketType |
| 205 | 2, // 1: fsutil.types.Packet.stat:type_name -> fsutil.types.Stat |
| 206 | 2, // [2:2] is the sub-list for method output_type |
| 207 | 2, // [2:2] is the sub-list for method input_type |
| 208 | 2, // [2:2] is the sub-list for extension type_name |
| 209 | 2, // [2:2] is the sub-list for extension extendee |
| 210 | 0, // [0:2] is the sub-list for field type_name |
| 211 | } |
| 212 | |
| 213 | func init() { file_github_com_tonistiigi_fsutil_types_wire_proto_init() } |
| 214 | func file_github_com_tonistiigi_fsutil_types_wire_proto_init() { |
| 215 | if File_github_com_tonistiigi_fsutil_types_wire_proto != nil { |
| 216 | return |
| 217 | } |
| 218 | file_github_com_tonistiigi_fsutil_types_stat_proto_init() |
| 219 | if !protoimpl.UnsafeEnabled { |
| 220 | file_github_com_tonistiigi_fsutil_types_wire_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 221 | switch v := v.(*Packet); i { |
| 222 | case 0: |
| 223 | return &v.state |
| 224 | case 1: |
| 225 | return &v.sizeCache |
| 226 | case 2: |
| 227 | return &v.unknownFields |
| 228 | default: |
| 229 | return nil |
| 230 | } |
| 231 | } |
| 232 | } |
| 233 | type x struct{} |
| 234 | out := protoimpl.TypeBuilder{ |
| 235 | File: protoimpl.DescBuilder{ |
| 236 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 237 | RawDescriptor: file_github_com_tonistiigi_fsutil_types_wire_proto_rawDesc, |
| 238 | NumEnums: 1, |
| 239 | NumMessages: 1, |
| 240 | NumExtensions: 0, |
| 241 | NumServices: 0, |
| 242 | }, |
| 243 | GoTypes: file_github_com_tonistiigi_fsutil_types_wire_proto_goTypes, |
| 244 | DependencyIndexes: file_github_com_tonistiigi_fsutil_types_wire_proto_depIdxs, |
| 245 | EnumInfos: file_github_com_tonistiigi_fsutil_types_wire_proto_enumTypes, |
| 246 | MessageInfos: file_github_com_tonistiigi_fsutil_types_wire_proto_msgTypes, |
| 247 | }.Build() |
| 248 | File_github_com_tonistiigi_fsutil_types_wire_proto = out.File |
| 249 | file_github_com_tonistiigi_fsutil_types_wire_proto_rawDesc = nil |
| 250 | file_github_com_tonistiigi_fsutil_types_wire_proto_goTypes = nil |
| 251 | file_github_com_tonistiigi_fsutil_types_wire_proto_depIdxs = nil |
| 252 | } |