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 protected
HttpJsonCloudFunctionsServiceStub(CloudFunctionsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonCloudFunctionsServiceStub, using the given settings.protected
HttpJsonCloudFunctionsServiceStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
com.google.api.gax.rpc.UnaryCallable<CallFunctionRequest,CallFunctionResponse>
callFunctionCallable()
void
close()
static HttpJsonCloudFunctionsServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonCloudFunctionsServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonCloudFunctionsServiceStub
create(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.HttpJsonOperationsStub
getHttpJsonOperationsStub()
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()
boolean
isShutdown()
boolean
isTerminated()
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()
void
shutdown()
void
shutdownNow()
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:
getHttpJsonOperationsStub
in classCloudFunctionsServiceStub
-
listFunctionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListFunctionsRequest,ListFunctionsResponse> listFunctionsCallable()
- Overrides:
listFunctionsCallable
in classCloudFunctionsServiceStub
-
listFunctionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFunctionsRequest,CloudFunctionsServiceClient.ListFunctionsPagedResponse> listFunctionsPagedCallable()
- Overrides:
listFunctionsPagedCallable
in classCloudFunctionsServiceStub
-
getFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<GetFunctionRequest,CloudFunction> getFunctionCallable()
- Overrides:
getFunctionCallable
in classCloudFunctionsServiceStub
-
createFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateFunctionRequest,com.google.longrunning.Operation> createFunctionCallable()
- Overrides:
createFunctionCallable
in classCloudFunctionsServiceStub
-
createFunctionOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateFunctionRequest,CloudFunction,OperationMetadataV1> createFunctionOperationCallable()
- Overrides:
createFunctionOperationCallable
in classCloudFunctionsServiceStub
-
updateFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateFunctionRequest,com.google.longrunning.Operation> updateFunctionCallable()
- Overrides:
updateFunctionCallable
in classCloudFunctionsServiceStub
-
updateFunctionOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateFunctionRequest,CloudFunction,OperationMetadataV1> updateFunctionOperationCallable()
- Overrides:
updateFunctionOperationCallable
in classCloudFunctionsServiceStub
-
deleteFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteFunctionRequest,com.google.longrunning.Operation> deleteFunctionCallable()
- Overrides:
deleteFunctionCallable
in classCloudFunctionsServiceStub
-
deleteFunctionOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteFunctionRequest,com.google.protobuf.Empty,OperationMetadataV1> deleteFunctionOperationCallable()
- Overrides:
deleteFunctionOperationCallable
in classCloudFunctionsServiceStub
-
callFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<CallFunctionRequest,CallFunctionResponse> callFunctionCallable()
- Overrides:
callFunctionCallable
in classCloudFunctionsServiceStub
-
generateUploadUrlCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateUploadUrlRequest,GenerateUploadUrlResponse> generateUploadUrlCallable()
- Overrides:
generateUploadUrlCallable
in classCloudFunctionsServiceStub
-
generateDownloadUrlCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateDownloadUrlRequest,GenerateDownloadUrlResponse> generateDownloadUrlCallable()
- Overrides:
generateDownloadUrlCallable
in classCloudFunctionsServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classCloudFunctionsServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classCloudFunctionsServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classCloudFunctionsServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classCloudFunctionsServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,CloudFunctionsServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classCloudFunctionsServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-