aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/IO/FileChunkDownloadRequest.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-11-29 13:15:09 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-11-29 13:15:09 +0200
commit9e6d1ddfb42c4e8357bd75c2b1d6f84df1ea1966 (patch)
tree131c98a3b19bfca2ce81259f8921c409fda7bee7 /Software/Visual_Studio/Tango.PMR/IO/FileChunkDownloadRequest.cs
parentac3c227bb5d12339fee6fb4c243f3a5f67217915 (diff)
downloadTango-9e6d1ddfb42c4e8357bd75c2b1d6f84df1ea1966.tar.gz
Tango-9e6d1ddfb42c4e8357bd75c2b1d6f84df1ea1966.zip
Working on machine studio storage module.
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/IO/FileChunkDownloadRequest.cs')
-rw-r--r--Software/Visual_Studio/Tango.PMR/IO/FileChunkDownloadRequest.cs37
1 files changed, 4 insertions, 33 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/IO/FileChunkDownloadRequest.cs b/Software/Visual_Studio/Tango.PMR/IO/FileChunkDownloadRequest.cs
index 0c68646da..ff0a32ba8 100644
--- a/Software/Visual_Studio/Tango.PMR/IO/FileChunkDownloadRequest.cs
+++ b/Software/Visual_Studio/Tango.PMR/IO/FileChunkDownloadRequest.cs
@@ -23,14 +23,13 @@ namespace Tango.PMR.IO {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ch5GaWxlQ2h1bmtEb3dubG9hZFJlcXVlc3QucHJvdG8SDFRhbmdvLlBNUi5J",
- "TyJmChhGaWxlQ2h1bmtEb3dubG9hZFJlcXVlc3QSEgoKRG93bmxvYWRJRBgB",
- "IAEoCRIQCghGaWxlTmFtZRgCIAEoCRIQCghQb3NpdGlvbhgDIAEoAxISCgpJ",
- "c0NhbmNlbGVkGAQgASgIQhgKFmNvbS50d2luZS50YW5nby5wbXIuaW9iBnBy",
- "b3RvMw=="));
+ "TyJSChhGaWxlQ2h1bmtEb3dubG9hZFJlcXVlc3QSEgoKRG93bmxvYWRJRBgB",
+ "IAEoCRIQCghGaWxlTmFtZRgCIAEoCRIQCghQb3NpdGlvbhgDIAEoA0IYChZj",
+ "b20udHdpbmUudGFuZ28ucG1yLmlvYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.IO.FileChunkDownloadRequest), global::Tango.PMR.IO.FileChunkDownloadRequest.Parser, new[]{ "DownloadID", "FileName", "Position", "IsCanceled" }, null, null, null)
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.IO.FileChunkDownloadRequest), global::Tango.PMR.IO.FileChunkDownloadRequest.Parser, new[]{ "DownloadID", "FileName", "Position" }, null, null, null)
}));
}
#endregion
@@ -64,7 +63,6 @@ namespace Tango.PMR.IO {
downloadID_ = other.downloadID_;
fileName_ = other.fileName_;
position_ = other.position_;
- isCanceled_ = other.isCanceled_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -105,17 +103,6 @@ namespace Tango.PMR.IO {
}
}
- /// <summary>Field number for the "IsCanceled" field.</summary>
- public const int IsCanceledFieldNumber = 4;
- private bool isCanceled_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool IsCanceled {
- get { return isCanceled_; }
- set {
- isCanceled_ = value;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as FileChunkDownloadRequest);
@@ -132,7 +119,6 @@ namespace Tango.PMR.IO {
if (DownloadID != other.DownloadID) return false;
if (FileName != other.FileName) return false;
if (Position != other.Position) return false;
- if (IsCanceled != other.IsCanceled) return false;
return true;
}
@@ -142,7 +128,6 @@ namespace Tango.PMR.IO {
if (DownloadID.Length != 0) hash ^= DownloadID.GetHashCode();
if (FileName.Length != 0) hash ^= FileName.GetHashCode();
if (Position != 0L) hash ^= Position.GetHashCode();
- if (IsCanceled != false) hash ^= IsCanceled.GetHashCode();
return hash;
}
@@ -165,10 +150,6 @@ namespace Tango.PMR.IO {
output.WriteRawTag(24);
output.WriteInt64(Position);
}
- if (IsCanceled != false) {
- output.WriteRawTag(32);
- output.WriteBool(IsCanceled);
- }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -183,9 +164,6 @@ namespace Tango.PMR.IO {
if (Position != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Position);
}
- if (IsCanceled != false) {
- size += 1 + 1;
- }
return size;
}
@@ -203,9 +181,6 @@ namespace Tango.PMR.IO {
if (other.Position != 0L) {
Position = other.Position;
}
- if (other.IsCanceled != false) {
- IsCanceled = other.IsCanceled;
- }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -228,10 +203,6 @@ namespace Tango.PMR.IO {
Position = input.ReadInt64();
break;
}
- case 32: {
- IsCanceled = input.ReadBool();
- break;
- }
}
}
}