Beispiel #1
0
 public void MergeFrom(UploadedVideoAdded other)
 {
     if (other == null)
     {
         return;
     }
     if (other.videoId_ != null)
     {
         if (videoId_ == null)
         {
             videoId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         VideoId.MergeFrom(other.VideoId);
     }
     if (other.userId_ != null)
     {
         if (userId_ == null)
         {
             userId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         UserId.MergeFrom(other.UserId);
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.Location.Length != 0)
     {
         Location = other.Location;
     }
     if (other.PreviewImageLocation.Length != 0)
     {
         PreviewImageLocation = other.PreviewImageLocation;
     }
     tags_.Add(other.tags_);
     if (other.addedDate_ != null)
     {
         if (addedDate_ == null)
         {
             addedDate_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         AddedDate.MergeFrom(other.AddedDate);
     }
     if (other.timestamp_ != null)
     {
         if (timestamp_ == null)
         {
             timestamp_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Timestamp.MergeFrom(other.Timestamp);
     }
 }
 public void MergeFrom(SuggestedVideoPreview other)
 {
     if (other == null)
     {
         return;
     }
     if (other.videoId_ != null)
     {
         if (videoId_ == null)
         {
             videoId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         VideoId.MergeFrom(other.VideoId);
     }
     if (other.addedDate_ != null)
     {
         if (addedDate_ == null)
         {
             addedDate_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         AddedDate.MergeFrom(other.AddedDate);
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.PreviewImageLocation.Length != 0)
     {
         PreviewImageLocation = other.PreviewImageLocation;
     }
     if (other.userId_ != null)
     {
         if (userId_ == null)
         {
             userId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         UserId.MergeFrom(other.UserId);
     }
 }