Пример #1
0
 public void MergeFrom(KeepAliveResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.accessPointsConfig_ != null)
     {
         if (accessPointsConfig_ == null)
         {
             AccessPointsConfig = new global::AcFunDanmu.AccessPointsConfig();
         }
         AccessPointsConfig.MergeFrom(other.AccessPointsConfig);
     }
     if (other.ServerMsec != 0L)
     {
         ServerMsec = other.ServerMsec;
     }
     if (other.accessPointsConfigIpv6_ != null)
     {
         if (accessPointsConfigIpv6_ == null)
         {
             AccessPointsConfigIpv6 = new global::AcFunDanmu.AccessPointsConfig();
         }
         AccessPointsConfigIpv6.MergeFrom(other.AccessPointsConfigIpv6);
     }
     if (other.accessPointsConfigQUic_ != null)
     {
         if (accessPointsConfigQUic_ == null)
         {
             AccessPointsConfigQUic = new global::AcFunDanmu.AccessPointsConfig();
         }
         AccessPointsConfigQUic.MergeFrom(other.AccessPointsConfigQUic);
     }
     if (other.accessPointsConfigQuicIpv6_ != null)
     {
         if (accessPointsConfigQuicIpv6_ == null)
         {
             AccessPointsConfigQuicIpv6 = new global::AcFunDanmu.AccessPointsConfig();
         }
         AccessPointsConfigQuicIpv6.MergeFrom(other.AccessPointsConfigQuicIpv6);
     }
     if (other.FlowCostSampleRate != 0F)
     {
         FlowCostSampleRate = other.FlowCostSampleRate;
     }
     if (other.CommandSampleRate != 0F)
     {
         CommandSampleRate = other.CommandSampleRate;
     }
     if (other.accessPointsConfigWs_ != null)
     {
         if (accessPointsConfigWs_ == null)
         {
             AccessPointsConfigWs = new global::AcFunDanmu.AccessPointsConfig();
         }
         AccessPointsConfigWs.MergeFrom(other.AccessPointsConfigWs);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (accessPointsConfig_ != null)
            {
                hash ^= AccessPointsConfig.GetHashCode();
            }
            if (ServerMsec != 0L)
            {
                hash ^= ServerMsec.GetHashCode();
            }
            if (accessPointsConfigIpv6_ != null)
            {
                hash ^= AccessPointsConfigIpv6.GetHashCode();
            }
            if (accessPointsConfigQUic_ != null)
            {
                hash ^= AccessPointsConfigQUic.GetHashCode();
            }
            if (accessPointsConfigQuicIpv6_ != null)
            {
                hash ^= AccessPointsConfigQuicIpv6.GetHashCode();
            }
            if (FlowCostSampleRate != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FlowCostSampleRate);
            }
            if (CommandSampleRate != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CommandSampleRate);
            }
            if (accessPointsConfigWs_ != null)
            {
                hash ^= AccessPointsConfigWs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }