Esempio n. 1
0
 public void MergeFrom(Comment other)
 {
     if (other == null)
     {
         return;
     }
     if (other.CommentId != 0)
     {
         CommentId = other.CommentId;
     }
     if (other.Test.Length != 0)
     {
         Test = other.Test;
     }
     if (other.PostPostId != 0)
     {
         PostPostId = other.PostPostId;
     }
     if (other.post_ != null)
     {
         if (post_ == null)
         {
             Post = new global::PostCommentService.Post();
         }
         Post.MergeFrom(other.Post);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Esempio n. 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    CommentId = input.ReadInt32();
                    break;
                }

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

                case 24: {
                    PostPostId = input.ReadInt32();
                    break;
                }

                case 34: {
                    if (post_ == null)
                    {
                        Post = new global::PostCommentService.Post();
                    }
                    input.ReadMessage(Post);
                    break;
                }
                }
            }
        }
Esempio n. 3
0
 public virtual global::System.Threading.Tasks.Task <global::PostCommentService.Empty> DeletePost(global::PostCommentService.Post request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }