public class DataformSettings extends ClientSettings<DataformSettings>
Settings class to configure an instance of DataformClient.
The default instance has everything set to sensible defaults:
- The default service address (dataform.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 getRepository 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
DataformSettings.Builder dataformSettingsBuilder = DataformSettings.newBuilder();
dataformSettingsBuilder
.getRepositorySettings()
.setRetrySettings(
dataformSettingsBuilder
.getRepositorySettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
DataformSettings dataformSettings = dataformSettingsBuilder.build();
Static Methods
create(DataformStubSettings stub)
public static final DataformSettings create(DataformStubSettings stub)
Name | Description |
stub |
DataformStubSettings |
Type | Description |
DataformSettings |
Type | Description |
IOException |
defaultApiClientHeaderProviderBuilder()
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Type | Description |
Builder |
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
Type | Description |
Builder |
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
Type | Description |
Builder |
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
Type | Description |
Builder |
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
Type | Description |
Builder |
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
Type | Description |
TransportChannelProvider |
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
Type | Description |
String |
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
Type | Description |
List<String> |
newBuilder()
public static DataformSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
Type | Description |
DataformSettings.Builder |
newBuilder(ClientContext clientContext)
public static DataformSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
Name | Description |
clientContext |
ClientContext |
Type | Description |
DataformSettings.Builder |
newHttpJsonBuilder()
public static DataformSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Type | Description |
DataformSettings.Builder |
Constructors
DataformSettings(DataformSettings.Builder settingsBuilder)
protected DataformSettings(DataformSettings.Builder settingsBuilder)
Name | Description |
settingsBuilder |
DataformSettings.Builder |
Methods
cancelWorkflowInvocationSettings()
public UnaryCallSettings<CancelWorkflowInvocationRequest,Empty> cancelWorkflowInvocationSettings()
Returns the object with the settings used for calls to cancelWorkflowInvocation.
Type | Description |
UnaryCallSettings<CancelWorkflowInvocationRequest,Empty> |
commitWorkspaceChangesSettings()
public UnaryCallSettings<CommitWorkspaceChangesRequest,Empty> commitWorkspaceChangesSettings()
Returns the object with the settings used for calls to commitWorkspaceChanges.
Type | Description |
UnaryCallSettings<CommitWorkspaceChangesRequest,Empty> |
createCompilationResultSettings()
public UnaryCallSettings<CreateCompilationResultRequest,CompilationResult> createCompilationResultSettings()
Returns the object with the settings used for calls to createCompilationResult.
Type | Description |
UnaryCallSettings<CreateCompilationResultRequest,CompilationResult> |
createRepositorySettings()
public UnaryCallSettings<CreateRepositoryRequest,Repository> createRepositorySettings()
Returns the object with the settings used for calls to createRepository.
Type | Description |
UnaryCallSettings<CreateRepositoryRequest,Repository> |
createWorkflowInvocationSettings()
public UnaryCallSettings<CreateWorkflowInvocationRequest,WorkflowInvocation> createWorkflowInvocationSettings()
Returns the object with the settings used for calls to createWorkflowInvocation.
Type | Description |
UnaryCallSettings<CreateWorkflowInvocationRequest,WorkflowInvocation> |
createWorkspaceSettings()
public UnaryCallSettings<CreateWorkspaceRequest,Workspace> createWorkspaceSettings()
Returns the object with the settings used for calls to createWorkspace.
Type | Description |
UnaryCallSettings<CreateWorkspaceRequest,Workspace> |
deleteRepositorySettings()
public UnaryCallSettings<DeleteRepositoryRequest,Empty> deleteRepositorySettings()
Returns the object with the settings used for calls to deleteRepository.
Type | Description |
UnaryCallSettings<DeleteRepositoryRequest,Empty> |
deleteWorkflowInvocationSettings()
public UnaryCallSettings<DeleteWorkflowInvocationRequest,Empty> deleteWorkflowInvocationSettings()
Returns the object with the settings used for calls to deleteWorkflowInvocation.
Type | Description |
UnaryCallSettings<DeleteWorkflowInvocationRequest,Empty> |
deleteWorkspaceSettings()
public UnaryCallSettings<DeleteWorkspaceRequest,Empty> deleteWorkspaceSettings()
Returns the object with the settings used for calls to deleteWorkspace.
Type | Description |
UnaryCallSettings<DeleteWorkspaceRequest,Empty> |
fetchFileDiffSettings()
public UnaryCallSettings<FetchFileDiffRequest,FetchFileDiffResponse> fetchFileDiffSettings()
Returns the object with the settings used for calls to fetchFileDiff.
Type | Description |
UnaryCallSettings<FetchFileDiffRequest,FetchFileDiffResponse> |
fetchFileGitStatusesSettings()
public UnaryCallSettings<FetchFileGitStatusesRequest,FetchFileGitStatusesResponse> fetchFileGitStatusesSettings()
Returns the object with the settings used for calls to fetchFileGitStatuses.
Type | Description |
UnaryCallSettings<FetchFileGitStatusesRequest,FetchFileGitStatusesResponse> |
fetchGitAheadBehindSettings()
public UnaryCallSettings<FetchGitAheadBehindRequest,FetchGitAheadBehindResponse> fetchGitAheadBehindSettings()
Returns the object with the settings used for calls to fetchGitAheadBehind.
Type | Description |
UnaryCallSettings<FetchGitAheadBehindRequest,FetchGitAheadBehindResponse> |
fetchRemoteBranchesSettings()
public UnaryCallSettings<FetchRemoteBranchesRequest,FetchRemoteBranchesResponse> fetchRemoteBranchesSettings()
Returns the object with the settings used for calls to fetchRemoteBranches.
Type | Description |
UnaryCallSettings<FetchRemoteBranchesRequest,FetchRemoteBranchesResponse> |
getCompilationResultSettings()
public UnaryCallSettings<GetCompilationResultRequest,CompilationResult> getCompilationResultSettings()
Returns the object with the settings used for calls to getCompilationResult.
Type | Description |
UnaryCallSettings<GetCompilationResultRequest,CompilationResult> |
getLocationSettings()
public UnaryCallSettings<GetLocationRequest,Location> getLocationSettings()
Returns the object with the settings used for calls to getLocation.
Type | Description |
UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getRepositorySettings()
public UnaryCallSettings<GetRepositoryRequest,Repository> getRepositorySettings()
Returns the object with the settings used for calls to getRepository.
Type | Description |
UnaryCallSettings<GetRepositoryRequest,Repository> |
getWorkflowInvocationSettings()
public UnaryCallSettings<GetWorkflowInvocationRequest,WorkflowInvocation> getWorkflowInvocationSettings()
Returns the object with the settings used for calls to getWorkflowInvocation.
Type | Description |
UnaryCallSettings<GetWorkflowInvocationRequest,WorkflowInvocation> |
getWorkspaceSettings()
public UnaryCallSettings<GetWorkspaceRequest,Workspace> getWorkspaceSettings()
Returns the object with the settings used for calls to getWorkspace.
Type | Description |
UnaryCallSettings<GetWorkspaceRequest,Workspace> |
installNpmPackagesSettings()
public UnaryCallSettings<InstallNpmPackagesRequest,InstallNpmPackagesResponse> installNpmPackagesSettings()
Returns the object with the settings used for calls to installNpmPackages.
Type | Description |
UnaryCallSettings<InstallNpmPackagesRequest,InstallNpmPackagesResponse> |
listCompilationResultsSettings()
public PagedCallSettings<ListCompilationResultsRequest,ListCompilationResultsResponse,DataformClient.ListCompilationResultsPagedResponse> listCompilationResultsSettings()
Returns the object with the settings used for calls to listCompilationResults.
Type | Description |
PagedCallSettings<ListCompilationResultsRequest,ListCompilationResultsResponse,ListCompilationResultsPagedResponse> |
listLocationsSettings()
public PagedCallSettings<ListLocationsRequest,ListLocationsResponse,DataformClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
Type | Description |
PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse> |
listRepositoriesSettings()
public PagedCallSettings<ListRepositoriesRequest,ListRepositoriesResponse,DataformClient.ListRepositoriesPagedResponse> listRepositoriesSettings()
Returns the object with the settings used for calls to listRepositories.
Type | Description |
PagedCallSettings<ListRepositoriesRequest,ListRepositoriesResponse,ListRepositoriesPagedResponse> |
listWorkflowInvocationsSettings()
public PagedCallSettings<ListWorkflowInvocationsRequest,ListWorkflowInvocationsResponse,DataformClient.ListWorkflowInvocationsPagedResponse> listWorkflowInvocationsSettings()
Returns the object with the settings used for calls to listWorkflowInvocations.
Type | Description |
PagedCallSettings<ListWorkflowInvocationsRequest,ListWorkflowInvocationsResponse,ListWorkflowInvocationsPagedResponse> |
listWorkspacesSettings()
public PagedCallSettings<ListWorkspacesRequest,ListWorkspacesResponse,DataformClient.ListWorkspacesPagedResponse> listWorkspacesSettings()
Returns the object with the settings used for calls to listWorkspaces.
Type | Description |
PagedCallSettings<ListWorkspacesRequest,ListWorkspacesResponse,ListWorkspacesPagedResponse> |
makeDirectorySettings()
public UnaryCallSettings<MakeDirectoryRequest,MakeDirectoryResponse> makeDirectorySettings()
Returns the object with the settings used for calls to makeDirectory.
Type | Description |
UnaryCallSettings<MakeDirectoryRequest,MakeDirectoryResponse> |
moveDirectorySettings()
public UnaryCallSettings<MoveDirectoryRequest,MoveDirectoryResponse> moveDirectorySettings()
Returns the object with the settings used for calls to moveDirectory.
Type | Description |
UnaryCallSettings<MoveDirectoryRequest,MoveDirectoryResponse> |
moveFileSettings()
public UnaryCallSettings<MoveFileRequest,MoveFileResponse> moveFileSettings()
Returns the object with the settings used for calls to moveFile.
Type | Description |
UnaryCallSettings<MoveFileRequest,MoveFileResponse> |
pullGitCommitsSettings()
public UnaryCallSettings<PullGitCommitsRequest,Empty> pullGitCommitsSettings()
Returns the object with the settings used for calls to pullGitCommits.
Type | Description |
UnaryCallSettings<PullGitCommitsRequest,Empty> |
pushGitCommitsSettings()
public UnaryCallSettings<PushGitCommitsRequest,Empty> pushGitCommitsSettings()
Returns the object with the settings used for calls to pushGitCommits.
Type | Description |
UnaryCallSettings<PushGitCommitsRequest,Empty> |
queryCompilationResultActionsSettings()
public PagedCallSettings<QueryCompilationResultActionsRequest,QueryCompilationResultActionsResponse,DataformClient.QueryCompilationResultActionsPagedResponse> queryCompilationResultActionsSettings()
Returns the object with the settings used for calls to queryCompilationResultActions.
Type | Description |
PagedCallSettings<QueryCompilationResultActionsRequest,QueryCompilationResultActionsResponse,QueryCompilationResultActionsPagedResponse> |
queryDirectoryContentsSettings()
public PagedCallSettings<QueryDirectoryContentsRequest,QueryDirectoryContentsResponse,DataformClient.QueryDirectoryContentsPagedResponse> queryDirectoryContentsSettings()
Returns the object with the settings used for calls to queryDirectoryContents.
Type | Description |
PagedCallSettings<QueryDirectoryContentsRequest,QueryDirectoryContentsResponse,QueryDirectoryContentsPagedResponse> |
queryWorkflowInvocationActionsSettings()
public PagedCallSettings<QueryWorkflowInvocationActionsRequest,QueryWorkflowInvocationActionsResponse,DataformClient.QueryWorkflowInvocationActionsPagedResponse> queryWorkflowInvocationActionsSettings()
Returns the object with the settings used for calls to queryWorkflowInvocationActions.
Type | Description |
PagedCallSettings<QueryWorkflowInvocationActionsRequest,QueryWorkflowInvocationActionsResponse,QueryWorkflowInvocationActionsPagedResponse> |
readFileSettings()
public UnaryCallSettings<ReadFileRequest,ReadFileResponse> readFileSettings()
Returns the object with the settings used for calls to readFile.
Type | Description |
UnaryCallSettings<ReadFileRequest,ReadFileResponse> |
removeDirectorySettings()
public UnaryCallSettings<RemoveDirectoryRequest,Empty> removeDirectorySettings()
Returns the object with the settings used for calls to removeDirectory.
Type | Description |
UnaryCallSettings<RemoveDirectoryRequest,Empty> |
removeFileSettings()
public UnaryCallSettings<RemoveFileRequest,Empty> removeFileSettings()
Returns the object with the settings used for calls to removeFile.
Type | Description |
UnaryCallSettings<RemoveFileRequest,Empty> |
resetWorkspaceChangesSettings()
public UnaryCallSettings<ResetWorkspaceChangesRequest,Empty> resetWorkspaceChangesSettings()
Returns the object with the settings used for calls to resetWorkspaceChanges.
Type | Description |
UnaryCallSettings<ResetWorkspaceChangesRequest,Empty> |
toBuilder()
public DataformSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Type | Description |
DataformSettings.Builder |
updateRepositorySettings()
public UnaryCallSettings<UpdateRepositoryRequest,Repository> updateRepositorySettings()
Returns the object with the settings used for calls to updateRepository.
Type | Description |
UnaryCallSettings<UpdateRepositoryRequest,Repository> |
writeFileSettings()
public UnaryCallSettings<WriteFileRequest,WriteFileResponse> writeFileSettings()
Returns the object with the settings used for calls to writeFile.
Type | Description |
UnaryCallSettings<WriteFileRequest,WriteFileResponse> |