public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Com.DigitalAsset.Daml_Lf_1_8.DamlLf0.Package subBuilder = new global::Com.DigitalAsset.Daml_Lf_1_8.DamlLf0.Package(); if (sumCase_ == SumOneofCase.DamlLf0) { subBuilder.MergeFrom(DamlLf0); } input.ReadMessage(subBuilder); DamlLf0 = subBuilder; break; } case 18: { global::Com.DigitalAsset.Daml_Lf_1_8.DamlLf1.Package subBuilder = new global::Com.DigitalAsset.Daml_Lf_1_8.DamlLf1.Package(); if (sumCase_ == SumOneofCase.DamlLf1) { subBuilder.MergeFrom(DamlLf1); } input.ReadMessage(subBuilder); DamlLf1 = subBuilder; break; } case 26: { Minor = input.ReadString(); break; } } } #endif }
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Com.DigitalAsset.Daml_Lf_1_8.DamlLf0.Package subBuilder = new global::Com.DigitalAsset.Daml_Lf_1_8.DamlLf0.Package(); if (sumCase_ == SumOneofCase.DamlLf0) { subBuilder.MergeFrom(DamlLf0); } input.ReadMessage(subBuilder); DamlLf0 = subBuilder; break; } case 18: { global::Com.DigitalAsset.Daml_Lf_1_8.DamlLf1.Package subBuilder = new global::Com.DigitalAsset.Daml_Lf_1_8.DamlLf1.Package(); if (sumCase_ == SumOneofCase.DamlLf1) { subBuilder.MergeFrom(DamlLf1); } input.ReadMessage(subBuilder); DamlLf1 = subBuilder; break; } case 26: { Minor = input.ReadString(); break; } } } }