public void MergeFrom(UploadedVideoPublished other)
 {
     if (other == null)
     {
         return;
     }
     if (other.videoId_ != null)
     {
         if (videoId_ == null)
         {
             videoId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         VideoId.MergeFrom(other.VideoId);
     }
     if (other.timestamp_ != null)
     {
         if (timestamp_ == null)
         {
             timestamp_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Timestamp.MergeFrom(other.Timestamp);
     }
     if (other.VideoUrl.Length != 0)
     {
         VideoUrl = other.VideoUrl;
     }
     if (other.ThumbnailUrl.Length != 0)
     {
         ThumbnailUrl = other.ThumbnailUrl;
     }
 }
 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);
     }
 }
 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(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (userId_ == null)
                    {
                        userId_ = new global::KillrVideo.Protobuf.Uuid();
                    }
                    input.ReadMessage(userId_);
                    break;
                }

                case 18: {
                    videos_.AddEntriesFrom(input, _repeated_videos_codec);
                    break;
                }

                case 26: {
                    PagingState = input.ReadString();
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (videoId_ == null)
                    {
                        videoId_ = new global::KillrVideo.Protobuf.Uuid();
                    }
                    input.ReadMessage(videoId_);
                    break;
                }

                case 18: {
                    if (timestamp_ == null)
                    {
                        timestamp_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(timestamp_);
                    break;
                }
                }
            }
        }
Пример #6
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(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (videoId_ == null)
                    {
                        videoId_ = new global::KillrVideo.Protobuf.Uuid();
                    }
                    input.ReadMessage(videoId_);
                    break;
                }

                case 16: {
                    RatingsCount = input.ReadInt64();
                    break;
                }

                case 24: {
                    RatingsTotal = input.ReadInt64();
                    break;
                }
                }
            }
        }
 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;
     }
 }
 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(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (userId_ == null)
                    {
                        userId_ = new global::KillrVideo.Protobuf.Uuid();
                    }
                    input.ReadMessage(userId_);
                    break;
                }

                case 16: {
                    PageSize = input.ReadInt32();
                    break;
                }

                case 130: {
                    PagingState = input.ReadString();
                    break;
                }
                }
            }
        }
Пример #11
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(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (videoId_ == null)
                    {
                        videoId_ = new global::KillrVideo.Protobuf.Uuid();
                    }
                    input.ReadMessage(videoId_);
                    break;
                }

                case 18: {
                    if (addedDate_ == null)
                    {
                        addedDate_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(addedDate_);
                    break;
                }

                case 26: {
                    Name = input.ReadString();
                    break;
                }

                case 34: {
                    PreviewImageLocation = input.ReadString();
                    break;
                }

                case 42: {
                    if (userId_ == null)
                    {
                        userId_ = new global::KillrVideo.Protobuf.Uuid();
                    }
                    input.ReadMessage(userId_);
                    break;
                }
                }
            }
        }
Пример #13
0
 public void MergeFrom(GetStatusOfVideoRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.videoId_ != null)
     {
         if (videoId_ == null)
         {
             videoId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         VideoId.MergeFrom(other.VideoId);
     }
 }
 public void MergeFrom(VerifyCredentialsResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.userId_ != null)
     {
         if (userId_ == null)
         {
             userId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         UserId.MergeFrom(other.UserId);
     }
 }
Пример #15
0
 public void MergeFrom(RecordPlaybackStartedRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.videoId_ != null)
     {
         if (videoId_ == null)
         {
             videoId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         VideoId.MergeFrom(other.VideoId);
     }
 }
Пример #16
0
 public void MergeFrom(PlayStats other)
 {
     if (other == null)
     {
         return;
     }
     if (other.videoId_ != null)
     {
         if (videoId_ == null)
         {
             videoId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         VideoId.MergeFrom(other.VideoId);
     }
     if (other.Views != 0L)
     {
         Views = other.Views;
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (userId_ == null)
                    {
                        userId_ = new global::KillrVideo.Protobuf.Uuid();
                    }
                    input.ReadMessage(userId_);
                    break;
                }

                case 18: {
                    FirstName = input.ReadString();
                    break;
                }

                case 26: {
                    LastName = input.ReadString();
                    break;
                }

                case 34: {
                    Email = input.ReadString();
                    break;
                }

                case 42: {
                    Password = input.ReadString();
                    break;
                }
                }
            }
        }
 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(GetRelatedVideosResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.videoId_ != null)
     {
         if (videoId_ == null)
         {
             videoId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         VideoId.MergeFrom(other.VideoId);
     }
     videos_.Add(other.videos_);
     if (other.PagingState.Length != 0)
     {
         PagingState = other.PagingState;
     }
 }
 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);
     }
 }
 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);
     }
 }
 public void MergeFrom(GetRatingResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.videoId_ != null)
     {
         if (videoId_ == null)
         {
             videoId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         VideoId.MergeFrom(other.VideoId);
     }
     if (other.RatingsCount != 0L)
     {
         RatingsCount = other.RatingsCount;
     }
     if (other.RatingsTotal != 0L)
     {
         RatingsTotal = other.RatingsTotal;
     }
 }
 public void MergeFrom(UploadedVideoProcessingSucceeded other)
 {
     if (other == null)
     {
         return;
     }
     if (other.videoId_ != null)
     {
         if (videoId_ == null)
         {
             videoId_ = new global::KillrVideo.Protobuf.Uuid();
         }
         VideoId.MergeFrom(other.VideoId);
     }
     if (other.timestamp_ != null)
     {
         if (timestamp_ == null)
         {
             timestamp_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         Timestamp.MergeFrom(other.Timestamp);
     }
 }