Пример #1
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (MaxStep != 0L)
                    {
                        hash ^= MaxStep.GetHashCode();
                    }
                    if (maxWallTime_ != null)
                    {
                        hash ^= MaxWallTime.GetHashCode();
                    }
                    if (MaxBlobSequenceLength != 0L)
                    {
                        hash ^= MaxBlobSequenceLength.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
Пример #2
0
 public void MergeFrom(Metadata other)
 {
     if (other == null)
     {
         return;
     }
     if (other.MaxStep != 0L)
     {
         MaxStep = other.MaxStep;
     }
     if (other.maxWallTime_ != null)
     {
         if (maxWallTime_ == null)
         {
             MaxWallTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         MaxWallTime.MergeFrom(other.MaxWallTime);
     }
     if (other.MaxBlobSequenceLength != 0L)
     {
         MaxBlobSequenceLength = other.MaxBlobSequenceLength;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }