Class FunctionServiceSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings.Builder<FunctionServiceSettings,FunctionServiceSettings.Builder>
-
- com.google.cloud.functions.v2alpha.FunctionServiceSettings.Builder
-
- Enclosing class:
- FunctionServiceSettings
public static class FunctionServiceSettings.Builder extends com.google.api.gax.rpc.ClientSettings.Builder<FunctionServiceSettings,FunctionServiceSettings.Builder>
Builder for FunctionServiceSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(FunctionServiceSettings settings)
protected
Builder(FunctionServiceStubSettings.Builder stubSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionServiceSettings.Builder
applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.FunctionServiceSettings
build()
com.google.api.gax.rpc.OperationCallSettings.Builder<CreateFunctionRequest,Function,OperationMetadata>
createFunctionOperationSettings()
Returns the builder for the settings used for calls to createFunction.com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateFunctionRequest,com.google.longrunning.Operation>
createFunctionSettings()
Returns the builder for the settings used for calls to createFunction.com.google.api.gax.rpc.OperationCallSettings.Builder<DeleteFunctionRequest,com.google.protobuf.Empty,OperationMetadata>
deleteFunctionOperationSettings()
Returns the builder for the settings used for calls to deleteFunction.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteFunctionRequest,com.google.longrunning.Operation>
deleteFunctionSettings()
Returns the builder for the settings used for calls to deleteFunction.com.google.api.gax.rpc.UnaryCallSettings.Builder<GenerateDownloadUrlRequest,GenerateDownloadUrlResponse>
generateDownloadUrlSettings()
Returns the builder for the settings used for calls to generateDownloadUrl.com.google.api.gax.rpc.UnaryCallSettings.Builder<GenerateUploadUrlRequest,GenerateUploadUrlResponse>
generateUploadUrlSettings()
Returns the builder for the settings used for calls to generateUploadUrl.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetFunctionRequest,Function>
getFunctionSettings()
Returns the builder for the settings used for calls to getFunction.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicySettings()
Returns the builder for the settings used for calls to getIamPolicy.FunctionServiceStubSettings.Builder
getStubSettingsBuilder()
com.google.api.gax.rpc.PagedCallSettings.Builder<ListFunctionsRequest,ListFunctionsResponse,FunctionServiceClient.ListFunctionsPagedResponse>
listFunctionsSettings()
Returns the builder for the settings used for calls to listFunctions.com.google.api.gax.rpc.PagedCallSettings.Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,FunctionServiceClient.ListLocationsPagedResponse>
listLocationsSettings()
Returns the builder for the settings used for calls to listLocations.com.google.api.gax.rpc.UnaryCallSettings.Builder<ListRuntimesRequest,ListRuntimesResponse>
listRuntimesSettings()
Returns the builder for the settings used for calls to listRuntimes.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicySettings()
Returns the builder for the settings used for calls to setIamPolicy.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsSettings()
Returns the builder for the settings used for calls to testIamPermissions.com.google.api.gax.rpc.OperationCallSettings.Builder<UpdateFunctionRequest,Function,OperationMetadata>
updateFunctionOperationSettings()
Returns the builder for the settings used for calls to updateFunction.com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateFunctionRequest,com.google.longrunning.Operation>
updateFunctionSettings()
Returns the builder for the settings used for calls to updateFunction.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setQuotaProjectId, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder() throws IOException
- Throws:
IOException
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(FunctionServiceSettings settings)
-
Builder
protected Builder(FunctionServiceStubSettings.Builder stubSettings)
-
-
Method Detail
-
getStubSettingsBuilder
public FunctionServiceStubSettings.Builder getStubSettingsBuilder()
-
applyToAllUnaryMethods
public FunctionServiceSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.Note: This method does not support applying settings to streaming methods.
-
getFunctionSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetFunctionRequest,Function> getFunctionSettings()
Returns the builder for the settings used for calls to getFunction.
-
listFunctionsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListFunctionsRequest,ListFunctionsResponse,FunctionServiceClient.ListFunctionsPagedResponse> listFunctionsSettings()
Returns the builder for the settings used for calls to listFunctions.
-
createFunctionSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateFunctionRequest,com.google.longrunning.Operation> createFunctionSettings()
Returns the builder for the settings used for calls to createFunction.
-
createFunctionOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<CreateFunctionRequest,Function,OperationMetadata> createFunctionOperationSettings()
Returns the builder for the settings used for calls to createFunction.
-
updateFunctionSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateFunctionRequest,com.google.longrunning.Operation> updateFunctionSettings()
Returns the builder for the settings used for calls to updateFunction.
-
updateFunctionOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<UpdateFunctionRequest,Function,OperationMetadata> updateFunctionOperationSettings()
Returns the builder for the settings used for calls to updateFunction.
-
deleteFunctionSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteFunctionRequest,com.google.longrunning.Operation> deleteFunctionSettings()
Returns the builder for the settings used for calls to deleteFunction.
-
deleteFunctionOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<DeleteFunctionRequest,com.google.protobuf.Empty,OperationMetadata> deleteFunctionOperationSettings()
Returns the builder for the settings used for calls to deleteFunction.
-
generateUploadUrlSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GenerateUploadUrlRequest,GenerateUploadUrlResponse> generateUploadUrlSettings()
Returns the builder for the settings used for calls to generateUploadUrl.
-
generateDownloadUrlSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GenerateDownloadUrlRequest,GenerateDownloadUrlResponse> generateDownloadUrlSettings()
Returns the builder for the settings used for calls to generateDownloadUrl.
-
listRuntimesSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ListRuntimesRequest,ListRuntimesResponse> listRuntimesSettings()
Returns the builder for the settings used for calls to listRuntimes.
-
listLocationsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,FunctionServiceClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the builder for the settings used for calls to listLocations.
-
setIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
Returns the builder for the settings used for calls to setIamPolicy.
-
getIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
Returns the builder for the settings used for calls to getIamPolicy.
-
testIamPermissionsSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
Returns the builder for the settings used for calls to testIamPermissions.
-
build
public FunctionServiceSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.ClientSettings.Builder<FunctionServiceSettings,FunctionServiceSettings.Builder>
- Throws:
IOException
-
-