public void MergeFrom(MiniRequestObject other) { if (other == null) { return; } headers_.Add(other.headers_); setHeaders_.Add(other.setHeaders_); deleteHeaders_.Add(other.deleteHeaders_); if (other.Body.Length != 0) { Body = other.Body; } if (other.Url.Length != 0) { Url = other.Url; } params_.Add(other.params_); addParams_.Add(other.addParams_); extendedParams_.Add(other.extendedParams_); deleteParams_.Add(other.deleteParams_); if (other.returnOverrides_ != null) { if (returnOverrides_ == null) { returnOverrides_ = new global::Coprocess.ReturnOverrides(); } ReturnOverrides.MergeFrom(other.ReturnOverrides); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { headers_.AddEntriesFrom(input, _map_headers_codec); break; } case 18: { setHeaders_.AddEntriesFrom(input, _map_setHeaders_codec); break; } case 26: { deleteHeaders_.AddEntriesFrom(input, _repeated_deleteHeaders_codec); break; } case 34: { Body = input.ReadString(); break; } case 42: { Url = input.ReadString(); break; } case 50: { params_.AddEntriesFrom(input, _map_params_codec); break; } case 58: { addParams_.AddEntriesFrom(input, _map_addParams_codec); break; } case 66: { extendedParams_.AddEntriesFrom(input, _map_extendedParams_codec); break; } case 74: { deleteParams_.AddEntriesFrom(input, _repeated_deleteParams_codec); break; } case 82: { if (returnOverrides_ == null) { returnOverrides_ = new global::Coprocess.ReturnOverrides(); } input.ReadMessage(returnOverrides_); break; } } } }