forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(transcoding): initial version of complex paths
- Loading branch information
1 parent
f77df97
commit 320a63f
Showing
11 changed files
with
446 additions
and
48 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
extensions/grpc/api/src/main/java/io/quarkus/grpc/GrpcTranscodingDescriptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.quarkus.grpc; | ||
|
||
public class GrpcTranscodingDescriptor<Req extends com.google.protobuf.Message, Resp extends com.google.protobuf.Message> { | ||
|
||
private final GrpcTranscodingMarshaller<Req> requestMarshaller; | ||
private final GrpcTranscodingMarshaller<Resp> responseMarshaller; | ||
|
||
public GrpcTranscodingDescriptor(GrpcTranscodingMarshaller<Req> requestMarshaller, | ||
GrpcTranscodingMarshaller<Resp> responseMarshaller) { | ||
this.requestMarshaller = requestMarshaller; | ||
this.responseMarshaller = responseMarshaller; | ||
} | ||
|
||
public GrpcTranscodingMarshaller<Req> getRequestMarshaller() { | ||
return requestMarshaller; | ||
} | ||
|
||
public GrpcTranscodingMarshaller<Resp> getResponseMarshaller() { | ||
return responseMarshaller; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.