Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (minTtl_ != null)
            {
                hash ^= MinTtl.GetHashCode();
            }
            if (maxTtl_ != null)
            {
                hash ^= MaxTtl.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 public void MergeFrom(LedgerConfiguration other)
 {
     if (other == null)
     {
         return;
     }
     if (other.minTtl_ != null)
     {
         if (minTtl_ == null)
         {
             MinTtl = new global::Google.Protobuf.WellKnownTypes.Duration();
         }
         MinTtl.MergeFrom(other.MinTtl);
     }
     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);
 }