public void MergeFrom(CreateRequest other) { if (other == null) { return; } if (other.body_ != null) { if (body_ == null) { Body = new global::NeoFS.API.v2.Session.CreateRequest.Types.Body(); } Body.MergeFrom(other.Body); } if (other.metaHeader_ != null) { if (metaHeader_ == null) { MetaHeader = new global::NeoFS.API.v2.Session.RequestMetaHeader(); } MetaHeader.MergeFrom(other.MetaHeader); } if (other.verifyHeader_ != null) { if (verifyHeader_ == null) { VerifyHeader = new global::NeoFS.API.v2.Session.RequestVerificationHeader(); } VerifyHeader.MergeFrom(other.VerifyHeader); } _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 (body_ == null) { Body = new global::NeoFS.API.v2.Session.CreateRequest.Types.Body(); } input.ReadMessage(Body); break; } case 18: { if (metaHeader_ == null) { MetaHeader = new global::NeoFS.API.v2.Session.RequestMetaHeader(); } input.ReadMessage(MetaHeader); break; } case 26: { if (verifyHeader_ == null) { VerifyHeader = new global::NeoFS.API.v2.Session.RequestVerificationHeader(); } input.ReadMessage(VerifyHeader); break; } } } }