Class GrpcFunctionServiceStub
- java.lang.Object
-
- com.google.cloud.functions.v2alpha.stub.FunctionServiceStub
-
- com.google.cloud.functions.v2alpha.stub.GrpcFunctionServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.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
Constructors Modifier Constructor Description protectedGrpcFunctionServiceStub(FunctionServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcFunctionServiceStub, using the given settings.protectedGrpcFunctionServiceStub(FunctionServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcFunctionServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcFunctionServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcFunctionServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcFunctionServiceStubcreate(FunctionServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateFunctionRequest,com.google.longrunning.Operation>createFunctionCallable()com.google.api.gax.rpc.OperationCallable<CreateFunctionRequest,Function,OperationMetadata>createFunctionOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteFunctionRequest,com.google.longrunning.Operation>deleteFunctionCallable()com.google.api.gax.rpc.OperationCallable<DeleteFunctionRequest,com.google.protobuf.Empty,OperationMetadata>deleteFunctionOperationCallable()com.google.api.gax.rpc.UnaryCallable<GenerateDownloadUrlRequest,GenerateDownloadUrlResponse>generateDownloadUrlCallable()com.google.api.gax.rpc.UnaryCallable<GenerateUploadUrlRequest,GenerateUploadUrlResponse>generateUploadUrlCallable()com.google.api.gax.rpc.UnaryCallable<GetFunctionRequest,Function>getFunctionCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListFunctionsRequest,ListFunctionsResponse>listFunctionsCallable()com.google.api.gax.rpc.UnaryCallable<ListFunctionsRequest,FunctionServiceClient.ListFunctionsPagedResponse>listFunctionsPagedCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>listLocationsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,FunctionServiceClient.ListLocationsPagedResponse>listLocationsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListRuntimesRequest,ListRuntimesResponse>listRuntimesCallable()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>setIamPolicyCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>testIamPermissionsCallable()com.google.api.gax.rpc.UnaryCallable<UpdateFunctionRequest,com.google.longrunning.Operation>updateFunctionCallable()com.google.api.gax.rpc.OperationCallable<UpdateFunctionRequest,Function,OperationMetadata>updateFunctionOperationCallable()-
Methods inherited from class com.google.cloud.functions.v2alpha.stub.FunctionServiceStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcFunctionServiceStub
protected GrpcFunctionServiceStub(FunctionServiceStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.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 Detail
-
create
public static final GrpcFunctionServiceStub create(FunctionServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcFunctionServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcFunctionServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classFunctionServiceStub
-
getFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<GetFunctionRequest,Function> getFunctionCallable()
- Overrides:
getFunctionCallablein classFunctionServiceStub
-
listFunctionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListFunctionsRequest,ListFunctionsResponse> listFunctionsCallable()
- Overrides:
listFunctionsCallablein classFunctionServiceStub
-
listFunctionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFunctionsRequest,FunctionServiceClient.ListFunctionsPagedResponse> listFunctionsPagedCallable()
- Overrides:
listFunctionsPagedCallablein classFunctionServiceStub
-
createFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateFunctionRequest,com.google.longrunning.Operation> createFunctionCallable()
- Overrides:
createFunctionCallablein classFunctionServiceStub
-
createFunctionOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateFunctionRequest,Function,OperationMetadata> createFunctionOperationCallable()
- Overrides:
createFunctionOperationCallablein classFunctionServiceStub
-
updateFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateFunctionRequest,com.google.longrunning.Operation> updateFunctionCallable()
- Overrides:
updateFunctionCallablein classFunctionServiceStub
-
updateFunctionOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateFunctionRequest,Function,OperationMetadata> updateFunctionOperationCallable()
- Overrides:
updateFunctionOperationCallablein classFunctionServiceStub
-
deleteFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteFunctionRequest,com.google.longrunning.Operation> deleteFunctionCallable()
- Overrides:
deleteFunctionCallablein classFunctionServiceStub
-
deleteFunctionOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteFunctionRequest,com.google.protobuf.Empty,OperationMetadata> deleteFunctionOperationCallable()
- Overrides:
deleteFunctionOperationCallablein classFunctionServiceStub
-
generateUploadUrlCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateUploadUrlRequest,GenerateUploadUrlResponse> generateUploadUrlCallable()
- Overrides:
generateUploadUrlCallablein classFunctionServiceStub
-
generateDownloadUrlCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateDownloadUrlRequest,GenerateDownloadUrlResponse> generateDownloadUrlCallable()
- Overrides:
generateDownloadUrlCallablein classFunctionServiceStub
-
listRuntimesCallable
public com.google.api.gax.rpc.UnaryCallable<ListRuntimesRequest,ListRuntimesResponse> listRuntimesCallable()
- Overrides:
listRuntimesCallablein classFunctionServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classFunctionServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,FunctionServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classFunctionServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classFunctionServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classFunctionServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.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
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-