@Generated(value="by gapic-generator-java") public class FoldersSettings extends ClientSettings<FoldersSettings>
FoldersClient
.
The default instance has everything set to sensible defaults:
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 getFolder 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
FoldersSettings.Builder foldersSettingsBuilder = FoldersSettings.newBuilder();
foldersSettingsBuilder
.getFolderSettings()
.setRetrySettings(
foldersSettingsBuilder.getFolderSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
FoldersSettings foldersSettings = foldersSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
FoldersSettings.Builder
Builder for FoldersSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
FoldersSettings(FoldersSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
static FoldersSettings |
create(FoldersStubSettings stub) |
OperationCallSettings<CreateFolderRequest,Folder,CreateFolderMetadata> |
createFolderOperationSettings()
Returns the object with the settings used for calls to createFolder.
|
UnaryCallSettings<CreateFolderRequest,Operation> |
createFolderSettings()
Returns the object with the settings used for calls to createFolder.
|
static ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
|
static InstantiatingHttpJsonChannelProvider.Builder |
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
|
static TransportChannelProvider |
defaultTransportChannelProvider() |
OperationCallSettings<DeleteFolderRequest,Folder,DeleteFolderMetadata> |
deleteFolderOperationSettings()
Returns the object with the settings used for calls to deleteFolder.
|
UnaryCallSettings<DeleteFolderRequest,Operation> |
deleteFolderSettings()
Returns the object with the settings used for calls to deleteFolder.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
UnaryCallSettings<GetFolderRequest,Folder> |
getFolderSettings()
Returns the object with the settings used for calls to getFolder.
|
UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
|
PagedCallSettings<ListFoldersRequest,ListFoldersResponse,FoldersClient.ListFoldersPagedResponse> |
listFoldersSettings()
Returns the object with the settings used for calls to listFolders.
|
OperationCallSettings<MoveFolderRequest,Folder,MoveFolderMetadata> |
moveFolderOperationSettings()
Returns the object with the settings used for calls to moveFolder.
|
UnaryCallSettings<MoveFolderRequest,Operation> |
moveFolderSettings()
Returns the object with the settings used for calls to moveFolder.
|
static FoldersSettings.Builder |
newBuilder()
Returns a new gRPC builder for this class.
|
static FoldersSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
static FoldersSettings.Builder |
newHttpJsonBuilder()
Returns a new REST builder for this class.
|
PagedCallSettings<SearchFoldersRequest,SearchFoldersResponse,FoldersClient.SearchFoldersPagedResponse> |
searchFoldersSettings()
Returns the object with the settings used for calls to searchFolders.
|
UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
|
UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
|
FoldersSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
OperationCallSettings<UndeleteFolderRequest,Folder,UndeleteFolderMetadata> |
undeleteFolderOperationSettings()
Returns the object with the settings used for calls to undeleteFolder.
|
UnaryCallSettings<UndeleteFolderRequest,Operation> |
undeleteFolderSettings()
Returns the object with the settings used for calls to undeleteFolder.
|
OperationCallSettings<UpdateFolderRequest,Folder,UpdateFolderMetadata> |
updateFolderOperationSettings()
Returns the object with the settings used for calls to updateFolder.
|
UnaryCallSettings<UpdateFolderRequest,Operation> |
updateFolderSettings()
Returns the object with the settings used for calls to updateFolder.
|
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected FoldersSettings(FoldersSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<GetFolderRequest,Folder> getFolderSettings()
public PagedCallSettings<ListFoldersRequest,ListFoldersResponse,FoldersClient.ListFoldersPagedResponse> listFoldersSettings()
public PagedCallSettings<SearchFoldersRequest,SearchFoldersResponse,FoldersClient.SearchFoldersPagedResponse> searchFoldersSettings()
public UnaryCallSettings<CreateFolderRequest,Operation> createFolderSettings()
public OperationCallSettings<CreateFolderRequest,Folder,CreateFolderMetadata> createFolderOperationSettings()
public UnaryCallSettings<UpdateFolderRequest,Operation> updateFolderSettings()
public OperationCallSettings<UpdateFolderRequest,Folder,UpdateFolderMetadata> updateFolderOperationSettings()
public UnaryCallSettings<MoveFolderRequest,Operation> moveFolderSettings()
public OperationCallSettings<MoveFolderRequest,Folder,MoveFolderMetadata> moveFolderOperationSettings()
public UnaryCallSettings<DeleteFolderRequest,Operation> deleteFolderSettings()
public OperationCallSettings<DeleteFolderRequest,Folder,DeleteFolderMetadata> deleteFolderOperationSettings()
public UnaryCallSettings<UndeleteFolderRequest,Operation> undeleteFolderSettings()
public OperationCallSettings<UndeleteFolderRequest,Folder,UndeleteFolderMetadata> undeleteFolderOperationSettings()
public UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
public UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
public UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
public static final FoldersSettings create(FoldersStubSettings stub) throws IOException
IOException
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
@BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
public static TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static FoldersSettings.Builder newBuilder()
@BetaApi public static FoldersSettings.Builder newHttpJsonBuilder()
public static FoldersSettings.Builder newBuilder(ClientContext clientContext)
public FoldersSettings.Builder toBuilder()
toBuilder
in class ClientSettings<FoldersSettings>
Copyright © 2022 Google LLC. All rights reserved.