Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private static MethodDefinition createCallableGetterHelper(
(isLroCallable ? "Operation" : isPaged ? "Paged" : ""));
List<Reference> genericRefs = new ArrayList<>();
genericRefs.add(method.inputType().reference());
if (method.hasLro()) {
if (method.hasLro() && isLroCallable) {
genericRefs.add(method.lro().responseType().reference());
genericRefs.add(method.lro().metadataType().reference());
} else if (isPaged) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public void generateServiceClasses() {
+ "import com.google.api.gax.rpc.OperationCallable;\n"
+ "import com.google.api.gax.rpc.ServerStreamingCallable;\n"
+ "import com.google.api.gax.rpc.UnaryCallable;\n"
+ "import com.google.longrunning.Operation;\n"
+ "import com.google.longrunning.stub.OperationsStub;\n"
+ "import com.google.showcase.v1beta1.BlockRequest;\n"
+ "import com.google.showcase.v1beta1.BlockResponse;\n"
Expand Down Expand Up @@ -120,8 +121,8 @@ public void generateServiceClasses() {
+ " chatAgainCallable()\");\n"
+ " }\n"
+ "\n"
+ " public UnaryCallable<PagedExpandRequest, PagedExpandPagedResponse> pagedExpandPagedCallable()"
+ " {\n"
+ " public UnaryCallable<PagedExpandRequest, PagedExpandPagedResponse>"
+ " pagedExpandPagedCallable() {\n"
+ " throw new UnsupportedOperationException(\"Not implemented:"
+ " pagedExpandPagedCallable()\");\n"
+ " }\n"
Expand All @@ -138,7 +139,7 @@ public void generateServiceClasses() {
+ " waitOperationCallable()\");\n"
+ " }\n"
+ "\n"
+ " public UnaryCallable<WaitRequest, WaitResponse, WaitMetadata> waitCallable() {\n"
+ " public UnaryCallable<WaitRequest, Operation> waitCallable() {\n"
+ " throw new UnsupportedOperationException(\"Not implemented: waitCallable()\");\n"
+ " }\n"
+ "\n"
Expand Down