Exemplo n.º 1
0
        public void MergeFrom(ArchivePayload other)
        {
            if (other == null)
            {
                return;
            }
            if (other.Minor.Length != 0)
            {
                Minor = other.Minor;
            }
            switch (other.SumCase)
            {
            case SumOneofCase.DamlLf0:
                if (DamlLf0 == null)
                {
                    DamlLf0 = new global::Com.DigitalAsset.Daml_Lf_1_7.DamlLf0.Package();
                }
                DamlLf0.MergeFrom(other.DamlLf0);
                break;

            case SumOneofCase.DamlLf1:
                if (DamlLf1 == null)
                {
                    DamlLf1 = new global::Com.DigitalAsset.Daml_Lf_1_7.DamlLf1.Package();
                }
                DamlLf1.MergeFrom(other.DamlLf1);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
Exemplo n.º 2
0
        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: {
                    global::Com.DigitalAsset.Daml_Lf_1_7.DamlLf0.Package subBuilder = new global::Com.DigitalAsset.Daml_Lf_1_7.DamlLf0.Package();
                    if (sumCase_ == SumOneofCase.DamlLf0)
                    {
                        subBuilder.MergeFrom(DamlLf0);
                    }
                    input.ReadMessage(subBuilder);
                    DamlLf0 = subBuilder;
                    break;
                }

                case 18: {
                    global::Com.DigitalAsset.Daml_Lf_1_7.DamlLf1.Package subBuilder = new global::Com.DigitalAsset.Daml_Lf_1_7.DamlLf1.Package();
                    if (sumCase_ == SumOneofCase.DamlLf1)
                    {
                        subBuilder.MergeFrom(DamlLf1);
                    }
                    input.ReadMessage(subBuilder);
                    DamlLf1 = subBuilder;
                    break;
                }

                case 26: {
                    Minor = input.ReadString();
                    break;
                }
                }
            }
        }