Class HttpJsonFunctionServiceStub
- java.lang.Object
-
- com.google.cloud.functions.v2.stub.FunctionServiceStub
-
- com.google.cloud.functions.v2.stub.HttpJsonFunctionServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonFunctionServiceStub extends FunctionServiceStub
REST 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 protected
HttpJsonFunctionServiceStub(FunctionServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonFunctionServiceStub, using the given settings.protected
HttpJsonFunctionServiceStub(FunctionServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonFunctionServiceStub, 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)
void
close()
static HttpJsonFunctionServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonFunctionServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonFunctionServiceStub
create(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.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,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()
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,Function,OperationMetadata>
updateFunctionOperationCallable()
-
Methods inherited from class com.google.cloud.functions.v2.stub.FunctionServiceStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonFunctionServiceStub
protected HttpJsonFunctionServiceStub(FunctionServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonFunctionServiceStub, 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
-
HttpJsonFunctionServiceStub
protected HttpJsonFunctionServiceStub(FunctionServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonFunctionServiceStub, 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 HttpJsonFunctionServiceStub create(FunctionServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonFunctionServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonFunctionServiceStub 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 classFunctionServiceStub
-
getFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<GetFunctionRequest,Function> getFunctionCallable()
- Overrides:
getFunctionCallable
in classFunctionServiceStub
-
listFunctionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListFunctionsRequest,ListFunctionsResponse> listFunctionsCallable()
- Overrides:
listFunctionsCallable
in classFunctionServiceStub
-
listFunctionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListFunctionsRequest,FunctionServiceClient.ListFunctionsPagedResponse> listFunctionsPagedCallable()
- Overrides:
listFunctionsPagedCallable
in classFunctionServiceStub
-
createFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateFunctionRequest,com.google.longrunning.Operation> createFunctionCallable()
- Overrides:
createFunctionCallable
in classFunctionServiceStub
-
createFunctionOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateFunctionRequest,Function,OperationMetadata> createFunctionOperationCallable()
- Overrides:
createFunctionOperationCallable
in classFunctionServiceStub
-
updateFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateFunctionRequest,com.google.longrunning.Operation> updateFunctionCallable()
- Overrides:
updateFunctionCallable
in classFunctionServiceStub
-
updateFunctionOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateFunctionRequest,Function,OperationMetadata> updateFunctionOperationCallable()
- Overrides:
updateFunctionOperationCallable
in classFunctionServiceStub
-
deleteFunctionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteFunctionRequest,com.google.longrunning.Operation> deleteFunctionCallable()
- Overrides:
deleteFunctionCallable
in classFunctionServiceStub
-
deleteFunctionOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteFunctionRequest,com.google.protobuf.Empty,OperationMetadata> deleteFunctionOperationCallable()
- Overrides:
deleteFunctionOperationCallable
in classFunctionServiceStub
-
generateUploadUrlCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateUploadUrlRequest,GenerateUploadUrlResponse> generateUploadUrlCallable()
- Overrides:
generateUploadUrlCallable
in classFunctionServiceStub
-
generateDownloadUrlCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateDownloadUrlRequest,GenerateDownloadUrlResponse> generateDownloadUrlCallable()
- Overrides:
generateDownloadUrlCallable
in classFunctionServiceStub
-
listRuntimesCallable
public com.google.api.gax.rpc.UnaryCallable<ListRuntimesRequest,ListRuntimesResponse> listRuntimesCallable()
- Overrides:
listRuntimesCallable
in classFunctionServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classFunctionServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,FunctionServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classFunctionServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classFunctionServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classFunctionServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classFunctionServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-