Class HttpJsonFunctionServiceStub (2.9.0)

publicclass HttpJsonFunctionServiceStubextendsFunctionServiceStub

REST stub implementation for the FunctionService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > FunctionServiceStub > HttpJsonFunctionServiceStub

Inherited Members

Static Methods

create(ClientContext clientContext)

publicstaticfinalHttpJsonFunctionServiceStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
Exceptions
Type Description

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

publicstaticfinalHttpJsonFunctionServiceStubcreate(ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
Exceptions
Type Description

create(FunctionServiceStubSettings settings)

publicstaticfinalHttpJsonFunctionServiceStubcreate(FunctionServiceStubSettingssettings)
Parameter
Name Description
Returns
Type Description
Exceptions
Type Description

getMethodDescriptors()

publicstaticList<ApiMethodDescriptor>getMethodDescriptors()
Returns
Type Description

Constructors

HttpJsonFunctionServiceStub(FunctionServiceStubSettings settings, ClientContext clientContext)

protectedHttpJsonFunctionServiceStub(FunctionServiceStubSettingssettings,ClientContextclientContext)

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.

Parameters
Name Description
clientContext ClientContext

HttpJsonFunctionServiceStub(FunctionServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protectedHttpJsonFunctionServiceStub(FunctionServiceStubSettingssettings,ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)

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.

Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

publicbooleanawaitTermination(longduration,TimeUnitunit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
Exceptions
Type Description

close()

publicfinalvoidclose()
Overrides

createFunctionCallable()

publicUnaryCallable<CreateFunctionRequest,Operation>createFunctionCallable()
Returns
Type Description
Overrides

createFunctionOperationCallable()

publicOperationCallable<CreateFunctionRequest,Function,OperationMetadata>createFunctionOperationCallable()
Returns
Type Description
Overrides

deleteFunctionCallable()

publicUnaryCallable<DeleteFunctionRequest,Operation>deleteFunctionCallable()
Returns
Type Description
Overrides

deleteFunctionOperationCallable()

publicOperationCallable<DeleteFunctionRequest,Empty,OperationMetadata>deleteFunctionOperationCallable()
Returns
Type Description
Overrides

generateDownloadUrlCallable()

publicUnaryCallable<GenerateDownloadUrlRequest,GenerateDownloadUrlResponse>generateDownloadUrlCallable()
Returns
Type Description
Overrides

generateUploadUrlCallable()

publicUnaryCallable<GenerateUploadUrlRequest,GenerateUploadUrlResponse>generateUploadUrlCallable()
Returns
Type Description
Overrides

getFunctionCallable()

publicUnaryCallable<GetFunctionRequest,Function>getFunctionCallable()
Returns
Type Description
Overrides

getHttpJsonOperationsStub()

publicHttpJsonOperationsStubgetHttpJsonOperationsStub()
Returns
Type Description
Overrides

getIamPolicyCallable()

publicUnaryCallable<GetIamPolicyRequest,Policy>getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description

isTerminated()

publicbooleanisTerminated()
Returns
Type Description

listFunctionsCallable()

publicUnaryCallable<ListFunctionsRequest,ListFunctionsResponse>listFunctionsCallable()
Returns
Type Description
Overrides

listFunctionsPagedCallable()

publicUnaryCallable<ListFunctionsRequest,FunctionServiceClient.ListFunctionsPagedResponse>listFunctionsPagedCallable()
Returns
Type Description
Overrides

listLocationsCallable()

publicUnaryCallable<ListLocationsRequest,ListLocationsResponse>listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

publicUnaryCallable<ListLocationsRequest,FunctionServiceClient.ListLocationsPagedResponse>listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listRuntimesCallable()

publicUnaryCallable<ListRuntimesRequest,ListRuntimesResponse>listRuntimesCallable()
Returns
Type Description
Overrides

setIamPolicyCallable()

publicUnaryCallable<SetIamPolicyRequest,Policy>setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

testIamPermissionsCallable()

publicUnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse>testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateFunctionCallable()

publicUnaryCallable<UpdateFunctionRequest,Operation>updateFunctionCallable()
Returns
Type Description
Overrides

updateFunctionOperationCallable()

publicOperationCallable<UpdateFunctionRequest,Function,OperationMetadata>updateFunctionOperationCallable()
Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.