Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

chore: update gapic-generator-java to 0.0.20 #140

Merged
merged 1 commit into from
Feb 17, 2021
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 @@ -459,68 +459,83 @@ public GrpcOperationsStub getOperationsStub() {
return operationsStub;
}

@Override
public UnaryCallable<ListFunctionsRequest, ListFunctionsResponse> listFunctionsCallable() {
return listFunctionsCallable;
}

@Override
public UnaryCallable<ListFunctionsRequest, ListFunctionsPagedResponse>
listFunctionsPagedCallable() {
return listFunctionsPagedCallable;
}

@Override
public UnaryCallable<GetFunctionRequest, CloudFunction> getFunctionCallable() {
return getFunctionCallable;
}

@Override
public UnaryCallable<CreateFunctionRequest, Operation> createFunctionCallable() {
return createFunctionCallable;
}

@Override
public OperationCallable<CreateFunctionRequest, CloudFunction, OperationMetadataV1>
createFunctionOperationCallable() {
return createFunctionOperationCallable;
}

@Override
public UnaryCallable<UpdateFunctionRequest, Operation> updateFunctionCallable() {
return updateFunctionCallable;
}

@Override
public OperationCallable<UpdateFunctionRequest, CloudFunction, OperationMetadataV1>
updateFunctionOperationCallable() {
return updateFunctionOperationCallable;
}

@Override
public UnaryCallable<DeleteFunctionRequest, Operation> deleteFunctionCallable() {
return deleteFunctionCallable;
}

@Override
public OperationCallable<DeleteFunctionRequest, Empty, OperationMetadataV1>
deleteFunctionOperationCallable() {
return deleteFunctionOperationCallable;
}

@Override
public UnaryCallable<CallFunctionRequest, CallFunctionResponse> callFunctionCallable() {
return callFunctionCallable;
}

@Override
public UnaryCallable<GenerateUploadUrlRequest, GenerateUploadUrlResponse>
generateUploadUrlCallable() {
return generateUploadUrlCallable;
}

@Override
public UnaryCallable<GenerateDownloadUrlRequest, GenerateDownloadUrlResponse>
generateDownloadUrlCallable() {
return generateDownloadUrlCallable;
}

@Override
public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
return setIamPolicyCallable;
}

@Override
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
return getIamPolicyCallable;
}

@Override
public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsCallable() {
return testIamPermissionsCallable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public void getFunctionTest() throws Exception {
CloudFunction.newBuilder()
.setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
.setDescription("description-1724546052")
.setStatus(CloudFunctionStatus.forNumber(0))
.setEntryPoint("entryPoint-1979329474")
.setRuntime("runtime1550962648")
.setTimeout(Duration.newBuilder().build())
Expand Down Expand Up @@ -210,6 +211,7 @@ public void getFunctionTest2() throws Exception {
CloudFunction.newBuilder()
.setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
.setDescription("description-1724546052")
.setStatus(CloudFunctionStatus.forNumber(0))
.setEntryPoint("entryPoint-1979329474")
.setRuntime("runtime1550962648")
.setTimeout(Duration.newBuilder().build())
Expand Down Expand Up @@ -262,6 +264,7 @@ public void createFunctionTest() throws Exception {
CloudFunction.newBuilder()
.setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
.setDescription("description-1724546052")
.setStatus(CloudFunctionStatus.forNumber(0))
.setEntryPoint("entryPoint-1979329474")
.setRuntime("runtime1550962648")
.setTimeout(Duration.newBuilder().build())
Expand Down Expand Up @@ -325,6 +328,7 @@ public void createFunctionTest2() throws Exception {
CloudFunction.newBuilder()
.setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
.setDescription("description-1724546052")
.setStatus(CloudFunctionStatus.forNumber(0))
.setEntryPoint("entryPoint-1979329474")
.setRuntime("runtime1550962648")
.setTimeout(Duration.newBuilder().build())
Expand Down Expand Up @@ -388,6 +392,7 @@ public void updateFunctionTest() throws Exception {
CloudFunction.newBuilder()
.setName(CloudFunctionName.of("[PROJECT]", "[LOCATION]", "[FUNCTION]").toString())
.setDescription("description-1724546052")
.setStatus(CloudFunctionStatus.forNumber(0))
.setEntryPoint("entryPoint-1979329474")
.setRuntime("runtime1550962648")
.setTimeout(Duration.newBuilder().build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ public void listFunctions(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
responseObserver.onError(
new IllegalArgumentException(
String.format(
"Unrecognized response type %s for method ListFunctions, expected %s or %s",
response.getClass().getName(),
ListFunctionsResponse.class.getName(),
Exception.class.getName())));
}
}

Expand All @@ -90,7 +96,13 @@ public void getFunction(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
responseObserver.onError(
new IllegalArgumentException(
String.format(
"Unrecognized response type %s for method GetFunction, expected %s or %s",
response.getClass().getName(),
CloudFunction.class.getName(),
Exception.class.getName())));
}
}

Expand All @@ -105,7 +117,13 @@ public void createFunction(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
responseObserver.onError(
new IllegalArgumentException(
String.format(
"Unrecognized response type %s for method CreateFunction, expected %s or %s",
response.getClass().getName(),
Operation.class.getName(),
Exception.class.getName())));
}
}

Expand All @@ -120,7 +138,13 @@ public void updateFunction(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
responseObserver.onError(
new IllegalArgumentException(
String.format(
"Unrecognized response type %s for method UpdateFunction, expected %s or %s",
response.getClass().getName(),
Operation.class.getName(),
Exception.class.getName())));
}
}

Expand All @@ -135,7 +159,13 @@ public void deleteFunction(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
responseObserver.onError(
new IllegalArgumentException(
String.format(
"Unrecognized response type %s for method DeleteFunction, expected %s or %s",
response.getClass().getName(),
Operation.class.getName(),
Exception.class.getName())));
}
}

Expand All @@ -150,7 +180,13 @@ public void callFunction(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
responseObserver.onError(
new IllegalArgumentException(
String.format(
"Unrecognized response type %s for method CallFunction, expected %s or %s",
response.getClass().getName(),
CallFunctionResponse.class.getName(),
Exception.class.getName())));
}
}

Expand All @@ -166,7 +202,13 @@ public void generateUploadUrl(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
responseObserver.onError(
new IllegalArgumentException(
String.format(
"Unrecognized response type %s for method GenerateUploadUrl, expected %s or %s",
response.getClass().getName(),
GenerateUploadUrlResponse.class.getName(),
Exception.class.getName())));
}
}

Expand All @@ -182,7 +224,13 @@ public void generateDownloadUrl(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
responseObserver.onError(
new IllegalArgumentException(
String.format(
"Unrecognized response type %s for method GenerateDownloadUrl, expected %s or %s",
response.getClass().getName(),
GenerateDownloadUrlResponse.class.getName(),
Exception.class.getName())));
}
}

Expand All @@ -196,7 +244,13 @@ public void setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> res
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
responseObserver.onError(
new IllegalArgumentException(
String.format(
"Unrecognized response type %s for method SetIamPolicy, expected %s or %s",
response.getClass().getName(),
Policy.class.getName(),
Exception.class.getName())));
}
}

Expand All @@ -210,7 +264,13 @@ public void getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> res
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
responseObserver.onError(
new IllegalArgumentException(
String.format(
"Unrecognized response type %s for method GetIamPolicy, expected %s or %s",
response.getClass().getName(),
Policy.class.getName(),
Exception.class.getName())));
}
}

Expand All @@ -226,7 +286,13 @@ public void testIamPermissions(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
responseObserver.onError(
new IllegalArgumentException(
String.format(
"Unrecognized response type %s for method TestIamPermissions, expected %s or %s",
response.getClass().getName(),
TestIamPermissionsResponse.class.getName(),
Exception.class.getName())));
}
}
}
6 changes: 3 additions & 3 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-functions.git",
"sha": "306fcec2af7e7d0b1f100998c745fd4e3d524452"
"sha": "0dbe9872b0e4f34c5734a1ab646148d771fe6d68"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb",
"internalRef": "356341083"
"sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0",
"internalRef": "357800868"
}
},
{
Expand Down