Esempio n. 1
0
 public void MergeFrom(BenchmarkReply other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Message.Length != 0)
     {
         Message = other.Message;
     }
     if (other.SequencesInJson.Length != 0)
     {
         SequencesInJson = other.SequencesInJson;
     }
     if (other.Iteration != 0)
     {
         Iteration = other.Iteration;
     }
     if (other.NrProcessedRecords != 0)
     {
         NrProcessedRecords = other.NrProcessedRecords;
     }
     if (other.Error != 0D)
     {
         Error = other.Error;
     }
     if (other.BatchRuntimeInMillis != 0L)
     {
         BatchRuntimeInMillis = other.BatchRuntimeInMillis;
     }
     if (other.TotalRuntimeInMillis != 0L)
     {
         TotalRuntimeInMillis = other.TotalRuntimeInMillis;
     }
     if (other.PrevBlockFileReadingTime != 0L)
     {
         PrevBlockFileReadingTime = other.PrevBlockFileReadingTime;
     }
     if (other.PrevBlockPreProcessingRuntime != 0L)
     {
         PrevBlockPreProcessingRuntime = other.PrevBlockPreProcessingRuntime;
     }
     if (other.PrevBlockPrefixSpanRuntime != 0L)
     {
         PrevBlockPrefixSpanRuntime = other.PrevBlockPrefixSpanRuntime;
     }
     if (other.PrevBlockSubsequenceMatchingRuntime != 0L)
     {
         PrevBlockSubsequenceMatchingRuntime = other.PrevBlockSubsequenceMatchingRuntime;
     }
     if (other.ReplyType != 0)
     {
         ReplyType = other.ReplyType;
     }
 }
Esempio n. 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    Message = input.ReadString();
                    break;
                }

                case 26: {
                    SequencesInJson = input.ReadString();
                    break;
                }

                case 32: {
                    Iteration = input.ReadInt32();
                    break;
                }

                case 40: {
                    NrProcessedRecords = input.ReadInt32();
                    break;
                }

                case 49: {
                    Error = input.ReadDouble();
                    break;
                }

                case 56: {
                    BatchRuntimeInMillis = input.ReadInt64();
                    break;
                }

                case 64: {
                    TotalRuntimeInMillis = input.ReadInt64();
                    break;
                }

                case 72: {
                    PrevBlockFileReadingTime = input.ReadInt64();
                    break;
                }

                case 80: {
                    PrevBlockPreProcessingRuntime = input.ReadInt64();
                    break;
                }

                case 88: {
                    PrevBlockPrefixSpanRuntime = input.ReadInt64();
                    break;
                }

                case 96: {
                    PrevBlockSubsequenceMatchingRuntime = input.ReadInt64();
                    break;
                }

                case 104: {
                    replyType_ = (global::Benchmark.ReplyType)input.ReadEnum();
                    break;
                }
                }
            }
        }