publicclass CloudFunctionsServiceSettingsextendsClientSettings<CloudFunctionsServiceSettings>
Settings class to configure an instance of CloudFunctionsServiceClient.
The default instance has everything set to sensible defaults:
- The default service address (cloudfunctions.googleapis.com) and default port (443) are
used.
- Credentials are acquired automatically through Application Default Credentials.
- Retries are configured for idempotent methods but not for non-idempotent methods.
The builder of this class is recursive, so contained classes are themselves builders. When
build() is called, the tree of builders is called to create the complete settings object.
For example, to set the total timeout of getFunction to 30 seconds:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
CloudFunctionsServiceSettings.BuildercloudFunctionsServiceSettingsBuilder=
CloudFunctionsServiceSettings.newBuilder();
cloudFunctionsServiceSettingsBuilder
.getFunctionSettings()
.setRetrySettings(
cloudFunctionsServiceSettingsBuilder
.getFunctionSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
CloudFunctionsServiceSettingscloudFunctionsServiceSettings=
cloudFunctionsServiceSettingsBuilder.build();
Static Methods
create(CloudFunctionsServiceStubSettings stub)
publicstaticfinalCloudFunctionsServiceSettingscreate(CloudFunctionsServiceStubSettingsstub)
publicstaticApiClientHeaderProvider.BuilderdefaultApiClientHeaderProviderBuilder()
defaultCredentialsProviderBuilder()
publicstaticGoogleCredentialsProvider.BuilderdefaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
publicstaticInstantiatingExecutorProvider.BuilderdefaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
defaultGrpcTransportProviderBuilder()
publicstaticInstantiatingGrpcChannelProvider.BuilderdefaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
defaultHttpJsonTransportProviderBuilder()
publicstaticInstantiatingHttpJsonChannelProvider.BuilderdefaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
publicstaticTransportChannelProviderdefaultTransportChannelProvider()
getDefaultEndpoint()
publicstaticStringgetDefaultEndpoint()
Returns the default service endpoint.
| Returns |
| Type |
Description |
String |
getDefaultServiceScopes()
publicstaticList<String>getDefaultServiceScopes()
Returns the default service scopes.
newBuilder()
publicstaticCloudFunctionsServiceSettings.BuildernewBuilder()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
publicstaticCloudFunctionsServiceSettings.BuildernewBuilder(ClientContextclientContext)
Returns a new builder for this class.
newHttpJsonBuilder()
publicstaticCloudFunctionsServiceSettings.BuildernewHttpJsonBuilder()
Returns a new REST builder for this class.
Constructors
CloudFunctionsServiceSettings(CloudFunctionsServiceSettings.Builder settingsBuilder)
protectedCloudFunctionsServiceSettings(CloudFunctionsServiceSettings.BuildersettingsBuilder)
Methods
callFunctionSettings()
publicUnaryCallSettings<CallFunctionRequest,CallFunctionResponse>callFunctionSettings()
Returns the object with the settings used for calls to callFunction.
createFunctionOperationSettings()
publicOperationCallSettings<CreateFunctionRequest,CloudFunction,OperationMetadataV1>createFunctionOperationSettings()
Returns the object with the settings used for calls to createFunction.
createFunctionSettings()
publicUnaryCallSettings<CreateFunctionRequest,Operation>createFunctionSettings()
Returns the object with the settings used for calls to createFunction.
deleteFunctionOperationSettings()
publicOperationCallSettings<DeleteFunctionRequest,Empty,OperationMetadataV1>deleteFunctionOperationSettings()
Returns the object with the settings used for calls to deleteFunction.
deleteFunctionSettings()
publicUnaryCallSettings<DeleteFunctionRequest,Operation>deleteFunctionSettings()
Returns the object with the settings used for calls to deleteFunction.
generateDownloadUrlSettings()
publicUnaryCallSettings<GenerateDownloadUrlRequest,GenerateDownloadUrlResponse>generateDownloadUrlSettings()
Returns the object with the settings used for calls to generateDownloadUrl.
generateUploadUrlSettings()
publicUnaryCallSettings<GenerateUploadUrlRequest,GenerateUploadUrlResponse>generateUploadUrlSettings()
Returns the object with the settings used for calls to generateUploadUrl.
getFunctionSettings()
publicUnaryCallSettings<GetFunctionRequest,CloudFunction>getFunctionSettings()
Returns the object with the settings used for calls to getFunction.
getIamPolicySettings()
publicUnaryCallSettings<GetIamPolicyRequest,Policy>getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
| Returns |
| Type |
Description |
UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
listFunctionsSettings()
publicPagedCallSettings<ListFunctionsRequest,ListFunctionsResponse,CloudFunctionsServiceClient.ListFunctionsPagedResponse>listFunctionsSettings()
Returns the object with the settings used for calls to listFunctions.
setIamPolicySettings()
publicUnaryCallSettings<SetIamPolicyRequest,Policy>setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
| Returns |
| Type |
Description |
UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
testIamPermissionsSettings()
publicUnaryCallSettings<TestIamPermissionsRequest,TestIamPermissionsResponse>testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
| Returns |
| Type |
Description |
UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
toBuilder()
publicCloudFunctionsServiceSettings.BuildertoBuilder()
Returns a builder containing all the values of this settings class.
Overrides
updateFunctionOperationSettings()
publicOperationCallSettings<UpdateFunctionRequest,CloudFunction,OperationMetadataV1>updateFunctionOperationSettings()
Returns the object with the settings used for calls to updateFunction.
updateFunctionSettings()
publicUnaryCallSettings<UpdateFunctionRequest,Operation>updateFunctionSettings()
Returns the object with the settings used for calls to updateFunction.