Beispiel #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_8.DamlLf0.Package();
                }
                DamlLf0.MergeFrom(other.DamlLf0);
                break;

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

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Minor.Length != 0)
            {
                hash ^= Minor.GetHashCode();
            }
            if (sumCase_ == SumOneofCase.DamlLf0)
            {
                hash ^= DamlLf0.GetHashCode();
            }
            if (sumCase_ == SumOneofCase.DamlLf1)
            {
                hash ^= DamlLf1.GetHashCode();
            }
            hash ^= (int)sumCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }