示例#1
0
 public void MergeFrom(RedisConfigSet5_0 other)
 {
     if (other == null)
     {
         return;
     }
     if (other.effectiveConfig_ != null)
     {
         if (effectiveConfig_ == null)
         {
             EffectiveConfig = new global::Yandex.Cloud.Mdb.Redis.V1.Config.RedisConfig5_0();
         }
         EffectiveConfig.MergeFrom(other.EffectiveConfig);
     }
     if (other.userConfig_ != null)
     {
         if (userConfig_ == null)
         {
             UserConfig = new global::Yandex.Cloud.Mdb.Redis.V1.Config.RedisConfig5_0();
         }
         UserConfig.MergeFrom(other.UserConfig);
     }
     if (other.defaultConfig_ != null)
     {
         if (defaultConfig_ == null)
         {
             DefaultConfig = new global::Yandex.Cloud.Mdb.Redis.V1.Config.RedisConfig5_0();
         }
         DefaultConfig.MergeFrom(other.DefaultConfig);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (effectiveConfig_ != null)
            {
                hash ^= EffectiveConfig.GetHashCode();
            }
            if (userConfig_ != null)
            {
                hash ^= UserConfig.GetHashCode();
            }
            if (defaultConfig_ != null)
            {
                hash ^= DefaultConfig.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }