Пример #1
0
 public void MergeFrom(SetTimeModelRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.SubmissionId.Length != 0)
     {
         SubmissionId = other.SubmissionId;
     }
     if (other.maximumRecordTime_ != null)
     {
         if (maximumRecordTime_ == null)
         {
             MaximumRecordTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         MaximumRecordTime.MergeFrom(other.MaximumRecordTime);
     }
     if (other.ConfigurationGeneration != 0L)
     {
         ConfigurationGeneration = other.ConfigurationGeneration;
     }
     if (other.newTimeModel_ != null)
     {
         if (newTimeModel_ == null)
         {
             NewTimeModel = new global::Com.DigitalAsset.Ledger.Api.V1.Admin.TimeModel();
         }
         NewTimeModel.MergeFrom(other.NewTimeModel);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SubmissionId.Length != 0)
            {
                hash ^= SubmissionId.GetHashCode();
            }
            if (maximumRecordTime_ != null)
            {
                hash ^= MaximumRecordTime.GetHashCode();
            }
            if (ConfigurationGeneration != 0L)
            {
                hash ^= ConfigurationGeneration.GetHashCode();
            }
            if (newTimeModel_ != null)
            {
                hash ^= NewTimeModel.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }