Пример #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);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (accessPointsConfig_ != null)
            {
                hash ^= AccessPointsConfig.GetHashCode();
            }
            if (SessKey.Length != 0)
            {
                hash ^= SessKey.GetHashCode();
            }
            if (InstanceId != 0L)
            {
                hash ^= InstanceId.GetHashCode();
            }
            if (sdkOption_ != null)
            {
                hash ^= SdkOption.GetHashCode();
            }
            if (accessPointsCOnfigIpv6_ != null)
            {
                hash ^= AccessPointsCOnfigIpv6.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #3
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);
 }
Пример #4
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);
        }
Пример #5
0
 public void MergeFrom(RegisterResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.accessPointsConfig_ != null)
     {
         if (accessPointsConfig_ == null)
         {
             AccessPointsConfig = new global::AcFunDanmu.AccessPointsConfig();
         }
         AccessPointsConfig.MergeFrom(other.AccessPointsConfig);
     }
     if (other.SessKey.Length != 0)
     {
         SessKey = other.SessKey;
     }
     if (other.InstanceId != 0L)
     {
         InstanceId = other.InstanceId;
     }
     if (other.sdkOption_ != null)
     {
         if (sdkOption_ == null)
         {
             SdkOption = new global::AcFunDanmu.SdkOption();
         }
         SdkOption.MergeFrom(other.SdkOption);
     }
     if (other.accessPointsCOnfigIpv6_ != null)
     {
         if (accessPointsCOnfigIpv6_ == null)
         {
             AccessPointsCOnfigIpv6 = new global::AcFunDanmu.AccessPointsConfig();
         }
         AccessPointsCOnfigIpv6.MergeFrom(other.AccessPointsCOnfigIpv6);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #6
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 (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }