Class HttpJsonCloudFunctionsServiceStub
- java.lang.Object
-
- com.google.cloud.functions.v1.stub.CloudFunctionsServiceStub
-
- com.google.cloud.functions.v1.stub.HttpJsonCloudFunctionsServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonCloudFunctionsServiceStub extends CloudFunctionsServiceStub
REST stub implementation for the CloudFunctionsService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonCloudFunctionsServiceStub(CloudFunctionsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonCloudFunctionsServiceStub, using the given settings.protectedHttpJsonCloudFunctionsServiceStub(CloudFunctionsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonCloudFunctionsServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)com.google.api.gax.rpc.UnaryCallable<CallFunctionRequest,CallFunctionResponse>callFunctionCallable()voidclose()static HttpJsonCloudFunctionsServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonCloudFunctionsServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonCloudFunctionsServiceStubcreate(CloudFunctionsServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateFunctionRequest,com.google.longrunning.Operation>createFunctionCallable()com.google.api.gax.rpc.OperationCallable<CreateFunctionRequest,CloudFunction,OperationMetadataV1>createFunctionOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteFunctionRequest,com.google.longrunning.Operation>deleteFunctionCallable()com.google.api.gax.rpc.OperationCallable<DeleteFunctionRequest,com.google.protobuf.Empty,OperationMetadataV1>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,CloudFunction>getFunctionCallable()com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>getIamPolicyCallable()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListFunctionsRequest,ListFunctionsResponse>listFunctionsCallable()com.google.api.gax.rpc.UnaryCallable<ListFunctionsRequest,CloudFunctionsServiceClient.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,CloudFunctionsServiceClient.ListLocationsPagedResponse>listLocationsPagedCallable()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,CloudFunction,OperationMetadataV1>updateFunctionOperationCallable()-
Methods inherited from class com.google.cloud.functions.v1.stub.CloudFunctionsServiceStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonCloudFunctionsServiceStub
protected HttpJsonCloudFunctionsServiceStub(CloudFunctionsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonCloudFunctionsServiceStub, 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
-
HttpJsonCloudFunctionsServiceStub
protected HttpJsonCloudFunctionsServiceStub(CloudFunctionsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonCloudFunctionsServiceStub, 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 HttpJsonCloudFunctionsServiceStub create(CloudFunctionsServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonCloudFunctionsServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonCloudFunctionsServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStubin classCloudFunctionsServiceStub
-
listFunctionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListFunctionsRequest,ListFunctionsResponse> listFunctionsCallable()
- Overrides:
listFunctionsCallablein classCloudFunctionsServiceStub
-
listFunctionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFunctionsRequest,CloudFunctionsServiceClient.ListFunctionsPagedResponse> listFunctionsPagedCallable()
- Overrides:
listFunctionsPagedCallablein classCloudFunctionsServiceStub
-
getFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<GetFunctionRequest,CloudFunction> getFunctionCallable()
- Overrides:
getFunctionCallablein classCloudFunctionsServiceStub
-
createFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateFunctionRequest,com.google.longrunning.Operation> createFunctionCallable()
- Overrides:
createFunctionCallablein classCloudFunctionsServiceStub
-
createFunctionOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateFunctionRequest,CloudFunction,OperationMetadataV1> createFunctionOperationCallable()
- Overrides:
createFunctionOperationCallablein classCloudFunctionsServiceStub
-
updateFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateFunctionRequest,com.google.longrunning.Operation> updateFunctionCallable()
- Overrides:
updateFunctionCallablein classCloudFunctionsServiceStub
-
updateFunctionOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateFunctionRequest,CloudFunction,OperationMetadataV1> updateFunctionOperationCallable()
- Overrides:
updateFunctionOperationCallablein classCloudFunctionsServiceStub
-
deleteFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteFunctionRequest,com.google.longrunning.Operation> deleteFunctionCallable()
- Overrides:
deleteFunctionCallablein classCloudFunctionsServiceStub
-
deleteFunctionOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteFunctionRequest,com.google.protobuf.Empty,OperationMetadataV1> deleteFunctionOperationCallable()
- Overrides:
deleteFunctionOperationCallablein classCloudFunctionsServiceStub
-
callFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<CallFunctionRequest,CallFunctionResponse> callFunctionCallable()
- Overrides:
callFunctionCallablein classCloudFunctionsServiceStub
-
generateUploadUrlCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateUploadUrlRequest,GenerateUploadUrlResponse> generateUploadUrlCallable()
- Overrides:
generateUploadUrlCallablein classCloudFunctionsServiceStub
-
generateDownloadUrlCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateDownloadUrlRequest,GenerateDownloadUrlResponse> generateDownloadUrlCallable()
- Overrides:
generateDownloadUrlCallablein classCloudFunctionsServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classCloudFunctionsServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classCloudFunctionsServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classCloudFunctionsServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classCloudFunctionsServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,CloudFunctionsServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classCloudFunctionsServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCloudFunctionsServiceStub
-
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
-
-