예제 #1
0
 public void MergeFrom(TimeModel other)
 {
     if (other == null)
     {
         return;
     }
     if (other.minTransactionLatency_ != null)
     {
         if (minTransactionLatency_ == null)
         {
             MinTransactionLatency = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         MinTransactionLatency.MergeFrom(other.MinTransactionLatency);
     }
     if (other.maxClockSkew_ != null)
     {
         if (maxClockSkew_ == null)
         {
             MaxClockSkew = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         MaxClockSkew.MergeFrom(other.MaxClockSkew);
     }
     if (other.maxTtl_ != null)
     {
         if (maxTtl_ == null)
         {
             MaxTtl = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         MaxTtl.MergeFrom(other.MaxTtl);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (minTransactionLatency_ != null)
            {
                hash ^= MinTransactionLatency.GetHashCode();
            }
            if (maxClockSkew_ != null)
            {
                hash ^= MaxClockSkew.GetHashCode();
            }
            if (maxTtl_ != null)
            {
                hash ^= MaxTtl.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }