public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Time = input.ReadInt64(); break; } case 18: { if (cpu_ == null) { cpu_ = new global::SkyWalking.NetworkProtocol.CPU(); } input.ReadMessage(cpu_); break; } case 26: { if (gc_ == null) { gc_ = new global::SkyWalking.NetworkProtocol.ClrGC(); } input.ReadMessage(gc_); break; } case 34: { if (thread_ == null) { thread_ = new global::SkyWalking.NetworkProtocol.ClrThread(); } input.ReadMessage(thread_); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Time = input.ReadInt64(); break; } case 18: { if (cpu_ == null) { cpu_ = new global::SkyWalking.NetworkProtocol.CPU(); } input.ReadMessage(cpu_); break; } case 26: { memory_.AddEntriesFrom(input, _repeated_memory_codec); break; } case 34: { memoryPool_.AddEntriesFrom(input, _repeated_memoryPool_codec); break; } case 42: { gc_.AddEntriesFrom(input, _repeated_gc_codec); break; } } } }
public void MergeFrom(JVMMetric other) { if (other == null) { return; } if (other.Time != 0L) { Time = other.Time; } if (other.cpu_ != null) { if (cpu_ == null) { cpu_ = new global::SkyWalking.NetworkProtocol.CPU(); } Cpu.MergeFrom(other.Cpu); } memory_.Add(other.memory_); memoryPool_.Add(other.memoryPool_); gc_.Add(other.gc_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(CLRMetric other) { if (other == null) { return; } if (other.Time != 0L) { Time = other.Time; } if (other.cpu_ != null) { if (cpu_ == null) { cpu_ = new global::SkyWalking.NetworkProtocol.CPU(); } Cpu.MergeFrom(other.Cpu); } if (other.gc_ != null) { if (gc_ == null) { gc_ = new global::SkyWalking.NetworkProtocol.ClrGC(); } Gc.MergeFrom(other.Gc); } if (other.thread_ != null) { if (thread_ == null) { thread_ = new global::SkyWalking.NetworkProtocol.ClrThread(); } Thread.MergeFrom(other.Thread); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }