public void MergeFrom(OutOfOrderRecord other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Operations.OutOfOrder.OutOfOrderRecordIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Reason.Length != 0)
     {
         Reason = other.Reason;
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.enteredBy_ != null)
     {
         if (enteredBy_ == null)
         {
             enteredBy_ = new global::HOLMS.Types.IAM.StaffMember();
         }
         EnteredBy.MergeFrom(other.EnteredBy);
     }
     if (other.updatedBy_ != null)
     {
         if (updatedBy_ == null)
         {
             updatedBy_ = new global::HOLMS.Types.IAM.StaffMember();
         }
         UpdatedBy.MergeFrom(other.UpdatedBy);
     }
     if (other.updatedAt_ != null)
     {
         if (updatedAt_ == null)
         {
             updatedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdatedAt.MergeFrom(other.UpdatedAt);
     }
     if (other.room_ != null)
     {
         if (room_ == null)
         {
             room_ = new global::HOLMS.Types.Operations.Rooms.Room();
         }
         Room.MergeFrom(other.Room);
     }
 }
示例#2
0
 public void MergeFrom(Dataset other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Consumer.Length != 0)
     {
         Consumer = other.Consumer;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Type.Length != 0)
     {
         Type = other.Type;
     }
     tags_.Add(other.tags_);
     targets_.Add(other.targets_);
     if (other.retentionPolicy_ != null)
     {
         if (retentionPolicy_ == null)
         {
             RetentionPolicy = new global::Asgt.Type.RetentionPolicy();
         }
         RetentionPolicy.MergeFrom(other.RetentionPolicy);
     }
     if (other.createdAt_ != null)
     {
         if (createdAt_ == null)
         {
             CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreatedAt.MergeFrom(other.CreatedAt);
     }
     if (other.updatedAt_ != null)
     {
         if (updatedAt_ == null)
         {
             UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdatedAt.MergeFrom(other.UpdatedAt);
     }
     if (other.Size != 0L)
     {
         Size = other.Size;
     }
     if (other.truncatedAt_ != null)
     {
         if (truncatedAt_ == null)
         {
             TruncatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         TruncatedAt.MergeFrom(other.TruncatedAt);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }