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 (version_ == null) { Version = new global::NeoFS.API.v2.Refs.Version(); } input.ReadMessage(Version); break; } case 18: { if (nodeInfo_ == null) { NodeInfo = new global::NeoFS.API.v2.Netmap.NodeInfo(); } input.ReadMessage(NodeInfo); break; } } } }
public void MergeFrom(Body other) { if (other == null) { return; } if (other.version_ != null) { if (version_ == null) { Version = new global::NeoFS.API.v2.Refs.Version(); } Version.MergeFrom(other.Version); } if (other.nodeInfo_ != null) { if (nodeInfo_ == null) { NodeInfo = new global::NeoFS.API.v2.Netmap.NodeInfo(); } NodeInfo.MergeFrom(other.NodeInfo); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }