Class GrpcFunctionServiceStub
java.lang.Object
com.google.cloud.functions.v2beta.stub.FunctionServiceStub
com.google.cloud.functions.v2beta.stub.GrpcFunctionServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcFunctionServiceStub
extends FunctionServiceStub
gRPC stub implementation for the FunctionService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcFunctionServiceStub(FunctionServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcFunctionServiceStub, using the given settings.protectedGrpcFunctionServiceStub(FunctionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcFunctionServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcFunctionServiceStubcreate(ClientContext clientContext) static final GrpcFunctionServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcFunctionServiceStubcreate(FunctionServiceStubSettings settings) OperationCallable<DeleteFunctionRequest,com.google.protobuf.Empty, OperationMetadata> booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.functions.v2beta.stub.FunctionServiceStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcFunctionServiceStub
protected GrpcFunctionServiceStub(FunctionServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcFunctionServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcFunctionServiceStub
protected GrpcFunctionServiceStub(FunctionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcFunctionServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcFunctionServiceStub create(FunctionServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcFunctionServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classFunctionServiceStub
-
getFunctionCallable
- Overrides:
getFunctionCallablein classFunctionServiceStub
-
listFunctionsCallable
- Overrides:
listFunctionsCallablein classFunctionServiceStub
-
listFunctionsPagedCallable
public UnaryCallable<ListFunctionsRequest,FunctionServiceClient.ListFunctionsPagedResponse> listFunctionsPagedCallable()- Overrides:
listFunctionsPagedCallablein classFunctionServiceStub
-
createFunctionCallable
- Overrides:
createFunctionCallablein classFunctionServiceStub
-
createFunctionOperationCallable
public OperationCallable<CreateFunctionRequest,Function, createFunctionOperationCallable()OperationMetadata> - Overrides:
createFunctionOperationCallablein classFunctionServiceStub
-
updateFunctionCallable
- Overrides:
updateFunctionCallablein classFunctionServiceStub
-
updateFunctionOperationCallable
public OperationCallable<UpdateFunctionRequest,Function, updateFunctionOperationCallable()OperationMetadata> - Overrides:
updateFunctionOperationCallablein classFunctionServiceStub
-
deleteFunctionCallable
- Overrides:
deleteFunctionCallablein classFunctionServiceStub
-
deleteFunctionOperationCallable
public OperationCallable<DeleteFunctionRequest,com.google.protobuf.Empty, deleteFunctionOperationCallable()OperationMetadata> - Overrides:
deleteFunctionOperationCallablein classFunctionServiceStub
-
generateUploadUrlCallable
public UnaryCallable<GenerateUploadUrlRequest,GenerateUploadUrlResponse> generateUploadUrlCallable()- Overrides:
generateUploadUrlCallablein classFunctionServiceStub
-
generateDownloadUrlCallable
public UnaryCallable<GenerateDownloadUrlRequest,GenerateDownloadUrlResponse> generateDownloadUrlCallable()- Overrides:
generateDownloadUrlCallablein classFunctionServiceStub
-
listRuntimesCallable
- Overrides:
listRuntimesCallablein classFunctionServiceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classFunctionServiceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,FunctionServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classFunctionServiceStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classFunctionServiceStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classFunctionServiceStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classFunctionServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classFunctionServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-