public void MergeFrom(CreateUserRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.userId_ != null)
     {
         if (userId_ == null)
         {
             userId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         UserId.MergeFrom(other.UserId);
     }
     if (other.FirstName.Length != 0)
     {
         FirstName = other.FirstName;
     }
     if (other.LastName.Length != 0)
     {
         LastName = other.LastName;
     }
     if (other.Email.Length != 0)
     {
         Email = other.Email;
     }
     if (other.Password.Length != 0)
     {
         Password = other.Password;
     }
 }
Exemple #2
0
 public void MergeFrom(UserCreated other)
 {
     if (other == null)
     {
         return;
     }
     if (other.userId_ != null)
     {
         if (userId_ == null)
         {
             userId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         UserId.MergeFrom(other.UserId);
     }
     if (other.FirstName.Length != 0)
     {
         FirstName = other.FirstName;
     }
     if (other.LastName.Length != 0)
     {
         LastName = other.LastName;
     }
     if (other.Email.Length != 0)
     {
         Email = other.Email;
     }
     if (other.timestamp_ != null)
     {
         if (timestamp_ == null)
         {
             timestamp_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Timestamp.MergeFrom(other.Timestamp);
     }
 }
 public void MergeFrom(UserProfile other)
 {
     if (other == null)
     {
         return;
     }
     if (other.userId_ != null)
     {
         if (userId_ == null)
         {
             userId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         UserId.MergeFrom(other.UserId);
     }
     if (other.FirstName.Length != 0)
     {
         FirstName = other.FirstName;
     }
     if (other.LastName.Length != 0)
     {
         LastName = other.LastName;
     }
     if (other.Email.Length != 0)
     {
         Email = other.Email;
     }
 }
 public void MergeFrom(RateVideoRequest 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.Rating != 0)
     {
         Rating = other.Rating;
     }
 }
 public void MergeFrom(UserRatedVideo 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.Rating != 0)
     {
         Rating = other.Rating;
     }
     if (other.ratingTimestamp_ != null)
     {
         if (ratingTimestamp_ == null)
         {
             ratingTimestamp_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         RatingTimestamp.MergeFrom(other.RatingTimestamp);
     }
 }
Exemple #6
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(GetSuggestedForUserResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.userId_ != null)
     {
         if (userId_ == null)
         {
             userId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         UserId.MergeFrom(other.UserId);
     }
     videos_.Add(other.videos_);
     if (other.PagingState.Length != 0)
     {
         PagingState = other.PagingState;
     }
 }
 public void MergeFrom(UserCommentedOnVideo other)
 {
     if (other == null)
     {
         return;
     }
     if (other.userId_ != null)
     {
         if (userId_ == null)
         {
             userId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         UserId.MergeFrom(other.UserId);
     }
     if (other.videoId_ != null)
     {
         if (videoId_ == null)
         {
             videoId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         VideoId.MergeFrom(other.VideoId);
     }
     if (other.commentId_ != null)
     {
         if (commentId_ == null)
         {
             commentId_ = new global::KillrVideo.Protobuf.TimeUuid();
         }
         CommentId.MergeFrom(other.CommentId);
     }
     if (other.commentTimestamp_ != null)
     {
         if (commentTimestamp_ == null)
         {
             commentTimestamp_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CommentTimestamp.MergeFrom(other.CommentTimestamp);
     }
 }