public void MergeFrom(Node other) { if (other == null) { return; } if (other.identifier_ != null) { if (identifier_ == null) { identifier_ = new global::OpenTelemetry.Proto.Agent.Common.V1.ProcessIdentifier(); } Identifier.MergeFrom(other.Identifier); } if (other.libraryInfo_ != null) { if (libraryInfo_ == null) { libraryInfo_ = new global::OpenTelemetry.Proto.Agent.Common.V1.LibraryInfo(); } LibraryInfo.MergeFrom(other.LibraryInfo); } if (other.serviceInfo_ != null) { if (serviceInfo_ == null) { serviceInfo_ = new global::OpenTelemetry.Proto.Agent.Common.V1.ServiceInfo(); } ServiceInfo.MergeFrom(other.ServiceInfo); } attributes_.Add(other.attributes_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (identifier_ == null) { identifier_ = new global::OpenTelemetry.Proto.Agent.Common.V1.ProcessIdentifier(); } input.ReadMessage(identifier_); break; } case 18: { if (libraryInfo_ == null) { libraryInfo_ = new global::OpenTelemetry.Proto.Agent.Common.V1.LibraryInfo(); } input.ReadMessage(libraryInfo_); break; } case 26: { if (serviceInfo_ == null) { serviceInfo_ = new global::OpenTelemetry.Proto.Agent.Common.V1.ServiceInfo(); } input.ReadMessage(serviceInfo_); break; } case 34: { attributes_.AddEntriesFrom(input, _map_attributes_codec); break; } } } }