Beta
This library is covered by the Pre-GA Offerings Terms
of the Terms of Service. Pre-GA libraries might have limited support,
and changes to pre-GA libraries might not be compatible with other pre-GA versions.
For more information, see the
launch stage descriptions .
public class DataformStubSettings extends StubSettings<DataformStubSettings>
Settings class to configure an instance of DataformStub .
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
DataformStubSettings . Builder dataformSettingsBuilder = DataformStubSettings . newBuilder ();
dataformSettingsBuilder
. getRepositorySettings ()
. setRetrySettings (
dataformSettingsBuilder
. getRepositorySettings ()
. getRetrySettings ()
. toBuilder ()
. setTotalTimeout ( Duration . ofSeconds ( 30 ))
. build ());
DataformStubSettings dataformSettings = dataformSettingsBuilder . build ();
Static Methods
public static ApiClientHeaderProvider . Builder defaultApiClientHeaderProviderBuilder ()
public static GoogleCredentialsProvider . Builder defaultCredentialsProviderBuilder ()
Returns a builder for the default credentials for this service.
public static InstantiatingExecutorProvider . Builder defaultExecutorProviderBuilder ()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider . Builder defaultGrpcApiClientHeaderProviderBuilder ()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
public static InstantiatingGrpcChannelProvider . Builder defaultGrpcTransportProviderBuilder ()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider . Builder defaultHttpJsonApiClientHeaderProviderBuilder ()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
public static InstantiatingHttpJsonChannelProvider . Builder defaultHttpJsonTransportProviderBuilder ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a builder for the default REST ChannelProvider for this service.
public static TransportChannelProvider defaultTransportChannelProvider ()
public static String getDefaultEndpoint ()
Returns the default service endpoint.
Returns
Type
Description
String
public static String getDefaultMtlsEndpoint ()
Returns the default mTLS service endpoint.
Returns
Type
Description
String
public static List<String> getDefaultServiceScopes ()
Returns the default service scopes.
public static DataformStubSettings . Builder newBuilder ()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static DataformStubSettings . Builder newBuilder ( ClientContext clientContext )
Returns a new builder for this class.
public static DataformStubSettings . Builder newHttpJsonBuilder ()
Returns a new REST builder for this class.
Constructors
protected DataformStubSettings ( DataformStubSettings . Builder settingsBuilder )
Methods
public UnaryCallSettings<CancelWorkflowInvocationRequest , Empty > cancelWorkflowInvocationSettings ()
Returns the object with the settings used for calls to cancelWorkflowInvocation.
public UnaryCallSettings<CommitWorkspaceChangesRequest , Empty > commitWorkspaceChangesSettings ()
Returns the object with the settings used for calls to commitWorkspaceChanges.
public UnaryCallSettings<CreateCompilationResultRequest , CompilationResult > createCompilationResultSettings ()
Returns the object with the settings used for calls to createCompilationResult.
public UnaryCallSettings<CreateRepositoryRequest , Repository > createRepositorySettings ()
Returns the object with the settings used for calls to createRepository.
public DataformStub createStub ()
public UnaryCallSettings<CreateWorkflowInvocationRequest , WorkflowInvocation > createWorkflowInvocationSettings ()
Returns the object with the settings used for calls to createWorkflowInvocation.
public UnaryCallSettings<CreateWorkspaceRequest , Workspace > createWorkspaceSettings ()
Returns the object with the settings used for calls to createWorkspace.
public UnaryCallSettings<DeleteRepositoryRequest , Empty > deleteRepositorySettings ()
Returns the object with the settings used for calls to deleteRepository.
public UnaryCallSettings<DeleteWorkflowInvocationRequest , Empty > deleteWorkflowInvocationSettings ()
Returns the object with the settings used for calls to deleteWorkflowInvocation.
public UnaryCallSettings<DeleteWorkspaceRequest , Empty > deleteWorkspaceSettings ()
Returns the object with the settings used for calls to deleteWorkspace.
public UnaryCallSettings<FetchFileDiffRequest , FetchFileDiffResponse > fetchFileDiffSettings ()
Returns the object with the settings used for calls to fetchFileDiff.
public UnaryCallSettings<FetchFileGitStatusesRequest , FetchFileGitStatusesResponse > fetchFileGitStatusesSettings ()
Returns the object with the settings used for calls to fetchFileGitStatuses.
public UnaryCallSettings<FetchGitAheadBehindRequest , FetchGitAheadBehindResponse > fetchGitAheadBehindSettings ()
Returns the object with the settings used for calls to fetchGitAheadBehind.
public UnaryCallSettings<FetchRemoteBranchesRequest , FetchRemoteBranchesResponse > fetchRemoteBranchesSettings ()
Returns the object with the settings used for calls to fetchRemoteBranches.
public UnaryCallSettings<GetCompilationResultRequest , CompilationResult > getCompilationResultSettings ()
Returns the object with the settings used for calls to getCompilationResult.
public UnaryCallSettings<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 >
public UnaryCallSettings<GetLocationRequest , Location > getLocationSettings ()
Returns the object with the settings used for calls to getLocation.
Returns
Type
Description
UnaryCallSettings <com.google.cloud.location.GetLocationRequest ,com.google.cloud.location.Location >
public UnaryCallSettings<GetRepositoryRequest , Repository > getRepositorySettings ()
Returns the object with the settings used for calls to getRepository.
public String getServiceName ()
Returns the default service name.
Returns
Type
Description
String
Overrides
public UnaryCallSettings<GetWorkflowInvocationRequest , WorkflowInvocation > getWorkflowInvocationSettings ()
Returns the object with the settings used for calls to getWorkflowInvocation.
public UnaryCallSettings<GetWorkspaceRequest , Workspace > getWorkspaceSettings ()
Returns the object with the settings used for calls to getWorkspace.
public UnaryCallSettings<InstallNpmPackagesRequest , InstallNpmPackagesResponse > installNpmPackagesSettings ()
Returns the object with the settings used for calls to installNpmPackages.
public PagedCallSettings<ListCompilationResultsRequest , ListCompilationResultsResponse , DataformClient . ListCompilationResultsPagedResponse > listCompilationResultsSettings ()
Returns the object with the settings used for calls to listCompilationResults.
public PagedCallSettings<ListLocationsRequest , ListLocationsResponse , DataformClient . ListLocationsPagedResponse > listLocationsSettings ()
Returns the object with the settings used for calls to listLocations.
public PagedCallSettings<ListRepositoriesRequest , ListRepositoriesResponse , DataformClient . ListRepositoriesPagedResponse > listRepositoriesSettings ()
Returns the object with the settings used for calls to listRepositories.
public PagedCallSettings<ListWorkflowInvocationsRequest , ListWorkflowInvocationsResponse , DataformClient . ListWorkflowInvocationsPagedResponse > listWorkflowInvocationsSettings ()
Returns the object with the settings used for calls to listWorkflowInvocations.
public PagedCallSettings<ListWorkspacesRequest , ListWorkspacesResponse , DataformClient . ListWorkspacesPagedResponse > listWorkspacesSettings ()
Returns the object with the settings used for calls to listWorkspaces.
public UnaryCallSettings<MakeDirectoryRequest , MakeDirectoryResponse > makeDirectorySettings ()
Returns the object with the settings used for calls to makeDirectory.
public UnaryCallSettings<MoveDirectoryRequest , MoveDirectoryResponse > moveDirectorySettings ()
Returns the object with the settings used for calls to moveDirectory.
public UnaryCallSettings<MoveFileRequest , MoveFileResponse > moveFileSettings ()
Returns the object with the settings used for calls to moveFile.
public UnaryCallSettings<PullGitCommitsRequest , Empty > pullGitCommitsSettings ()
Returns the object with the settings used for calls to pullGitCommits.
public UnaryCallSettings<PushGitCommitsRequest , Empty > pushGitCommitsSettings ()
Returns the object with the settings used for calls to pushGitCommits.
public PagedCallSettings<QueryCompilationResultActionsRequest , QueryCompilationResultActionsResponse , DataformClient . QueryCompilationResultActionsPagedResponse > queryCompilationResultActionsSettings ()
Returns the object with the settings used for calls to queryCompilationResultActions.
queryDirectoryContentsSettings()
public PagedCallSettings<QueryDirectoryContentsRequest , QueryDirectoryContentsResponse , DataformClient . QueryDirectoryContentsPagedResponse > queryDirectoryContentsSettings ()
Returns the object with the settings used for calls to queryDirectoryContents.
public PagedCallSettings<QueryWorkflowInvocationActionsRequest , QueryWorkflowInvocationActionsResponse , DataformClient . QueryWorkflowInvocationActionsPagedResponse > queryWorkflowInvocationActionsSettings ()
Returns the object with the settings used for calls to queryWorkflowInvocationActions.
public UnaryCallSettings<ReadFileRequest , ReadFileResponse > readFileSettings ()
Returns the object with the settings used for calls to readFile.
public UnaryCallSettings<RemoveDirectoryRequest , Empty > removeDirectorySettings ()
Returns the object with the settings used for calls to removeDirectory.
public UnaryCallSettings<RemoveFileRequest , Empty > removeFileSettings ()
Returns the object with the settings used for calls to removeFile.
public UnaryCallSettings<ResetWorkspaceChangesRequest , Empty > resetWorkspaceChangesSettings ()
Returns the object with the settings used for calls to resetWorkspaceChanges.
public UnaryCallSettings<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 >
public UnaryCallSettings<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 >
public DataformStubSettings . Builder toBuilder ()
Returns a builder containing all the values of this settings class.
Overrides
public UnaryCallSettings<UpdateRepositoryRequest , Repository > updateRepositorySettings ()
Returns the object with the settings used for calls to updateRepository.
public UnaryCallSettings<WriteFileRequest , WriteFileResponse > writeFileSettings ()
Returns the object with the settings used for calls to writeFile.