Class FunctionServiceStubSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings.Builder<FunctionServiceStubSettings,FunctionServiceStubSettings.Builder>
-
- com.google.cloud.functions.v2.stub.FunctionServiceStubSettings.Builder
-
- Enclosing class:
- FunctionServiceStubSettings
public static class FunctionServiceStubSettings.Builder extends com.google.api.gax.rpc.StubSettings.Builder<FunctionServiceStubSettings,FunctionServiceStubSettings.Builder>
Builder for FunctionServiceStubSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(FunctionServiceStubSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionServiceStubSettings.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.FunctionServiceStubSettings
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.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.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>>
unaryMethodSettingsBuilders()
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.StubSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(FunctionServiceStubSettings settings)
-
-
Method Detail
-
applyToAllUnaryMethods
public FunctionServiceStubSettings.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.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
-
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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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 FunctionServiceStubSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.StubSettings.Builder<FunctionServiceStubSettings,FunctionServiceStubSettings.Builder>
- Throws:
IOException
-
-