github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/synchronization/rsync/receive.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.33.0 4 // protoc v5.26.1 5 // source: synchronization/rsync/receive.proto 6 7 package rsync 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 // ReceiverState encodes that status of an rsync receiver. It should be 24 // considered immutable. 25 type ReceiverState struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 // Path is the path currently being received. 31 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` 32 // ReceivedSize is the number of bytes that have been received for the 33 // current path from both block and data operations. 34 ReceivedSize uint64 `protobuf:"varint,2,opt,name=receivedSize,proto3" json:"receivedSize,omitempty"` 35 // ExpectedSize is the number of bytes expected for the current path. 36 ExpectedSize uint64 `protobuf:"varint,3,opt,name=expectedSize,proto3" json:"expectedSize,omitempty"` 37 // ReceivedFiles is the number of files that have already been received. 38 ReceivedFiles uint64 `protobuf:"varint,4,opt,name=receivedFiles,proto3" json:"receivedFiles,omitempty"` 39 // ExpectedFiles is the total number of files expected. 40 ExpectedFiles uint64 `protobuf:"varint,5,opt,name=expectedFiles,proto3" json:"expectedFiles,omitempty"` 41 // TotalReceivedSize is the total number of bytes that have been received 42 // for all files from both block and data operations. 43 TotalReceivedSize uint64 `protobuf:"varint,6,opt,name=totalReceivedSize,proto3" json:"totalReceivedSize,omitempty"` 44 } 45 46 func (x *ReceiverState) Reset() { 47 *x = ReceiverState{} 48 if protoimpl.UnsafeEnabled { 49 mi := &file_synchronization_rsync_receive_proto_msgTypes[0] 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 ms.StoreMessageInfo(mi) 52 } 53 } 54 55 func (x *ReceiverState) String() string { 56 return protoimpl.X.MessageStringOf(x) 57 } 58 59 func (*ReceiverState) ProtoMessage() {} 60 61 func (x *ReceiverState) ProtoReflect() protoreflect.Message { 62 mi := &file_synchronization_rsync_receive_proto_msgTypes[0] 63 if protoimpl.UnsafeEnabled && x != nil { 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 if ms.LoadMessageInfo() == nil { 66 ms.StoreMessageInfo(mi) 67 } 68 return ms 69 } 70 return mi.MessageOf(x) 71 } 72 73 // Deprecated: Use ReceiverState.ProtoReflect.Descriptor instead. 74 func (*ReceiverState) Descriptor() ([]byte, []int) { 75 return file_synchronization_rsync_receive_proto_rawDescGZIP(), []int{0} 76 } 77 78 func (x *ReceiverState) GetPath() string { 79 if x != nil { 80 return x.Path 81 } 82 return "" 83 } 84 85 func (x *ReceiverState) GetReceivedSize() uint64 { 86 if x != nil { 87 return x.ReceivedSize 88 } 89 return 0 90 } 91 92 func (x *ReceiverState) GetExpectedSize() uint64 { 93 if x != nil { 94 return x.ExpectedSize 95 } 96 return 0 97 } 98 99 func (x *ReceiverState) GetReceivedFiles() uint64 { 100 if x != nil { 101 return x.ReceivedFiles 102 } 103 return 0 104 } 105 106 func (x *ReceiverState) GetExpectedFiles() uint64 { 107 if x != nil { 108 return x.ExpectedFiles 109 } 110 return 0 111 } 112 113 func (x *ReceiverState) GetTotalReceivedSize() uint64 { 114 if x != nil { 115 return x.TotalReceivedSize 116 } 117 return 0 118 } 119 120 var File_synchronization_rsync_receive_proto protoreflect.FileDescriptor 121 122 var file_synchronization_rsync_receive_proto_rawDesc = []byte{ 123 0x0a, 0x23, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 124 0x6e, 0x2f, 0x72, 0x73, 0x79, 0x6e, 0x63, 0x2f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x2e, 125 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x72, 0x73, 0x79, 0x6e, 0x63, 0x22, 0xe5, 0x01, 0x0a, 126 0x0d, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, 127 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 128 0x74, 0x68, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x69, 129 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 130 0x65, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 131 0x65, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x65, 0x78, 132 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 133 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 134 0x04, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 135 0x12, 0x24, 0x0a, 0x0d, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x46, 0x69, 0x6c, 0x65, 136 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 137 0x64, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 138 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 139 0x04, 0x52, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 140 0x53, 0x69, 0x7a, 0x65, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 141 0x6f, 0x6d, 0x2f, 0x6d, 0x75, 0x74, 0x61, 0x67, 0x65, 0x6e, 0x2d, 0x69, 0x6f, 0x2f, 0x6d, 0x75, 142 0x74, 0x61, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 143 0x6f, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x72, 0x73, 0x79, 0x6e, 0x63, 0x62, 144 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 145 } 146 147 var ( 148 file_synchronization_rsync_receive_proto_rawDescOnce sync.Once 149 file_synchronization_rsync_receive_proto_rawDescData = file_synchronization_rsync_receive_proto_rawDesc 150 ) 151 152 func file_synchronization_rsync_receive_proto_rawDescGZIP() []byte { 153 file_synchronization_rsync_receive_proto_rawDescOnce.Do(func() { 154 file_synchronization_rsync_receive_proto_rawDescData = protoimpl.X.CompressGZIP(file_synchronization_rsync_receive_proto_rawDescData) 155 }) 156 return file_synchronization_rsync_receive_proto_rawDescData 157 } 158 159 var file_synchronization_rsync_receive_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 160 var file_synchronization_rsync_receive_proto_goTypes = []interface{}{ 161 (*ReceiverState)(nil), // 0: rsync.ReceiverState 162 } 163 var file_synchronization_rsync_receive_proto_depIdxs = []int32{ 164 0, // [0:0] is the sub-list for method output_type 165 0, // [0:0] is the sub-list for method input_type 166 0, // [0:0] is the sub-list for extension type_name 167 0, // [0:0] is the sub-list for extension extendee 168 0, // [0:0] is the sub-list for field type_name 169 } 170 171 func init() { file_synchronization_rsync_receive_proto_init() } 172 func file_synchronization_rsync_receive_proto_init() { 173 if File_synchronization_rsync_receive_proto != nil { 174 return 175 } 176 if !protoimpl.UnsafeEnabled { 177 file_synchronization_rsync_receive_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 178 switch v := v.(*ReceiverState); i { 179 case 0: 180 return &v.state 181 case 1: 182 return &v.sizeCache 183 case 2: 184 return &v.unknownFields 185 default: 186 return nil 187 } 188 } 189 } 190 type x struct{} 191 out := protoimpl.TypeBuilder{ 192 File: protoimpl.DescBuilder{ 193 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 194 RawDescriptor: file_synchronization_rsync_receive_proto_rawDesc, 195 NumEnums: 0, 196 NumMessages: 1, 197 NumExtensions: 0, 198 NumServices: 0, 199 }, 200 GoTypes: file_synchronization_rsync_receive_proto_goTypes, 201 DependencyIndexes: file_synchronization_rsync_receive_proto_depIdxs, 202 MessageInfos: file_synchronization_rsync_receive_proto_msgTypes, 203 }.Build() 204 File_synchronization_rsync_receive_proto = out.File 205 file_synchronization_rsync_receive_proto_rawDesc = nil 206 file_synchronization_rsync_receive_proto_goTypes = nil 207 file_synchronization_rsync_receive_proto_depIdxs = nil 208 }