コード例 #1
0
 public void MergeFrom(Comment other)
 {
     if (other == null)
     {
         return;
     }
     if (other.CommentId != 0)
     {
         CommentId = other.CommentId;
     }
     if (other.Text.Length != 0)
     {
         Text = other.Text;
     }
     if (other.PostPostId != 0)
     {
         PostPostId = other.PostPostId;
     }
     if (other.post_ != null)
     {
         if (post_ == null)
         {
             Post = new global::GrpcService.Post();
         }
         Post.MergeFrom(other.Post);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
コード例 #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: {
                    Text = input.ReadString();
                    break;
                }

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

                case 34: {
                    if (post_ == null)
                    {
                        Post = new global::GrpcService.Post();
                    }
                    input.ReadMessage(Post);
                    break;
                }
                }
            }
        }
コード例 #3
0
ファイル: ApiGrpc.cs プロジェクト: alexandragiit/dotNET
 public virtual grpc::AsyncUnaryCall <global::GrpcService.Response> AddPostAsync(global::GrpcService.Post request, grpc::CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_AddPost, null, options, request));
 }
コード例 #4
0
ファイル: ApiGrpc.cs プロジェクト: alexandragiit/dotNET
 public virtual grpc::AsyncUnaryCall <global::GrpcService.Response> AddPostAsync(global::GrpcService.Post request, grpc::Metadata headers = null, global::System.DateTime?deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
 {
     return(AddPostAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
コード例 #5
0
ファイル: ApiGrpc.cs プロジェクト: alexandragiit/dotNET
 public virtual global::GrpcService.Response AddPost(global::GrpcService.Post request, grpc::CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_AddPost, null, options, request));
 }
コード例 #6
0
 public virtual global::System.Threading.Tasks.Task <global::GrpcService.Response> AddPost(global::GrpcService.Post request, grpc::ServerCallContext context)
 {
     throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
 }