Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (clusterRefreshRate_ != null)
            {
                hash ^= ClusterRefreshRate.GetHashCode();
            }
            if (clusterRefreshTimeout_ != null)
            {
                hash ^= ClusterRefreshTimeout.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 public void MergeFrom(RedisClusterConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.clusterRefreshRate_ != null)
     {
         if (clusterRefreshRate_ == null)
         {
             ClusterRefreshRate = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         ClusterRefreshRate.MergeFrom(other.ClusterRefreshRate);
     }
     if (other.clusterRefreshTimeout_ != null)
     {
         if (clusterRefreshTimeout_ == null)
         {
             ClusterRefreshTimeout = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         ClusterRefreshTimeout.MergeFrom(other.ClusterRefreshTimeout);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }